403Webshell
Server IP : 3.147.158.171  /  Your IP : 216.73.216.216
Web Server : Apache/2.4.67 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-2-178.us-east-2.compute.internal 6.1.172-216.329.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 20 06:31:34 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.21
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /tsai/cb-build/.git/objects/58/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /tsai/cb-build/.git/objects/58/e630fc64f5120b4cedd903ca142009cbba3252
x��blob 1686197var bV=Object.create;var uh=Object.defineProperty,vV=Object.defineProperties,yV=Object.getOwnPropertyDescriptor,xV=Object.getOwnPropertyDescriptors,CV=Object.getOwnPropertyNames,dh=Object.getOwnPropertySymbols,wV=Object.getPrototypeOf,Zb=Object.prototype.hasOwnProperty,mk=Object.prototype.propertyIsEnumerable;var uk=(t,n,e)=>n in t?uh(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,B=(t,n)=>{for(var e in n||={})Zb.call(n,e)&&uk(t,e,n[e]);if(dh)for(var e of dh(n))mk.call(n,e)&&uk(t,e,n[e]);return t;},ze=(t,n)=>vV(t,xV(n));var Xb=(t,n)=>{var e={};for(var i in t)Zb.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&dh)for(var i of dh(t))n.indexOf(i)<0&&mk.call(t,i)&&(e[i]=t[i]);return e;};var Be=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),mh=(t,n)=>{for(var e in n)uh(t,e,{get:n[e],enumerable:!0});},DV=(t,n,e,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of CV(n))!Zb.call(t,r)&&r!==e&&uh(t,r,{get:()=>n[r],enumerable:!(i=yV(n,r))||i.enumerable});return t;};var pk=(t,n,e)=>(e=t!=null?bV(wV(t)):{},DV(n||!t||!t.__esModule?uh(e,"default",{value:t,enumerable:!0}):e,t));var Iu=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{s(e.next(l));}catch(c){r(c);}},a=l=>{try{s(e.throw(l));}catch(c){r(c);}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,n)).next());});var tc=Be((ZIe,AP)=>{"use strict";AP.exports=TypeError;});var RP=Be(()=>{"use strict";});var zp=Be((eTe,XP)=>{"use strict";var H1=typeof Map=="function"&&Map.prototype,O1=Object.getOwnPropertyDescriptor&&H1?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,P_=H1&&O1&&typeof O1.get=="function"?O1.get:null,OP=H1&&Map.prototype.forEach,$1=typeof Set=="function"&&Set.prototype,P1=Object.getOwnPropertyDescriptor&&$1?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,F_=$1&&P1&&typeof P1.get=="function"?P1.get:null,PP=$1&&Set.prototype.forEach,iY=typeof WeakMap=="function"&&WeakMap.prototype,Np=iY?WeakMap.prototype.has:null,nY=typeof WeakSet=="function"&&WeakSet.prototype,Lp=nY?WeakSet.prototype.has:null,rY=typeof WeakRef=="function"&&WeakRef.prototype,FP=rY?WeakRef.prototype.deref:null,oY=Boolean.prototype.valueOf,aY=Object.prototype.toString,sY=Function.prototype.toString,lY=String.prototype.match,U1=String.prototype.slice,Gs=String.prototype.replace,cY=String.prototype.toUpperCase,NP=String.prototype.toLowerCase,qP=RegExp.prototype.test,LP=Array.prototype.concat,xa=Array.prototype.join,dY=Array.prototype.slice,VP=Math.floor,L1=typeof BigInt=="function"?BigInt.prototype.valueOf:null,F1=Object.getOwnPropertySymbols,V1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ud=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Vp=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ud||!0)?Symbol.toStringTag:null,WP=Object.prototype.propertyIsEnumerable,zP=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__;}:null);function BP(t,n){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||qP.call(/e/,n))return n;var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var i=t<0?-VP(-t):VP(t);if(i!==t){var r=String(i),o=U1.call(n,r.length+1);return Gs.call(r,e,"$&_")+"."+Gs.call(Gs.call(o,/([0-9]{3})/g,"$&_"),/_$/,"");}}return Gs.call(n,e,"$&_");}var z1=RP(),jP=z1.custom,HP=QP(jP)?jP:null,GP={__proto__:null,double:'"',single:"'"},uY={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};XP.exports=function t(n,e,i,r){var o=e||{};if(ls(o,"quoteStyle")&&!ls(GP,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ls(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=ls(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ls(o,"indent")&&o.indent!==null&&o.indent!=="	"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ls(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof n>"u")return"undefined";if(n===null)return"null";if(typeof n=="boolean")return n?"true":"false";if(typeof n=="string")return ZP(n,o);if(typeof n=="number"){if(n===0)return 1/0/n>0?"0":"-0";var l=String(n);return s?BP(n,l):l;}if(typeof n=="bigint"){var c=String(n)+"n";return s?BP(n,c):c;}var h=typeof o.depth>"u"?5:o.depth;if(typeof i>"u"&&(i=0),i>=h&&h>0&&typeof n=="object")return B1(n)?"[Array]":"[Object]";var g=IY(o,i);if(typeof r>"u")r=[];else if(KP(r,n)>=0)return"[Circular]";function b(dn,Yn,Gi){if(Yn&&(r=dY.call(r),r.push(Yn)),Gi){var ge={depth:o.depth};return ls(o,"quoteStyle")&&(ge.quoteStyle=o.quoteStyle),t(dn,ge,i+1,r);}return t(dn,o,i+1,r);}if(typeof n=="function"&&!$P(n)){var _=yY(n),x=O_(n,b);return"[Function"+(_?": "+_:" (anonymous)")+"]"+(x.length>0?" { "+xa.call(x,", ")+" }":"");}if(QP(n)){var T=Ud?Gs.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):V1.call(n);return typeof n=="object"&&!Ud?Fp(T):T;}if(kY(n)){for(var L="<"+NP.call(String(n.nodeName)),q=n.attributes||[],ie=0;ie<q.length;ie++)L+=" "+q[ie].name+"="+YP(mY(q[ie].value),"double",o);return L+=">",n.childNodes&&n.childNodes.length&&(L+="..."),L+="</"+NP.call(String(n.nodeName))+">",L;}if(B1(n)){if(n.length===0)return"[]";var Y=O_(n,b);return g&&!SY(Y)?"["+j1(Y,g)+"]":"[ "+xa.call(Y,", ")+" ]";}if(hY(n)){var me=O_(n,b);return!("cause"in Error.prototype)&&"cause"in n&&!WP.call(n,"cause")?"{ ["+String(n)+"] "+xa.call(LP.call("[cause]: "+b(n.cause),me),", ")+" }":me.length===0?"["+String(n)+"]":"{ ["+String(n)+"] "+xa.call(me,", ")+" }";}if(typeof n=="object"&&a){if(HP&&typeof n[HP]=="function"&&z1)return z1(n,{depth:h-i});if(a!=="symbol"&&typeof n.inspect=="function")return n.inspect();}if(xY(n)){var xe=[];return OP&&OP.call(n,function(dn,Yn){xe.push(b(Yn,n,!0)+" => "+b(dn,n));}),UP("Map",P_.call(n),xe,g);}if(DY(n)){var Re=[];return PP&&PP.call(n,function(dn){Re.push(b(dn,n));}),UP("Set",F_.call(n),Re,g);}if(CY(n))return N1("WeakMap");if(EY(n))return N1("WeakSet");if(wY(n))return N1("WeakRef");if(gY(n))return Fp(b(Number(n)));if(bY(n))return Fp(b(L1.call(n)));if(_Y(n))return Fp(oY.call(n));if(fY(n))return Fp(b(String(n)));if(typeof window<"u"&&n===window)return"{ [object Window] }";if(typeof globalThis<"u"&&n===globalThis||typeof global<"u"&&n===global)return"{ [object globalThis] }";if(!pY(n)&&!$P(n)){var ot=O_(n,b),Mt=zP?zP(n)===Object.prototype:n instanceof Object||n.constructor===Object,ui=n instanceof Object?"":"null prototype",Oi=!Mt&&Vp&&Object(n)===n&&Vp in n?U1.call(Ys(n),8,-1):ui?"Object":"",Zr=Mt||typeof n.constructor!="function"?"":n.constructor.name?n.constructor.name+" ":"",Cn=Zr+(Oi||ui?"["+xa.call(LP.call([],Oi||[],ui||[]),": ")+"] ":"");return ot.length===0?Cn+"{}":g?Cn+"{"+j1(ot,g)+"}":Cn+"{ "+xa.call(ot,", ")+" }";}return String(n);};function YP(t,n,e){var i=e.quoteStyle||n,r=GP[i];return r+t+r;}function mY(t){return Gs.call(String(t),/"/g,"&quot;");}function ic(t){return!Vp||!(typeof t=="object"&&(Vp in t||typeof t[Vp]<"u"));}function B1(t){return Ys(t)==="[object Array]"&&ic(t);}function pY(t){return Ys(t)==="[object Date]"&&ic(t);}function $P(t){return Ys(t)==="[object RegExp]"&&ic(t);}function hY(t){return Ys(t)==="[object Error]"&&ic(t);}function fY(t){return Ys(t)==="[object String]"&&ic(t);}function gY(t){return Ys(t)==="[object Number]"&&ic(t);}function _Y(t){return Ys(t)==="[object Boolean]"&&ic(t);}function QP(t){if(Ud)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!V1)return!1;try{return V1.call(t),!0;}catch{}return!1;}function bY(t){if(!t||typeof t!="object"||!L1)return!1;try{return L1.call(t),!0;}catch{}return!1;}var vY=Object.prototype.hasOwnProperty||function(t){return t in this;};function ls(t,n){return vY.call(t,n);}function Ys(t){return aY.call(t);}function yY(t){if(t.name)return t.name;var n=lY.call(sY.call(t),/^function\s*([\w$]+)/);return n?n[1]:null;}function KP(t,n){if(t.indexOf)return t.indexOf(n);for(var e=0,i=t.length;e<i;e++)if(t[e]===n)return e;return-1;}function xY(t){if(!P_||!t||typeof t!="object")return!1;try{P_.call(t);try{F_.call(t);}catch{return!0;}return t instanceof Map;}catch{}return!1;}function CY(t){if(!Np||!t||typeof t!="object")return!1;try{Np.call(t,Np);try{Lp.call(t,Lp);}catch{return!0;}return t instanceof WeakMap;}catch{}return!1;}function wY(t){if(!FP||!t||typeof t!="object")return!1;try{return FP.call(t),!0;}catch{}return!1;}function DY(t){if(!F_||!t||typeof t!="object")return!1;try{F_.call(t);try{P_.call(t);}catch{return!0;}return t instanceof Set;}catch{}return!1;}function EY(t){if(!Lp||!t||typeof t!="object")return!1;try{Lp.call(t,Lp);try{Np.call(t,Np);}catch{return!0;}return t instanceof WeakSet;}catch{}return!1;}function kY(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function";}function ZP(t,n){if(t.length>n.maxStringLength){var e=t.length-n.maxStringLength,i="... "+e+" more character"+(e>1?"s":"");return ZP(U1.call(t,0,n.maxStringLength),n)+i;}var r=uY[n.quoteStyle||"single"];r.lastIndex=0;var o=Gs.call(Gs.call(t,r,"\\$1"),/[\x00-\x1f]/g,MY);return YP(o,"single",n);}function MY(t){var n=t.charCodeAt(0),e={8:"b",9:"t",10:"n",12:"f",13:"r"}[n];return e?"\\"+e:"\\x"+(n<16?"0":"")+cY.call(n.toString(16));}function Fp(t){return"Object("+t+")";}function N1(t){return t+" { ? }";}function UP(t,n,e,i){var r=i?j1(e,i):xa.call(e,", ");return t+" ("+n+") {"+r+"}";}function SY(t){for(var n=0;n<t.length;n++)if(KP(t[n],`
`)>=0)return!1;return!0;}function IY(t,n){var e;if(t.indent==="	")e="	";else if(typeof t.indent=="number"&&t.indent>0)e=xa.call(Array(t.indent+1)," ");else return null;return{base:e,prev:xa.call(Array(n+1),e)};}function j1(t,n){if(t.length===0)return"";var e=`
`+n.prev+n.base;return e+xa.call(t,","+e)+`
`+n.prev;}function O_(t,n){var e=B1(t),i=[];if(e){i.length=t.length;for(var r=0;r<t.length;r++)i[r]=ls(t,r)?n(t[r],t):"";}var o=typeof F1=="function"?F1(t):[],a;if(Ud){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s];}for(var l in t)ls(t,l)&&(e&&String(Number(l))===l&&l<t.length||Ud&&a["$"+l]instanceof Symbol||(qP.call(/[^\w$]/,l)?i.push(n(l,t)+": "+n(t[l],t)):i.push(l+": "+n(t[l],t))));if(typeof F1=="function")for(var c=0;c<o.length;c++)WP.call(t,o[c])&&i.push("["+n(o[c])+"]: "+n(t[o[c]],t));return i;}});var eF=Be((tTe,JP)=>{"use strict";var TY=zp(),AY=tc(),N_=function(t,n,e){for(var i=t,r;(r=i.next)!=null;i=r)if(r.key===n)return i.next=r.next,e||(r.next=t.next,t.next=r),r;},RY=function(t,n){if(t){var e=N_(t,n);return e&&e.value;}},OY=function(t,n,e){var i=N_(t,n);i?i.value=e:t.next={key:n,next:t.next,value:e};},PY=function(t,n){return t?!!N_(t,n):!1;},FY=function(t,n){if(t)return N_(t,n,!0);};JP.exports=function(){var n,e={assert:function(i){if(!e.has(i))throw new AY("Side channel does not contain "+TY(i));},delete:function(i){var r=n&&n.next,o=FY(n,i);return o&&r&&r===o&&(n=void 0),!!o;},get:function(i){return RY(n,i);},has:function(i){return PY(n,i);},set:function(i,r){n||(n={next:void 0}),OY(n,i,r);}};return e;};});var q1=Be((iTe,tF)=>{"use strict";tF.exports=Object;});var nF=Be((nTe,iF)=>{"use strict";iF.exports=Error;});var oF=Be((rTe,rF)=>{"use strict";rF.exports=EvalError;});var sF=Be((oTe,aF)=>{"use strict";aF.exports=RangeError;});var cF=Be((aTe,lF)=>{"use strict";lF.exports=ReferenceError;});var uF=Be((sTe,dF)=>{"use strict";dF.exports=SyntaxError;});var pF=Be((lTe,mF)=>{"use strict";mF.exports=URIError;});var fF=Be((cTe,hF)=>{"use strict";hF.exports=Math.abs;});var _F=Be((dTe,gF)=>{"use strict";gF.exports=Math.floor;});var vF=Be((uTe,bF)=>{"use strict";bF.exports=Math.max;});var xF=Be((mTe,yF)=>{"use strict";yF.exports=Math.min;});var wF=Be((pTe,CF)=>{"use strict";CF.exports=Math.pow;});var EF=Be((hTe,DF)=>{"use strict";DF.exports=Math.round;});var MF=Be((fTe,kF)=>{"use strict";kF.exports=Number.isNaN||function(n){return n!==n;};});var IF=Be((gTe,SF)=>{"use strict";var NY=MF();SF.exports=function(n){return NY(n)||n===0?n:n<0?-1:1;};});var AF=Be((_Te,TF)=>{"use strict";TF.exports=Object.getOwnPropertyDescriptor;});var W1=Be((bTe,RF)=>{"use strict";var L_=AF();if(L_)try{L_([],"length");}catch{L_=null;}RF.exports=L_;});var PF=Be((vTe,OF)=>{"use strict";var V_=Object.defineProperty||!1;if(V_)try{V_({},"a",{value:1});}catch{V_=!1;}OF.exports=V_;});var NF=Be((yTe,FF)=>{"use strict";FF.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},e=Symbol("test"),i=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;n[e]=r;for(var o in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var a=Object.getOwnPropertySymbols(n);if(a.length!==1||a[0]!==e||!Object.prototype.propertyIsEnumerable.call(n,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(n,e);if(s.value!==r||s.enumerable!==!0)return!1;}return!0;};});var zF=Be((xTe,VF)=>{"use strict";var LF=typeof Symbol<"u"&&Symbol,LY=NF();VF.exports=function(){return typeof LF!="function"||typeof Symbol!="function"||typeof LF("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:LY();};});var G1=Be((CTe,BF)=>{"use strict";BF.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null;});var Y1=Be((wTe,jF)=>{"use strict";var VY=q1();jF.exports=VY.getPrototypeOf||null;});var UF=Be((DTe,$F)=>{"use strict";var zY="Function.prototype.bind called on incompatible ",BY=Object.prototype.toString,jY=Math.max,HY="[object Function]",HF=function(n,e){for(var i=[],r=0;r<n.length;r+=1)i[r]=n[r];for(var o=0;o<e.length;o+=1)i[o+n.length]=e[o];return i;},$Y=function(n,e){for(var i=[],r=e||0,o=0;r<n.length;r+=1,o+=1)i[o]=n[r];return i;},UY=function(t,n){for(var e="",i=0;i<t.length;i+=1)e+=t[i],i+1<t.length&&(e+=n);return e;};$F.exports=function(n){var e=this;if(typeof e!="function"||BY.apply(e)!==HY)throw new TypeError(zY+e);for(var i=$Y(arguments,1),r,o=function(){if(this instanceof r){var h=e.apply(this,HF(i,arguments));return Object(h)===h?h:this;}return e.apply(n,HF(i,arguments));},a=jY(0,e.length-i.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(r=Function("binder","return function ("+UY(s,",")+"){ return binder.apply(this,arguments); }")(o),e.prototype){var c=function(){};c.prototype=e.prototype,r.prototype=new c(),c.prototype=null;}return r;};});var Bp=Be((ETe,qF)=>{"use strict";var qY=UF();qF.exports=Function.prototype.bind||qY;});var z_=Be((kTe,WF)=>{"use strict";WF.exports=Function.prototype.call;});var Q1=Be((MTe,GF)=>{"use strict";GF.exports=Function.prototype.apply;});var QF=Be((STe,YF)=>{"use strict";YF.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply;});var ZF=Be((ITe,KF)=>{"use strict";var WY=Bp(),GY=Q1(),YY=z_(),QY=QF();KF.exports=QY||WY.call(YY,GY);});var K1=Be((TTe,XF)=>{"use strict";var KY=Bp(),ZY=tc(),XY=z_(),JY=ZF();XF.exports=function(n){if(n.length<1||typeof n[0]!="function")throw new ZY("a function is required");return JY(KY,XY,n);};});var r3=Be((ATe,n3)=>{"use strict";var eQ=K1(),JF=W1(),t3;try{t3=[].__proto__===Array.prototype;}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t;}var Z1=!!t3&&JF&&JF(Object.prototype,"__proto__"),i3=Object,e3=i3.getPrototypeOf;n3.exports=Z1&&typeof Z1.get=="function"?eQ([Z1.get]):typeof e3=="function"?function(n){return e3(n==null?n:i3(n));}:!1;});var c3=Be((RTe,l3)=>{"use strict";var o3=G1(),a3=Y1(),s3=r3();l3.exports=o3?function(n){return o3(n);}:a3?function(n){if(!n||typeof n!="object"&&typeof n!="function")throw new TypeError("getProto: not an object");return a3(n);}:s3?function(n){return s3(n);}:null;});var u3=Be((OTe,d3)=>{"use strict";var tQ=Function.prototype.call,iQ=Object.prototype.hasOwnProperty,nQ=Bp();d3.exports=nQ.call(tQ,iQ);});var H_=Be((PTe,_3)=>{"use strict";var ft,rQ=q1(),oQ=nF(),aQ=oF(),sQ=sF(),lQ=cF(),Yd=uF(),Gd=tc(),cQ=pF(),dQ=fF(),uQ=_F(),mQ=vF(),pQ=xF(),hQ=wF(),fQ=EF(),gQ=IF(),f3=Function,X1=function(t){try{return f3('"use strict"; return ('+t+").constructor;")();}catch{}},jp=W1(),_Q=PF(),J1=function(){throw new Gd();},bQ=jp?function(){try{return arguments.callee,J1;}catch{try{return jp(arguments,"callee").get;}catch{return J1;}}}():J1,qd=zF()(),ln=c3(),vQ=Y1(),yQ=G1(),g3=Q1(),Hp=z_(),Wd={},xQ=typeof Uint8Array>"u"||!ln?ft:ln(Uint8Array),nc={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ft:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ft:ArrayBuffer,"%ArrayIteratorPrototype%":qd&&ln?ln([][Symbol.iterator]()):ft,"%AsyncFromSyncIteratorPrototype%":ft,"%AsyncFunction%":Wd,"%AsyncGenerator%":Wd,"%AsyncGeneratorFunction%":Wd,"%AsyncIteratorPrototype%":Wd,"%Atomics%":typeof Atomics>"u"?ft:Atomics,"%BigInt%":typeof BigInt>"u"?ft:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ft:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ft:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ft:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":oQ,"%eval%":eval,"%EvalError%":aQ,"%Float16Array%":typeof Float16Array>"u"?ft:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ft:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ft:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ft:FinalizationRegistry,"%Function%":f3,"%GeneratorFunction%":Wd,"%Int8Array%":typeof Int8Array>"u"?ft:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ft:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ft:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":qd&&ln?ln(ln([][Symbol.iterator]())):ft,"%JSON%":typeof JSON=="object"?JSON:ft,"%Map%":typeof Map>"u"?ft:Map,"%MapIteratorPrototype%":typeof Map>"u"||!qd||!ln?ft:ln(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":rQ,"%Object.getOwnPropertyDescriptor%":jp,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ft:Promise,"%Proxy%":typeof Proxy>"u"?ft:Proxy,"%RangeError%":sQ,"%ReferenceError%":lQ,"%Reflect%":typeof Reflect>"u"?ft:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ft:Set,"%SetIteratorPrototype%":typeof Set>"u"||!qd||!ln?ft:ln(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ft:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":qd&&ln?ln(""[Symbol.iterator]()):ft,"%Symbol%":qd?Symbol:ft,"%SyntaxError%":Yd,"%ThrowTypeError%":bQ,"%TypedArray%":xQ,"%TypeError%":Gd,"%Uint8Array%":typeof Uint8Array>"u"?ft:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ft:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ft:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ft:Uint32Array,"%URIError%":cQ,"%WeakMap%":typeof WeakMap>"u"?ft:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ft:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ft:WeakSet,"%Function.prototype.call%":Hp,"%Function.prototype.apply%":g3,"%Object.defineProperty%":_Q,"%Object.getPrototypeOf%":vQ,"%Math.abs%":dQ,"%Math.floor%":uQ,"%Math.max%":mQ,"%Math.min%":pQ,"%Math.pow%":hQ,"%Math.round%":fQ,"%Math.sign%":gQ,"%Reflect.getPrototypeOf%":yQ};if(ln)try{null.error;}catch(t){m3=ln(ln(t)),nc["%Error.prototype%"]=m3;}var m3,CQ=function t(n){var e;if(n==="%AsyncFunction%")e=X1("async function () {}");else if(n==="%GeneratorFunction%")e=X1("function* () {}");else if(n==="%AsyncGeneratorFunction%")e=X1("async function* () {}");else if(n==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(e=i.prototype);}else if(n==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&ln&&(e=ln(r.prototype));}return nc[n]=e,e;},p3={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},$p=Bp(),B_=u3(),wQ=$p.call(Hp,Array.prototype.concat),DQ=$p.call(g3,Array.prototype.splice),h3=$p.call(Hp,String.prototype.replace),j_=$p.call(Hp,String.prototype.slice),EQ=$p.call(Hp,RegExp.prototype.exec),kQ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,MQ=/\\(\\)?/g,SQ=function(n){var e=j_(n,0,1),i=j_(n,-1);if(e==="%"&&i!=="%")throw new Yd("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&e!=="%")throw new Yd("invalid intrinsic syntax, expected opening `%`");var r=[];return h3(n,kQ,function(o,a,s,l){r[r.length]=s?h3(l,MQ,"$1"):a||o;}),r;},IQ=function(n,e){var i=n,r;if(B_(p3,i)&&(r=p3[i],i="%"+r[0]+"%"),B_(nc,i)){var o=nc[i];if(o===Wd&&(o=CQ(i)),typeof o>"u"&&!e)throw new Gd("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:o};}throw new Yd("intrinsic "+n+" does not exist!");};_3.exports=function(n,e){if(typeof n!="string"||n.length===0)throw new Gd("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof e!="boolean")throw new Gd('"allowMissing" argument must be a boolean');if(EQ(/^%?[^%]*%?$/,n)===null)throw new Yd("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=SQ(n),r=i.length>0?i[0]:"",o=IQ("%"+r+"%",e),a=o.name,s=o.value,l=!1,c=o.alias;c&&(r=c[0],DQ(i,wQ([0,1],c)));for(var h=1,g=!0;h<i.length;h+=1){var b=i[h],_=j_(b,0,1),x=j_(b,-1);if((_==='"'||_==="'"||_==="`"||x==='"'||x==="'"||x==="`")&&_!==x)throw new Yd("property names with quotes must have matching quotes");if((b==="constructor"||!g)&&(l=!0),r+="."+b,a="%"+r+"%",B_(nc,a))s=nc[a];else if(s!=null){if(!(b in s)){if(!e)throw new Gd("base intrinsic for "+n+" exists, but the property is not available.");return;}if(jp&&h+1>=i.length){var T=jp(s,b);g=!!T,g&&"get"in T&&!("originalValue"in T.get)?s=T.get:s=s[b];}else g=B_(s,b),s=s[b];g&&!l&&(nc[a]=s);}}return s;};});var eD=Be((FTe,y3)=>{"use strict";var b3=H_(),v3=K1(),TQ=v3([b3("%String.prototype.indexOf%")]);y3.exports=function(n,e){var i=b3(n,!!e);return typeof i=="function"&&TQ(n,".prototype.")>-1?v3([i]):i;};});var tD=Be((NTe,C3)=>{"use strict";var AQ=H_(),Up=eD(),RQ=zp(),OQ=tc(),x3=AQ("%Map%",!0),PQ=Up("Map.prototype.get",!0),FQ=Up("Map.prototype.set",!0),NQ=Up("Map.prototype.has",!0),LQ=Up("Map.prototype.delete",!0),VQ=Up("Map.prototype.size",!0);C3.exports=!!x3&&function(){var n,e={assert:function(i){if(!e.has(i))throw new OQ("Side channel does not contain "+RQ(i));},delete:function(i){if(n){var r=LQ(n,i);return VQ(n)===0&&(n=void 0),r;}return!1;},get:function(i){if(n)return PQ(n,i);},has:function(i){return n?NQ(n,i):!1;},set:function(i,r){n||(n=new x3()),FQ(n,i,r);}};return e;};});var D3=Be((LTe,w3)=>{"use strict";var zQ=H_(),U_=eD(),BQ=zp(),$_=tD(),jQ=tc(),Qd=zQ("%WeakMap%",!0),HQ=U_("WeakMap.prototype.get",!0),$Q=U_("WeakMap.prototype.set",!0),UQ=U_("WeakMap.prototype.has",!0),qQ=U_("WeakMap.prototype.delete",!0);w3.exports=Qd?function(){var n,e,i={assert:function(r){if(!i.has(r))throw new jQ("Side channel does not contain "+BQ(r));},delete:function(r){if(Qd&&r&&(typeof r=="object"||typeof r=="function")){if(n)return qQ(n,r);}else if($_&&e)return e.delete(r);return!1;},get:function(r){return Qd&&r&&(typeof r=="object"||typeof r=="function")&&n?HQ(n,r):e&&e.get(r);},has:function(r){return Qd&&r&&(typeof r=="object"||typeof r=="function")&&n?UQ(n,r):!!e&&e.has(r);},set:function(r,o){Qd&&r&&(typeof r=="object"||typeof r=="function")?(n||(n=new Qd()),$Q(n,r,o)):$_&&(e||(e=$_()),e.set(r,o));}};return i;}:$_;});var k3=Be((VTe,E3)=>{"use strict";var WQ=tc(),GQ=zp(),YQ=eF(),QQ=tD(),KQ=D3(),ZQ=KQ||QQ||YQ;E3.exports=function(){var n,e={assert:function(i){if(!e.has(i))throw new WQ("Side channel does not contain "+GQ(i));},delete:function(i){return!!n&&n.delete(i);},get:function(i){return n&&n.get(i);},has:function(i){return!!n&&n.has(i);},set:function(i,r){n||(n=ZQ()),n.set(i,r);}};return e;};});var q_=Be((zTe,M3)=>{"use strict";var XQ=String.prototype.replace,JQ=/%20/g,iD={RFC1738:"RFC1738",RFC3986:"RFC3986"};M3.exports={default:iD.RFC3986,formatters:{RFC1738:function(t){return XQ.call(t,JQ,"+");},RFC3986:function(t){return String(t);}},RFC1738:iD.RFC1738,RFC3986:iD.RFC3986};});var oD=Be((BTe,I3)=>{"use strict";var eK=q_(),nD=Object.prototype.hasOwnProperty,rc=Array.isArray,Ca=function(){for(var t=[],n=0;n<256;++n)t.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return t;}(),tK=function(n){for(;n.length>1;){var e=n.pop(),i=e.obj[e.prop];if(rc(i)){for(var r=[],o=0;o<i.length;++o)typeof i[o]<"u"&&r.push(i[o]);e.obj[e.prop]=r;}}},S3=function(n,e){for(var i=e&&e.plainObjects?{__proto__:null}:{},r=0;r<n.length;++r)typeof n[r]<"u"&&(i[r]=n[r]);return i;},iK=function t(n,e,i){if(!e)return n;if(typeof e!="object"&&typeof e!="function"){if(rc(n))n.push(e);else if(n&&typeof n=="object")(i&&(i.plainObjects||i.allowPrototypes)||!nD.call(Object.prototype,e))&&(n[e]=!0);else return[n,e];return n;}if(!n||typeof n!="object")return[n].concat(e);var r=n;return rc(n)&&!rc(e)&&(r=S3(n,i)),rc(n)&&rc(e)?(e.forEach(function(o,a){if(nD.call(n,a)){var s=n[a];s&&typeof s=="object"&&o&&typeof o=="object"?n[a]=t(s,o,i):n.push(o);}else n[a]=o;}),n):Object.keys(e).reduce(function(o,a){var s=e[a];return nD.call(o,a)?o[a]=t(o[a],s,i):o[a]=s,o;},r);},nK=function(n,e){return Object.keys(e).reduce(function(i,r){return i[r]=e[r],i;},n);},rK=function(t,n,e){var i=t.replace(/\+/g," ");if(e==="iso-8859-1")return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i);}catch{return i;}},rD=1024,oK=function(n,e,i,r,o){if(n.length===0)return n;var a=n;if(typeof n=="symbol"?a=Symbol.prototype.toString.call(n):typeof n!="string"&&(a=String(n)),i==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(_){return"%26%23"+parseInt(_.slice(2),16)+"%3B";});for(var s="",l=0;l<a.length;l+=rD){for(var c=a.length>=rD?a.slice(l,l+rD):a,h=[],g=0;g<c.length;++g){var b=c.charCodeAt(g);if(b===45||b===46||b===95||b===126||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||o===eK.RFC1738&&(b===40||b===41)){h[h.length]=c.charAt(g);continue;}if(b<128){h[h.length]=Ca[b];continue;}if(b<2048){h[h.length]=Ca[192|b>>6]+Ca[128|b&63];continue;}if(b<55296||b>=57344){h[h.length]=Ca[224|b>>12]+Ca[128|b>>6&63]+Ca[128|b&63];continue;}g+=1,b=65536+((b&1023)<<10|c.charCodeAt(g)&1023),h[h.length]=Ca[240|b>>18]+Ca[128|b>>12&63]+Ca[128|b>>6&63]+Ca[128|b&63];}s+=h.join("");}return s;},aK=function(n){for(var e=[{obj:{o:n},prop:"o"}],i=[],r=0;r<e.length;++r)for(var o=e[r],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],h=a[c];typeof h=="object"&&h!==null&&i.indexOf(h)===-1&&(e.push({obj:a,prop:c}),i.push(h));}return tK(e),n;},sK=function(n){return Object.prototype.toString.call(n)==="[object RegExp]";},lK=function(n){return!n||typeof n!="object"?!1:!!(n.constructor&&n.constructor.isBuffer&&n.constructor.isBuffer(n));},cK=function(n,e){return[].concat(n,e);},dK=function(n,e){if(rc(n)){for(var i=[],r=0;r<n.length;r+=1)i.push(e(n[r]));return i;}return e(n);};I3.exports={arrayToObject:S3,assign:nK,combine:cK,compact:aK,decode:rK,encode:oK,isBuffer:lK,isRegExp:sK,maybeMap:dK,merge:iK};});var F3=Be((jTe,P3)=>{"use strict";var A3=k3(),W_=oD(),qp=q_(),uK=Object.prototype.hasOwnProperty,R3={brackets:function(n){return n+"[]";},comma:"comma",indices:function(n,e){return n+"["+e+"]";},repeat:function(n){return n;}},wa=Array.isArray,mK=Array.prototype.push,O3=function(t,n){mK.apply(t,wa(n)?n:[n]);},pK=Date.prototype.toISOString,T3=qp.default,tn={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:W_.encode,encodeValuesOnly:!1,filter:void 0,format:T3,formatter:qp.formatters[T3],indices:!1,serializeDate:function(n){return pK.call(n);},skipNulls:!1,strictNullHandling:!1},hK=function(n){return typeof n=="string"||typeof n=="number"||typeof n=="boolean"||typeof n=="symbol"||typeof n=="bigint";},aD={},fK=function t(n,e,i,r,o,a,s,l,c,h,g,b,_,x,T,L,q,ie){for(var Y=n,me=ie,xe=0,Re=!1;(me=me.get(aD))!==void 0&&!Re;){var ot=me.get(n);if(xe+=1,typeof ot<"u"){if(ot===xe)throw new RangeError("Cyclic object value");Re=!0;}typeof me.get(aD)>"u"&&(xe=0);}if(typeof h=="function"?Y=h(e,Y):Y instanceof Date?Y=_(Y):i==="comma"&&wa(Y)&&(Y=W_.maybeMap(Y,function(wi){return wi instanceof Date?_(wi):wi;})),Y===null){if(a)return c&&!L?c(e,tn.encoder,q,"key",x):e;Y="";}if(hK(Y)||W_.isBuffer(Y)){if(c){var Mt=L?e:c(e,tn.encoder,q,"key",x);return[T(Mt)+"="+T(c(Y,tn.encoder,q,"value",x))];}return[T(e)+"="+T(String(Y))];}var ui=[];if(typeof Y>"u")return ui;var Oi;if(i==="comma"&&wa(Y))L&&c&&(Y=W_.maybeMap(Y,c)),Oi=[{value:Y.length>0?Y.join(",")||null:void 0}];else if(wa(h))Oi=h;else{var Zr=Object.keys(Y);Oi=g?Zr.sort(g):Zr;}var Cn=l?String(e).replace(/\./g,"%2E"):String(e),dn=r&&wa(Y)&&Y.length===1?Cn+"[]":Cn;if(o&&wa(Y)&&Y.length===0)return dn+"[]";for(var Yn=0;Yn<Oi.length;++Yn){var Gi=Oi[Yn],ge=typeof Gi=="object"&&Gi&&typeof Gi.value<"u"?Gi.value:Y[Gi];if(!(s&&ge===null)){var Me=b&&l?String(Gi).replace(/\./g,"%2E"):String(Gi),Pe=wa(Y)?typeof i=="function"?i(dn,Me):dn:dn+(b?"."+Me:"["+Me+"]");ie.set(n,xe);var _t=A3();_t.set(aD,ie),O3(ui,t(ge,Pe,i,r,o,a,s,l,i==="comma"&&L&&wa(Y)?null:c,h,g,b,_,x,T,L,q,_t));}}return ui;},gK=function(n){if(!n)return tn;if(typeof n.allowEmptyArrays<"u"&&typeof n.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof n.encodeDotInKeys<"u"&&typeof n.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(n.encoder!==null&&typeof n.encoder<"u"&&typeof n.encoder!="function")throw new TypeError("Encoder has to be a function.");var e=n.charset||tn.charset;if(typeof n.charset<"u"&&n.charset!=="utf-8"&&n.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=qp.default;if(typeof n.format<"u"){if(!uK.call(qp.formatters,n.format))throw new TypeError("Unknown format option provided.");i=n.format;}var r=qp.formatters[i],o=tn.filter;(typeof n.filter=="function"||wa(n.filter))&&(o=n.filter);var a;if(n.arrayFormat in R3?a=n.arrayFormat:"indices"in n?a=n.indices?"indices":"repeat":a=tn.arrayFormat,"commaRoundTrip"in n&&typeof n.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof n.allowDots>"u"?n.encodeDotInKeys===!0?!0:tn.allowDots:!!n.allowDots;return{addQueryPrefix:typeof n.addQueryPrefix=="boolean"?n.addQueryPrefix:tn.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof n.allowEmptyArrays=="boolean"?!!n.allowEmptyArrays:tn.allowEmptyArrays,arrayFormat:a,charset:e,charsetSentinel:typeof n.charsetSentinel=="boolean"?n.charsetSentinel:tn.charsetSentinel,commaRoundTrip:!!n.commaRoundTrip,delimiter:typeof n.delimiter>"u"?tn.delimiter:n.delimiter,encode:typeof n.encode=="boolean"?n.encode:tn.encode,encodeDotInKeys:typeof n.encodeDotInKeys=="boolean"?n.encodeDotInKeys:tn.encodeDotInKeys,encoder:typeof n.encoder=="function"?n.encoder:tn.encoder,encodeValuesOnly:typeof n.encodeValuesOnly=="boolean"?n.encodeValuesOnly:tn.encodeValuesOnly,filter:o,format:i,formatter:r,serializeDate:typeof n.serializeDate=="function"?n.serializeDate:tn.serializeDate,skipNulls:typeof n.skipNulls=="boolean"?n.skipNulls:tn.skipNulls,sort:typeof n.sort=="function"?n.sort:null,strictNullHandling:typeof n.strictNullHandling=="boolean"?n.strictNullHandling:tn.strictNullHandling};};P3.exports=function(t,n){var e=t,i=gK(n),r,o;typeof i.filter=="function"?(o=i.filter,e=o("",e)):wa(i.filter)&&(o=i.filter,r=o);var a=[];if(typeof e!="object"||e===null)return"";var s=R3[i.arrayFormat],l=s==="comma"&&i.commaRoundTrip;r||(r=Object.keys(e)),i.sort&&r.sort(i.sort);for(var c=A3(),h=0;h<r.length;++h){var g=r[h],b=e[g];i.skipNulls&&b===null||O3(a,fK(b,g,s,l,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,c));}var _=a.join(i.delimiter),x=i.addQueryPrefix===!0?"?":"";return i.charsetSentinel&&(i.charset==="iso-8859-1"?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),_.length>0?x+_:"";};});var z3=Be((HTe,V3)=>{"use strict";var oc=oD(),sD=Object.prototype.hasOwnProperty,N3=Array.isArray,Ri={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:oc.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},_K=function(t){return t.replace(/&#(\d+);/g,function(n,e){return String.fromCharCode(parseInt(e,10));});},L3=function(t,n,e){if(t&&typeof t=="string"&&n.comma&&t.indexOf(",")>-1)return t.split(",");if(n.throwOnLimitExceeded&&e>=n.arrayLimit)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(n.arrayLimit===1?"":"s")+" allowed in an array.");return t;},bK="utf8=%26%2310003%3B",vK="utf8=%E2%9C%93",yK=function(n,e){var i={__proto__:null},r=e.ignoreQueryPrefix?n.replace(/^\?/,""):n;r=r.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=e.parameterLimit===1/0?void 0:e.parameterLimit,a=r.split(e.delimiter,e.throwOnLimitExceeded?o+1:o);if(e.throwOnLimitExceeded&&a.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var s=-1,l,c=e.charset;if(e.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===vK?c="utf-8":a[l]===bK&&(c="iso-8859-1"),s=l,l=a.length);for(l=0;l<a.length;++l)if(l!==s){var h=a[l],g=h.indexOf("]="),b=g===-1?h.indexOf("="):g+1,_,x;b===-1?(_=e.decoder(h,Ri.decoder,c,"key"),x=e.strictNullHandling?null:""):(_=e.decoder(h.slice(0,b),Ri.decoder,c,"key"),x=oc.maybeMap(L3(h.slice(b+1),e,N3(i[_])?i[_].length:0),function(L){return e.decoder(L,Ri.decoder,c,"value");})),x&&e.interpretNumericEntities&&c==="iso-8859-1"&&(x=_K(String(x))),h.indexOf("[]=")>-1&&(x=N3(x)?[x]:x);var T=sD.call(i,_);T&&e.duplicates==="combine"?i[_]=oc.combine(i[_],x):(!T||e.duplicates==="last")&&(i[_]=x);}return i;},xK=function(t,n,e,i){var r=0;if(t.length>0&&t[t.length-1]==="[]"){var o=t.slice(0,-1).join("");r=Array.isArray(n)&&n[o]?n[o].length:0;}for(var a=i?n:L3(n,e,r),s=t.length-1;s>=0;--s){var l,c=t[s];if(c==="[]"&&e.parseArrays)l=e.allowEmptyArrays&&(a===""||e.strictNullHandling&&a===null)?[]:oc.combine([],a);else{l=e.plainObjects?{__proto__:null}:{};var h=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,g=e.decodeDotInKeys?h.replace(/%2E/g,"."):h,b=parseInt(g,10);!e.parseArrays&&g===""?l={0:a}:!isNaN(b)&&c!==g&&String(b)===g&&b>=0&&e.parseArrays&&b<=e.arrayLimit?(l=[],l[b]=a):g!=="__proto__"&&(l[g]=a);}a=l;}return a;},CK=function(n,e,i,r){if(n){var o=i.allowDots?n.replace(/\.([^.[]+)/g,"[$1]"):n,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=i.depth>0&&a.exec(o),c=l?o.slice(0,l.index):o,h=[];if(c){if(!i.plainObjects&&sD.call(Object.prototype,c)&&!i.allowPrototypes)return;h.push(c);}for(var g=0;i.depth>0&&(l=s.exec(o))!==null&&g<i.depth;){if(g+=1,!i.plainObjects&&sD.call(Object.prototype,l[1].slice(1,-1))&&!i.allowPrototypes)return;h.push(l[1]);}if(l){if(i.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");h.push("["+o.slice(l.index)+"]");}return xK(h,e,i,r);}},wK=function(n){if(!n)return Ri;if(typeof n.allowEmptyArrays<"u"&&typeof n.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof n.decodeDotInKeys<"u"&&typeof n.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(n.decoder!==null&&typeof n.decoder<"u"&&typeof n.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof n.charset<"u"&&n.charset!=="utf-8"&&n.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof n.throwOnLimitExceeded<"u"&&typeof n.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=typeof n.charset>"u"?Ri.charset:n.charset,i=typeof n.duplicates>"u"?Ri.duplicates:n.duplicates;if(i!=="combine"&&i!=="first"&&i!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var r=typeof n.allowDots>"u"?n.decodeDotInKeys===!0?!0:Ri.allowDots:!!n.allowDots;return{allowDots:r,allowEmptyArrays:typeof n.allowEmptyArrays=="boolean"?!!n.allowEmptyArrays:Ri.allowEmptyArrays,allowPrototypes:typeof n.allowPrototypes=="boolean"?n.allowPrototypes:Ri.allowPrototypes,allowSparse:typeof n.allowSparse=="boolean"?n.allowSparse:Ri.allowSparse,arrayLimit:typeof n.arrayLimit=="number"?n.arrayLimit:Ri.arrayLimit,charset:e,charsetSentinel:typeof n.charsetSentinel=="boolean"?n.charsetSentinel:Ri.charsetSentinel,comma:typeof n.comma=="boolean"?n.comma:Ri.comma,decodeDotInKeys:typeof n.decodeDotInKeys=="boolean"?n.decodeDotInKeys:Ri.decodeDotInKeys,decoder:typeof n.decoder=="function"?n.decoder:Ri.decoder,delimiter:typeof n.delimiter=="string"||oc.isRegExp(n.delimiter)?n.delimiter:Ri.delimiter,depth:typeof n.depth=="number"||n.depth===!1?+n.depth:Ri.depth,duplicates:i,ignoreQueryPrefix:n.ignoreQueryPrefix===!0,interpretNumericEntities:typeof n.interpretNumericEntities=="boolean"?n.interpretNumericEntities:Ri.interpretNumericEntities,parameterLimit:typeof n.parameterLimit=="number"?n.parameterLimit:Ri.parameterLimit,parseArrays:n.parseArrays!==!1,plainObjects:typeof n.plainObjects=="boolean"?n.plainObjects:Ri.plainObjects,strictDepth:typeof n.strictDepth=="boolean"?!!n.strictDepth:Ri.strictDepth,strictNullHandling:typeof n.strictNullHandling=="boolean"?n.strictNullHandling:Ri.strictNullHandling,throwOnLimitExceeded:typeof n.throwOnLimitExceeded=="boolean"?n.throwOnLimitExceeded:!1};};V3.exports=function(t,n){var e=wK(n);if(t===""||t===null||typeof t>"u")return e.plainObjects?{__proto__:null}:{};for(var i=typeof t=="string"?yK(t,e):t,r=e.plainObjects?{__proto__:null}:{},o=Object.keys(i),a=0;a<o.length;++a){var s=o[a],l=CK(s,i[s],e,typeof t=="string");r=oc.merge(r,l,e);}return e.allowSparse===!0?r:oc.compact(r);};});var j3=Be(($Te,B3)=>{"use strict";var DK=F3(),EK=z3(),kK=q_();B3.exports={formats:kK,parse:EK,stringify:DK};});var cD=Be(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0});G_.DrupalJsonApiParams=void 0;var H3=j3(),lD=class{constructor(n,e){this.data={filter:{},include:[],page:void 0,sort:[],fields:{}},this.qsOptions={},this.config={useShortCutForQueryGeneration:!0,alwaysUseFieldNameForKeys:!1},e!==void 0&&(this.config=e),this.initialize(n);}addCustomParam(n){return this.data=Object.assign(Object.assign({},this.data),n),this;}addFields(n,e){return this.data.fields[n]=e.join(","),this;}addSort(n,e){let i="";return e!==void 0&&e==="DESC"&&(i="-"),this.data.sort=this.data.sort.concat(i+n),this;}addPageLimit(n){return this.data.page===void 0?this.data.page={limit:n}:this.data.page.limit=n,this;}addPageOffset(n){return this.data.page===void 0?this.data.page={offset:n}:this.data.page.offset=n,this;}addInclude(n){return this.data.include=this.data.include.concat(n),this;}addGroup(n,e="OR",i){return this.data.filter[n]={group:Object.assign({conjunction:e},i!==void 0&&{memberOf:i})},this;}addFilter(n,e,i="=",r,o){let a=this.getIndexId(this.data.filter,o||n,!!o);if((i==="IS NULL"||i==="IS NOT NULL")&&(e=null),e===null){if(!(i==="IS NULL"||i==="IS NOT NULL"))throw new TypeError(`Value cannot be null for the operator "${i}"`);return this.data.filter[a]={condition:Object.assign(Object.assign({path:n},{operator:i}),r!==void 0&&{memberOf:r})},this;}if(Array.isArray(e)){switch(i){case"BETWEEN":case"NOT BETWEEN":if(e.length!==2)throw new TypeError(`Value must consists of 2 items for the "${i}"`);break;case"IN":case"NOT IN":break;default:throw new TypeError(`Value cannot be an array for the operator "${i}"`);}return this.data.filter[a]={condition:Object.assign(Object.assign({path:n,value:e},{operator:i}),r!==void 0&&{memberOf:r})},this;}return this.config.useShortCutForQueryGeneration&&r===void 0&&n===a&&this.data.filter[n]===void 0?(i==="="?this.data.filter[a]=e:this.data.filter[a]={value:e,operator:i},this):(this.data.filter[a]={condition:Object.assign(Object.assign({path:n,value:e},this.config.useShortCutForQueryGeneration?i!=="="&&{operator:i}:{operator:i}),r!==void 0&&{memberOf:r})},this);}getIndexId(n,e,i){i=i||this.config.alwaysUseFieldNameForKeys;let r;return n[e]===void 0?r=e:r=this.generateKeyName(n,e,i),r;}generateKeyName(n,e,i=!1){let r=Object.keys(n).length;if(i)for(let o=1;o<=r;o++){let a=`${e}--${o}`;if(n[a]===void 0)return a;}return r.toString();}getQueryObject(){let n=JSON.parse(JSON.stringify(this.data));return this.data.include.length&&(n.include=this.data.include.join(",")),this.data.sort.length&&(n.sort=this.data.sort.join(",")),n;}getQueryString(n){let e=this.getQueryObject(),i=n||this.getQsOption();return H3.stringify(e,i);}clear(){return this.data={filter:{},include:[],page:void 0,sort:[],fields:{}},this;}initializeWithQueryObject(n){return this.clear(),Object.keys(n).forEach(i=>{switch(i){case"sort":n.sort.length&&(this.data.sort=n.sort.split(","));break;case"include":n.include.length&&(this.data.include=n.include.split(","));break;default:this.data[i]=n[i];}}),this;}initializeWithQueryString(n,e){this.clear();let i=e||this.getQsOption();return this.initializeWithQueryObject(H3.parse(n,i)),this;}clone(n){let e=JSON.parse(JSON.stringify(n.getQueryObject()));return this.initializeWithQueryObject(e),this;}setQsOption(n){return this.qsOptions=n,this;}getQsOption(){return this.qsOptions;}initialize(n){if(n===void 0)this.initializeWithQueryString("");else if(typeof n=="object")try{n.getQueryObject(),this.clone(n);}catch{this.initializeWithQueryObject(n);}else this.initializeWithQueryString(n);return this;}};G_.DrupalJsonApiParams=lD;});function iv(t,n){return Object.is(t,n);}var Yi=null,ph=!1,nv=1,Qn=Symbol("SIGNAL");function at(t){let n=Yi;return Yi=t,n;}function rv(){return Yi;}var xc={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Au(t){if(ph)throw new Error("");if(Yi===null)return;Yi.consumerOnSignalRead(t);let n=Yi.nextProducerIndex++;if(bh(Yi),n<Yi.producerNode.length&&Yi.producerNode[n]!==t&&Tu(Yi)){let e=Yi.producerNode[n];_h(e,Yi.producerIndexOfThis[n]);}Yi.producerNode[n]!==t&&(Yi.producerNode[n]=t,Yi.producerIndexOfThis[n]=Tu(Yi)?fk(t,Yi,n):0),Yi.producerLastReadVersion[n]=t.version;}function hk(){nv++;}function ov(t){if(!(Tu(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===nv)){if(!t.producerMustRecompute(t)&&!gh(t)){tv(t);return;}t.producerRecomputeValue(t),tv(t);}}function av(t){if(t.liveConsumerNode===void 0)return;let n=ph;ph=!0;try{for(let e of t.liveConsumerNode)e.dirty||EV(e);}finally{ph=n;}}function sv(){return Yi?.consumerAllowSignalWrites!==!1;}function EV(t){t.dirty=!0,av(t),t.consumerMarkedDirty?.(t);}function tv(t){t.dirty=!1,t.lastCleanEpoch=nv;}function Ru(t){return t&&(t.nextProducerIndex=0),at(t);}function fh(t,n){if(at(n),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Tu(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)_h(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop();}}function gh(t){bh(t);for(let n=0;n<t.producerNode.length;n++){let e=t.producerNode[n],i=t.producerLastReadVersion[n];if(i!==e.version||(ov(e),i!==e.version))return!0;}return!1;}function Ou(t){if(bh(t),Tu(t))for(let n=0;n<t.producerNode.length;n++)_h(t.producerNode[n],t.producerIndexOfThis[n]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0);}function fk(t,n,e){if(gk(t),t.liveConsumerNode.length===0&&_k(t))for(let i=0;i<t.producerNode.length;i++)t.producerIndexOfThis[i]=fk(t.producerNode[i],t,i);return t.liveConsumerIndexOfThis.push(e),t.liveConsumerNode.push(n)-1;}function _h(t,n){if(gk(t),t.liveConsumerNode.length===1&&_k(t))for(let i=0;i<t.producerNode.length;i++)_h(t.producerNode[i],t.producerIndexOfThis[i]);let e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[n]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[n]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,n<t.liveConsumerNode.length){let i=t.liveConsumerIndexOfThis[n],r=t.liveConsumerNode[n];bh(r),r.producerIndexOfThis[i]=n;}}function Tu(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0;}function bh(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[];}function gk(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[];}function _k(t){return t.producerNode!==void 0;}function vh(t,n){let e=Object.create(kV);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(ov(e),Au(e),e.value===hh)throw e.error;return e.value;};return i[Qn]=e,i;}var Jb=Symbol("UNSET"),ev=Symbol("COMPUTING"),hh=Symbol("ERRORED"),kV=ze(B({},xc),{value:Jb,dirty:!0,error:null,equal:iv,kind:"computed",producerMustRecompute(t){return t.value===Jb||t.value===ev;},producerRecomputeValue(t){if(t.value===ev)throw new Error("Detected cycle in computations.");let n=t.value;t.value=ev;let e=Ru(t),i,r=!1;try{i=t.computation(),at(null),r=n!==Jb&&n!==hh&&i!==hh&&t.equal(n,i);}catch(o){i=hh,t.error=o;}finally{fh(t,e);}if(r){t.value=n;return;}t.value=i,t.version++;}});function MV(){throw new Error();}var bk=MV;function vk(t){bk(t);}function lv(t){bk=t;}var SV=null;function cv(t,n){let e=Object.create(yh);e.value=t,n!==void 0&&(e.equal=n);let i=()=>(Au(e),e.value);return i[Qn]=e,i;}function Pu(t,n){sv()||vk(t),t.equal(t.value,n)||(t.value=n,IV(t));}function dv(t,n){sv()||vk(t),Pu(t,n(t.value));}var yh=ze(B({},xc),{equal:iv,value:void 0,kind:"signal"});function IV(t){t.version++,hk(),av(t),SV?.();}function uv(t){let n=at(null);try{return t();}finally{at(n);}}var mv;function Fu(){return mv;}function Aa(t){let n=mv;return mv=t,n;}var xh=Symbol("NotFound");function Ke(t){return typeof t=="function";}function Cc(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack;});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e;}var Ch=Cc(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(`
  `)}`:"",this.name="UnsubscriptionError",this.errors=e;});function il(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1);}}var ve=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null;}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Ke(i))try{i();}catch(o){n=o instanceof Ch?o.errors:[o];}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{yk(o);}catch(a){n=n??[],a instanceof Ch?n=[...n,...a.errors]:n.push(a);}}if(n)throw new Ch(n);}}add(n){var e;if(n&&n!==this)if(this.closed)yk(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this);}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n);}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n);}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n;}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&il(e,n);}remove(n){let{_finalizers:e}=this;e&&il(e,n),n instanceof t&&n._removeParent(this);}};ve.EMPTY=(()=>{let t=new ve();return t.closed=!0,t;})();var pv=ve.EMPTY;function wh(t){return t instanceof ve||t&&"closed"in t&&Ke(t.remove)&&Ke(t.add)&&Ke(t.unsubscribe);}function yk(t){Ke(t)?t():t.unsubscribe();}var Xr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var wc={setTimeout(t,n,...e){let{delegate:i}=wc;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e);},clearTimeout(t){let{delegate:n}=wc;return(n?.clearTimeout||clearTimeout)(t);},delegate:void 0};function Dh(t){wc.setTimeout(()=>{let{onUnhandledError:n}=Xr;if(n)n(t);else throw t;});}function Nu(){}var xk=hv("C",void 0,void 0);function Ck(t){return hv("E",void 0,t);}function wk(t){return hv("N",t,void 0);}function hv(t,n,e){return{kind:t,value:n,error:e};}var nl=null;function Dc(t){if(Xr.useDeprecatedSynchronousErrorHandling){let n=!nl;if(n&&(nl={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=nl;if(nl=null,e)throw i;}}else t();}function Dk(t){Xr.useDeprecatedSynchronousErrorHandling&&nl&&(nl.errorThrown=!0,nl.error=t);}var rl=class extends ve{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,wh(n)&&n.add(this)):this.destination=FV;}static create(n,e,i){return new Ra(n,e,i);}next(n){this.isStopped?gv(wk(n),this):this._next(n);}error(n){this.isStopped?gv(Ck(n),this):(this.isStopped=!0,this._error(n));}complete(){this.isStopped?gv(xk,this):(this.isStopped=!0,this._complete());}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null);}_next(n){this.destination.next(n);}_error(n){try{this.destination.error(n);}finally{this.unsubscribe();}}_complete(){try{this.destination.complete();}finally{this.unsubscribe();}}},OV=Function.prototype.bind;function fv(t,n){return OV.call(t,n);}var _v=class{constructor(n){this.partialObserver=n;}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n);}catch(i){Eh(i);}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n);}catch(i){Eh(i);}else Eh(n);}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete();}catch(e){Eh(e);}}},Ra=class extends rl{constructor(n,e,i){super();let r;if(Ke(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&Xr.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&fv(n.next,o),error:n.error&&fv(n.error,o),complete:n.complete&&fv(n.complete,o)}):r=n;}this.destination=new _v(r);}};function Eh(t){Xr.useDeprecatedSynchronousErrorHandling?Dk(t):Dh(t);}function PV(t){throw t;}function gv(t,n){let{onStoppedNotification:e}=Xr;e&&wc.setTimeout(()=>e(t,n));}var FV={closed:!0,next:Nu,error:PV,complete:Nu};var Ec=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Vn(t){return t;}function bv(...t){return vv(t);}function vv(t){return t.length===0?Vn:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e);};}var qe=(()=>{class t{constructor(e){e&&(this._subscribe=e);}lift(e){let i=new t();return i.source=this,i.operator=e,i;}subscribe(e,i,r){let o=LV(e)?e:new Ra(e,i,r);return Dc(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o));}),o;}_trySubscribe(e){try{return this._subscribe(e);}catch(i){e.error(i);}}forEach(e,i){return i=Ek(i),new i((r,o)=>{let a=new Ra({next:s=>{try{e(s);}catch(l){o(l),a.unsubscribe();}},error:o,complete:r});this.subscribe(a);});}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e);}[Ec](){return this;}pipe(...e){return vv(e)(this);}toPromise(e){return e=Ek(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o));});}}return t.create=n=>new t(n),t;})();function Ek(t){var n;return(n=t??Xr.Promise)!==null&&n!==void 0?n:Promise;}function NV(t){return t&&Ke(t.next)&&Ke(t.error)&&Ke(t.complete);}function LV(t){return t&&t instanceof rl||NV(t)&&wh(t);}function yv(t){return Ke(t?.lift);}function Le(t){return n=>{if(yv(n))return n.lift(function(e){try{return t(e,this);}catch(i){this.error(i);}});throw new TypeError("Unable to lift unknown Observable type");};}function je(t,n,e,i,r){return new xv(t,n,e,i,r);}var xv=class extends rl{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s);}catch(l){n.error(l);}}:super._next,this._error=r?function(s){try{r(s);}catch(l){n.error(l);}finally{this.unsubscribe();}}:super._error,this._complete=i?function(){try{i();}catch(s){n.error(s);}finally{this.unsubscribe();}}:super._complete;}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this));}}};function kc(){return Le((t,n)=>{let e=null;t._refCount++;let i=je(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return;}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe();});t.subscribe(i),i.closed||(e=t.connect());});}var gs=class extends qe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,yv(n)&&(this.lift=n.lift);}_subscribe(n){return this.getSubject().subscribe(n);}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject;}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe();}connect(){let n=this._connection;if(!n){n=this._connection=new ve();let e=this.getSubject();n.add(this.source.subscribe(je(e,void 0,()=>{this._teardown(),e.complete();},i=>{this._teardown(),e.error(i);},()=>this._teardown()))),n.closed&&(this._connection=null,n=ve.EMPTY);}return n;}refCount(){return kc()(this);}};var kk=Cc(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var H=(()=>{class t extends qe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null;}lift(e){let i=new kh(this,this);return i.operator=e,i;}_throwIfClosed(){if(this.closed)throw new kk();}next(e){Dc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e);}});}error(e){Dc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e);}});}complete(){Dc(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null;}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0;}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e);}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e);}_innerSubscribe(e){let{hasError:i,isStopped:r,observers:o}=this;return i||r?pv:(this.currentObservers=null,o.push(e),new ve(()=>{this.currentObservers=null,il(o,e);}));}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete();}asObservable(){let e=new qe();return e.source=this,e;}}return t.create=(n,e)=>new kh(n,e),t;})(),kh=class extends H{constructor(n,e){super(),this.destination=n,this.source=e;}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n);}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.call(e,n);}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n);}_subscribe(n){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:pv;}};var Qt=class extends H{constructor(n){super(),this._value=n;}get value(){return this.getValue();}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e;}getValue(){let{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i;}next(n){super.next(this._value=n);}};var Lu={now(){return(Lu.delegate||Date).now();},delegate:void 0};var Oa=class extends H{constructor(n=1/0,e=1/0,i=Lu){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e);}next(n){let{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n);}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;a<o.length&&!n.closed;a+=i?1:2)n.next(o[a]);return this._checkFinalizedStatuses(n),e;}_trimBuffer(){let{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,o=(r?1:2)*n;if(n<1/0&&o<i.length&&i.splice(0,i.length-o),!r){let a=e.now(),s=0;for(let l=1;l<i.length&&i[l]<=a;l+=2)s=l;s&&i.splice(0,s+1);}}};var Mh=class extends ve{constructor(n,e){super();}schedule(n,e=0){return this;}};var Vu={setInterval(t,n,...e){let{delegate:i}=Vu;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e);},clearInterval(t){let{delegate:n}=Vu;return(n?.clearInterval||clearInterval)(t);},delegate:void 0};var Sh=class extends Mh{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1;}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,e),this;}requestAsyncId(n,e,i=0){return Vu.setInterval(n.flush.bind(n,this),i);}recycleAsyncId(n,e,i=0){if(i!=null&&this.delay===i&&this.pending===!1)return e;e!=null&&Vu.clearInterval(e);}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let i=this._execute(n,e);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(n,e){let i=!1,r;try{this.work(n);}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error");}if(i)return this.unsubscribe(),r;}unsubscribe(){if(!this.closed){let{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,il(i,this),n!=null&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe();}}};var Mc=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e;}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e);}};Mc.now=Lu.now;var Ih=class extends Mc{constructor(n,e=Mc.now){super(n,e),this.actions=[],this._active=!1;}flush(n){let{actions:e}=this;if(this._active){e.push(n);return;}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i;}}};var zu=new Ih(Sh),Mk=zu;var Di=new qe(t=>t.complete());function Th(t){return t&&Ke(t.schedule);}function Cv(t){return t[t.length-1];}function Ah(t){return Ke(Cv(t))?t.pop():void 0;}function Do(t){return Th(Cv(t))?t.pop():void 0;}function Sk(t,n){return typeof Cv(t)=="number"?t.pop():n;}function Tk(t,n,e,i){function r(o){return o instanceof e?o:new e(function(a){a(o);});}return new(e||(e=Promise))(function(o,a){function s(h){try{c(i.next(h));}catch(g){a(g);}}function l(h){try{c(i.throw(h));}catch(g){a(g);}}function c(h){h.done?o(h.value):r(h.value).then(s,l);}c((i=i.apply(t,n||[])).next());});}function Ik(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t};}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.");}function ol(t){return this instanceof ol?(this.v=t,this):new ol(t);}function Ak(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this;},r;function a(_){return function(x){return Promise.resolve(x).then(_,g);};}function s(_,x){i[_]&&(r[_]=function(T){return new Promise(function(L,q){o.push([_,T,L,q])>1||l(_,T);});},x&&(r[_]=x(r[_])));}function l(_,x){try{c(i[_](x));}catch(T){b(o[0][3],T);}}function c(_){_.value instanceof ol?Promise.resolve(_.value.v).then(h,g):b(o[0][2],_);}function h(_){l("next",_);}function g(_){l("throw",_);}function b(_,x){_(x),o.shift(),o.length&&l(o[0][0],o[0][1]);}}function Rk(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof Ik=="function"?Ik(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this;},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value);});};}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s});},a);}}var Rh=t=>t&&typeof t.length=="number"&&typeof t!="function";function Oh(t){return Ke(t?.then);}function Ph(t){return Ke(t[Ec]);}function Fh(t){return Symbol.asyncIterator&&Ke(t?.[Symbol.asyncIterator]);}function Nh(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);}function VV(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator;}var Lh=VV();function Vh(t){return Ke(t?.[Lh]);}function zh(t){return Ak(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield ol(e.read());if(r)return yield ol(void 0);yield yield ol(i);}}finally{e.releaseLock();}});}function Bh(t){return Ke(t?.getReader);}function Ht(t){if(t instanceof qe)return t;if(t!=null){if(Ph(t))return zV(t);if(Rh(t))return BV(t);if(Oh(t))return jV(t);if(Fh(t))return Ok(t);if(Vh(t))return HV(t);if(Bh(t))return $V(t);}throw Nh(t);}function zV(t){return new qe(n=>{let e=t[Ec]();if(Ke(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable");});}function BV(t){return new qe(n=>{for(let e=0��;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete();});}function jV(t){return new qe(n=>{t.then(e=>{n.closed||(n.next(e),n.complete());},e=>n.error(e)).then(null,Dh);});}function HV(t){return new qe(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete();});}function Ok(t){return new qe(n=>{UV(t,n).catch(e=>n.error(e));});}function $V(t){return Ok(zh(t));}function UV(t,n){var e,i,r,o;return Tk(this,void 0,void 0,function*(){try{for(e=Rk(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return;}}catch(a){r={error:a};}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e));}finally{if(r)throw r.error;}}n.complete();});}function Kn(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe();},i);if(t.add(o),!r)return o;}function jh(t,n=0){return Le((e,i)=>{e.subscribe(je(i,r=>Kn(i,t,()=>i.next(r),n),()=>Kn(i,t,()=>i.complete(),n),r=>Kn(i,t,()=>i.error(r),n)));});}function Hh(t,n=0){return Le((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n));});}function Pk(t,n){return Ht(t).pipe(Hh(n),jh(n));}function Fk(t,n){return Ht(t).pipe(Hh(n),jh(n));}function Nk(t,n){return new qe(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule());});});}function Lk(t,n){return new qe(e=>{let i;return Kn(e,n,()=>{i=t[Lh](),Kn(e,n,()=>{let r,o;try{({value:r,done:o}=i.next());}catch(a){e.error(a);return;}o?e.complete():e.next(r);},0,!0);}),()=>Ke(i?.return)&&i.return();});}function $h(t,n){if(!t)throw new Error("Iterable cannot be null");return new qe(e=>{Kn(e,n,()=>{let i=t[Symbol.asyncIterator]();Kn(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value);});},0,!0);});});}function Vk(t,n){return $h(zh(t),n);}function zk(t,n){if(t!=null){if(Ph(t))return Pk(t,n);if(Rh(t))return Nk(t,n);if(Oh(t))return Fk(t,n);if(Fh(t))return $h(t,n);if(Vh(t))return Lk(t,n);if(Bh(t))return Vk(t,n);}throw Nh(t);}function Ot(t,n){return n?zk(t,n):Ht(t);}function se(...t){let n=Do(t);return Ot(t,n);}function _s(t,n){let e=Ke(t)?t:()=>t,i=r=>r.error(e());return new qe(n?r=>n.schedule(i,0,r):i);}function Sc(t){return!!t&&(t instanceof qe||Ke(t.lift)&&Ke(t.subscribe));}var Pa=Cc(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence";});function Bk(t){return t instanceof Date&&!isNaN(t);}function ue(t,n){return Le((e,i)=>{let r=0;e.subscribe(je(i,o=>{i.next(t.call(n,o,r++));}));});}var{isArray:qV}=Array;function WV(t,n){return qV(n)?t(...n):t(n);}function Uh(t){return ue(n=>WV(t,n));}var{isArray:GV}=Array,{getPrototypeOf:YV,prototype:QV,keys:KV}=Object;function qh(t){if(t.length===1){let n=t[0];if(GV(n))return{args:n,keys:null};if(ZV(n)){let e=KV(n);return{args:e.map(i=>n[i]),keys:e};}}return{args:t,keys:null};}function ZV(t){return t&&typeof t=="object"&&YV(t)===QV;}function Wh(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{});}function Jr(...t){let n=Do(t),e=Ah(t),{args:i,keys:r}=qh(t);if(i.length===0)return Ot([],n);let o=new qe(XV(i,n,r?a=>Wh(r,a):Vn));return e?o.pipe(Uh(e)):o;}function XV(t,n,e=Vn){return i=>{jk(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l<r;l++)jk(n,()=>{let c=Ot(t[l],n),h=!1;c.subscribe(je(i,g=>{o[l]=g,h||(h=!0,s--),s||i.next(e(o.slice()));},()=>{--a||i.complete();}));},i);},i);};}function jk(t,n,e){t?Kn(e,t,n):n();}function Gh(t,n,e,i,r,o,a,s){let l=[],c=0,h=0,g=!1,b=()=>{g&&!l.length&&!c&&n.complete();},_=T=>c<i?x(T):l.push(T),x=T=>{o&&n.next(T),c++;let L=!1;Ht(e(T,h++)).subscribe(je(n,q=>{r?.(q),o?_(q):n.next(q);},()=>{L=!0;},void 0,()=>{if(L)try{for(c--;l.length&&c<i;){let q=l.shift();a?Kn(n,a,()=>x(q)):x(q);}b();}catch(q){n.error(q);}}));};return t.subscribe(je(n,_,()=>{g=!0,b();})),()=>{s?.();};}function Pi(t,n,e=1/0){return Ke(n)?Pi((i,r)=>ue((o,a)=>n(i,o,r,a))(Ht(t(i,r))),e):(typeof n=="number"&&(e=n),Le((i,r)=>Gh(i,r,t,e)));}function Eo(t=1/0){return Pi(Vn,t);}function Hk(){return Eo(1);}function bs(...t){return Hk()(Ot(t,Do(t)));}function ko(t){return new qe(n=>{Ht(t()).subscribe(n);});}function Bu(...t){let n=Ah(t),{args:e,keys:i}=qh(t),r=new qe(o=>{let{length:a}=e;if(!a){o.complete();return;}let s=new Array(a),l=a,c=a;for(let h=0;h<a;h++){let g=!1;Ht(e[h]).subscribe(je(o,b=>{g||(g=!0,c--),s[h]=b;},()=>l--,void 0,()=>{(!l||!g)&&(c||o.next(i?Wh(i,s):s),o.complete());}));}});return n?r.pipe(Uh(n)):r;}function ju(t=0,n,e=Mk){let i=-1;return n!=null&&(Th(n)?e=n:i=n),new qe(r=>{let o=Bk(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete());},o);});}function St(...t){let n=Do(t),e=Sk(t,1/0),i=t;return i.length?i.length===1?Ht(i[0]):Eo(e)(Ot(i,n)):Di;}function Ie(t,n){return Le((e,i)=>{let r=0;e.subscribe(je(i,o=>t.call(n,o,r++)&&i.next(o)));});}function $k(t){return Le((n,e)=>{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c);}a&&e.complete();},l=()=>{o=null,a&&e.complete();};n.subscribe(je(e,c=>{i=!0,r=c,o||Ht(t(c)).subscribe(o=je(e,s,l));},()=>{a=!0,(!i||!o||o.closed)&&e.complete();}));});}function Ic(t,n=zu){return $k(()=>ju(t,n));}function Dn(t){return Le((n,e)=>{let i=null,r=!1,o;i=n.subscribe(je(e,void 0,void 0,a=>{o=Ht(t(a,Dn(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0;})),r&&(i.unsubscribe(),i=null,o.subscribe(e));});}function Yh(t,n,e,i,r){return(o,a)=>{let s=e,l=n,c=0;o.subscribe(je(a,h=>{let g=c++;l=s?t(l,h,g):(s=!0,h),i&&a.next(l);},r&&(()=>{s&&a.next(l),a.complete();})));};}function Hu(t,n){return Le(Yh(t,n,arguments.length>=2,!1,!0));}function Mo(t,n){return Ke(n)?Pi(t,n,1):Pi(t,1);}function Fa(t,n=zu){return Le((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c);}};function l(){let c=a+t,h=n.now();if(h<c){r=this.schedule(void 0,c-h),i.add(r);return;}s();}e.subscribe(je(i,c=>{o=c,a=n.now(),r||(r=n.schedule(l,t),i.add(r));},()=>{s(),i.complete();},void 0,()=>{o=r=null;}));});}function vs(t){return Le((n,e)=>{let i=!1;n.subscribe(je(e,r=>{i=!0,e.next(r);},()=>{i||e.next(t),e.complete();}));});}function de(t){return t<=0?()=>Di:Le((n,e)=>{let i=0;n.subscribe(je(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete());}));});}function Qh(t,n=Vn){return t=t??JV,Le((e,i)=>{let r,o=!0;e.subscribe(je(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a));}));});}function JV(t,n){return t===n;}function Kh(t=e6){return Le((n,e)=>{let i=!1;n.subscribe(je(e,r=>{i=!0,e.next(r);},()=>i?e.complete():e.error(t())));});}function e6(){return new Pa();}function $u(t,n=1/0,e){return n=(n||0)<1?1/0:n,Le((i,r)=>Gh(i,r,t,n,void 0,!0,e));}function So(t){return Le((n,e)=>{try{n.subscribe(e);}finally{e.add(t);}});}function Na(t,n){let e=arguments.length>=2;return i=>i.pipe(t?Ie((r,o)=>t(r,o,i)):Vn,de(1),e?vs(n):Kh(()=>new Pa()));}function Tc(t){return t<=0?()=>Di:Le((n,e)=>{let i=[];n.subscribe(je(e,r=>{i.push(r),t<i.length&&i.shift();},()=>{for(let r of i)e.next(r);e.complete();},void 0,()=>{i=null;}));});}function wv(t,n){let e=arguments.length>=2;return i=>i.pipe(t?Ie((r,o)=>t(r,o,i)):Vn,Tc(1),e?vs(n):Kh(()=>new Pa()));}function Zh(){return Le((t,n)=>{let e,i=!1;t.subscribe(je(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0;}));});}function Dv(t,n){return Le(Yh(t,n,arguments.length>=2,!0));}function Uu(t={}){let{connector:n=()=>new H(),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,h=!1,g=!1,b=()=>{s?.unsubscribe(),s=void 0;},_=()=>{b(),a=l=void 0,h=g=!1;},x=()=>{let T=a;_(),T?.unsubscribe();};return Le((T,L)=>{c++,!g&&!h&&b();let q=l=l??n();L.add(()=>{c--,c===0&&!g&&!h&&(s=Ev(x,r));}),q.subscribe(L),!a&&c>0&&(a=new Ra({next:ie=>q.next(ie),error:ie=>{g=!0,b(),s=Ev(_,e,ie),q.error(ie);},complete:()=>{h=!0,b(),s=Ev(_,i),q.complete();}}),Ht(T).subscribe(a));})(o);};}function Ev(t,n,...e){if(n===!0){t();return;}if(n===!1)return;let i=new Ra({next:()=>{i.unsubscribe(),t();}});return Ht(n(...e)).subscribe(i);}function Xh(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,Uu({connector:()=>new Oa(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r});}function al(t){return Ie((n,e)=>t<=e);}function ht(...t){let n=Do(t);return Le((e,i)=>{(n?bs(t,e,n):bs(t,e)).subscribe(i);});}function ai(t,n){return Le((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe(je(i,l=>{r?.unsubscribe();let c=0,h=o++;Ht(t(l,h)).subscribe(r=je(i,g=>i.next(n?n(l,g,h,c++):g),()=>{r=null,s();}));},()=>{a=!0,s();}));});}function Ve(t){return Le((n,e)=>{Ht(t).subscribe(je(e,()=>e.complete(),Nu)),!e.closed&&n.subscribe(e);});}function ys(t,n=!1){return Le((e,i)=>{let r=0;e.subscribe(je(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete();}));});}function vi(t,n,e){let i=Ke(t)||n||e?{next:t,error:n,complete:e}:t;return i?Le((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe(je(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l);},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete();},l=>{var c;s=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l);},()=>{var l,c;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i);}));}):Vn;}var VM="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",X=class extends Error{code;constructor(n,e){super(Jy(n,e)),this.code=n;}};function t6(t){return`NG0${Math.abs(t)}`;}function Jy(t,n){return`${t6(t)}${n?": "+n:""}`;}var zM=Symbol("InputSignalNode#UNSET"),i6=ze(B({},yh),{transformFn:void 0,applyValueToInputSignal(t,n){Pu(t,n);}});function BM(t,n){let e=Object.create(i6);e.value=t,e.transformFn=n?.transform;function i(){if(Au(e),e.value===zM){let r=null;throw new X(-950,r);}return e.value;}return i[Qn]=e,i;}function im(t){return{toString:t}.toString();}var Jh="__parameters__";function n6(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r];}};}function jM(t,n,e){return im(()=>{let i=n6(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,c,h){let g=l.hasOwnProperty(Jh)?l[Jh]:Object.defineProperty(l,Jh,{value:[]})[Jh];for(;g.length<=h;)g.push(null);return(g[h]=g[h]||[]).push(a),l;}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r;});}var un=globalThis;function $t(t){for(let n in t)if(t[n]===$t)return n;throw Error("Could not find renamed property on target object.");}function r6(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e]);}function Xn(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Xn).join(", ")}]`;if(t==null)return""+t;let n=t.overriddenName||t.name;if(n)return`${n}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(`
`);return i>=0?e.slice(0,i):e;}function jv(t,n){return t?n?`${t} ${n}`:t:n||"";}var o6=$t({__forward_ref__:$t});function yi(t){return t.__forward_ref__=yi,t.toString=function(){return Xn(this());},t;}function mn(t){return HM(t)?t():t;}function HM(t){return typeof t=="function"&&t.hasOwnProperty(o6)&&t.__forward_ref__===yi;}function P(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0};}function ne(t){return{providers:t.providers||[],imports:t.imports||[]};}function Lf(t){return Uk(t,UM)||Uk(t,qM);}function $M(t){return Lf(t)!==null;}function Uk(t,n){return t.hasOwnProperty(n)?t[n]:null;}function a6(t){let n=t&&(t[UM]||t[qM]);return n||null;}function qk(t){return t&&(t.hasOwnProperty(Wk)||t.hasOwnProperty(s6))?t[Wk]:null;}var UM=$t({ɵprov:$t}),Wk=$t({ɵinj:$t}),qM=$t({ngInjectableDef:$t}),s6=$t({ngInjectorDef:$t}),A=class{_desc;ngMetadataName="InjectionToken";ɵprov;constructor(n,e){this._desc=n,this.ɵprov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.ɵprov=P({token:this,providedIn:e.providedIn||"root",factory:e.factory}));}get multi(){return this;}toString(){return`InjectionToken ${this._desc}`;}};function WM(t){return t&&!!t.ɵproviders;}var l6=$t({ɵcmp:$t}),c6=$t({ɵdir:$t}),d6=$t({ɵpipe:$t}),u6=$t({ɵmod:$t}),uf=$t({ɵfac:$t}),Yu=$t({__NG_ELEMENT_ID__:$t}),Gk=$t({__NG_ENV_ID__:$t});function To(t){return typeof t=="string"?t:t==null?"":String(t);}function m6(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():To(t);}function GM(t,n){throw new X(-200,t);}function ex(t,n){throw new X(-201,!1);}var dt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t;}(dt||{}),Hv;function YM(){return Hv;}function Zn(t){let n=Hv;return Hv=t,n;}function QM(t,n,e){let i=Lf(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&dt.Optional)return null;if(n!==void 0)return n;ex(t,"Injector");}var p6={},ll=p6,$v="__NG_DI_FLAG__",mf=class{injector;constructor(n){this.injector=n;}retrieve(n,e){let i=e;return this.injector.get(n,i.optional?xh:ll,i);}},pf="ngTempTokenPath",h6="ngTokenPath",f6=/\n/gm,g6="\u0275",Yk="__source";function _6(t,n=dt.Default){if(Fu()===void 0)throw new X(-203,!1);if(Fu()===null)return QM(t,void 0,n);{let e=Fu(),i;return e instanceof mf?i=e.injector:i=e,i.get(t,n&dt.Optional?null:void 0,n);}}function te(t,n=dt.Default){return(YM()||_6)(mn(t),n);}function p(t,n=dt.Default){return te(t,Vf(n));}function Vf(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4);}function Uv(t){let n=[];for(let e=0;e<t.length;e++){let i=mn(t[e]);if(Array.isArray(i)){if(i.length===0)throw new X(900,!1);let r,o=dt.Default;for(let a=0;a<i.length;a++){let s=i[a],l=b6(s);typeof l=="number"?l===-1?r=s.token:o|=l:r=s;}n.push(te(r,o));}else n.push(te(i));}return n;}function KM(t,n){return t[$v]=n,t.prototype[$v]=n,t;}function b6(t){return t[$v];}function v6(t,n,e,i){let r=t[pf];throw n[Yk]&&r.unshift(n[Yk]),t.message=y6(`
`+t.message,r,e,i),t[h6]=r,t[pf]=null,t;}function y6(t,n,e,i=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==g6?t.slice(2):t;let r=Xn(n);if(Array.isArray(n))r=n.map(Xn).join(" -> ");else if(typeof n=="object"){let o=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];o.push(a+":"+(typeof s=="string"?JSON.stringify(s):Xn(s)));}r=`{${o.join(", ")}}`;}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(f6,`
  `)}`;}var _r=KM(jM("Optional"),8);var no=KM(jM("SkipSelf"),4);function dl(t,n){let e=t.hasOwnProperty(uf);return e?t[uf]:null;}function x6(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1;}return!0;}function C6(t){return t.flat(Number.POSITIVE_INFINITY);}function tx(t,n){t.forEach(e=>Array.isArray(e)?tx(e,n):n(e));}function ZM(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e);}function hf(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0];}function w6(t,n){let e=[];for(let i=0;i<t;i++)e.push(n);return e;}function D6(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(r===1)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;){let o=r-2;t[r]=t[o],r--;}t[n]=e,t[n+1]=i;}}function nm(t,n,e){let i=rm(t,n);return i>=0?t[i|1]=e:(i=~i,D6(t,i,n,e)),i;}function kv(t,n){let e=rm(t,n);if(e>=0)return t[e|1];}function rm(t,n){return E6(t,n,1);}function E6(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<<e];if(n===a)return o<<e;a>n?r=o:i=o+1;}return~(r<<e);}var Ao={},zn=[],Lc=new A(""),XM=new A("",-1),JM=new A(""),ff=class{get(n,e=ll){if(e===ll){let i=new Error(`NullInjectorError: No provider for ${Xn(n)}!`);throw i.name="NullInjectorError",i;}return e;}};function eS(t,n){let e=t[u6]||null;if(!e&&n===!0)throw new Error(`Type ${Xn(t)} does not have '\u0275mod' property.`);return e;}function ws(t){return t[l6]||null;}function tS(t){return t[c6]||null;}function k6(t){return t[d6]||null;}function Wc(t){return{ɵproviders:t};}function ix(...t){return{ɵproviders:iS(!0,t),ɵfromNgModule:!0};}function iS(t,...n){let e=[],i=new Set(),r,o=a=>{e.push(a);};return tx(n,a=>{let s=a;qv(s,o,[],i)&&(r||=[],r.push(s));}),r!==void 0&&nS(r,o),e;}function nS(t,n){for(let e=0;e<t.length;e++){let{ngModule:i,providers:r}=t[e];nx(r,o=>{n(o,i);});}}function qv(t,n,e,i){if(t=mn(t),!t)return!1;let r=null,o=qk(t),a=!o&&ws(t);if(!o&&!a){let l=t.ngModule;if(o=qk(l),o)r=l;else return!1;}else{if(a&&!a.standalone)return!1;r=t;}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)qv(c,n,e,i);}}else if(o){if(o.imports!=null&&!s){i.add(r);let c;try{tx(o.imports,h=>{qv(h,n,e,i)&&(c||=[],c.push(h));});}finally{}c!==void 0&&nS(c,n);}if(!s){let c=dl(r)||(()=>new r());n({provide:r,useFactory:c,deps:zn},r),n({provide:JM,useValue:r,multi:!0},r),n({provide:Lc,useValue:()=>te(r),multi:!0},r);}let l=o.providers;if(l!=null&&!s){let c=t;nx(l,h=>{n(h,c);});}}else return!1;return r!==t&&t.providers!==void 0;}function nx(t,n){for(let e of t)WM(e)&&(e=e.ɵproviders),Array.isArray(e)?nx(e,n):n(e);}var M6=$t({provide:String,useValue:$t});function rS(t){return t!==null&&typeof t=="object"&&M6 in t;}function S6(t){return!!(t&&t.useExisting);}function I6(t){return!!(t&&t.useFactory);}function Vc(t){return typeof t=="function";}function T6(t){return!!t.useClass;}var zf=new A(""),of={},Qk={},Mv;function Bf(){return Mv===void 0&&(Mv=new ff()),Mv;}var Ei=class{},Qu=class extends Ei{parent;source;scopes;records=new Map();_ngOnDestroyHooks=new Set();_onDestroyHooks=[];get destroyed(){return this._destroyed;}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,Gv(n,a=>this.processProvider(a)),this.records.set(XM,Ac(void 0,this)),r.has("environment")&&this.records.set(Ei,Ac(void 0,this));let o=this.records.get(zf);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(JM,zn,dt.Self));}retrieve(n,e){let i=e;return this.get(n,i.optional?xh:ll,i);}destroy(){Wu(this),this._destroyed=!0;let n=at(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),at(n);}}onDestroy(n){return Wu(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n);}runInContext(n){Wu(this);let e=Aa(this),i=Zn(void 0),r;try{return n();}finally{Aa(e),Zn(i);}}get(n,e=ll,i=dt.Default){if(Wu(this),n.hasOwnProperty(Gk))return n[Gk](this);i=Vf(i);let r,o=Aa(this),a=Zn(void 0);try{if(!(i&dt.SkipSelf)){let l=this.records.get(n);if(l===void 0){let c=F6(n)&&Lf(n);c&&this.injectableDefInScope(c)?l=Ac(Wv(n),of):l=null,this.records.set(n,l);}if(l!=null)return this.hydrate(n,l);}let s=i&dt.Self?Bf():this.parent;return e=i&dt.Optional&&e===ll?null:e,s.get(n,e);}catch(s){if(s.name==="NullInjectorError"){if((s[pf]=s[pf]||[]).unshift(Xn(n)),o)throw s;return v6(s,n,"R3InjectorError",this.source);}else throw s;}finally{Zn(a),Aa(o);}}resolveInjectorInitializers(){let n=at(null),e=Aa(this),i=Zn(void 0),r;try{let o=this.get(Lc,zn,dt.Self);for(let a of o)a();}finally{Aa(e),Zn(i),at(n);}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push(Xn(i));return`R3Injector[${n.join(", ")}]`;}processProvider(n){n=mn(n);let e=Vc(n)?n:mn(n&&n.provide),i=R6(n);if(!Vc(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Ac(void 0,of,!0),r.factory=()=>Uv(r.multi),this.records.set(e,r)),e=n,r.multi.push(n);}this.records.set(e,i);}hydrate(n,e){let i=at(null);try{return e.value===Qk?GM(Xn(n)):e.value===of&&(e.value=Qk,e.value=e.factory()),typeof e.value=="object"&&e.value&&P6(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value;}finally{at(i);}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=mn(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e);}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1);}};function Wv(t){let n=Lf(t),e=n!==null?n.factory:dl(t);if(e!==null)return e;if(t instanceof A)throw new X(204,!1);if(t instanceof Function)return A6(t);throw new X(204,!1);}function A6(t){if(t.length>0)throw new X(204,!1);let e=a6(t);return e!==null?()=>e.factory(t):()=>new t();}function R6(t){if(rS(t))return Ac(void 0,t.useValue);{let n=oS(t);return Ac(n,of);}}function oS(t,n,e){let i;if(Vc(t)){let r=mn(t);return dl(r)||Wv(r);}else if(rS(t))i=()=>mn(t.useValue);else if(I6(t))i=()=>t.useFactory(...Uv(t.deps||[]));else if(S6(t))i=()=>te(mn(t.useExisting));else{let r=mn(t&&(t.useClass||t.provide));if(O6(t))i=()=>new r(...Uv(t.deps));else return dl(r)||Wv(r);}return i;}function Wu(t){if(t.destroyed)throw new X(205,!1);}function Ac(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0};}function O6(t){return!!t.deps;}function P6(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function";}function F6(t){return typeof t=="function"||typeof t=="object"&&t instanceof A;}function Gv(t,n){for(let e of t)Array.isArray(e)?Gv(e,n):e&&WM(e)?Gv(e.ɵproviders,n):n(e);}function er(t,n){let e;t instanceof Qu?(Wu(t),e=t):e=new mf(t);let i,r=Aa(e),o=Zn(void 0);try{return n();}finally{Aa(r),Zn(o);}}function aS(){return YM()!==void 0||Fu()!=null;}function rx(t){if(!aS())throw new X(-203,!1);}function N6(t){return typeof t=="function";}var ja=0,Ze=1,$e=2,kn=3,io=4,tr=5,zc=6,gf=7,Qi=8,Bc=9,La=10,si=11,Ku=12,Kk=13,Gc=14,fr=15,ul=16,Rc=17,Va=18,jf=19,sS=20,xs=21,Sv=22,ml=23,Or=24,Fc=25,Vi=26,lS=1;var pl=7,_f=8,jc=9,En=10;function Cs(t){return Array.isArray(t)&&typeof t[lS]=="object";}function Ha(t){return Array.isArray(t)&&t[lS]===!0;}function ox(t){return(t.flags&4)!==0;}function Yc(t){return t.componentOffset>-1;}function Hf(t){return(t.flags&1)===1;}function Ro(t){return!!t.template;}function bf(t){return(t[$e]&512)!==0;}function om(t){return(t[$e]&256)===256;}var Yv=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i;}isFirstChange(){return this.firstChange;}};function cS(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i;}var He=(()=>{let t=()=>dS;return t.ngInherit=!0,t;})();function dS(t){return t.type.prototype.ngOnChanges&&(t.setInput=V6),L6;}function L6(){let t=mS(this),n=t?.current;if(n){let e=t.previous;if(e===Ao)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n);}}function V6(t,n,e,i,r){let o=this.declaredInputs[i],a=mS(t)||z6(t,{previous:Ao,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new Yv(c&&c.currentValue,e,l===Ao),cS(t,n,r,e);}var uS="__ngSimpleChanges__";function mS(t){return t[uS]||null;}function z6(t,n){return t[uS]=n;}var Zk=null;var Vt=function(t,n=null,e){Zk?.(t,n,e);},pS="svg",B6="math";function Oo(t){for(;Array.isArray(t);)t=t[ja];return t;}function hS(t,n){return Oo(n[t]);}function Lo(t,n){return Oo(n[t.index]);}function ax(t,n){return t.data[n];}function sx(t,n){return t[n];}function Po(t,n){let e=n[t];return Cs(e)?e:e[ja];}function j6(t){return(t[$e]&4)===4;}function lx(t){return(t[$e]&128)===128;}function H6(t){return Ha(t[kn]);}function Ds(t,n){return n==null?null:t[n];}function fS(t){t[Rc]=0;}function gS(t){t[$e]&1024||(t[$e]|=1024,lx(t)&&Qc(t));}function $6(t,n){for(;t>0;)n=n[Gc],t--;return n;}function $f(t){return!!(t[$e]&9216||t[Or]?.dirty);}function Qv(t){t[La].changeDetectionScheduler?.notify(8),t[$e]&64&&(t[$e]|=1024),$f(t)&&Qc(t);}function Qc(t){t[La].changeDetectionScheduler?.notify(0);let n=hl(t);for(;n!==null&&!(n[$e]&8192||(n[$e]|=8192,!lx(n)));)n=hl(n);}function _S(t,n){if(om(t))throw new X(911,!1);t[xs]===null&&(t[xs]=[]),t[xs].push(n);}function U6(t,n){if(t[xs]===null)return;let e=t[xs].indexOf(n);e!==-1&&t[xs].splice(e,1);}function hl(t){let n=t[kn];return Ha(n)?n[kn]:n;}function cx(t){return t[gf]??=[];}function dx(t){return t.cleanup??=[];}function q6(t,n,e,i){let r=cx(n);r.push(e),t.firstCreatePass&&dx(t).push(i,r.length-1);}var et={lFrame:DS(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Kv=!1;function W6(){return et.lFrame.elementDepthCount;}function G6(){et.lFrame.elementDepthCount++;}function Y6(){et.lFrame.elementDepthCount--;}function ux(){return et.bindingsEnabled;}function bS(){return et.skipHydrationRootTNode!==null;}function Q6(t){return et.skipHydrationRootTNode===t;}function K6(){et.skipHydrationRootTNode=null;}function Te(){return et.lFrame.lView;}function Kt(){return et.lFrame.tView;}function k(t){return et.lFrame.contextLView=t,t[Qi];}function M(t){return et.lFrame.contextLView=null,t;}function Mn(){let t=vS();for(;t!==null&&t.type===64;)t=t.parent;return t;}function vS(){return et.lFrame.currentTNode;}function Z6(){let t=et.lFrame,n=t.currentTNode;return t.isParent?n:n.parent;}function Es(t,n){let e=et.lFrame;e.currentTNode=t,e.isParent=n;}function mx(){return et.lFrame.isParent;}function px(){et.lFrame.isParent=!1;}function X6(){return et.lFrame.contextLView;}function yS(){return Kv;}function vf(t){let n=Kv;return Kv=t,n;}function Kc(){let t=et.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n;}function xS(){return et.lFrame.bindingIndex;}function J6(t){return et.lFrame.bindingIndex=t;}function xl(){return et.lFrame.bindingIndex++;}function Uf(t){let n=et.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e;}function e5(){return et.lFrame.inI18n;}function t5(t,n){let e=et.lFrame;e.bindingIndex=e.bindingRootIndex=t,Zv(n);}function i5(){return et.lFrame.currentDirectiveIndex;}function Zv(t){et.lFrame.currentDirectiveIndex=t;}function n5(t){let n=et.lFrame.currentDirectiveIndex;return n===-1?null:t[n];}function hx(){return et.lFrame.currentQueryIndex;}function qf(t){et.lFrame.currentQueryIndex=t;}function r5(t){let n=t[Ze];return n.type===2?n.declTNode:n.type===1?t[tr]:null;}function CS(t,n,e){if(e&dt.SkipSelf){let r=n,o=t;for(;r=r.parent,r===null&&!(e&dt.Host);)if(r=r5(o),r===null||(o=o[Gc],r.type&10))break;if(r===null)return!1;n=r,t=o;}let i=et.lFrame=wS();return i.currentTNode=n,i.lView=t,!0;}function fx(t){let n=wS(),e=t[Ze];et.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1;}function wS(){let t=et.lFrame,n=t===null?null:t.child;return n===null?DS(t):n;}function DS(t){let n={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:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n;}function ES(){let t=et.lFrame;return et.lFrame=t.parent,t.currentTNode=null,t.lView=null,t;}var kS=ES;function gx(){let t=ES();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0;}function o5(t){return(et.lFrame.contextLView=$6(t,et.lFrame.contextLView))[Qi];}function Vo(){return et.lFrame.selectedIndex;}function fl(t){et.lFrame.selectedIndex=t;}function Zc(){let t=et.lFrame;return ax(t.tView,t.selectedIndex);}function Zt(){et.lFrame.currentNamespace=pS;}function zo(){a5();}function a5(){et.lFrame.currentNamespace=null;}function s5(){return et.lFrame.currentNamespace;}var MS=!0;function Wf(){return MS;}function Gf(t){MS=t;}function l5(t,n,e){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){let a=dS(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a);}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o));}function _x(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){let o=t.data[e].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:s,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:h}=o;a&&(t.contentHooks??=[]).push(-e,a),s&&((t.contentHooks??=[]).push(e,s),(t.contentCheckHooks??=[]).push(e,s)),l&&(t.viewHooks??=[]).push(-e,l),c&&((t.viewHooks??=[]).push(e,c),(t.viewCheckHooks??=[]).push(e,c)),h!=null&&(t.destroyHooks??=[]).push(e,h);}}function af(t,n,e){SS(t,n,3,e);}function sf(t,n,e,i){(t[$e]&3)===e&&SS(t,n,e,i);}function Iv(t,n){let e=t[$e];(e&3)===n&&(e&=16383,e+=1,t[$e]=e);}function SS(t,n,e,i){let r=i!==void 0?t[Rc]&65535:0,o=i??-1,a=n.length-1,s=0;for(let l=r;l<a;l++)if(typeof n[l+1]=="number"){if(s=n[l],i!=null&&s>=i)break;}else n[l]<0&&(t[Rc]+=65536),(s<o||o==-1)&&(c5(t,e,n,l),t[Rc]=(t[Rc]&4294901760)+l+2),l++;}function Xk(t,n){Vt(4,t,n);let e=at(null);try{n.call(t);}finally{at(e),Vt(5,t,n);}}function c5(t,n,e,i){let r=e[i]<0,o=e[i+1],a=r?-e[i]:e[i],s=t[a];r?t[$e]>>14<t[Rc]>>16&&(t[$e]&3)===n&&(t[$e]+=16384,Xk(s,o)):Xk(s,o);}var Nc=-1,gl=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i){this.factory=n,this.canSeeViewProviders=e,this.injectImpl=i;}};function d5(t){return(t.flags&8)!==0;}function u5(t){return(t.flags&16)!==0;}function m5(t,n,e){let i=0;for(;i<e.length;){let r=e[i];if(typeof r=="number"){if(r!==0)break;i++;let o=e[i++],a=e[i++],s=e[i++];t.setAttribute(n,a,s,o);}else{let o=r,a=e[++i];p5(o)?t.setProperty(n,o,a):t.setAttribute(n,o,a),i++;}}return i;}function IS(t){return t===3||t===4||t===6;}function p5(t){return t.charCodeAt(0)===64;}function Hc(t,n){if(!(n===null||n.length===0))if(t===null||t.length===0)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){let r=n[i];typeof r=="number"?e=r:e===0||(e===-1||e===2?Jk(t,e,r,null,n[++i]):Jk(t,e,r,null,null));}}return t;}function Jk(t,n,e,i,r){let o=0,a=t.length;if(n===-1)a=-1;else for(;o<t.length;){let s=t[o++];if(typeof s=="number"){if(s===n){a=-1;break;}else if(s>n){a=o-1;break;}}}for(;o<t.length;){let s=t[o];if(typeof s=="number")break;if(s===e){r!==null&&(t[o+1]=r);return;}o++,r!==null&&o++;}a!==-1&&(t.splice(a,0,n),o=a+1),t.splice(o++,0,e),r!==null&&t.splice(o++,0,r);}function TS(t){return t!==Nc;}function yf(t){return t&32767;}function h5(t){return t>>16;}function xf(t,n){let e=h5(t),i=n;for(;e>0;)i=i[Gc],e--;return i;}var Xv=!0;function Cf(t){let n=Xv;return Xv=t,n;}var f5=256,AS=f5-1,RS=5,g5=0,Io={};function _5(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(Yu)&&(i=e[Yu]),i==null&&(i=e[Yu]=g5++);let r=i&AS,o=1<<r;n.data[t+(r>>RS)]|=o;}function wf(t,n){let e=OS(t,n);if(e!==-1)return e;let i=n[Ze];i.firstCreatePass&&(t.injectorIndex=n.length,Tv(i.data,t),Tv(n,null),Tv(i.blueprint,null));let r=bx(t,n),o=t.injectorIndex;if(TS(r)){let a=yf(r),s=xf(r,n),l=s[Ze].data;for(let c=0;c<8;c++)n[o+c]=s[a+c]|l[a+c];}return n[o+8]=r,o;}function Tv(t,n){t.push(0,0,0,0,0,0,0,0,n);}function OS(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex;}function bx(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=VS(r),i===null)return Nc;if(e++,r=r[Gc],i.injectorIndex!==-1)return i.injectorIndex|e<<16;}return Nc;}function Jv(t,n,e){_5(t,n,e);}function b5(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r<i;){let o=e[r];if(IS(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<i&&typeof e[r]=="string";)r++;else{if(o===n)return e[r+1];r=r+2;}}}return null;}function PS(t,n,e){if(e&dt.Optional||t!==void 0)return t;ex(n,"NodeInjector");}function FS(t,n,e,i){if(e&dt.Optional&&i===void 0&&(i=null),(e&(dt.Self|dt.Host))===0){let r=t[Bc],o=Zn(void 0);try{return r?r.get(n,i,e&dt.Optional):QM(n,i,e&dt.Optional);}finally{Zn(o);}}return PS(i,n,e);}function NS(t,n,e,i=dt.Default,r){if(t!==null){if(n[$e]&2048&&!(i&dt.Self)){let a=C5(t,n,e,i,Io);if(a!==Io)return a;}let o=LS(t,n,e,i,Io);if(o!==Io)return o;}return FS(n,e,i,r);}function LS(t,n,e,i,r){let o=y5(e);if(typeof o=="function"){if(!CS(n,t,i))return i&dt.Host?PS(r,e,i):FS(n,e,i,r);try{let a;if(a=o(i),a==null&&!(i&dt.Optional))ex(e);else return a;}finally{kS();}}else if(typeof o=="number"){let a=null,s=OS(t,n),l=Nc,c=i&dt.Host?n[fr][tr]:null;for((s===-1||i&dt.SkipSelf)&&(l=s===-1?bx(t,n):n[s+8],l===Nc||!tM(i,!1)?s=-1:(a=n[Ze],s=yf(l),n=xf(l,n)));s!==-1;){let h=n[Ze];if(eM(o,s,h.data)){let g=v5(s,n,e,a,i,c);if(g!==Io)return g;}l=n[s+8],l!==Nc&&tM(i,n[Ze].data[s+8]===c)&&eM(o,s,n)?(a=h,s=yf(l),n=xf(l,n)):s=-1;}}return r;}function v5(t,n,e,i,r,o){let a=n[Ze],s=a.data[t+8],l=i==null?Yc(s)&&Xv:i!=a&&(s.type&3)!==0,c=r&dt.Host&&o===s,h=lf(s,a,e,l,c);return h!==null?Zu(n,a,h,s):Io;}function lf(t,n,e,i,r){let o=t.providerIndexes,a=n.data,s=o&1048575,l=t.directiveStart,c=t.directiveEnd,h=o>>20,g=i?s:s+h,b=r?s+h:c;for(let _=g;_<b;_++){let x=a[_];if(_<l&&e===x||_>=l&&x.type===e)return _;}if(r){let _=a[l];if(_&&Ro(_)&&_.type===e)return l;}return null;}function Zu(t,n,e,i){let r=t[e],o=n.data;if(r instanceof gl){let a=r;a.resolving&&GM(m6(o[��e]));let s=Cf(a.canSeeViewProviders);a.resolving=!0;let l,c=a.injectImpl?Zn(a.injectImpl):null,h=CS(t,i,dt.Default);try{r=t[e]=a.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&l5(e,o[e],n);}finally{c!==null&&Zn(c),Cf(s),a.resolving=!1,kS();}}return r;}function y5(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(Yu)?t[Yu]:void 0;return typeof n=="number"?n>=0?n&AS:x5:n;}function eM(t,n,e){let i=1<<t;return!!(e[n+(t>>RS)]&i);}function tM(t,n){return!(t&dt.Self)&&!(t&dt.Host&&n);}var cl=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e;}get(n,e,i){return NS(this._tNode,this._lView,n,Vf(i),e);}};function x5(){return new cl(Mn(),Te());}function Fe(t){return im(()=>{let n=t.prototype.constructor,e=n[uf]||ey(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[uf]||ey(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r);}return o=>new o();});}function ey(t){return HM(t)?()=>{let n=ey(mn(t));return n&&n();}:dl(t);}function C5(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[$e]&2048&&!bf(a);){let s=LS(o,a,e,i|dt.Self,Io);if(s!==Io)return s;let l=o.parent;if(!l){let c=a[sS];if(c){let h=c.get(e,Io,i);if(h!==Io)return h;}l=VS(a),a=a[Gc];}o=l;}return r;}function VS(t){let n=t[Ze],e=n.type;return e===2?n.declTNode:e===1?t[tr]:null;}function Yf(t){return b5(Mn(),t);}function iM(t,n=null,e=null,i){let r=zS(t,n,e,i);return r.resolveInjectorInitializers(),r;}function zS(t,n=null,e=null,i,r=new Set()){let o=[e||zn,ix(t)];return i=i||(typeof t=="object"?void 0:Xn(t)),new Qu(o,n||Bf(),i||null,r);}var Se=class t{static THROW_IF_NOT_FOUND=ll;static NULL=new ff();static create(n,e){if(Array.isArray(n))return iM({name:""},e,n,"");{let i=n.name??"";return iM({name:i},n.parent,n.providers,i);}}static ɵprov=P({token:t,providedIn:"any",factory:()=>te(XM)});static __NG_ELEMENT_ID__=-1;};var Ki=class{attributeName;constructor(n){this.attributeName=n;}__NG_ELEMENT_ID__=()=>Yf(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`;}},w5=new A("");w5.__NG_ELEMENT_ID__=t=>{let n=Mn();if(n===null)throw new X(204,!1);if(n.type&2)return n.value;if(t&dt.Optional)return null;throw new X(204,!1);};var BS=!1,Xc=(()=>{class t{static __NG_ELEMENT_ID__=D5;static __NG_ENV_ID__=e=>e;}return t;})(),Df=class extends Xc{_lView;constructor(n){super(),this._lView=n;}onDestroy(n){return _S(this._lView,n),()=>U6(this._lView,n);}};function D5(){return new Df(Te());}var _l=class{},vx=new A("",{providedIn:"root",factory:()=>!1});var jS=new A(""),HS=new A(""),$a=(()=>{class t{taskId=0;pendingTasks=new Set();get _hasPendingTasks(){return this.hasPendingTasks.value;}hasPendingTasks=new Qt(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e;}has(e){return this.pendingTasks.has(e);}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1);}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1);}static ɵprov=P({token:t,providedIn:"root",factory:()=>new t()});}return t;})();var ty=class extends H{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,aS()&&(this.destroyRef=p(Xc,{optional:!0})??void 0,this.pendingTasks=p($a,{optional:!0})??void 0);}emit(n){let e=at(null);try{super.next(n);}finally{at(e);}}subscribe(n,e,i){let r=n,o=e||(()=>null),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l);}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof ve&&n.add(s),s;}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{n(e),i!==void 0&&this.pendingTasks?.remove(i);});};}},V=ty;function Xu(...t){}function $S(t){let n,e;function i(){t=Xu;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n);}catch{}}return n=setTimeout(()=>{t(),i();}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i();})),()=>i();}function nM(t){return queueMicrotask(()=>t()),()=>{t=Xu;};}var yx="isAngularZone",Ef=yx+"_ID",E5=0,ae=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new V(!1);onMicrotaskEmpty=new V(!1);onStable=new V(!1);onError=new V(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=BS}=n;if(typeof Zone>"u")throw new X(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec())),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,S5(a);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(yx)===!0;}static assertInAngularZone(){if(!t.isInAngularZone())throw new X(909,!1);}static assertNotInAngularZone(){if(t.isInAngularZone())throw new X(909,!1);}run(n,e,i){return this._inner.run(n,e,i);}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,k5,Xu,Xu);try{return o.runTask(a,e,i);}finally{o.cancelTask(a);}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i);}runOutsideAngular(n){return this._outer.run(n);}},k5={};function xx(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null);}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null));}finally{t.isStable=!0;}}}function M5(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){$S(()=>{t.callbackScheduled=!1,iy(t),t.isCheckStableRunning=!0,xx(t),t.isCheckStableRunning=!1;});}t.scheduleInRootZone?Zone.root.run(()=>{n();}):t._outer.run(()=>{n();}),iy(t);}function S5(t){let n=()=>{M5(t);},e=E5++;t._inner=t._inner.fork({name:"angular",properties:{[yx]:!0,[Ef]:e,[Ef+e]:!0},onInvokeTask:(i,r,o,a,s,l)=>{if(I5(l))return i.invokeTask(o,a,s,l);try{return rM(t),i.invokeTask(o,a,s,l);}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),oM(t);}},onInvoke:(i,r,o,a,s,l,c)=>{try{return rM(t),i.invoke(o,a,s,l,c);}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!T5(l)&&n(),oM(t);}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,iy(t),xx(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask));},onHandleError:(i,r,o,a)=>(i.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)});}function iy(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1;}function rM(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null));}function oM(t){t._nesting--,xx(t);}var ny=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new V();onMicrotaskEmpty=new V();onStable=new V();onError=new V();run(n,e,i){return n.apply(e,i);}runGuarded(n,e,i){return n.apply(e,i);}runOutsideAngular(n){return n();}runTask(n,e,i,r){return n.apply(e,i);}};function I5(t){return US(t,"__ignore_ng_zone__");}function T5(t){return US(t,"__scheduler_tick__");}function US(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0;}var Bn=class{_console=console;handleError(n){this._console.error("ERROR",n);}},A5=new A("",{providedIn:"root",factory:()=>{let t=p(ae),n=p(Bn);return e=>t.runOutsideAngular(()=>n.handleError(e));}});function aM(t,n){return BM(t,n);}function R5(t){return BM(zM,t);}var rt=(aM.required=R5,aM);function O5(){return Jc(Mn(),Te());}function Jc(t,n){return new J(Lo(t,n));}var J=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e;}static __NG_ELEMENT_ID__=O5;}return t;})();function qS(t){return t instanceof J?t.nativeElement:t;}function ks(t){return typeof t=="function"&&t[Qn]!==void 0;}function Zi(t,n){let e=cv(t,n?.equal),i=e[Qn];return e.set=r=>Pu(i,r),e.update=r=>dv(i,r),e.asReadonly=P5.bind(e),e;}function P5(){let t=this[Qn];if(t.readonlyFn===void 0){let n=()=>this();n[Qn]=t,t.readonlyFn=n;}return t.readonlyFn;}function WS(t){return ks(t)&&typeof t.set=="function";}function F5(){return this._results[Symbol.iterator]();}var pn=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new H();}constructor(n=!1){this._emitDistinctChangesOnly=n;}get(n){return this._results[n];}map(n){return this._results.map(n);}filter(n){return this._results.filter(n);}find(n){return this._results.find(n);}reduce(n,e){return this._results.reduce(n,e);}forEach(n){this._results.forEach(n);}some(n){return this._results.some(n);}toArray(){return this._results.slice();}toString(){return this._results.toString();}reset(n,e){this.dirty=!1;let i=C6(n);(this._changesDetected=!x6(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0]);}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this);}onDirty(n){this._onDirty=n;}setDirty(){this.dirty=!0,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=F5;};function GS(t){return(t.flags&128)===128;}var YS=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t;}(YS||{}),QS=new Map(),N5=0;function L5(){return N5++;}function V5(t){QS.set(t[jf],t);}function ry(t){QS.delete(t[jf]);}var sM="__ngContext__";function ed(t,n){Cs(n)?(t[sM]=n[jf],V5(n)):t[sM]=n;}function KS(t){return XS(t[Ku]);}function ZS(t){return XS(t[io]);}function XS(t){for(;t!==null&&!Ha(t);)t=t[io];return t;}var oy;function JS(t){oy=t;}function eI(){if(oy!==void 0)return oy;if(typeof document<"u")return document;throw new X(210,!1);}var Cl=new A("",{providedIn:"root",factory:()=>z5}),z5="ng",Cx=new A(""),Bo=new A("",{providedIn:"platform",factory:()=>"unknown"});var Ne=new A(""),am=new A("",{providedIn:"root",factory:()=>eI().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var B5="h",j5="b";var tI=!1,H5=new A("",{providedIn:"root",factory:()=>tI});var wx=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t;}(wx||{}),td=new A(""),lM=new Set();function jo(t){lM.has(t)||(lM.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}));}var Dx=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i;}static __NG_ELEMENT_ID__=$5;}return t;})();function $5(){return new Dx(Te(),Mn());}var Oc=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t;}(Oc||{}),iI=(()=>{class t{impl=null;execute(){this.impl?.execute();}static ɵprov=P({token:t,providedIn:"root",factory:()=>new t()});}return t;})(),U5=[Oc.EarlyRead,Oc.Write,Oc.MixedReadWrite,Oc.Read],q5=(()=>{class t{ngZone=p(ae);scheduler=p(_l);errorHandler=p(Bn,{optional:!0});sequences=new Set();deferredRegistrations=new Set();executing=!1;constructor(){p(td,{optional:!0});}execute(){let e=this.sequences.size>0;e&&Vt(16),this.executing=!0;for(let i of U5)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[i]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[i];return o(r.pipelinedValue);},r.snapshot));}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o);}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Vt(17);}register(e){let{view:i}=e;i!==void 0?((i[Fc]??=[]).push(e),Qc(i),i[$e]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e);}addSequence(e){this.sequences.add(e),this.scheduler.notify(7);}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e));}maybeTrace(e,i){return i?i.run(wx.AFTER_NEXT_RENDER,e):e();}static ɵprov=P({token:t,providedIn:"root",factory:()=>new t()});}return t;})(),ay=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,o,a=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let n=this.view?.[Fc];n&&(this.view[Fc]=n.filter(e=>e!==this));}};function wl(t,n){!n?.injector&&rx(wl);let e=n?.injector??p(Se);return jo("NgAfterRender"),nI(t,e,n,!1);}function li(t,n){!n?.injector&&rx(li);let e=n?.injector??p(Se);return jo("NgAfterNextRender"),nI(t,e,n,!0);}function W5(t,n){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[n]=t,e;}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read];}function nI(t,n,e,i){let r=n.get(iI);r.impl??=n.get(q5);let o=n.get(td,null,{optional:!0}),a=e?.phase??Oc.MixedReadWrite,s=e?.manualCleanup!==!0?n.get(Xc):null,l=n.get(Dx,null,{optional:!0}),c=new ay(r.impl,W5(t,a),l?.view,i,s,o?.snapshot(null));return r.impl.register(c),c;}var G5=()=>null;function rI(t,n,e=!1){return G5(t,n,e);}function oI(t,n){let e=t.contentQueries;if(e!==null){let i=at(null);try{for(let r=0;r<e.length;r+=2){let o=e[r],a=e[r+1];if(a!==-1){let s=t.data[a];qf(o),s.contentQueries(2,n[a],a);}}}finally{at(i);}}}function sy(t,n,e){qf(0);let i=at(null);try{n(t,e);}finally{at(i);}}function Ex(t,n,e){if(ox(n)){let i=at(null);try{let r=n.directiveStart,o=n.directiveEnd;for(let a=r;a<o;a++){let s=t.data[a];if(s.contentQueries){let l=e[a];s.contentQueries(1,l,a);}}}finally{at(i);}}}var Fo=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t;}(Fo||{}),ef;function Y5(){if(ef===void 0&&(ef=null,un.trustedTypes))try{ef=un.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t});}catch{}return ef;}function Qf(t){return Y5()?.createHTML(t)||t;}var tf;function aI(){if(tf===void 0&&(tf=null,un.trustedTypes))try{tf=un.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t});}catch{}return tf;}function cM(t){return aI()?.createHTML(t)||t;}function dM(t){return aI()?.createScriptURL(t)||t;}var za=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n;}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${VM})`;}},ly=class extends za{getTypeName(){return"HTML";}},cy=class extends za{getTypeName(){return"Style";}},dy=class extends za{getTypeName(){return"Script";}},uy=class extends za{getTypeName(){return"URL";}},my=class extends za{getTypeName(){return"ResourceURL";}};function Pr(t){return t instanceof za?t.changingThisBreaksApplicationSecurity:t;}function Ua(t,n){let e=Q5(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${VM})`);}return e===n;}function Q5(t){return t instanceof za&&t.getTypeName()||null;}function sI(t){return new ly(t);}function lI(t){return new cy(t);}function cI(t){return new dy(t);}function dI(t){return new uy(t);}function uI(t){return new my(t);}function K5(t){let n=new hy(t);return Z5()?new py(n):n;}var py=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n;}getInertBodyElement(n){n="<body><remove></remove>"+n;try{let e=new window.DOMParser().parseFromString(Qf(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e);}catch{return null;}}},hy=class{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=Qf(n),e;}};function Z5(){try{return!!new window.DOMParser().parseFromString(Qf(""),"text/html");}catch{return!1;}}var X5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Kf(t){return t=String(t),t.match(X5)?t:"unsafe:"+t;}function qa(t){let n={};for(let e of t.split(","))n[e]=!0;return n;}function sm(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n;}var mI=qa("area,br,col,hr,img,wbr"),pI=qa("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),hI=qa("rp,rt"),J5=sm(hI,pI),ez=sm(pI,qa("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")),tz=sm(hI,qa("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")),uM=sm(mI,ez,tz,J5),fI=qa("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),iz=qa("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"),nz=qa("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"),rz=sm(fI,iz,nz),oz=qa("script,style,template"),fy=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=lz(e);continue;}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=sz(e);if(o){e=o;break;}e=r.pop();}}return this.buf.join("");}startElement(n){let e=mM(n).toLowerCase();if(!uM.hasOwnProperty(e))return this.sanitizedSomething=!0,!oz.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r<i.length;r++){let o=i.item(r),a=o.name,s=a.toLowerCase();if(!rz.hasOwnProperty(s)){this.sanitizedSomething=!0;continue;}let l=o.value;fI[s]&&(l=Kf(l)),this.buf.push(" ",a,'="',pM(l),'"');}return this.buf.push(">"),!0;}endElement(n){let e=mM(n).toLowerCase();uM.hasOwnProperty(e)&&!mI.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"));}chars(n){this.buf.push(pM(n));}};function az(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY;}function sz(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw gI(n);return n;}function lz(t){let n=t.firstChild;if(n&&az(t,n))throw gI(n);return n;}function mM(t){let n=t.nodeName;return typeof n=="string"?n:"FORM";}function gI(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);}var cz=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dz=/([^\#-~ |!])/g;function pM(t){return t.replace(/&/g,"&amp;").replace(cz,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";";}).replace(dz,function(n){return"&#"+n.charCodeAt(0)+";";}).replace(/</g,"&lt;").replace(/>/g,"&gt;");}var nf;function kx(t,n){let e=null;try{nf=nf||K5(t);let i=n?String(n):"";e=nf.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=nf.getInertBodyElement(i);}while(i!==o);let s=new fy().sanitizeChildren(hM(e)||e);return Qf(s);}finally{if(e){let i=hM(e)||e;for(;i.firstChild;)i.firstChild.remove();}}}function hM(t){return"content"in t&&uz(t)?t.content:null;}function uz(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE";}var hn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t;}(hn||{});function id(t){let n=Mx();return n?cM(n.sanitize(hn.HTML,t)||""):Ua(t,"HTML")?cM(Pr(t)):kx(eI(),To(t));}function Fr(t){let n=Mx();return n?n.sanitize(hn.URL,t)||"":Ua(t,"URL")?Pr(t):Kf(To(t));}function mz(t){let n=Mx();if(n)return dM(n.sanitize(hn.RESOURCE_URL,t)||"");if(Ua(t,"ResourceURL"))return dM(Pr(t));throw new X(904,!1);}function pz(t,n){return n==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||n==="href"&&(t==="base"||t==="link")?mz:Fr;}function _I(t,n,e){return pz(n,e)(t);}function Mx(){let t=Te();return t&&t[La].sanitizer;}var hz=/^>|^->|<!--|-->|--!>|<!-$/g,fz=/(<|>)/g,gz="\u200B$1\u200B";function _z(t){return t.replace(hz,n=>n.replace(fz,gz));}function nd(t){return t.ownerDocument.defaultView;}function bI(t){return t instanceof Function?t():t;}function bz(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r;}e=r+1;}}var vI="ng-template";function vz(t,n,e,i){let r=0;if(i){for(;r<n.length&&typeof n[r]=="string";r+=2)if(n[r]==="class"&&bz(n[r+1].toLowerCase(),e,0)!==-1)return!0;}else if(Sx(t))return!1;if(r=n.indexOf(1,r),r>-1){let o;for(;++r<n.length&&typeof(o=n[r])=="string";)if(o.toLowerCase()===e)return!0;}return!1;}function Sx(t){return t.type===4&&t.value!==vI;}function yz(t,n,e){let i=t.type===4&&!e?vI:t.value;return n===i;}function xz(t,n,e){let i=4,r=t.attrs,o=r!==null?Dz(r):0,a=!1;for(let s=0;s<n.length;s++){let l=n[s];if(typeof l=="number"){if(!a&&!eo(i)&&!eo(l))return!1;if(a&&eo(l))continue;a=!1,i=l|i&1;continue;}if(!a)if(i&4){if(i=2|i&1,l!==""&&!yz(t,l,e)||l===""&&n.length===1){if(eo(i))return!1;a=!0;}}else if(i&8){if(r===null||!vz(t,r,l,e)){if(eo(i))return!1;a=!0;}}else{let c=n[++s],h=Cz(l,r,Sx(t),e);if(h===-1){if(eo(i))return!1;a=!0;continue;}if(c!==""){let g;if(h>o?g="":g=r[h+1].toLowerCase(),i&2&&c!==g){if(eo(i))return!1;a=!0;}}}}return eo(i)||a;}function eo(t){return(t&1)===0;}function Cz(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r<n.length;){let a=n[r];if(a===t)return r;if(a===3||a===6)o=!0;else if(a===1||a===2){let s=n[++r];for(;typeof s=="string";)s=n[++r];continue;}else{if(a===4)break;if(a===0){r+=4;continue;}}r+=o?1:2;}return-1;}else return Ez(n,t);}function yI(t,n,e=!1){for(let i=0;i<n.length;i++)if(xz(t,n[i],e))return!0;return!1;}function wz(t){let n=t.attrs;if(n!=null){let e=n.indexOf(5);if((e&1)===0)return n[e+1];}return null;}function Dz(t){for(let n=0;n<t.length;n++){let e=t[n];if(IS(e))return n;}return t.length;}function Ez(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){let i=t[e];if(typeof i=="number")return-1;if(i===n)return e;e++;}return-1;}function kz(t,n){e:for(let e=0;e<n.length;e++){let i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0;}}return!1;}function fM(t,n){return t?":not("+n.trim()+")":n;}function Mz(t){let n=t[0],e=1,i=2,r="",o=!1;for(;e<t.length;){let a=t[e];if(typeof a=="string"){if(i&2){let s=t[++e];r+="["+a+(s.length>0?'="'+s+'"':"")+"]";}else i&8?r+="."+a:i&4&&(r+=" "+a);}else r!==""&&!eo(a)&&(n+=fM(o,r),r=""),i=a,o=o||!eo(i);e++;}return r!==""&&(n+=fM(o,r)),n;}function Sz(t){return t.map(Mz).join(",");}function Iz(t){let n=[],e=[],i=1,r=2;for(;i<t.length;){let o=t[i];if(typeof o=="string")r===2?o!==""&&n.push(o,t[++i]):r===8&&e.push(o);else{if(!eo(r))break;r=o;}i++;}return e.length&&n.push(1,...e),n;}var fn={};function Tz(t,n){return t.createText(n);}function Az(t,n,e){t.setValue(n,e);}function Rz(t,n){return t.createComment(_z(n));}function xI(t,n,e){return t.createElement(n,e);}function kf(t,n,e,i,r){t.insertBefore(n,e,i,r);}function CI(t,n,e){t.appendChild(n,e);}function gM(t,n,e,i,r){i!==null?kf(t,n,e,i,r):CI(t,n,e);}function Oz(t,n,e){t.removeChild(null,n,e);}function Pz(t,n,e){t.setAttribute(n,"style",e);}function Fz(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e);}function wI(t,n,e){let{mergedAttrs:i,classes:r,styles:o}=e;i!==null&&m5(t,n,i),r!==null&&Fz(t,n,r),o!==null&&Pz(t,n,o);}function Ix(t,n,e,i,r,o,a,s,l,c,h){let g=Vi+i,b=g+r,_=Nz(g,b),x=typeof c=="function"?c():c;return _[Ze]={type:t,blueprint:_,template:e,queries:null,viewQuery:s,declTNode:n,data:_.slice().fill(null,g),bindingStartIndex:g,expandoStartIndex:b,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 o=="function"?o():o,pipeRegistry:typeof a=="function"?a():a,firstChild:null,schemas:l,consts:x,incompleteFirstPass:!1,ssrId:h};}function Nz(t,n){let e=[];for(let i=0;i<n;i++)e.push(i<t?null:fn);return e;}function Lz(t){let n=t.tView;return n===null||n.incompleteFirstPass?t.tView=Ix(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n;}function Tx(t,n,e,i,r,o,a,s,l,c,h){let g=n.blueprint.slice();return g[ja]=r,g[$e]=i|4|128|8|64|1024,(c!==null||t&&t[$e]&2048)&&(g[$e]|=2048),fS(g),g[kn]=g[Gc]=t,g[Qi]=e,g[La]=a||t&&t[La],g[si]=s||t&&t[si],g[Bc]=l||t&&t[Bc]||null,g[tr]=o,g[jf]=L5(),g[zc]=h,g[sS]=c,g[fr]=n.type==2?t[fr]:g,g;}function Vz(t,n,e){let i=Lo(n,t),r=Lz(e),o=t[La].rendererFactory,a=Ax(t,Tx(t,r,null,DI(e),i,n,null,o.createRenderer(i,e),null,null,null));return t[n.index]=a;}function DI(t){let n=16;return t.signals?n=4096:t.onPush&&(n=64),n;}function EI(t,n,e,i){if(e===0)return-1;let r=n.length;for(let o=0;o<e;o++)n.push(i),t.blueprint.push(i),t.data.push(null);return r;}function Ax(t,n){return t[Ku]?t[Kk][io]=n:t[Ku]=n,t[Kk]=n,n;}function d(t=1){kI(Kt(),Te(),Vo()+t,!1);}function kI(t,n,e,i){if(!i)if((n[$e]&3)===3){let o=t.preOrderCheckHooks;o!==null&&af(n,o,e);}else{let o=t.preOrderHooks;o!==null&&sf(n,o,0,e);}fl(e);}var Zf=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t;}(Zf||{});function gy(t,n,e,i){let r=at(null);try{let[o,a,s]=t.inputs[e],l=null;(a&Zf.SignalBased)!==0&&(l=n[o][Qn]),l!==null&&l.transformFn!==void 0?i=l.transformFn(i):s!==null&&(i=s.call(n,i)),t.setInput!==null?t.setInput(n,l,i,e,o):cS(n,l,o,i);}finally{at(r);}}function MI(t,n,e,i,r){let o=Vo(),a=i&2;try{fl(-1),a&&n.length>Vi&&kI(t,n,Vi,!1),Vt(a?2:0,r),e(i,r);}finally{fl(o),Vt(a?3:1,r);}}function Xf(t,n,e){Uz(t,n,e),(e.flags&64)===64&&qz(t,n,e);}function Rx(t,n,e=Lo){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;o<i.length;o+=2){let a=i[o+1],s=a===-1?e(n,t):t[a];t[r++]=s;}}}function zz(t,n,e,i){let o=i.get(H5,tI)||e===Fo.ShadowDom,a=t.selectRootElement(n,o);return Bz(a),a;}function Bz(t){jz(t);}var jz=()=>null;function Hz(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t;}function lm(t,n,e,i,r,o,a,s){if(!s&&Px(n,t,e,i,r)){Yc(n)&&$z(e,n.index);return;}if(n.type&3){let l=Lo(n,e);i=Hz(i),r=a!=null?a(r,n.value||"",i):r,o.setProperty(l,i,r);}else n.type&12;}function $z(t,n){let e=Po(n,t);e[$e]&16||(e[$e]|=64);}function Uz(t,n,e){let i=e.directiveStart,r=e.directiveEnd;Yc(e)&&Vz(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||wf(e,n);let o=e.initialInputs;for(let a=i;a<r;a++){let s=t.data[a],l=Zu(n,t,a,e);if(ed(l,n),o!==null&&Qz(n,a-i,l,s,e,o),Ro(s)){let c=Po(e.index,n);c[Qi]=Zu(n,t,a,e);}}}function qz(t,n,e){let i=e.directiveStart,r=e.directiveEnd,o=e.index,a=i5();try{fl(o);for(let s=i;s<r;s++){let l=t.data[s],c=n[s];Zv(s),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&Wz(l,c);}}finally{fl(-1),Zv(a);}}function Wz(t,n){t.hostBindings!==null&&t.hostBindings(1,n);}function Ox(t,n){let e=t.directiveRegistry,i=null;if(e)for(let r=0;r<e.length;r++){let o=e[r];yI(n,o.selectors,!1)&&(i??=[],Ro(o)?i.unshift(o):i.push(o));}return i;}function Gz(t,n,e,i,r,o){let a=Lo(t,n);Yz(n[si],a,o,t.value,e,i,r);}function Yz(t,n,e,i,r,o,a){if(o==null)t.removeAttribute(n,r,e);else{let s=a==null?To(o):a(o,i||"",r);t.setAttribute(n,r,s,e);}}function Qz(t,n,e,i,r,o){let a=o[n];if(a!==null)for(let s=0;s<a.length;s+=2){let l=a[s],c=a[s+1];gy(i,e,l,c);}}function Kz(t,n){let e=t[Bc],i=e?e.get(Bn,null):null;i&&i.handleError(n);}function Px(t,n,e,i,r){let o=t.inputs?.[i],a=t.hostDirectiveInputs?.[i],s=!1;if(a)for(let l=0;l<a.length;l+=2){let c=a[l],h=a[l+1],g=n.data[c];gy(g,e[c],h,r),s=!0;}if(o)for(let l of o){let c=e[l],h=n.data[l];gy(h,c,i,r),s=!0;}return s;}function Zz(t,n){let e=Po(n,t),i=e[Ze];Xz(i,e);let r=e[ja];r!==null&&e[zc]===null&&(e[zc]=rI(r,e[Bc])),Vt(18),Fx(i,e,e[Qi]),Vt(19,e[Qi]);}function Xz(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e]);}function Fx(t,n,e){fx(n);try{let i=t.viewQuery;i!==null&&sy(1,i,e);let r=t.template;r!==null&&MI(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),n[Va]?.finishViewCreation(t),t.staticContentQueries&&oI(t,n),t.staticViewQueries&&sy(2,t.viewQuery,e);let o=t.components;o!==null&&Jz(n,o);}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i;}finally{n[$e]&=-5,gx();}}function Jz(t,n){for(let e=0;e<n.length;e++)Zz(t,n[e]);}function cm(t,n,e,i){let r=at(null);try{let o=n.tView,s=t[$e]&4096?4096:16,l=Tx(t,o,e,s,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null),c=t[n.index];l[ul]=c;let h=t[Va];return h!==null&&(l[Va]=h.createEmbeddedView(o)),Fx(o,l,e),l;}finally{at(r);}}function $c(t,n){return!n||n.firstChild===null||GS(t);}var e8;function Nx(t,n){return e8(t,n);}var No=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t;}(No||{});function Lx(t){return(t.flags&32)===32;}function Pc(t,n,e,i,r){if(i!=null){let o,a=!1;Ha(i)?o=i:Cs(i)&&(a=!0,i=i[ja]);let s=Oo(i);t===0&&e!==null?r==null?CI(n,e,s):kf(n,e,s,r||null,!0):t===1&&e!==null?kf(n,e,s,r||null,!0):t===2?Oz(n,s,a):t===3&&n.destroyNode(s),o!=null&&d8(n,t,o,e,r);}}function t8(t,n){SI(t,n),n[ja]=null,n[tr]=null;}function i8(t,n,e,i,r,o){i[ja]=r,i[tr]=n,tg(t,i,e,1,r,o);}function SI(t,n){n[La].changeDetectionScheduler?.notify(9),tg(t,n,n[si],2,null,null);}function n8(t){let n=t[Ku];if(!n)return Av(t[Ze],t);for(;n;){let e=null;if(Cs(n))e=n[Ku];else{let i=n[En];i&&(e=i);}if(!e){for(;n&&!n[io]&&n!==t;)Cs(n)&&Av(n[Ze],n),n=n[kn];n===null&&(n=t),Cs(n)&&Av(n[Ze],n),e=n&&n[io];}n=e;}}function Vx(t,n){let e=t[jc],i=e.indexOf(n);e.splice(i,1);}function Jf(t,n){if(om(n))return;let e=n[si];e.destroyNode&&tg(t,n,e,3,null,null),n8(n);}function Av(t,n){if(om(n))return;let e=at(null);try{n[$e]&=-129,n[$e]|=256,n[Or]&&Ou(n[Or]),o8(t,n),r8(t,n),n[Ze].type===1&&n[si].destroy();let i=n[ul];if(i!==null&&Ha(n[kn])){i!==n[kn]&&Vx(i,n);let r=n[Va];r!==null&&r.detachView(t);}ry(n);}finally{at(e);}}function r8(t,n){let e=t.cleanup,i=n[gf];if(e!==null)for(let a=0;a<e.length-1;a+=2)if(typeof e[a]=="string"){let s=e[a+3];s>=0?i[s]():i[-s].unsubscribe(),a+=2;}else{let s=i[e[a+1]];e[a].call(s);}i!==null&&(n[gf]=null);let r=n[xs];if(r!==null){n[xs]=null;for(let a=0;a<r.length;a++){let s=r[a];s();}}let o=n[ml];if(o!==null){n[ml]=null;for(let a of o)a.destroy();}}function o8(t,n){let e;if(t!=null&&(e=t.destroyHooks)!=null)for(let i=0;i<e.length;i+=2){let r=n[e[i]];if(!(r instanceof gl)){let o=e[i+1];if(Array.isArray(o))for(let a=0;a<o.length;a+=2){let s=r[o[a]],l=o[a+1];Vt(4,s,l);try{l.call(s);}finally{Vt(5,s,l);}}else{Vt(4,r,o);try{o.call(r);}finally{Vt(5,r,o);}}}}}function II(t,n,e){return a8(t,n.parent,e);}func��tion a8(t,n,e){let i=n;for(;i!==null&&i.type&168;)n=i,i=n.parent;if(i===null)return e[ja];if(Yc(i)){let{encapsulation:r}=t.data[i.directiveStart+i.componentOffset];if(r===Fo.None||r===Fo.Emulated)return null;}return Lo(i,e);}function TI(t,n,e){return l8(t,n,e);}function s8(t,n,e){return t.type&40?Lo(t,e):null;}var l8=s8,_M;function eg(t,n,e,i){let r=II(t,i,n),o=n[si],a=i.parent||n[tr],s=TI(a,i,n);if(r!=null)if(Array.isArray(e))for(let l=0;l<e.length;l++)gM(o,r,e[l],s,!1);else gM(o,r,e,s,!1);_M!==void 0&&_M(o,i,n,e,r);}function Gu(t,n){if(n!==null){let e=n.type;if(e&3)return Lo(n,t);if(e&4)return _y(-1,t[n.index]);if(e&8){let i=n.child;if(i!==null)return Gu(t,i);{let r=t[n.index];return Ha(r)?_y(-1,r):Oo(r);}}else{if(e&128)return Gu(t,n.next);if(e&32)return Nx(n,t)()||Oo(t[n.index]);{let i=AI(t,n);if(i!==null){if(Array.isArray(i))return i[0];let r=hl(t[fr]);return Gu(r,i);}else return Gu(t,n.next);}}}return null;}function AI(t,n){if(n!==null){let i=t[fr][tr],r=n.projection;return i.projection[r];}return null;}function _y(t,n){let e=En+t+1;if(e<n.length){let i=n[e],r=i[Ze].firstChild;if(r!==null)return Gu(i,r);}return n[pl];}function zx(t,n,e,i,r,o,a){for(;e!=null;){if(e.type===128){e=e.next;continue;}let s=i[e.index],l=e.type;if(a&&n===0&&(s&&ed(Oo(s),i),e.flags|=2),!Lx(e))if(l&8)zx(t,n,e.child,i,r,o,!1),Pc(n,t,r,s,o);else if(l&32){let c=Nx(e,i),h;for(;h=c();)Pc(n,t,r,h,o);Pc(n,t,r,s,o);}else l&16?RI(t,n,i,e,r,o):Pc(n,t,r,s,o);e=a?e.projectionNext:e.next;}}function tg(t,n,e,i,r,o){zx(e,i,t.firstChild,n,r,o,!1);}function c8(t,n,e){let i=n[si],r=II(t,e,n),o=e.parent||n[tr],a=TI(o,e,n);RI(i,0,n,e,r,a);}function RI(t,n,e,i,r,o){let a=e[fr],l=a[tr].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let h=l[c];Pc(n,t,r,h,o);}else{let c=l,h=a[kn];GS(i)&&(c.flags|=128),zx(t,n,c,h,r,o,!0);}}function d8(t,n,e,i,r){let o=e[pl],a=Oo(e);o!==a&&Pc(n,t,i,o,r);for(let s=En;s<e.length;s++){let l=e[s];tg(l[Ze],l,t,n,i,o);}}function u8(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let o=i.indexOf("-")===-1?void 0:No.DashCase;r==null?t.removeStyle(e,i,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=No.Important),t.setStyle(e,i,r,o));}}function Mf(t,n,e,i,r=!1){for(;e!==null;){if(e.type===128){e=r?e.projectionNext:e.next;continue;}let o=n[e.index];o!==null&&i.push(Oo(o)),Ha(o)&&m8(o,i);let a=e.type;if(a&8)Mf(t,n,e.child,i);else if(a&32){let s=Nx(e,n),l;for(;l=s();)i.push(l);}else if(a&16){let s=AI(n,e);if(Array.isArray(s))i.push(...s);else{let l=hl(n[fr]);Mf(l[Ze],l,s,i,!0);}}e=r?e.projectionNext:e.next;}return i;}function m8(t,n){for(let e=En;e<t.length;e++){let i=t[e],r=i[Ze].firstChild;r!==null&&Mf(i[Ze],i,r,n);}t[pl]!==t[ja]&&n.push(t[pl]);}function OI(t){if(t[Fc]!==null){for(let n of t[Fc])n.impl.addSequence(n);t[Fc].length=0;}}var PI=[];function p8(t){return t[Or]??h8(t);}function h8(t){let n=PI.pop()??Object.create(g8);return n.lView=t,n;}function f8(t){t.lView[Or]!==t&&(t.lView=null,PI.push(t));}var g8=ze(B({},xc),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{Qc(t.lView);},consumerOnSignalRead(){this.lView[Or]=this;}});function _8(t){let n=t[Or]??Object.create(b8);return n.lView=t,n;}var b8=ze(B({},xc),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=hl(t.lView);for(;n&&!FI(n[Ze]);)n=hl(n);n&&gS(n);},consumerOnSignalRead(){this.lView[Or]=this;}});function FI(t){return t.type!==2;}function NI(t){if(t[ml]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[ml])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(t[$e]&8192);}}var v8=100;function LI(t,n=!0,e=0){let r=t[La].rendererFactory,o=!1;o||r.begin?.();try{y8(t,e);}catch(a){throw n&&Kz(t,a),a;}finally{o||r.end?.();}}function y8(t,n){let e=yS();try{vf(!0),by(t,n);let i=0;for(;$f(t);){if(i===v8)throw new X(103,!1);i++,by(t,1);}}finally{vf(e);}}function x8(t,n,e,i){if(om(n))return;let r=n[$e],o=!1,a=!1;fx(n);let s=!0,l=null,c=null;o||(FI(t)?(c=p8(n),l=Ru(c)):rv()===null?(s=!1,c=_8(n),l=Ru(c)):n[Or]&&(Ou(n[Or]),n[Or]=null));try{fS(n),J6(t.bindingStartIndex),e!==null&&MI(t,n,e,2,i);let h=(r&3)===3;if(!o)if(h){let _=t.preOrderCheckHooks;_!==null&&af(n,_,null);}else{let _=t.preOrderHooks;_!==null&&sf(n,_,0,null),Iv(n,0);}if(a||C8(n),NI(n),VI(n,0),t.contentQueries!==null&&oI(t,n),!o)if(h){let _=t.contentCheckHooks;_!==null&&af(n,_);}else{let _=t.contentHooks;_!==null&&sf(n,_,1),Iv(n,1);}D8(t,n);let g=t.components;g!==null&&BI(n,g,0);let b=t.viewQuery;if(b!==null&&sy(2,b,i),!o)if(h){let _=t.viewCheckHooks;_!==null&&af(n,_);}else{let _=t.viewHooks;_!==null&&sf(n,_,2),Iv(n,2);}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Sv]){for(let _ of n[Sv])_();n[Sv]=null;}o||(OI(n),n[$e]&=-73);}catch(h){throw o||Qc(n),h;}finally{c!==null&&(fh(c,l),s&&f8(c)),gx();}}function VI(t,n){for(let e=KS(t);e!==null;e=ZS(e))for(let i=En;i<e.length;i++){let r=e[i];zI(r,n);}}function C8(t){for(let n=KS(t);n!==null;n=ZS(n)){if(!(n[$e]&2))continue;let e=n[jc];for(let i=0;i<e.length;i++){let r=e[i];gS(r);}}}function w8(t,n,e){Vt(18);let i=Po(n,t);zI(i,e),Vt(19,i[Qi]);}function zI(t,n){lx(t)&&by(t,n);}function by(t,n){let i=t[Ze],r=t[$e],o=t[Or],a=!!(n===0&&r&16);if(a||=!!(r&64&&n===0),a||=!!(r&1024),a||=!!(o?.dirty&&gh(o)),a||=!1,o&&(o.dirty=!1),t[$e]&=-9217,a)x8(i,t,i.template,t[Qi]);else if(r&8192){NI(t),VI(t,1);let s=i.components;s!==null&&BI(t,s,1),OI(t);}}function BI(t,n,e){for(let i=0;i<n.length;i++)w8(t,n[i],e);}function D8(t,n){let e=t.hostBindingOpCodes;if(e!==null)try{for(let i=0;i<e.length;i++){let r=e[i];if(r<0)fl(~r);else{let o=r,a=e[++i],s=e[++i];t5(a,o);let l=n[o];Vt(24,l),s(2,l),Vt(25,l);}}}finally{fl(-1);}}function Bx(t,n){let e=yS()?64:1088;for(t[La].changeDetectionScheduler?.notify(n);t;){t[$e]|=e;let i=hl(t);if(bf(t)&&!i)return t;t=i;}return null;}function jI(t,n,e,i){return[t,!0,0,n,null,i,null,e,null,null];}function HI(t,n){let e=En+n;if(e<t.length)return t[e];}function dm(t,n,e,i=!0){let r=n[Ze];if(E8(r,n,t,e),i){let a=_y(e,t),s=n[si],l=s.parentNode(t[pl]);l!==null&&i8(r,t[tr],s,n,l,a);}let o=n[zc];o!==null&&o.firstChild!==null&&(o.firstChild=null);}function $I(t,n){let e=Ju(t,n);return e!==void 0&&Jf(e[Ze],e),e;}function Ju(t,n){if(t.length<=En)return;let e=En+n,i=t[e];if(i){let r=i[ul];r!==null&&r!==t&&Vx(r,i),n>0&&(t[e-1][io]=i[io]);let o=hf(t,En+n);t8(i[Ze],i);let a=o[Va];a!==null&&a.detachView(o[Ze]),i[kn]=null,i[io]=null,i[$e]&=-129;}return i;}function E8(t,n,e,i){let r=En+i,o=e.length;i>0&&(e[r-1][io]=n),i<o-En?(n[io]=e[r],ZM(e,En+i,n)):(e.push(n),n[io]=null),n[kn]=e;let a=n[ul];a!==null&&e!==a&&UI(a,n);let s=n[Va];s!==null&&s.insertView(t),Qv(n),n[$e]|=128;}function UI(t,n){let e=t[jc],i=n[kn];if(Cs(i))t[$e]|=2;else{let r=i[kn][fr];n[fr]!==r&&(t[$e]|=2);}e===null?t[jc]=[n]:e.push(n);}var em=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let n=this._lView,e=n[Ze];return Mf(e,n,e.firstChild,[]);}constructor(n,e,i=!0){this._lView=n,this._cdRefInjectingView=e,this.notifyErrorHandler=i;}get context(){return this._lView[Qi];}set context(n){this._lView[Qi]=n;}get destroyed(){return om(this._lView);}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let n=this._lView[kn];if(Ha(n)){let e=n[_f],i=e?e.indexOf(this):-1;i>-1&&(Ju(n,i),hf(e,i));}this._attachedToViewContainer=!1;}Jf(this._lView[Ze],this._lView);}onDestroy(n){_S(this._lView,n);}markForCheck(){Bx(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[$e]&=-129;}reattach(){Qv(this._lView),this._lView[$e]|=128;}detectChanges(){this._lView[$e]|=1024,LI(this._lView,this.notifyErrorHandler);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new X(902,!1);this._attachedToViewContainer=!0;}detachFromAppRef(){this._appRef=null;let n=bf(this._lView),e=this._lView[ul];e!==null&&!n&&Vx(e,this._lView),SI(this._lView[Ze],this._lView);}attachToAppRef(n){if(this._attachedToViewContainer)throw new X(902,!1);this._appRef=n;let e=bf(this._lView),i=this._lView[ul];i!==null&&!e&&UI(i,this._lView),Qv(this._lView);}};var st=(()=>{class t{static __NG_ELEMENT_ID__=S8;}return t;})(),k8=st,M8=class extends k8{_declarationLView;_declarationTContainer;elementRef;constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i;}get ssrId(){return this._declarationTContainer.tView?.ssrId||null;}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e);}createEmbeddedViewImpl(n,e,i){let r=cm(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new em(r);}};function S8(){return ig(Mn(),Te());}function ig(t,n){return t.type&4?new M8(n,t,Jc(t,n)):null;}function rd(t,n,e,i,r){let o=t.data[n];if(o===null)o=I8(t,n,e,i,r),e5()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let a=Z6();o.injectorIndex=a===null?-1:a.injectorIndex;}return Es(o,!0),o;}function I8(t,n,e,i,r){let o=vS(),a=mx(),s=a?o:o&&o.parent,l=t.data[n]=A8(t,s,e,n,i,r);return T8(t,l,o,a),l;}function T8(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e));}function A8(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return bS()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,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:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};}var qme=new RegExp(`^(\\d+)*(${j5}|${B5})*(.*)`);var R8=()=>null;function Uc(t,n){return R8(t,n);}var O8=class{},qI=class{},vy=class{resolveComponentFactory(n){throw Error(`No component factory found for ${Xn(n)}.`);}},ng=class{static NULL=new vy();},Fi=class{},tt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>P8();}return t;})();function P8(){let t=Te(),n=Mn(),e=Po(n.index,t);return(Cs(e)?e:t)[si];}var F8=(()=>{class t{static ɵprov=P({token:t,providedIn:"root",factory:()=>null});}return t;})();var Rv={},yy=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e;}get(n,e,i){i=Vf(i);let r=this.injector.get(n,Rv,i);return r!==Rv||e===Rv?r:this.parentInjector.get(n,e,i);}};function xy(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a<n.length;a++){let s=n[a];if(typeof s=="number")o=s;else if(o==1)r=jv(r,s);else if(o==2){let l=s,c=n[++a];i=jv(i,l+": "+c+";");}}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r;}function D(t,n=dt.Default){let e=Te();if(e===null)return te(t,n);let i=Mn();return NS(i,e,mn(t),n);}function od(){let t="invalid";throw new Error(t);}function jx(t,n,e,i,r){let o=i===null?null:{"":-1},a=r(t,e);if(a!==null){let s,l=null,c=null,h=L8(a);h===null?s=a:[s,l,c]=h,B8(t,n,e,s,o,l,c);}o!==null&&i!==null&&N8(e,i,o);}function N8(t,n,e){let i=t.localNames=[];for(let r=0;r<n.length;r+=2){let o=e[n[r+1]];if(o==null)throw new X(-301,!1);i.push(n[r],o);}}function L8(t){let n=null,e=!1;for(let a=0;a<t.length;a++){let s=t[a];if(a===0&&Ro(s)&&(n=s),s.findHostDirectiveDefs!==null){e=!0;break;}}if(!e)return null;let i=null,r=null,o=null;for(let a of t)a.findHostDirectiveDefs!==null&&(i??=[],r??=new Map(),o??=new Map(),V8(a,i,o,r)),a===n&&(i??=[],i.push(a));return i!==null?(i.push(...(n===null?t:t.slice(1))),[i,r,o]):null;}function V8(t,n,e,i){let r=n.length;t.findHostDirectiveDefs(t,n,i),e.set(t,[r,n.length-1]);}function z8(t,n,e){n.componentOffset=e,(t.components??=[]).push(n.index);}function B8(t,n,e,i,r,o,a){let s=i.length,l=!1;for(let b=0;b<s;b++){let _=i[b];!l&&Ro(_)&&(l=!0,z8(t,e,b)),Jv(wf(e,n),t,_.type);}W8(e,t.data.length,s);for(let b=0;b<s;b++){let _=i[b];_.providersResolver&&_.providersResolver(_);}let c=!1,h=!1,g=EI(t,n,s,null);s>0&&(e.directiveToIndex=new Map());for(let b=0;b<s;b++){let _=i[b];if(e.mergedAttrs=Hc(e.mergedAttrs,_.hostAttrs),H8(t,e,n,g,_),q8(g,_,r),a!==null&&a.has(_)){let[T,L]=a.get(_);e.directiveToIndex.set(_.type,[g,T+e.directiveStart,L+e.directiveStart]);}else(o===null||!o.has(_))&&e.directiveToIndex.set(_.type,g);_.contentQueries!==null&&(e.flags|=4),(_.hostBindings!==null||_.hostAttrs!==null||_.hostVars!==0)&&(e.flags|=64);let x=_.type.prototype;!c&&(x.ngOnChanges||x.ngOnInit||x.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),c=!0),!h&&(x.ngOnChanges||x.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),h=!0),g++;}j8(t,e,o);}function j8(t,n,e){for(let i=n.directiveStart;i<n.directiveEnd;i++){let r=t.data[i];if(e===null||!e.has(r))bM(0,n,r,i),bM(1,n,r,i),yM(n,i,!1);else{let o=e.get(r);vM(0,n,o,i),vM(1,n,o,i),yM(n,i,!0);}}}function bM(t,n,e,i){let r=t===0?e.inputs:e.outputs;for(let o in r)if(r.hasOwnProperty(o)){let a;t===0?a=n.inputs??={}:a=n.outputs??={},a[o]??=[],a[o].push(i),WI(n,o);}}function vM(t,n,e,i){let r=t===0?e.inputs:e.outputs;for(let o in r)if(r.hasOwnProperty(o)){let a=r[o],s;t===0?s=n.hostDirectiveInputs??={}:s=n.hostDirectiveOutputs??={},s[a]??=[],s[a].push(i,o),WI(n,a);}}function WI(t,n){n==="class"?t.flags|=8:n==="style"&&(t.flags|=16);}function yM(t,n,e){let{attrs:i,inputs:r,hostDirectiveInputs:o}=t;if(i===null||!e&&r===null||e&&o===null||Sx(t)){t.initialInputs??=[],t.initialInputs.push(null);return;}let a=null,s=0;for(;s<i.length;){let l=i[s];if(l===0){s+=4;continue;}else if(l===5){s+=2;continue;}else if(typeof l=="number")break;if(!e&&r.hasOwnProperty(l)){let c=r[l];for(let h of c)if(h===n){a??=[],a.push(l,i[s+1]);break;}}else if(e&&o.hasOwnProperty(l)){let c=o[l];for(let h=0;h<c.length;h+=2)if(c[h]===n){a??=[],a.push(c[h+1],i[s+1]);break;}}s+=2;}t.initialInputs??=[],t.initialInputs.push(a);}function H8(t,n,e,i,r){t.data[i]=r;let o=r.factory||(r.factory=dl(r.type,!0)),a=new gl(o,Ro(r),D);t.blueprint[i]=a,e[i]=a,$8(t,n,i,EI(t,e,r.hostVars,fn),r);}function $8(t,n,e,i,r){let o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;a===null&&(a=t.hostBindingOpCodes=[]);let s=~n.index;U8(a)!=s&&a.push(s),a.push(e,i,o);}}function U8(t){let n=t.length;for(;n>0;){let e=t[--n];if(typeof e=="number"&&e<0)return e;}return 0;}function q8(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;Ro(n)&&(e[""]=t);}}function W8(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n;}function GI(t,n,e,i,r,o,a,s){let l=n.consts,c=Ds(l,a),h=rd(n,t,2,i,c);return o&&jx(n,e,h,Ds(l,s),r),h.mergedAttrs=Hc(h.mergedAttrs,h.attrs),h.attrs!==null&&xy(h,h.attrs,!1),h.mergedAttrs!==null&&xy(h,h.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,h),h;}function YI(t,n){_x(t,n),ox(n)&&t.queries.elementEnd(n);}var Sf=class extends ng{ngModule;constructor(n){super(),this.ngModule=n;}resolveComponentFactory(n){let e=ws(n);return new bl(e,this.ngModule);}};function G8(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&Zf.SignalBased)!==0};return r&&(o.transform=r),o;});}function Y8(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}));}function Q8(t,n,e){let i=n instanceof Ei?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new yy(e,i):e;}function K8(t){let n=t.get(Fi,null);if(n===null)throw new X(407,!1);let e=t.get(F8,null),i=t.get(_l,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i};}function Z8(t,n){let e=(t.selectors[0][0]||"div").toLowerCase();return xI(n,e,e==="svg"?pS:e==="math"?B6:null);}var bl=class extends qI{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=G8(this.componentDef.inputs),this.cachedInputs;}get outputs(){return this.cachedOutputs??=Y8(this.componentDef.outputs),this.cachedOutputs;}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=Sz(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e;}create(n,e,i,r){Vt(22);let o=at(null);try{let a=this.componentDef,s=i?["ng-version","19.2.7"]:Iz(this.componentDef.selectors[0]),l=Ix(0,null,null,1,0,null,null,null,null,[s],null),c=Q8(a,r||this.ngModule,n),h=K8(c),g=h.rendererFactory.createRenderer(null,a),b=i?zz(g,i,a.encapsulation,c):Z8(a,g),_=Tx(null,l,null,512|DI(a),null,null,h,g,c,null,rI(b,c,!0));_[Vi]=b,fx(_);let x=null;try{let T=GI(Vi,l,_,"#host",()=>[this.componentDef],!0,0);b&&(wI(g,b,T),ed(b,_)),Xf(l,_,T),Ex(l,T,_),YI(l,T),e!==void 0&&X8(T,this.ngContentSelectors,e),x=Po(T.index,_),_[Qi]=x[Qi],Fx(l,_,null);}catch(T){throw x!==null&&ry(x),ry(_),T;}finally{Vt(23),gx();}return new Cy(this.componentType,_);}finally{at(o);}}},Cy=class extends O8{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e){super(),this._rootLView=e,this._tNode=ax(e[Ze],Vi),this.location=Jc(this._tNode,e),this.instance=Po(this._tNode.index,e)[Qi],this.hostView=this.changeDetectorRef=new em(e,void 0,!1),this.componentType=n;}setInput(n,e){let i=this._tNode;if(this.previousInputValues??=new Map(),this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=Px(i,r[Ze],r,n,e);this.previousInputValues.set(n,e);let a=Po(i.index,r);Bx(a,1);}get injector(){return new cl(this._tNode,this._rootLView);}destroy(){this.hostView.destroy();}onDestroy(n){this.hostView.onDestroy(n);}};function X8(t,n,e){let i=t.projection=[];for(let r=0;r<n.length;r++){let o=e[r];i.push(o!=null&&o.length?Array.from(o):null);}}var Dt=(()=>{class t{static __NG_ELEMENT_ID__=J8;}return t;})();function J8(){let t=Mn();return KI(t,Te());}var eB=Dt,QI=class extends eB{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i;}get element(){return Jc(this._hostTNode,this._hostLView);}get injector(){return new cl(this._hostTNode,this._hostLView);}get parentInjector(){let n=bx(this._hostTNode,this._hostLView);if(TS(n)){let e=xf(n,this._hostLView),i=yf(n),r=e[Ze].data[i+8];return new cl(r,e);}else return new cl(null,this._hostLView);}clear(){for(;this.length>0;)this.remove(this.length-1);}get(n){let e=xM(this._lContainer);return e!==null&&e[n]||null;}get length(){return this._lContainer.length-En;}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=Uc(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,$c(this._hostTNode,a)),s;}createComponent(n,e,i,r,o){let a=n&&!N6(n),s;if(a)s=e;else{let x=e||{};s=x.index,i=x.injector,r=x.projectableNodes,o=x.environmentInjector||x.ngModuleRef;}let l=a?n:new bl(ws(n)),c=i||this.parentInjector;if(!o&&l.ngModule==null){let T=(a?c:this.parentInjector).get(Ei,null);T&&(o=T);}let h=ws(l.componentType??{}),g=Uc(this._lContainer,h?.id??null),b=g?.firstChild??null,_=l.create(c,r,b,o);return this.insertImpl(_.hostView,s,$c(this._hostTNode,g)),_;}insert(n,e){return this.insertImpl(n,e,!0);}insertImpl(n,e,i){let r=n._lView;if(H6(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[kn],c=new QI(l,l[tr],l[kn]);c.detach(c.indexOf(n));}}let o=this._adjustIndex(e),a=this._lContainer;return dm(a,r,o,i),n.attachToViewContainerRef(),ZM(Ov(a),o,n),n;}move(n,e){return this.insert(n,e);}indexOf(n){let e=xM(this._lContainer);return e!==null?e.indexOf(n):-1;}remove(n){let e=this._adjustIndex(n,-1),i=Ju(this._lContainer,e);i&&(hf(Ov(this._lContainer),e),Jf(i[Ze],i));}detach(n){let e=this._adjustIndex(n,-1),i=Ju(this._lContainer,e);return i&&hf(Ov(this._lContainer),e)!=null?new em(i):null;}_adjustIndex(n,e=0){return n??this.length+e;}};function xM(t){return t[_f];}function Ov(t){return t[_f]||(t[_f]=[]);}function KI(t,n){let e,i=n[t.index];return Ha(i)?e=i:(e=jI(i,n,null,t),n[t.index]=e,Ax(n,e)),iB(e,n,t,i),new QI(e,t,n);}function tB(t,n){let e=t[si],i=e.createComment(""),r=Lo(n,t),o=e.parentNode(r);return kf(e,o,i,e.nextSibling(r),!1),i;}var iB=oB,nB=()=>!1;function rB(t,n,e){return nB(t,n,e);}function oB(t,n,e,i){if(t[pl])return;let r;e.type&8?r=Oo(i):r=tB(n,e),t[pl]=r;}var wy=class t{queryList;matches=null;constructor(n){this.queryList=n;}clone(){return new t(this.queryList);}setDirty(){this.queryList.setDirty();}},Dy=class t{queries;constructor(n=[]){this.queries=n;}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){let a=e.getByIndex(o),s=this.queries[a.indexInDeclarationView];r.push(s.clone());}return new t(r);}return null;}insertView(n){this.dirtyQueriesWithMatches(n);}detachView(n){this.dirtyQueriesWithMatches(n);}finishViewCreation(n){this.dirtyQueriesWithMatches(n);}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)$x(n,e).matches!==null&&this.queries[e].setDirty();}},If=class{flags;read;predicate;constructor(n,e,i=null){this.flags=e,this.read=i,typeof n=="string"?this.predicate=dB(n):this.predicate=n;}},Ey=class t{queries;constructor(n=[]){this.queries=n;}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e);}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n);}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){let r=e!==null?e.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,e!==null?e.push(o):e=[o]);}return e!==null?new t(e):null;}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e);}getByIndex(n){return this.queries[n];}get length(){return this.queries.length;}track(n){this.queries.push(n);}},ky=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(n,e=-1){this.metadata=n,this._declarationNodeIndex=e;}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e);}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1);}template(n,e){this.elementStart(n,e);}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new t(this.metadata)):null;}isApplyingToNode(n){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,i=n.parent;for(;i!==null&&i.type&8&&i.index!==e;)i=i.parent;return e===(i!==null?i.index:-1);}return this._appliesToNextNode;}matchTNode(n,e){let i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){let o=i[r];this.matchTNodeWithReadOption(n,e,aB(e,o)),this.matchTNodeWithReadOption(n,e,lf(e,n,o,!1,!1));}else i===st?e.type&4&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,lf(e,n,i,!1,!1));}matchTNodeWithReadOption(n,e,i){if(i!==null){let r=this.metadata.read;if(r!==null){if(r===J||r===Dt||r===st&&e.type&4)this.addMatch(e.index,-2);else{let o=lf(e,n,r,!1,!1);o!==null&&this.addMatch(e.index,o);}}else this.addMatch(e.index,i);}}addMatch(n,e){this.matches===null?this.matches=[n,e]:this.matches.push(n,e);}};function aB(t,n){let e=t.localNames;if(e!==null){for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];}return null;}function sB(t,n){return t.type&11?Jc(t,n):t.type&4?ig(t,n):null;}function lB(t,n,e,i){return e===-1?sB(n,t):e===-2?cB(t,n,i):Zu(t,t[Ze],e,n);}function cB(t,n,e){if(e===J)return Jc(n,t);if(e===st)return ig(n,t);if(e===Dt)return KI(n,t);}function ZI(t,n,e,i){let r=n[Va].queries[i];if(r.matches===null){let o=t.data,a=e.matches,s=[];for(let l=0;a!==null&&l<a.length;l+=2){let c=a[l];if(c<0)s.push(null);else{let h=o[c];s.push(lB(n,h,a[l+1],e.metadata.read));}}r.matches=s;}return r.matches;}function My(t,n,e,i){let r=t.queries.getByIndex(e),o=r.matches;if(o!==null){let a=ZI(t,n,r,e);for(let s=0;s<o.length;s+=2){let l=o[s];if(l>0)i.push(a[s/2]);else{let c=o[s+1],h=n[-l];for(let g=En;g<h.length;g++){let b=h[g];b[ul]===b[kn]&&My(b[Ze],b,c,i);}if(h[jc]!==null){let g=h[jc];for(let b=0;b<g.length;b++){let _=g[b];My(_[Ze],_,c,i);}}}}}return i;}function Hx(t,n){return t[Va].queries[n].queryList;}function XI(t,n,e){let i=new pn((e&4)===4);return q6(t,n,i,i.destroy),(n[Va]??=new Dy()).queries.push(new wy(i))-1;}function JI(t,n,e){let i=Kt();return i.firstCreatePass&&(tT(i,new If(t,n,e),-1),(n&2)===2&&(i.staticViewQueries=!0)),XI(i,Te(),n);}function eT(t,n,e,i){let r=Kt();if(r.firstCreatePass){let o=Mn();tT(r,new If(n,e,i),o.index),uB(r,t),(e&2)===2&&(r.staticContentQueries=!0);}return XI(r,Te(),e);}function dB(t){return t.split(",").map(n=>n.trim());}function tT(t,n,e){t.queries===null&&(t.queries=new Ey()),t.queries.track(new ky(n,e));}function uB(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n);}function $x(t,n){return t.queries.getByIndex(n);}function iT(t,n){let e=t[Ze],i=$x(e,n);return i.crossesNgTemplate?My(e,t,n,[]):ZI(e,t,i,n);}function nT(t,n,e){let i,r=vh(()=>{i._dirtyCounter();let o=mB(i,t);if(n&&o===void 0)throw new X(-951,!1);return o;});return i=r[Qn],i._dirtyCounter=Zi(0),i._flatValue=void 0,r;}function rT(t){return nT(!0,!1,t);}function oT(t){return nT(!0,!0,t);}function aT(t,n){let e=t[Qn];e._lView=Te(),e._queryIndex=n,e._queryList=Hx(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1));}function mB(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[$e]&4)return n?void 0:zn;let r=Hx(e,i),o=iT(e,i);return r.reset(o,qS),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue;}function CM(t,n){return rT(n);}function pB(t,n){return oT(n);}var um=(CM.required=pB,CM);function wM(t,n){return rT(n);}function hB(t,n){return oT(n);}var sT=(wM.required=hB,wM);var Ba=class{},Ux=class{};var Sy=class extends Ba{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Sf(this);constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;let o=eS(n);this._bootstrapComponents=bI(o.bootstrap),this._r3Injector=zS(n,e,[{provide:Ba,useValue:this},{provide:ng,useValue:this.componentFactoryResolver},...i],Xn(n),new Set(["environment"])),r&&this.resolveInjectorInitializers();}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType);}get injector(){return this._r3Injector;}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null;}onDestroy(n){this.destroyCbs.push(n);}},Iy=class extends Ux{moduleType;constructor(n){super(),this.moduleType=n;}create(n){return new Sy(this.moduleType,n,[]);}};var Tf=class extends Ba{injector;componentFactoryResolver=new Sf(this);instance=null;constructor(n){super();let e=new Qu([...n.providers,{provide:Ba,useValue:this},{provide:ng,useValue:this.componentFactoryResolver}],n.parent||Bf(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(n){this.injector.onDestroy(n);}};function mm(t,n,e=null){return new Tf({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector;}var fB=(()=>{class t{_injector;cachedInjectors=new Map();constructor(e){this._injector=e;}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=iS(!1,e.type),r=i.length>0?mm([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r);}return this.cachedInjectors.get(e);}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy();}finally{this.cachedInjectors.clear();}}static ɵprov=P({token:t,providedIn:"environment",factory:()=>new t(te(Ei))});}return t;})();function E(t){return im(()=>{let n=lT(t),e=ze(B({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===YS.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(fB).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Fo.Emulated,styles:t.styles||zn,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&jo("NgStandalone"),cT(e);let i=t.dependencies;return e.directiveDefs=DM(i,!1),e.pipeDefs=DM(i,!0),e.id=yB(e),e;});}function gB(t){return ws(t)||tS(t);}function _B(t){return t!==null;}function re(t){return im(()=>({type:t.type,bootstrap:t.bootstrap||zn,declarations:t.declarations||zn,imports:t.imports||zn,exports:t.exports||zn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}));}function bB(t,n){if(t==null)return Ao;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=Zf.None,l=null),e[o]=[i,s,l],n[o]=a;}return e;}function vB(t){if(t==null)return Ao;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n;}function z(t){return im(()=>{let n=lT(t);return cT(n),n;});}function qx(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null};}function lT(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||Ao,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||zn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:bB(t.inputs,n),outputs:vB(t.outputs),debugInfo:null};}function cT(t){t.features?.forEach(n=>n(t));}function DM(t,n){if(!t)return null;let e=n?k6:gB;return()=>(typeof t=="function"?t():t).map(i=>e(i)).filter(_B);}function yB(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n;}function xB(t){return Object.getPrototypeOf(t.prototype).constructor;}function W(t){let n=xB(t.type),e=!0,i=[t];for(;n;){let r;if(Ro(t))r=n.ɵcmp||n.ɵdir;else{if(n.ɵcmp)throw new X(903,!1);r=n.ɵdir;}if(r){if(e){i.push(r);let a=t;a.inputs=Pv(t.inputs),a.declaredInputs=Pv(t.declaredInputs),a.outputs=Pv(t.outputs);let s=r.hostBindings;s&&kB(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&DB(t,l),c&&EB(t,c),CB(t,r),r6(t.outputs,r.outputs),Ro(r)&&r.data.animation){let h=t.data;h.animation=(h.animation||[]).concat(r.data.animation);}}let o=r.features;if(o)for(let a=0;a<o.length;a++){let s=o[a];s&&s.ngInherit&&s(t),s===W&&(e=!1);}}n=Object.getPrototypeOf(n);}wB(i);}function CB(t,n){for(let e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;let i=n.inputs[e];i!==void 0&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e]);}}function wB(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Hc(r.hostAttrs,e=Hc(e,r.hostAttrs));}}function Pv(t){return t===Ao?{}:t===zn?[]:t;}function DB(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r);}:t.viewQuery=n;}function EB(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o);}:t.contentQueries=n;}function kB(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r);}:t.hostBindings=n;}function dT(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.findHostDirectiveDefs=uT,e.hostDirectives=i?t.map(Ty):[t]):i?e.hostDirectives.unshift(...t.map(Ty)):e.hostDirectives.unshift(t);};return n.ngInherit=!0,n;}function uT(t,n,e){if(t.hostDirectives!==null)for(let i of t.hostDirectives)if(typeof i=="function"){let r=i();for(let o of r)EM(Ty(o),n,e);}else EM(i,n,e);}function EM(t,n,e){let i=tS(t.directive);MB(i.declaredInputs,t.inputs),uT(i,n,e),e.set(i,t),n.push(i);}function Ty(t){return typeof t=="function"?{directive:mn(t),inputs:Ao,outputs:Ao}:{directive:mn(t.directive),inputs:kM(t.inputs),outputs:kM(t.outputs)};}function kM(t){if(t===void 0||t.length===0)return Ao;let n={};for(let e=0;e<t.length;e+=2)n[t[e]]=t[e+1];return n;}function MB(t,n){for(let e in n)if(n.hasOwnProperty(e)){let i=n[e],r=t[e];t[i]=r;}}function mT(t){return Wx(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1;}function SB(t,n){if(Arr��ay.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{let e=t[Symbol.iterator](),i;for(;!(i=e.next()).done;)n(i.value);}}function Wx(t){return t!==null&&(typeof t=="function"||typeof t=="object");}function rg(t,n,e){return t[n]=e;}function IB(t,n){return t[n];}function gr(t,n,e){let i=t[n];return Object.is(i,e)?!1:(t[n]=e,!0);}function Gx(t,n,e,i){let r=gr(t,n,e);return gr(t,n+1,i)||r;}function pT(t,n,e,i,r){let o=Gx(t,n,e,i);return gr(t,n+2,r)||o;}function TB(t,n,e,i,r,o,a,s,l){let c=n.consts,h=rd(n,t,4,a||null,s||null);ux()&&jx(n,e,h,Ds(c,l),Ox),h.mergedAttrs=Hc(h.mergedAttrs,h.attrs),_x(n,h);let g=h.tView=Ix(2,h,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return n.queries!==null&&(n.queries.template(n,h),g.queries=n.queries.embeddedTView(h)),h;}function Af(t,n,e,i,r,o,a,s,l,c){let h=e+Vi,g=n.firstCreatePass?TB(h,n,t,i,r,o,a,s,l):n.data[h];Es(g,!1);let b=AB(n,t,g,e);Wf()&&eg(n,t,b,g),ed(b,t);let _=jI(b,t,b,g);return t[h]=_,Ax(t,_),rB(_,g,t),Hf(g)&&Xf(n,t,g),l!=null&&Rx(t,g,c),g;}function I(t,n,e,i,r,o,a,s){let l=Te(),c=Kt(),h=Ds(c.consts,o);return Af(l,c,t,n,e,i,r,h,a,s),I;}var AB=RB;function RB(t,n,e,i){return Gf(!0),n[si].createComment("");}var Yx=(()=>{class t{log(e){console.log(e);}warn(e){console.warn(e);}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"platform"});}return t;})();var Qx=new A(""),pm=new A(""),og=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(e,i,r){this._ngZone=e,this.registry=i,Kx||(OB(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone");});}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1;}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady();});}});});}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks;}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb();}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(e)?(clearTimeout(i.timeoutId),!1):!0);}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[];}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e();},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r});}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady();}registerApplication(e){this.registry.registerApplication(e,this);}unregisterApplication(e){this.registry.unregisterApplication(e);}findProviders(e,i,r){return[];}static ɵfac=function(i){return new(i||t)(te(ae),te(ag),te(pm));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})(),ag=(()=>{class t{_applications=new Map();registerApplication(e,i){this._applications.set(e,i);}unregisterApplication(e){this._applications.delete(e);}unregisterAllApplications(){this._applications.clear();}getTestability(e){return this._applications.get(e)||null;}getAllTestabilities(){return Array.from(this._applications.values());}getAllRootElements(){return Array.from(this._applications.keys());}findTestabilityInTree(e,i=!0){return Kx?.findTestabilityInTree(this,e,i)??null;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"platform"});}return t;})();function OB(t){Kx=t;}var Kx,hT=(()=>{class t{static ɵprov=P({token:t,providedIn:"root",factory:()=>new Ay()});}return t;})(),Ay=class{queuedEffectCount=0;queues=new Map();schedule(n){this.enqueue(n);}remove(n){let e=n.zone,i=this.queues.get(e);i.has(n)&&(i.delete(n),this.queuedEffectCount--);}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set());let i=this.queues.get(e);i.has(n)||(this.queuedEffectCount++,i.add(n));}flush(){for(;this.queuedEffectCount>0;)for(let[n,e]of this.queues)n===null?this.flushQueue(e):n.run(()=>this.flushQueue(e));}flushQueue(n){for(let e of n)n.delete(e),this.queuedEffectCount--,e.run();}};function Ms(t){return!!t&&typeof t.then=="function";}function Zx(t){return!!t&&typeof t.subscribe=="function";}var fT=new A("");function hm(t){return Wc([{provide:fT,multi:!0,useValue:t}]);}var gT=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i;});appInits=p(fT,{optional:!0})??[];injector=p(Se);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=er(this.injector,r);if(Ms(o))e.push(o);else if(Zx(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l});});e.push(a);}}let i=()=>{this.done=!0,this.resolve();};Promise.all(e).then(()=>{i();}).catch(r=>{this.reject(r);}),e.length===0&&i(),this.initialized=!0;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),sg=new A("");function PB(){lv(()=>{throw new X(600,!1);});}function FB(t){return t.isBoundToModule;}var NB=10;var Jn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(A5);afterRenderManager=p(iI);zonelessEnabled=p(vx);rootEffectScheduler=p(hT);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set();afterTick=new H();get allViews(){return[...this.externalTestViews.keys(),...this._views];}get destroyed(){return this._destroyed;}componentTypes=[];components=[];isStable=p($a).hasPendingTasks.pipe(ue(e=>!e));constructor(){p(td,{optional:!0});}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i();}});}).finally(()=>{e.unsubscribe();});}_injector=p(Ei);_rendererFactory=null;get injector(){return this._injector;}bootstrap(e,i){return this.bootstrapImpl(e,i);}bootstrapImpl(e,i,r=Se.NULL){Vt(10);let o=e instanceof qI;if(!this._injector.get(gT).done){let _="";throw new X(405,_);}let s;o?s=e:s=this._injector.get(ng).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let l=FB(s)?void 0:this._injector.get(Ba),c=i||s.selector,h=s.create(r,[],c,l),g=h.location.nativeElement,b=h.injector.get(Qx,null);return b?.registerApplication(g),h.onDestroy(()=>{this.detachView(h.hostView),cf(this.components,h),b?.unregisterApplication(g);}),this._loadComponent(h),Vt(11,h),h;}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){Vt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(wx.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw new X(101,!1);let e=at(null);try{this._runningTick=!0,this.synchronize();}catch(i){this.internalErrorHandler(i);}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,at(e),this.afterTick.next(),Vt(13);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Fi,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++<NB;)Vt(14),this.synchronizeOnce(),Vt(15);}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let e=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i,notifyErrorHandler:r}of this.allViews)LB(i,r,e,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return;}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews();}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:e})=>$f(e))){this.dirtyFlags|=2;return;}else this.dirtyFlags&=-8;}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this);}detachView(e){let i=e;cf(this._views,i),i.detachFromAppRef();}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(sg,[]).forEach(r=>r(e));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy());}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[];}}onDestroy(e){return this._destroyListeners.push(e),()=>cf(this._destroyListeners,e);}destroy(){if(this._destroyed)throw new X(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy();}get viewCount(){return this._views.length;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function cf(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1);}function LB(t,n,e,i){if(!e&&!$f(t))return;LI(t,n,e&&!i?0:1);}function ee(t,n,e,i){let r=Te(),o=xl();if(gr(r,o,n)){let a=Kt(),s=Zc();Gz(s,r,t,n,e,i);}return ee;}function Xx(t,n,e,i){return gr(t,xl(),e)?n+To(e)+i:fn;}function Jx(t,n,e,i,r,o){let a=xS(),s=Gx(t,a,e,r);return Uf(2),s?n+To(e)+i+To(r)+o:fn;}function VB(t,n,e,i,r,o,a,s){let l=xS(),c=pT(t,l,e,r,a);return Uf(3),c?n+To(e)+i+To(r)+o+To(a)+s:fn;}function rf(t,n){return t<<17|n<<2;}function vl(t){return t>>17&32767;}function zB(t){return(t&2)==2;}function BB(t,n){return t&131071|n<<17;}function Ry(t){return t|2;}function qc(t){return(t&131068)>>2;}function Fv(t,n){return t&-131069|n<<2;}function jB(t){return(t&1)===1;}function Oy(t){return t|1;}function HB(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=vl(a),l=qc(a);t[i]=e;let c=!1,h;if(Array.isArray(e)){let g=e;h=g[1],(h===null||rm(g,h)>0)&&(c=!0);}else h=e;if(r){if(l!==0){let b=vl(t[s+1]);t[i+1]=rf(b,s),b!==0&&(t[b+1]=Fv(t[b+1],i)),t[s+1]=BB(t[s+1],i);}else t[i+1]=rf(s,0),s!==0&&(t[s+1]=Fv(t[s+1],i)),s=i;}else t[i+1]=rf(l,0),s===0?s=i:t[l+1]=Fv(t[l+1],i),l=i;c&&(t[i+1]=Ry(t[i+1])),MM(t,h,i,!0),MM(t,h,i,!1),$B(n,h,t,i,o),a=rf(s,l),o?n.classBindings=a:n.styleBindings=a;}function $B(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&rm(o,n)>=0&&(e[i+1]=Oy(e[i+1]));}function MM(t,n,e,i){let r=t[e+1],o=n===null,a=i?vl(r):qc(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];UB(l,n)&&(s=!0,t[a+1]=i?Oy(c):Ry(c)),a=i?vl(c):qc(c);}s&&(t[e+1]=i?Ry(r):Oy(r));}function UB(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?rm(t,n)>=0:!1;}var to={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qB(t){return t.substring(to.key,to.keyEnd);}function WB(t){return GB(t),_T(t,bT(t,0,to.textEnd));}function _T(t,n){let e=to.textEnd;return e===n?-1:(n=to.keyEnd=YB(t,to.key=n,e),bT(t,n,e));}function GB(t){to.key=0,to.keyEnd=0,to.value=0,to.valueEnd=0,to.textEnd=t.length;}function bT(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n;}function YB(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n;}function v(t,n,e){let i=Te(),r=xl();if(gr(i,r,n)){let o=Kt(),a=Zc();lm(o,a,i,t,n,i[si],e,!1);}return v;}function Py(t,n,e,i,r){Px(n,t,e,r?"class":"style",i);}function xi(t,n,e){return vT(t,n,e,!1),xi;}function Z(t,n){return vT(t,n,null,!0),Z;}function bt(t){tC(ej,eC,t,!0);}function eC(t,n){for(let e=WB(n);e>=0;e=_T(n,e))nm(t,qB(n),!0);}function vT(t,n,e,i){let r=Te(),o=Kt(),a=Uf(2);if(o.firstUpdatePass&&xT(o,t,a,i),n!==fn&&gr(r,a,n)){let s=o.data[Vo()];CT(o,s,r,r[si],t,r[a+1]=ij(n,e),i,a);}}function tC(t,n,e,i){let r=Kt(),o=Uf(2);r.firstUpdatePass&&xT(r,null,o,i);let a=Te();if(e!==fn&&gr(a,o,e)){let s=r.data[Vo()];if(wT(s,i)&&!yT(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=jv(l,e||"")),Py(r,s,a,e,i);}else tj(r,s,a,a[si],a[o+1],a[o+1]=JB(t,n,e),i,o);}}function yT(t,n){return n>=t.expandoStartIndex;}function xT(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[Vo()],a=yT(t,e);wT(o,i)&&n===null&&!a&&(n=!1),n=QB(r,o,n,i),HB(r,o,n,e,a,i);}}function QB(t,n,e,i){let r=n5(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=Nv(null,t,n,e,i),e=tm(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=Nv(r,t,n,e,i),o===null){let l=KB(t,n,i);l!==void 0&&Array.isArray(l)&&(l=Nv(null,t,n,l[1],i),l=tm(l,n.attrs,i),ZB(t,n,i,l));}else o=XB(t,n,i);}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e;}function KB(t,n,e){let i=e?n.classBindings:n.styleBindings;if(qc(i)!==0)return t[vl(i)];}function ZB(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[vl(r)]=i;}function XB(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++){let a=t[o].hostAttrs;i=tm(i,a,e);}return tm(i,n.attrs,e);}function Nv(t,n,e,i,r){let o=null,a=e.directiveEnd,s=e.directiveStylingLast;for(s===-1?s=e.directiveStart:s++;s<a&&(o=n[s],i=tm(i,o.hostAttrs,r),o!==t);)s++;return t!==null&&(e.directiveStylingLast=s),i;}function tm(t,n,e){let i=e?1:2,r=-1;if(n!==null)for(let o=0;o<n.length;o++){let a=n[o];typeof a=="number"?r=a:r===i&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),nm(t,a,e?!0:n[++o]));}return t===void 0?null:t;}function JB(t,n,e){if(e==null||e==="")return zn;let i=[],r=Pr(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(i,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&t(i,o,r[o]);else typeof r=="string"&&n(i,r);return i;}function ej(t,n,e){let i=String(n);i!==""&&!i.includes(" ")&&nm(t,i,e);}function tj(t,n,e,i,r,o,a,s){r===fn&&(r=zn);let l=0,c=0,h=0<r.length?r[0]:null,g=0<o.length?o[0]:null;for(;h!==null||g!==null;){let b=l<r.length?r[l+1]:void 0,_=c<o.length?o[c+1]:void 0,x=null,T;h===g?(l+=2,c+=2,b!==_&&(x=g,T=_)):g===null||h!==null&&h<g?(l+=2,x=h):(c+=2,x=g,T=_),x!==null&&CT(t,n,e,i,x,T,a,s),h=l<r.length?r[l]:null,g=c<o.length?o[c]:null;}}function CT(t,n,e,i,r,o,a,s){if(!(n.type&3))return;let l=t.data,c=l[s+1],h=jB(c)?SM(l,n,e,r,qc(c),a):void 0;if(!Rf(h)){Rf(o)||zB(c)&&(o=SM(l,null,e,r,s,a));let g=hS(Vo(),e);u8(i,a,g,r,o);}}function SM(t,n,e,i,r,o){let a=n===null,s;for(;r>0;){let l=t[r],c=Array.isArray(l),h=c?l[1]:l,g=h===null,b=e[r+1];b===fn&&(b=g?zn:void 0);let _=g?kv(b,i):h===i?b:void 0;if(c&&!Rf(_)&&(_=kv(l,i)),Rf(_)&&(s=_,a))return s;let x=t[r+1];r=a?vl(x):qc(x);}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=kv(l,i));}return s;}function Rf(t){return t!==void 0;}function ij(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=Xn(Pr(t)))),t;}function wT(t,n){return(t.flags&(n?8:16))!==0;}function Nr(t,n,e){let i=Te(),r=Xx(i,t,n,e);tC(nm,eC,r,!0);}function DT(t,n,e,i,r){let o=Te(),a=Jx(o,t,n,e,i,r);tC(nm,eC,a,!0);}var Fy=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a);}else this.attach(i,o);}move(n,e){this.attach(e,this.detach(n));}};function Lv(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0;}function nj(t,n,e){let i,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=a&&o<=l;){let c=t.at(o),h=n[o],g=Lv(o,c,o,h,e);if(g!==0){g<0&&t.updateValue(o,h),o++;continue;}let b=t.at(a),_=n[l],x=Lv(a,b,l,_,e);if(x!==0){x<0&&t.updateValue(a,_),a--,l--;continue;}let T=e(o,c),L=e(a,b),q=e(o,h);if(Object.is(q,L)){let ie=e(l,_);Object.is(ie,T)?(t.swap(o,a),t.updateValue(a,_),l--,a--):t.move(a,o),t.updateValue(o,h),o++;continue;}if(i??=new Of(),r??=TM(t,o,a,e),Ny(t,i,o,q))t.updateValue(o,h),o++,a++;else if(r.has(q))i.set(T,t.detach(o)),a--;else{let ie=t.create(o,n[o]);t.attach(o,ie),o++,a++;}}for(;o<=l;)IM(t,i,e,o,n[o]),o++;}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=a;){let h=t.at(o),g=c.value,b=Lv(o,h,o,g,e);if(b!==0)b<0&&t.updateValue(o,g),o++,c=l.next();else{i??=new Of(),r??=TM(t,o,a,e);let _=e(o,g);if(Ny(t,i,o,_))t.updateValue(o,g),o++,a++,c=l.next();else if(!r.has(_))t.attach(o,t.create(o,g)),o++,a++,c=l.next();else{let x=e(o,h);i.set(x,t.detach(o)),a--;}}}for(;!c.done;)IM(t,i,e,t.length,c.value),c=l.next();}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(l=>{t.destroy(l);});}function Ny(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1;}function IM(t,n,e,i,r){if(Ny(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o);}}function TM(t,n,e,i){let r=new Set();for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r;}var Of=class{kvMap=new Map();_vMap=void 0;has(n){return this.kvMap.has(n);}delete(n){if(!this.has(n))return!1;let e=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0;}get(n){return this.kvMap.get(n);}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map());let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e);}else this.kvMap.set(n,e);}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e);}}};function Q(t,n){jo("NgControlFlow");let e=Te(),i=xl(),r=e[i]!==fn?e[i]:-1,o=r!==-1?Pf(e,Vi+r):void 0,a=0;if(gr(e,i,t)){let s=at(null);try{if(o!==void 0&&$I(o,a),t!==-1){let l=Vi+t,c=Pf(e,l),h=By(e[Ze],l),g=Uc(c,h.tView.ssrId),b=cm(e,h,n,{dehydratedView:g});dm(c,b,a,$c(h,g));}}finally{at(s);}}else if(o!==void 0){let s=HI(o,a);s!==void 0&&(s[Qi]=n);}}var Ly=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i;}get $count(){return this.lContainer.length-En;}};function ir(t){return t;}function Wa(t,n){return n;}var Vy=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i;}};function Ut(t,n,e,i,r,o,a,s,l,c,h,g,b){jo("NgControlFlow");let _=Te(),x=Kt(),T=l!==void 0,L=Te(),q=s?a.bind(L[fr][Qi]):a,ie=new Vy(T,q);L[Vi+t]=ie,Af(_,x,t+1,n,e,i,r,Ds(x.consts,o)),T&&Af(_,x,t+2,l,c,h,g,Ds(x.consts,b));}var zy=class extends Fy{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i;}get length(){return this.lContainer.length-En;}at(n){return this.getLView(n)[Qi].$implicit;}attach(n,e){let i=e[zc];this.needsIndexUpdate||=n!==this.length,dm(this.lContainer,e,n,$c(this.templateTNode,i));}detach(n){return this.needsIndexUpdate||=n!==this.length-1,rj(this.lContainer,n);}create(n,e){let i=Uc(this.lContainer,this.templateTNode.tView.ssrId),r=cm(this.hostLView,this.templateTNode,new Ly(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r;}destroy(n){Jf(n[Ze],n),this.operationsCounter?.recordDestroy();}updateValue(n,e){this.getLView(n)[Qi].$implicit=e;}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset();}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[Qi].$index=n;}getLView(n){return oj(this.lContainer,n);}};function qt(t){let n=at(null),e=Vo();try{let i=Te(),r=i[Ze],o=i[e],a=e+1,s=Pf(i,a);if(o.liveCollection===void 0){let c=By(r,a);o.liveCollection=new zy(s,i,c);}else o.liveCollection.reset();let l=o.liveCollection;if(nj(l,t,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let c=xl(),h=l.length===0;if(gr(i,c,h)){let g=e+2,b=Pf(i,g);if(h){let _=By(r,g),x=Uc(b,_.tView.ssrId),T=cm(i,_,void 0,{dehydratedView:x});dm(b,T,0,$c(_,x));}else $I(b,0);}}}finally{at(n);}}function Pf(t,n){return t[n];}function rj(t,n){return Ju(t,n);}function oj(t,n){return HI(t,n);}function By(t,n){return ax(t,n);}function m(t,n,e,i){let r=Te(),o=Kt(),a=Vi+t,s=r[si],l=o.firstCreatePass?GI(a,o,r,n,Ox,ux(),e,i):o.data[a],c=aj(o,r,l,s,n,t);r[a]=c;let h=Hf(l);return Es(l,!0),wI(s,c,l),!Lx(l)&&Wf()&&eg(o,r,c,l),(W6()===0||h)&&ed(c,r),G6(),h&&(Xf(o,r,l),Ex(o,l,r)),i!==null&&Rx(r,l),m;}function u(){let t=Mn();mx()?px():(t=t.parent,Es(t,!1));let n=t;Q6(n)&&K6(),Y6();let e=Kt();return e.firstCreatePass&&YI(e,n),n.classesWithoutHost!=null&&d5(n)&&Py(e,n,Te(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&u5(n)&&Py(e,n,Te(),n.stylesWithoutHost,!1),u;}function w(t,n,e,i){return m(t,n,e,i),u(),w;}var aj=(t,n,e,i,r,o)=>(Gf(!0),xI(i,r,s5()));function sj(t,n,e,i,r){let o=n.consts,a=Ds(o,i),s=rd(n,t,8,"ng-container",a);a!==null&&xy(s,a,!0);let l=Ds(o,r);return ux()&&jx(n,e,s,l,Ox),s.mergedAttrs=Hc(s.mergedAttrs,s.attrs),n.queries!==null&&n.queries.elementStart(n,s),s;}function Ce(t,n,e){let i=Te(),r=Kt(),o=t+Vi,a=r.firstCreatePass?sj(o,r,i,n,e):r.data[o];Es(a,!0);let s=lj(r,i,a,t);return i[o]=s,Wf()&&eg(r,i,s,a),ed(s,i),Hf(a)&&(Xf(r,i,a),Ex(r,a,i)),e!=null&&Rx(i,a),Ce;}function we(){let t=Mn(),n=Kt();return mx()?px():(t=t.parent,Es(t,!1)),n.firstCreatePass&&(_x(n,t),ox(t)&&n.queries.elementEnd(t)),we;}function Xt(t,n,e){return Ce(t,n,e),we(),Xt;}var lj=(t,n,e,i)=>(Gf(!0),Rz(n[si],""));function K(){return Te();}function ki(t,n,e){let i=Te(),r=xl();if(gr(i,r,n)){let o=Kt(),a=Zc();lm(o,a,i,t,n,i[si],e,!0);}return ki;}var sl=void 0;function cj(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5;}var dj=["en",[["a","p"],["AM","PM"],sl],[["AM","PM"],sl,sl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],sl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],sl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",sl,"{1} 'at' {0}",sl],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",cj],Vv={};function Lr(t){let n=uj(t),e=AM(n);if(e)return e;let i=n.split("-")[0];if(e=AM(i),e)return e;if(i==="en")return dj;throw new X(701,!1);}function AM(t){return t in Vv||(Vv[t]=un.ng&&un.ng.common&&un.ng.common.locales&&un.ng.common.locales[t]),Vv[t];}var Ni=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t;}(Ni||{});function uj(t){return t.toLowerCase().replace(/_/g,"-");}var Ff="en-US";var mj=Ff;function pj(t){typeof t=="string"&&(mj=t.toLowerCase().replace(/_/g,"-"));}function RM(t,n,e){return function i(r){if(r===Function)return e;let o=Yc(t)?Po(t.index,n):n;Bx(o,5);let a=n[Qi],s=OM(n,a,e,r),l=i.__ngNextListenerFn__;for(;l;)s=OM(n,a,l,r)&&s,l=l.__ngNextListenerFn__;return s;};}function OM(t,n,e,i){let r=at(null);try{return Vt(6,n,e),e(i)!==!1;}catch(o){return hj(t,o),!1;}finally{Vt(7,n,e),at(r);}}function hj(t,n){let e=t[Bc],i=e?e.get(Bn,null):null;i&&i.handleError(n);}function PM(t,n,e,i,r,o){let a=n[e],s=n[Ze],c=s.data[e].outputs[i],h=a[c],g=s.firstCreatePass?dx(s):null,b=cx(n),_=h.subscribe(o),x=b.length;b.push(o,_),g&&g.push(r,t.index,x,-(x+1));}var fj=(t,n,e)=>{};function S(t,n,e,i){let r=Te(),o=Kt(),a=Mn();return ET(o,r,r[si],a,t,n,i),S;}function gj(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let a=r[o];if(a===e&&r[o+1]===i){let s=n[gf],l=r[o+2];return s.length>l?s[l]:null;}typeof a=="string"&&(o+=2);}return null;}function ET(t,n,e,i,r,o,a){let s=Hf(i),c=t.firstCreatePass?dx(t):null,h=cx(n),g=!0;if(i.type&3||a){let b=Lo(i,n),_=a?a(b):b,x=h.length,T=a?q=>a(Oo(q[i.index])):i.index,L=null;if(!a&&s&&(L=gj(t,n,r,i.index)),L!==null){let q=L.__ngLastListenerFn__||L;q.__ngNextListenerFn__=o,L.__ngLastListenerFn__=o,g=!1;}else{o=RM(i,n,o),fj(_,r,o);let q=e.listen(_,r,o);h.push(o,q),c&&c.push(r,T,x,x+1);}}else o=RM(i,n,o);if(g){let b=i.outputs?.[r],_=i.hostDirectiveOutputs?.[r];if(_&&_.length)for(let x=0;x<_.length;x+=2){let T=_[x],L=_[x+1];PM(i,n,T,L,r,o);}if(b&&b.length)for(let x of b)PM(i,n,x,r,r,o);}}function y(t=1){return o5(t);}function _j(t,n){let e=null,i=wz(t);for(let r=0;r<n.length;r++){let o=n[r];if(o==="*"){e=r;continue;}if(i===null?yI(t,o,!0):kz(i,o))return r;}return e;}function De(t){let n=Te()[fr][tr];if(!n.projection){let e=t?t.length:1,i=n.projection=w6(e,null),r=i.slice(),o=n.child;for(;o!==null;){if(o.type!==128){let a=t?_j(o,t):0;a!==null&&(r[a]?r[a].projectionNext=o:i[a]=o,r[a]=o);}o=o.next;}}}function le(t,n=0,e,i,r,o){let a=Te(),s=Kt(),l=i?t+1:null;l!==null&&Af(a,s,l,i,r,o,null,e);let c=rd(s,Vi+t,16,null,e||null);c.projection===null&&(c.projection=n),px();let g=!a[zc]||bS();a[fr][tr].projection[c.projection]===null&&l!==null?bj(a,s,l):g&&!Lx(c)&&c8(s,a,c);}function bj(t,n,e){let i=Vi+e,r=n.data[i],o=t[i],a=Uc(o,r.tView.ssrId),s=cm(t,r,void 0,{dehydratedView:a});dm(o,s,0,$c(r,a));}function G(t,n,e){return nr(t,"",n,"",e),G;}function nr(t,n,e,i,r){let o=Te(),a=Xx(o,n,e,i);if(a!==fn){let s=Kt(),l=Zc();lm(s,l,o,t,a,o[si],r,!1);}return nr;}function iC(t,n,e,i,r,o,a){let s=Te(),l=Jx(s,n,e,i,r,o);if(l!==fn){let c=Kt(),h=Zc();lm(c,h,s,t,l,s[si],a,!1);}return iC;}function Ee(t,n,e,i){eT(t,n,e,i);}function $(t,n,e){JI(t,n,e);}function R(t){let n=Te(),e=Kt(),i=hx();qf(i+1);let r=$x(e,i);if(t.dirty&&j6(n)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=iT(n,i);t.reset(o,qS),t.notifyOnChanges();}return!0;}return!1;}function O(){return Hx(Te(),hx());}function kT(t,n,e,i,r){aT(n,eT(t,e,i,r));}function fm(t,n,e,i){aT(t,JI(n,e,i));}function ad(t=1){qf(hx()+t);}function MT(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i;}function We(t){let n=X6();return sx(n,Vi+t);}function f(t,n=""){let e=Te(),i=Kt(),r=t+Vi,o=i.firstCreatePass?rd(i,r,1,n,null):i.data[r],a=vj(i,e,o,n,t);e[r]=a,Wf()&&eg(i,e,a,o),Es(o,!1);}var vj=(t,n,e,i,r)=>(Gf(!0),Tz(n[si],i));function C(t){return N("",t,""),C;}function N(t,n,e){let i=Te(),r=Xx(i,t,n,e);return r!==fn&&nC(i,Vo(),r),N;}function br(t,n,e,i,r){let o=Te(),a=Jx(o,t,n,e,i,r);return a!==fn&&nC(o,Vo(),a),br;}function gm(t,n,e,i,r,o,a){let s=Te(),l=VB(s,t,n,e,i,r,o,a);return l!==fn&&nC(s,Vo(),l),gm;}function nC(t,n,e){let i=hS(n,t);Az(t[si],i,e);}function mi(t,n,e){WS(n)&&(n=n());let i=Te(),r=xl();if(gr(i,r,n)){let o=Kt(),a=Zc();lm(o,a,i,t,n,i[si],e,!1);}return mi;}function Ci(t,n){let e=WS(t);return e&&t.set(n),e;}function pi(t,n){let e=Te(),i=Kt(),r=Mn();return ET(i,e,e[si],r,t,n),pi;}var yj={};function rC(t){let n=Kt(),e=Te(),i=t+Vi,r=rd(n,i,128,null,null);return Es(r,!1),MT(n,e,i,yj),rC;}function xj(t,n,e){let i=Kt();if(i.firstCreatePass){let r=Ro(t);jy(e,i.data,i.blueprint,r,!0),jy(n,i.data,i.blueprint,r,!1);}}function jy(t,n,e,i,r){if(t=mn(t),Array.isArray(t))for(let o=0;o<t.length;o++)jy(t[o],n,e,i,r);else{let o=Kt(),a=Te(),s=Mn(),l=Vc(t)?t:mn(t.provide),c=oS(t),h=s.providerIndexes&1048575,g=s.directiveStart,b=s.providerIndexes>>20;if(Vc(t)||!t.multi){let _=new gl(c,r,D),x=Bv(l,n,r?h:h+b,g);x===-1?(Jv(wf(s,a),o,l),zv(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(_),a.push(_)):(e[x]=_,a[x]=_);}else{let _=Bv(l,n,h+b,g),x=Bv(l,n,h,h+b),T=_>=0&&e[_],L=x>=0&&e[x];if(r&&!L||!r&&!T){Jv(wf(s,a),o,l);let q=Dj(r?wj:Cj,e.length,r,i,c);!r&&L&&(e[x].providerFactory=q),zv(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(q),a.push(q);}else{let q=ST(e[r?x:_],c,!r&&i);zv(o,t,_>-1?_:x,q);}!r&&i&&L&&e[x].componentProviders++;}}}function zv(t,n,e,i){let r=Vc(n),o=T6(n);if(r||o){let l=(o?mn(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let h=c.indexOf(e);h===-1?c.push(e,[i,l]):c[h+1].push(i,l);}else c.push(e,l);}}}function ST(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1;}function Bv(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1;}function Cj(t,n,e,i){return Hy(this.multi,[]);}function wj(t,n,e,i){let r=this.multi,o;if(this.providerFactory){let a=this.providerFactory.componentProviders,s=Zu(e,e[Ze],this.providerFactory.index,i);o=s.slice(0,a),Hy(r,o);for(let l=a;l<s.length;l++)o.push(s[l]);}else o=[],Hy(r,o);return o;}function Hy(t,n){for(let e=0;e<t.length;e++){let i=t[e];n.push(i());}return n;}function Dj(t,n,e,i,r){let o=new gl(t,e,D);return o.multi=[],o.index=n,o.componentProviders=0,ST(o,r,i&&!e),o;}function be(t,n=[]){return e=>{e.providersResolver=(i,r)=>xj(i,r?r(t):t,n);};}function Sn(t,n,e){let i=Kc()+t,r=Te();return r[i]===fn?rg(r,i,e?n.call(e):n()):IB(r,i);}function Ue(t,n,e,i){return TT(Te(),Kc(),t,n,e,i);}function Dl(t,n,e,i,r){return AT(Te(),Kc(),t,n,e,i,r);}function IT(t,n,e,i,r,o){return Ej(Te(),Kc(),t,n,e,i,r,o);}function oC(t,n){let e=t[n];return e===fn?void 0:e;}function TT(t,n,e,i,r,o){let a=n+e;return gr(t,a,r)?rg(t,a+1,o?i.call(o,r):i(r)):oC(t,a+1);}function AT(t,n,e,i,r,o,a){let s=n+e;return Gx(t,s,r,o)?rg(t,s+2,a?i.call(a,r,o):i(r,o)):oC(t,s+2);}function Ej(t,n,e,i,r,o,a,s){let l=n+e;return pT(t,l,r,o,a)?rg(t,l+3,s?i.call(s,r,o,a):i(r,o,a)):oC(t,l+3);}function Ss(t,n){let e=Kt(),i,r=t+Vi;e.firstCreatePass?(i=kj(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=dl(i.type,!0)),a,s=Zn(D);try{let l=Cf(!1),c=o();return Cf(l),MT(e,Te(),r,c),c;}finally{Zn(s);}}function kj(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i;}}function lg(t,n,e){let i=t+Vi,r=Te(),o=sx(r,i);return RT(r,i)?TT(r,Kc(),n,o.transform,e,o):o.transform(e);}function cg(t,n,e,i){let r=t+Vi,o=Te(),a=sx(o,r);return RT(o,r)?AT(o,Kc(),n,a.transform,e,i,a):a.transform(e,i);}function RT(t,n){return t[Ze].data[n].pure;}function Vr(t,n){return ig(t,n);}var yl=class{full;major;minor;patch;constructor(n){this.full=n;let e=n.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".");}},aC=new yl("19.2.7"),$y=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e;}},dg=(()=>{class t{compileModuleSync(e){return new Iy(e);}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e));}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=eS(e),o=bI(r.declarations).reduce((a,s)=>{let l=ws(s);return l&&a.push(new bl(l)),a;},[]);return new $y(i,o);}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e));}clearCache(){}clearCacheFor(e){}getModuleId(e){}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var Mj=(()=>{class t{zone=p(ae);changeDetectionScheduler=p(_l);applicationRef=p(Jn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick();});}}));}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe();}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function Sj({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new ae(ze(B({},Ij()),{scheduleInRootZone:e})),[{provide:ae,useFactory:t},{provide:Lc,multi:!0,useFactory:()=>{let i=p(Mj,{optional:!0});return()=>i.initialize();}},{provide:Lc,multi:!0,useFactory:()=>{let i=p(Tj);return()=>{i.initialize();};}},n===!0?{provide:jS,useValue:!0}:[],{provide:HS,useValue:e??BS}];}function Ij(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1};}var Tj=(()=>{class t{subscription=new ve();initialized=!1;zone=p(ae);pendingTasks=p($a);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=nul��l);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),e??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var Aj=(()=>{class t{appRef=p(Jn);taskService=p($a);ngZone=p(ae);zonelessEnabled=p(vx);tracing=p(td,{optional:!0});disableScheduling=p(jS,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ve();angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ef):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(HS,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup();})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup();})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof ny||!this.zoneIsDefined);}notify(e){if(!this.zonelessEnabled&&e===5)return;let i=!1;switch(e){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,i=!0;break;}case 12:{this.appRef.dirtyFlags|=16,i=!0;break;}case 13:{this.appRef.dirtyFlags|=2,i=!0;break;}case 11:{i=!0;break;}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8;}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let r=this.useMicrotaskScheduler?nM:$S;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()));}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ef+this.angularZoneId));}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return;}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(i){throw this.taskService.remove(e),i;}finally{this.cleanup();}this.useMicrotaskScheduler=!0,nM(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e);});}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e);}}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function Rj(){return typeof $localize<"u"&&$localize.locale||Ff;}var Is=new A("",{providedIn:"root",factory:()=>p(Is,dt.Optional|dt.SkipSelf)||Rj()});var Uy=new A(""),Oj=new A("");function qu(t){return!t.moduleRef;}function Pj(t){let n=qu(t)?t.r3Injector:t.moduleRef.injector,e=n.get(ae);return e.run(()=>{qu(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(Bn,null),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:o=>{i.handleError(o);}});}),qu(t)){let o=()=>n.destroy(),a=t.platformInjector.get(Uy);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o);});}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(Uy);a.add(o),t.moduleRef.onDestroy(()=>{cf(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o);});}return Nj(i,e,()=>{let o=n.get(gT);return o.runInitializers(),o.donePromise.then(()=>{let a=n.get(Is,Ff);if(pj(a||Ff),!n.get(Oj,!0))return qu(t)?n.get(Jn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(qu(t)){let l=n.get(Jn);return t.rootComponent!==void 0&&l.bootstrap(t.rootComponent),l;}else return Fj(t.moduleRef,t.allPlatformModules),t.moduleRef;});});});}function Fj(t,n){let e=t.injector.get(Jn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>e.bootstrap(i));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new X(-403,!1);n.push(t);}function Nj(t,n,e){try{let i=e();return Ms(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r;}):i;}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i;}}var df=null;function Lj(t=[],n){return Se.create({name:n,providers:[{provide:zf,useValue:"platform"},{provide:Uy,useValue:new Set([()=>df=null])},...t]});}function Vj(t=[]){if(df)return df;let n=Lj(t);return df=n,PB(),zj(n),n;}function zj(t){let n=t.get(Cx,null);er(t,()=>{n?.forEach(e=>e());});}var pe=(()=>{class t{static __NG_ELEMENT_ID__=Bj;}return t;})();function Bj(t){return jj(Mn(),Te(),(t&16)===16);}function jj(t,n,e){if(Yc(t)&&!e){let i=Po(t.index,n);return new em(i,i);}else if(t.type&175){let i=n[fr];return new em(i,n);}return null;}var qy=class{constructor(){}supports(n){return mT(n);}create(n){return new Wy(n);}},Hj=(t,n)=>n,Wy=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||Hj;}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e);}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex<FM(i,r,o)?e:i,s=FM(a,r,o),l=a.currentIndex;if(a===i)r--,i=i._nextRemoved;else if(e=e._next,a.previousIndex==null)r++;else{o||(o=[]);let c=s-r,h=l-r;if(c!=h){for(let b=0;b<c;b++){let _=b<o.length?o[b]:o[b]=0,x=_+b;h<=x&&x<c&&(o[b]=_+1);}let g=a.previousIndex;o[g]=h-c;}}s!==l&&n(a,s,l);}}forEachPreviousItem(n){let e;for(e=this._previousItHead;e!==null;e=e._nextPrevious)n(e);}forEachAddedItem(n){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)n(e);}forEachMovedItem(n){let e;for(e=this._movesHead;e!==null;e=e._nextMoved)n(e);}forEachRemovedItem(n){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)n(e);}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;e!==null;e=e._nextIdentityChange)n(e);}diff(n){if(n==null&&(n=[]),!mT(n))throw new X(900,!1);return this.check(n)?this:null;}onDestroy(){}check(n){this._reset();let e=this._itHead,i=!1,r,o,a;if(Array.isArray(n)){this.length=n.length;for(let s=0;s<this.length;s++)o=n[s],a=this._trackByFn(s,o),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,o,a,s),i=!0):(i&&(e=this._verifyReinsertion(e,o,a,s)),Object.is(e.item,o)||this._addIdentityChange(e,o)),e=e._next;}else r=0,SB(n,s=>{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++;}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty;}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null;}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null;}}_mismatch(n,e,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new Gy(e,i),o,r)),n;}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n;}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e;}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);}_reinsertAfter(n,e,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n;}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n;}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n;}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new Nf()),this._linkedRecords.put(n),n.currentIndex=i,n;}_remove(n){return this._addToRemovals(this._unlink(n));}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._prev=e,n;}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n;}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Nf()),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n;}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n;}},Gy=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,e){this.item=n,this.trackById=e;}},Yy=class{_head=null;_tail=null;add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n);}get(n,e){let i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null;}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null;}},Nf=class{map=new Map();put(n){let e=n.trackById,i=this.map.get(e);i||(i=new Yy(),this.map.set(e,i)),i.add(n);}get(n,e){let i=n,r=this.map.get(i);return r?r.get(n,e):null;}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n;}get isEmpty(){return this.map.size===0;}clear(){this.map.clear();}};function FM(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r;}var Qy=class{constructor(){}supports(n){return n instanceof Map||Wx(n);}create(){return new Ky();}},Ky=class{_records=new Map();_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null;}forEachItem(n){let e;for(e=this._mapHead;e!==null;e=e._next)n(e);}forEachPreviousItem(n){let e;for(e=this._previousMapHead;e!==null;e=e._nextPrevious)n(e);}forEachChangedItem(n){let e;for(e=this._changesHead;e!==null;e=e._nextChanged)n(e);}forEachAddedItem(n){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)n(e);}forEachRemovedItem(n){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)n(e);}diff(n){if(!n)n=new Map();else if(!(n instanceof Map||Wx(n)))throw new X(900,!1);return this.check(n)?this:null;}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{let o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o);}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null;}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty;}_insertBeforeOrAppend(n,e){if(n){let i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n;}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null;}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){let r=this._records.get(n);this._maybeAddToChanges(r,e);let o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r;}let i=new Zy(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i;}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null;}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n));}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n);}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n);}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i));}},Zy=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n;}};function NM(){return new Ho([new qy()]);}var Ho=(()=>{class t{factories;static ɵprov=P({token:t,providedIn:"root",factory:NM});constructor(e){this.factories=e;}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r);}return new t(e);}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||NM()),deps:[[t,new no(),new _r()]]};}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new X(901,!1);}}return t;})();function LM(){return new sC([new Qy()]);}var sC=(()=>{class t{static ɵprov=P({token:t,providedIn:"root",factory:LM});factories;constructor(e){this.factories=e;}static create(e,i){if(i){let r=i.factories.slice();e=e.concat(r);}return new t(e);}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||LM()),deps:[[t,new no(),new _r()]]};}find(e){let i=this.factories.find(r=>r.supports(e));if(i)return i;throw new X(901,!1);}}return t;})();var OT=(()=>{class t{constructor(e){}static ɵfac=function(i){return new(i||t)(te(Jn));};static ɵmod=re({type:t});static ɵinj=ne({});}return t;})();function PT(t){Vt(8);try{let{rootComponent:n,appProviders:e,platformProviders:i}=t,r=Vj(i),o=[Sj({}),{provide:_l,useExisting:Aj},...(e||[])],a=new Tf({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1});return Pj({r3Injector:a.injector,platformInjector:r,rootComponent:n});}catch(n){return Promise.reject(n);}finally{Vt(9);}}function U(t){return typeof t=="boolean"?t:t!=null&&t!=="false";}function ut(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n;}function rr(t){return uv(t);}function Ga(t,n){return vh(t,n?.equal);}var Xy=class{[Qn];constructor(n){this[Qn]=n;}destroy(){this[Qn].destroy();}};function _m(t,n){!n?.injector&&rx(_m);let e=n?.injector??p(Se),i=n?.manualCleanup!==!0?e.get(Xc):null,r,o=e.get(Dx,null,{optional:!0}),a=e.get(_l);return o!==null&&!n?.forceRoot?(r=qj(o.view,a,t),i instanceof Df&&i._lView===o.view&&(i=null)):r=Wj(t,e.get(hT),a),r.injector=e,i!==null&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new Xy(r);}var FT=ze(B({},xc),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Xu,run(){if(this.dirty=!1,this.hasRun&&!gh(this))return;this.hasRun=!0;let t=i=>(this.cleanupFns??=[]).push(i),n=Ru(this),e=vf(!1);try{this.maybeCleanup(),this.fn(t);}finally{vf(e),fh(this,n);}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[];}}}),$j=ze(B({},FT),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){Ou(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this);}}),Uj=ze(B({},FT),{consumerMarkedDirty(){this.view[$e]|=8192,Qc(this.view),this.notifier.notify(13);},destroy(){Ou(this),this.onDestroyFn(),this.maybeCleanup(),this.view[ml]?.delete(this);}});function qj(t,n,e){let i=Object.create(Uj);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=e,t[ml]??=new Set(),t[ml].add(i),i.consumerMarkedDirty(i),i;}function Wj(t,n,e){let i=Object.create($j);return i.fn=t,i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.schedule(i),i.notifier.notify(12),i;}function ug(t,n){let e=ws(t),i=n.elementInjector||Bf();return new bl(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector);}function NT(t){let n=ws(t);if(!n)return null;let e=new bl(n);return{get selector(){return e.selector;},get type(){return e.componentType;},get inputs(){return e.inputs;},get outputs(){return e.outputs;},get ngContentSelectors(){return e.ngContentSelectors;},get isStandalone(){return n.standalone;},get isSignal(){return n.signals;}};}var sd={production:!0,apiUrl:"https://api.johnturman.net/api/v1"};var _e=new A("");var zT=null;function vr(){return zT;}function lC(t){zT??=t;}var bm=class{},vm=(()=>{class t{historyGo(e){throw new Error("");}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:()=>p(BT),providedIn:"platform"});}return t;})(),cC=new A(""),BT=(()=>{class t extends vm{_location;_history;_doc=p(_e);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return vr().getBaseHref(this._doc);}onPopState(e){let i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e);}onHashChange(e){let i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e);}get href(){return this._location.href;}get protocol(){return this._location.protocol;}get hostname(){return this._location.hostname;}get port(){return this._location.port;}get pathname(){return this._location.pathname;}get search(){return this._location.search;}get hash(){return this._location.hash;}set pathname(e){this._location.pathname=e;}pushState(e,i,r){this._history.pushState(e,i,r);}replaceState(e,i,r){this._history.replaceState(e,i,r);}forward(){this._history.forward();}back(){this._history.back();}historyGo(e=0){this._history.go(e);}getState(){return this._history.state;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:()=>new t(),providedIn:"platform"});}return t;})();function mg(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n;}function LT(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t;}function ro(t){return t&&t[0]!=="?"?`?${t}`:t;}var oo=(()=>{class t{historyGo(e){throw new Error("");}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:()=>p(hg),providedIn:"root"});}return t;})(),pg=new A(""),hg=(()=>{class t extends oo{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??p(_e).location?.origin??"";}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e));}getBaseHref(){return this._baseHref;}prepareExternalUrl(e){return mg(this._baseHref,e);}path(e=!1){let i=this._platformLocation.pathname+ro(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i;}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+ro(o));this._platformLocation.pushState(e,i,a);}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+ro(o));this._platformLocation.replaceState(e,i,a);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState();}historyGo(e=0){this._platformLocation.historyGo?.(e);}static ɵfac=function(i){return new(i||t)(te(vm),te(pg,8));};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),$o=(()=>{class t{_subject=new H();_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=Qj(LT(VT(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(e=!1){return this.normalize(this._locationStrategy.path(e));}getState(){return this._locationStrategy.getState();}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ro(i));}normalize(e){return t.stripTrailingSlash(Yj(this._basePath,VT(e)));}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e);}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ro(i)),r);}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ro(i)),r);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(e=0){this._locationStrategy.historyGo?.(e);}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state);}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);};}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i));}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0});}static normalizeQueryParams=ro;static joinWithSlash=mg;static stripTrailingSlash=LT;static ɵfac=function(i){return new(i||t)(te(oo));};static ɵprov=P({token:t,factory:()=>Gj(),providedIn:"root"});}return t;})();function Gj(){return new $o(te(oo));}function Yj(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n;}function VT(t){return t.replace(/\/index.html$/,"");}function Qj(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e;}return t;}var gC=(()=>{class t extends oo{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,i!=null&&(this._baseHref=i);}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e));}getBaseHref(){return this._baseHref;}path(e=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i;}prepareExternalUrl(e){let i=mg(this._baseHref,e);return i.length>0?"#"+i:i;}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+ro(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,i,a);}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+ro(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,i,a);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState();}historyGo(e=0){this._platformLocation.historyGo?.(e);}static ɵfac=function(i){return new(i||t)(te(vm),te(pg,8));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})();var In=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t;}(In||{}),zt=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t;}(zt||{}),or=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t;}(or||{}),Qa={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function qT(t){return Lr(t)[Ni.LocaleId];}function WT(t,n,e){let i=Lr(t),r=[i[Ni.DayPeriodsFormat],i[Ni.DayPeriodsStandalone]],o=zr(r,n);return zr(o,e);}function GT(t,n,e){let i=Lr(t),r=[i[Ni.DaysFormat],i[Ni.DaysStandalone]],o=zr(r,n);return zr(o,e);}function YT(t,n,e){let i=Lr(t),r=[i[Ni.MonthsFormat],i[Ni.MonthsStandalone]],o=zr(r,n);return zr(o,e);}function QT(t,n){let i=Lr(t)[Ni.Eras];return zr(i,n);}function ym(t,n){let e=Lr(t);return zr(e[Ni.DateFormat],n);}function xm(t,n){let e=Lr(t);return zr(e[Ni.TimeFormat],n);}function Cm(t,n){let i=Lr(t)[Ni.DateTimeFormat];return zr(i,n);}function wm(t,n){let e=Lr(t),i=e[Ni.NumberSymbols][n];if(typeof i>"u"){if(n===Qa.CurrencyDecimal)return e[Ni.NumberSymbols][Qa.Decimal];if(n===Qa.CurrencyGroup)return e[Ni.NumberSymbols][Qa.Group];}return i;}function KT(t){if(!t[Ni.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Ni.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`);}function ZT(t){let n=Lr(t);return KT(n),(n[Ni.ExtraData][2]||[]).map(i=>typeof i=="string"?dC(i):[dC(i[0]),dC(i[1])]);}function XT(t,n,e){let i=Lr(t);KT(i);let r=[i[Ni.ExtraData][0],i[Ni.ExtraData][1]],o=zr(r,n)||[];return zr(o,e)||[];}function zr(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined");}function dC(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e};}var Kj=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,fg={},Zj=/((?:[^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]*)/;function JT(t,n,e,i){let r=aH(t);n=Ya(e,n)||n;let a=[],s;for(;n;)if(s=Zj.exec(n),s){a=a.concat(s.slice(1));let h=a.pop();if(!h)break;n=h;}else{a.push(n);break;}let l=r.getTimezoneOffset();i&&(l=t2(i,l),r=oH(r,i));let c="";return a.forEach(h=>{let g=nH(h);c+=g?g(r,e,l):h==="''"?"'":h.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),c;}function yg(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i;}function Ya(t,n){let e=qT(t);if(fg[e]??={},fg[e][n])return fg[e][n];let i="";switch(n){case"shortDate":i=ym(t,or.Short);break;case"mediumDate":i=ym(t,or.Medium);break;case"longDate":i=ym(t,or.Long);break;case"fullDate":i=ym(t,or.Full);break;case"shortTime":i=xm(t,or.Short);break;case"mediumTime":i=xm(t,or.Medium);break;case"longTime":i=xm(t,or.Long);break;case"fullTime":i=xm(t,or.Full);break;case"short":let r=Ya(t,"shortTime"),o=Ya(t,"shortDate");i=gg(Cm(t,or.Short),[r,o]);break;case"medium":let a=Ya(t,"mediumTime"),s=Ya(t,"mediumDate");i=gg(Cm(t,or.Medium),[a,s]);break;case"long":let l=Ya(t,"longTime"),c=Ya(t,"longDate");i=gg(Cm(t,or.Long),[l,c]);break;case"full":let h=Ya(t,"fullTime"),g=Ya(t,"fullDate");i=gg(Cm(t,or.Full),[h,g]);break;}return i&&(fg[e][n]=i),i;}function gg(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e;})),t;}function ao(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length<n;)a="0"+a;return i&&(a=a.slice(a.length-n)),o+a;}function Xj(t,n){return ao(t,3).substring(0,n);}function zi(t,n,e=0,i=!1,r=!1){return function(o,a){let s=Jj(t,o);if((e>0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return Xj(s,n);let l=wm(a,Qa.MinusSign);return ao(s,n,l,i,r);};}function Jj(t,n){switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();case 3:return n.getHours();case 4:return n.getMinutes();case 5:return n.getSeconds();case 6:return n.getMilliseconds();case 7:return n.getDay();default:throw new Error(`Unknown DateType value "${t}".`);}}function Jt(t,n,e=In.Format,i=!1){return function(r,o){return eH(r,o,t,n,e,i);};}function eH(t,n,e,i,r,o){switch(e){case 2:return YT(n,r,i)[t.getMonth()];case 1:return GT(n,r,i)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=ZT(n),h=XT(n,r,i),g=c.findIndex(b=>{if(Array.isArray(b)){let[_,x]=b,T=a>=_.hours&&s>=_.minutes,L=a<x.hours||a===x.hours&&s<x.minutes;if(_.hours<x.hours){if(T&&L)return!0;}else if(T||L)return!0;}else if(b.hours===a&&b.minutes===s)return!0;return!1;});if(g!==-1)return h[g];}return WT(n,r,i)[a<12?0:1];case 3:return QT(n,i)[t.getFullYear()<=0?0:1];default:let l=e;throw new Error(`unexpected translation type ${l}`);}}function _g(t){return function(n,e,i){let r=-1*i,o=wm(e,Qa.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+ao(a,2,o)+ao(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+ao(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+ao(a,2,o)+":"+ao(Math.abs(r%60),2,o);case 3:return i===0?"Z":(r>=0?"+":"")+ao(a,2,o)+":"+ao(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`);}};}var tH=0,vg=4;function iH(t){let n=yg(t,tH,1).getDay();return yg(t,0,1+(n<=vg?vg:vg+7)-n);}function e2(t){let n=t.getDay(),e=n===0?-3:vg-n;return yg(t.getFullYear(),t.getMonth(),t.getDate()+e);}function uC(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7);}else{let o=e2(e),a=iH(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5);}return ao(r,t,wm(i,Qa.MinusSign));};}function bg(t,n=!1){return function(e,i){let o=e2(e).getFullYear();return ao(o,t,wm(i,Qa.MinusSign),n);};}var mC={};function nH(t){if(mC[t])return mC[t];let n;switch(t){case"G":case"GG":case"GGG":n=Jt(3,zt.Abbreviated);break;case"GGGG":n=Jt(3,zt.Wide);break;case"GGGGG":n=Jt(3,zt.Narrow);break;case"y":n=zi(0,1,0,!1,!0);break;case"yy":n=zi(0,2,0,!0,!0);break;case"yyy":n=zi(0,3,0,!1,!0);break;case"yyyy":n=zi(0,4,0,!1,!0);break;case"Y":n=bg(1);break;case"YY":n=bg(2,!0);break;case"YYY":n=bg(3);break;case"YYYY":n=bg(4);break;case"M":case"L":n=zi(1,1,1);break;case"MM":case"LL":n=zi(1,2,1);break;case"MMM":n=Jt(2,zt.Abbreviated);break;case"MMMM":n=Jt(2,zt.Wide);break;case"MMMMM":n=Jt(2,zt.Narrow);break;case"LLL":n=Jt(2,zt.Abbreviated,In.Standalone);break;case"LLLL":n=Jt(2,zt.Wide,In.Standalone);break;case"LLLLL":n=Jt(2,zt.Narrow,In.Standalone);break;case"w":n=uC(1);break;case"ww":n=uC(2);break;case"W":n=uC(1,!0);break;case"d":n=zi(2,1);break;case"dd":n=zi(2,2);break;case"c":case"cc":n=zi(7,1);break;case"ccc":n=Jt(1,zt.Abbreviated,In.Standalone);break;case"cccc":n=Jt(1,zt.Wide,In.Standalone);break;case"ccccc":n=Jt(1,zt.Narrow,In.Standalone);break;case"cccccc":n=Jt(1,zt.Short,In.Standalone);break;case"E":case"EE":case"EEE":n=Jt(1,zt.Abbreviated);break;case"EEEE":n=Jt(1,zt.Wide);break;case"EEEEE":n=Jt(1,zt.Narrow);break;case"EEEEEE":n=Jt(1,zt.Short);break;case"a":case"aa":case"aaa":n=Jt(0,zt.Abbreviated);break;case"aaaa":n=Jt(0,zt.Wide);break;case"aaaaa":n=Jt(0,zt.Narrow);break;case"b":case"bb":case"bbb":n=Jt(0,zt.Abbreviated,In.Standalone,!0);break;case"bbb��b":n=Jt(0,zt.Wide,In.Standalone,!0);break;case"bbbbb":n=Jt(0,zt.Narrow,In.Standalone,!0);break;case"B":case"BB":case"BBB":n=Jt(0,zt.Abbreviated,In.Format,!0);break;case"BBBB":n=Jt(0,zt.Wide,In.Format,!0);break;case"BBBBB":n=Jt(0,zt.Narrow,In.Format,!0);break;case"h":n=zi(3,1,-12);break;case"hh":n=zi(3,2,-12);break;case"H":n=zi(3,1);break;case"HH":n=zi(3,2);break;case"m":n=zi(4,1);break;case"mm":n=zi(4,2);break;case"s":n=zi(5,1);break;case"ss":n=zi(5,2);break;case"S":n=zi(6,1);break;case"SS":n=zi(6,2);break;case"SSS":n=zi(6,3);break;case"Z":case"ZZ":case"ZZZ":n=_g(0);break;case"ZZZZZ":n=_g(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=_g(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=_g(2);break;default:return null;}return mC[t]=n,n;}function t2(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e;}function rH(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t;}function oH(t,n,e){let r=t.getTimezoneOffset(),o=t2(n,r);return rH(t,-1*(o-r));}function aH(t){if(jT(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,o=1,a=1]=t.split("-").map(s=>+s);return yg(r,o-1,a);}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Kj))return sH(i);}let n=new Date(t);if(!jT(n))throw new Error(`Unable to convert "${t}" into a date`);return n;}function sH(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,c),n;}function jT(t){return t instanceof Date&&!isNaN(t.valueOf());}var pC=/\s+/,HT=[],yr=(()=>{class t{_ngEl;_renderer;initialClasses=HT;rawClass;stateMap=new Map();constructor(e,i){this._ngEl=e,this._renderer=i;}set klass(e){this.initialClasses=e!=null?e.trim().split(pC):HT;}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(pC):e;}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff();}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0});}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1;}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(pC).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r);});}static ɵfac=function(i){return new(i||t)(D(J),D(tt));};static ɵdir=z({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}});}return t;})();var xg=class{$implicit;ngForOf;index;count;constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r;}get first(){return this.index===0;}get last(){return this.index===this.count-1;}get even(){return this.index%2===0;}get odd(){return!this.even;}},ei=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0;}set ngForTrackBy(e){this._trackByFn=e;}get ngForTrackBy(){return this._trackByFn;}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r;}set ngForTemplate(e){e&&(this._template=e);}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy));}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e);}}_applyChanges(e){let i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new xg(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(o===null?void 0:o);else if(o!==null){let s=i.get(o);i.move(s,a),$T(s,r);}});for(let r=0,o=i.length;r<o;r++){let s=i.get(r).context;s.index=r,s.count=o,s.ngForOf=this._ngForOf;}e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);$T(o,r);});}static ngTemplateContextGuard(e,i){return!0;}static ɵfac=function(i){return new(i||t)(D(Dt),D(st),D(Ho));};static ɵdir=z({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});}return t;})();function $T(t,n){t.context.$implicit=n.item;}var Pt=(()=>{class t{_viewContainer;_context=new Cg();_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i;}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView();}set ngIfThen(e){UT(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView();}set ngIfElse(e){UT(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView();}_updateView(){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)));}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,i){return!0;}static ɵfac=function(i){return new(i||t)(D(Dt),D(st));};static ɵdir=z({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});}return t;})(),Cg=class{$implicit=null;ngIf=null;};function UT(t,n){if(t&&!t.createEmbeddedView)throw new X(2020,!1);}var gn=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r;}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create());}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e);}}_setStyle(e,i){let[r,o]=e.split("."),a=r.indexOf("-")===-1?void 0:No.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a);}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue));}static ɵfac=function(i){return new(i||t)(D(J),D(sC),D(tt));};static ɵdir=z({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}});}return t;})(),Ts=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e;}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return;}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0});}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector;}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r);}});}static ɵfac=function(i){return new(i||t)(D(Dt));};static ɵdir=z({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[He]});}return t;})();function i2(t,n){return new X(2100,!1);}var hC=class{createSubscription(n,e){return rr(()=>n.subscribe({next:e,error:i=>{throw i;}}));}dispose(n){rr(()=>n.unsubscribe());}},fC=class{createSubscription(n,e){return n.then(e,i=>{throw i;});}dispose(n){}},lH=new fC(),cH=new hC(),Dm=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(e){this._ref=e;}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null;}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e);}finally{this.markForCheckOnValueUpdate=!0;}return this._latestValue;}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue;}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i));}_selectStrategy(e){if(Ms(e))return lH;if(Zx(e))return cH;throw i2(t,e);}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null;}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck());}static ɵfac=function(i){return new(i||t)(D(pe,16));};static ɵpipe=qx({name:"async",type:t,pure:!1});}return t;})();var dH="mediumDate",n2=new A(""),r2=new A(""),Em=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r;}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??dH,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return JT(e,a,o||this.locale,s);}catch(a){throw i2(t,a.message);}}static ɵfac=function(i){return new(i||t)(D(Is,16),D(n2,24),D(r2,24));};static ɵpipe=qx({name:"date",type:t,pure:!0});}return t;})();var j=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({});}return t;})();function km(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o);}return null;}var wg="browser",o2="server";function _C(t){return t===wg;}function Dg(t){return t===o2;}var El=class{};var a2=(()=>{class t{static ɵprov=P({token:t,providedIn:"root",factory:()=>new bC(p(_e),window)});}return t;})(),bC=class{document;window;offset=()=>[0,0];constructor(n,e){this.document=n,this.window=e;}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n;}getScrollPosition(){return[this.window.scrollX,this.window.scrollY];}scrollToPosition(n){this.window.scrollTo(n[0],n[1]);}scrollToAnchor(n){let e=uH(this.document,n);e&&(this.scrollToElement(e),e.focus());}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n;}scrollToElement(n){let e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1]);}};function uH(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a;}r=i.nextNode();}}return null;}var Mg=new A(""),CC=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map();constructor(e,i){this._zone=i,e.forEach(r=>{r.manager=this;}),this._plugins=e.slice().reverse();}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o);}getZone(){return this._zone;}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new X(5101,!1);return this._eventNameToPlugin.set(e,i),i;}static ɵfac=function(i){return new(i||t)(te(Mg),te(ae));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})(),Mm=class{_doc;constructor(n){this._doc=n;}manager;},Eg="ng-app-id";function s2(t){for(let n of t)n.remove();}function l2(t,n){let e=n.createElement("style");return e.textContent=t,e;}function mH(t,n,e,i){let r=t.head?.querySelectorAll(`style[${Eg}="${n}"],link[${Eg}="${n}"]`);if(r)for(let o of r)o.removeAttribute(Eg),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]});}function yC(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e;}var wC=(()=>{class t{doc;appId;nonce;inline=new Map();external=new Map();hosts=new Set();isServer;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.isServer=Dg(o),mH(e,i,this.inline,this.external),this.hosts.add(e.head);}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,l2);i?.forEach(r=>this.addUsage(r,this.external,yC));}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external));}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))});}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&(s2(r.elements),i.delete(e)));}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])s2(e);this.hosts.clear();}addHost(e){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,l2(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,yC(i,this.doc)));}removeHost(e){this.hosts.delete(e);}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),this.isServer&&i.setAttribute(Eg,this.appId),e.appendChild(i);}static ɵfac=function(i){return new(i||t)(te(_e),te(Cl),te(am,8),te(Bo));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})(),vC={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"},DC=/%COMP%/g;var d2="%COMP%",pH=`_nghost-${d2}`,hH=`_ngcontent-${d2}`,fH=!0,gH=new A("",{providedIn:"root",factory:()=>fH});function _H(t){return hH.replace(DC,t);}function bH(t){return pH.replace(DC,t);}function u2(t,n){return n.map(e=>e.replace(DC,t));}var Tm=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map();defaultRenderer;platformIsServer;constructor(e,i,r,o,a,s,l,c=null,h=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=c,this.tracingService=h,this.platformIsServer=Dg(s),this.defaultRenderer=new Sm(e,a,l,this.platformIsServer,this.tracingService);}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Fo.ShadowDom&&(i=ze(B({},i),{encapsulation:Fo.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof kg?r.applyToHost(e):r instanceof Im&&r.applyStyles(),r;}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.platformIsServer,b=this.tracingService;switch(i.encapsulation){case Fo.Emulated:o=new kg(l,c,i,this.appId,h,a,s,g,b);break;case Fo.ShadowDom:return new xC(l,c,e,i,a,s,this.nonce,g,b);default:o=new Im(l,c,i,h,a,s,g,b);break;}r.set(i.id,o);}return o;}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(e){this.rendererByCompId.delete(e);}static ɵfac=function(i){return new(i||t)(te(CC),te(wC),te(Cl),te(gH),te(_e),te(Bo),te(ae),te(am),te(td,8));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})(),Sm=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=o;}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(vC[e]||e,n):this.doc.createElement(n);}createComment(n){return this.doc.createComment(n);}createText(n){return this.doc.createTextNode(n);}appendChild(n,e){(c2(n)?n.content:n).appendChild(e);}insertBefore(n,e,i){n&&(c2(n)?n.content:n).insertBefore(e,i);}removeChild(n,e){e.remove();}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new X(-5104,!1);return e||(i.textContent=""),i;}parentNode(n){return n.parentNode;}nextSibling(n){return n.nextSibling;}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=vC[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i);}else n.setAttribute(e,i);}removeAttribute(n,e,i){if(i){let r=vC[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`);}else n.removeAttribute(e);}addClass(n,e){n.classList.add(e);}removeClass(n,e){n.classList.remove(e);}setStyle(n,e,i,r){r&(No.DashCase|No.Important)?n.style.setProperty(e,i,r&No.Important?"important":""):n.style[e]=i;}removeStyle(n,e,i){i&No.DashCase?n.style.removeProperty(e):n.style[e]="";}setProperty(n,e,i){n!=null&&(n[e]=i);}setValue(n,e){n.nodeValue=e;}listen(n,e,i,r){if(typeof n=="string"&&(n=vr().getGlobalEventTarget(this.doc,n),!n))throw new X(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r);}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault();};}};function c2(t){return t.tagName==="TEMPLATE"&&t.content!==void 0;}var xC=class extends Sm{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,l,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let h=r.styles;h=u2(r.id,h);for(let b of h){let _=document.createElement("style");s&&_.setAttribute("nonce",s),_.textContent=b,this.shadowRoot.appendChild(_);}let g=r.getExternalStyles?.();if(g)for(let b of g){let _=yC(b,o);s&&_.setAttribute("nonce",s),this.shadowRoot.appendChild(_);}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n;}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e);}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i);}removeChild(n,e){return super.removeChild(null,e);}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)));}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot);}},Im=class extends Sm{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,o,a,s,l,c){super(n,o,a,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let h=i.styles;this.styles=c?u2(c,h):h,this.styleUrls=i.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},kg=class extends Im{contentAttr;hostAttr;constructor(n,e,i,r,o,a,s,l,c){let h=r+"-"+i.id;super(n,e,i,o,a,s,l,c,h),this.contentAttr=_H(h),this.hostAttr=bH(h);}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"");}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i;}};var Sg=class t extends bm{supportsDOMEvents=!0;static makeCurrent(){lC(new t());}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r);};}dispatchEvent(n,e){n.dispatchEvent(e);}remove(n){n.remove();}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n);}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle");}getDefaultDocument(){return document;}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE;}isShadowRoot(n){return n instanceof DocumentFragment;}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null;}getBaseHref(n){let e=vH();return e==null?null:yH(e);}resetBaseElement(){Am=null;}getUserAgent(){return window.navigator.userAgent;}getCookie(n){return km(document.cookie,n);}},Am=null;function vH(){return Am=Am||document.querySelector("base"),Am?Am.getAttribute("href"):null;}function yH(t){return new URL(t,document.baseURI).pathname;}var Ig=class{addToWindow(n){un.getAngularTestability=(i,r=!0)=>{let o=n.findTestabilityInTree(i,r);if(o==null)throw new X(5103,!1);return o;},un.getAllAngularTestabilities=()=>n.getAllTestabilities(),un.getAllAngularRootElements=()=>n.getAllRootElements();let e=i=>{let r=un.getAllAngularTestabilities(),o=r.length,a=function(){o--,o==0&&i();};r.forEach(s=>{s.whenStable(a);});};un.frameworkStabilizers||(un.frameworkStabilizers=[]),un.frameworkStabilizers.push(e);}findTestabilityInTree(n,e,i){if(e==null)return null;let r=n.getTestability(e);return r??(i?vr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null);}},xH=(()=>{class t{build(){return new XMLHttpRequest();}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})(),p2=(()=>{class t extends Mm{constructor(e){super(e);}supports(e){return!0;}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o);}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o);}static ɵfac=function(i){return new(i||t)(te(_e));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})(),m2=["alt","control","meta","shift"],CH={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},wH={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},h2=(()=>{class t extends Mm{constructor(e){super(e);}supports(e){return t.parseEventName(e)!=null;}addEventListener(e,i,r,o){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vr().onAndCancel(e,a.domEventName,s,o));}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),m2.forEach(c=>{let h=i.indexOf(c);h>-1&&(i.splice(h,1),a+=c+".");}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l;}static matchEventFullKeyCode(e,i){let r=CH[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),m2.forEach(a=>{if(a!==r){let s=wH[a];s(e)&&(o+=a+".");}}),o+=r,o===i);}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o));};}static _normalizeKey(e){return e==="esc"?"escape":e;}static ɵfac=function(i){return new(i||t)(te(_e));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})();function EC(t,n){return PT(B({rootComponent:t},DH(n)));}function DH(t){return{appProviders:[...f2,...(t?.providers??[])],platformProviders:SH};}function EH(){Sg.makeCurrent();}function kH(){return new Bn();}function MH(){return JS(document),document;}var SH=[{provide:Bo,useValue:wg},{provide:Cx,useValue:EH,multi:!0},{provide:_e,useFactory:MH}];var IH=[{provide:pm,useClass:Ig},{provide:Qx,useClass:og,deps:[ae,ag,pm]},{provide:og,useClass:og,deps:[ae,ag,pm]}],f2=[{provide:zf,useValue:"root"},{provide:Bn,useFactory:kH},{provide:Mg,useClass:p2,multi:!0,deps:[_e]},{provide:Mg,useClass:h2,multi:!0,deps:[_e]},Tm,wC,CC,{provide:Fi,useExisting:Tm},{provide:El,useClass:xH},[]],kC=(()=>{class t{constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[...f2,...IH],imports:[j,OT]});}return t;})();var cd=class{},Rm=class{},lt=class t{headers;normalizedNames=new Map();lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map(),n.split(`
`).forEach(e=>{let i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o);}});}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map(),n.forEach((e,i)=>{this.addHeaderEntry(i,e);})):this.lazyInit=()=>{this.headers=new Map(),Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i);});}:this.headers=new Map();}has(n){return this.init(),this.headers.has(n.toLowerCase());}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null;}keys(){return this.init(),Array.from(this.normalizedNames.values());}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null;}append(n,e){return this.clone({name:n,value:e,op:"a"});}set(n,e){return this.clone({name:n,value:e,op:"s"});}delete(n,e){return this.clone({name:n,value:e,op:"d"});}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n);}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null));}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e));});}clone(n){let e=new t();return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e;}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a);}break;}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e]);}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r);}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)));}};var Ag=class{encodeKey(n){return g2(n);}encodeValue(n){return g2(n);}decodeKey(n){return decodeURIComponent(n);}decodeValue(n){return decodeURIComponent(n);}};function TH(t,n){let e=new Map();return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l);}),e;}var AH=/%(\d[a-f0-9])/gi,RH={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function g2(t){return encodeURIComponent(t).replace(AH,(n,e)=>RH[e]??n);}function Tg(t){return`${t}`;}var Ka=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Ag(),n.fromString){if(n.fromObject)throw new X(2805,!1);this.map=TH(n.fromString,this.encoder);}else n.fromObject?(this.map=new Map(),Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(Tg):[Tg(i)];this.map.set(e,r);})):this.map=null;}has(n){return this.init(),this.map.has(n);}get(n){this.init();let e=this.map.get(n);return e?e[0]:null;}getAll(n){return this.init(),this.map.get(n)||null;}keys(){return this.init(),Array.from(this.map.keys());}append(n,e){return this.clone({param:n,value:e,op:"a"});}appendAll(n){let e=[];return Object.keys(n).forEach(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"});}):e.push({param:i,value:r,op:"a"});}),this.clone(e);}set(n,e){return this.clone({param:n,value:e,op:"s"});}delete(n,e){return this.clone({param:n,value:e,op:"d"});}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&");}).filter(n=>n!=="").join("&");}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e;}init(){this.map===null&&(this.map=new Map()),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Tg(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(Tg(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param);}else{this.map.delete(n.param);break;}}}),this.cloneFrom=this.updates=null);}};var Rg=class{map=new Map();set(n,e){return this.map.set(n,e),this;}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n);}delete(n){return this.map.delete(n),this;}has(n){return this.map.has(n);}keys(){return this.map.keys();}};function OH(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0;}}function _2(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer;}function b2(t){return typeof Blob<"u"&&t instanceof Blob;}function v2(t){return typeof FormData<"u"&&t instanceof FormData;}function PH(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams;}var y2="Content-Type",x2="Accept",w2="X-Request-URL",D2="text/plain",E2="application/json",FH=`${E2}, ${D2}, */*`,ld=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(OH(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new lt(),this.context??=new Rg(),!this.params)this.params=new Ka(),this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":s<e.length-1?"&":"";this.urlWithParams=e+l+a;}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||_2(this.body)||b2(this.body)||v2(this.body)||PH(this.body)?this.body:this.body instanceof Ka?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString();}detectContentTypeHeader(){return this.body===null||v2(this.body)?null:b2(this.body)?this.body.type||null:_2(this.body)?null:typeof this.body=="string"?D2:this.body instanceof Ka?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?E2:null;}clone(n={}){let e=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,o=n.transferCache??this.transferCache,a=n.body!==void 0?n.body:this.body,s=n.withCredentials??this.withCredentials,l=n.reportProgress??this.reportProgress,c=n.headers||this.headers,h=n.params||this.params,g=n.context??this.context;return n.setHeaders!==void 0&&(c=Object.keys(n.setHeaders).reduce((b,_)=>b.set(_,n.setHeaders[_]),c)),n.setParams&&(h=Object.keys(n.setParams).reduce((b,_)=>b.set(_,n.setParams[_]),h)),new t(e,i,a,{params:h,headers:c,context:g,reportProgress:l,responseType:r,withCredentials:s,transferCache:o});}},kl=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t;}(kl||{}),dd=class{headers;status;statusText;url;ok;type;constructor(n,e=200,i="OK"){this.headers=n.headers||new lt(),this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300;}},Og=class t extends dd{constructor(n={}){super(n);}type=kl.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0});}},Om=class t extends dd{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null;}type=kl.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||thi��s.statusText,url:n.url||this.url||void 0});}},Pm=class extends dd{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null;}},NH=200,LH=204;function MC(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache};}var Bi=(()=>{class t{handler;constructor(e){this.handler=e;}request(e,i,r={}){let o;if(e instanceof ld)o=e;else{let l;r.headers instanceof lt?l=r.headers:l=new lt(r.headers);let c;r.params&&(r.params instanceof Ka?c=r.params:c=new Ka({fromObject:r.params})),o=new ld(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache});}let a=se(o).pipe(Mo(l=>this.handler.handle(l)));if(e instanceof ld||r.observe==="events")return a;let s=a.pipe(Ie(l=>l instanceof Om));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(ue(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new X(2806,!1);return l.body;}));case"blob":return s.pipe(ue(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new X(2807,!1);return l.body;}));case"text":return s.pipe(ue(l=>{if(l.body!==null&&typeof l.body!="string")throw new X(2808,!1);return l.body;}));case"json":default:return s.pipe(ue(l=>l.body));}case"response":return s;default:throw new X(2809,!1);}}delete(e,i={}){return this.request("DELETE",e,i);}get(e,i={}){return this.request("GET",e,i);}head(e,i={}){return this.request("HEAD",e,i);}jsonp(e,i){return this.request("JSONP",e,{params:new Ka().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"});}options(e,i={}){return this.request("OPTIONS",e,i);}patch(e,i,r={}){return this.request("PATCH",e,MC(r,i));}post(e,i,r={}){return this.request("POST",e,MC(r,i));}put(e,i,r={}){return this.request("PUT",e,MC(r,i));}static ɵfac=function(i){return new(i||t)(te(cd));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})();var VH=new A("");function k2(t,n){return n(t);}function zH(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)});}function BH(t,n,e){return(i,r)=>er(e,()=>n(i,o=>t(o,r)));}var M2=new A(""),IC=new A(""),S2=new A(""),TC=new A("",{providedIn:"root",factory:()=>!0});function jH(){let t=null;return(n,e)=>{t===null&&(t=(p(M2,{optional:!0})??[]).reduceRight(zH,k2));let i=p($a);if(p(TC)){let o=i.add();return t(n,e).pipe(So(()=>i.remove(o)));}else return t(n,e);};}var Pg=(()=>{class t extends cd{backend;injector;chain=null;pendingTasks=p($a);contributeToStability=p(TC);constructor(e,i){super(),this.backend=e,this.injector=i;}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(IC),...this.injector.get(S2,[])]));this.chain=i.reduceRight((r,o)=>BH(r,o,this.injector),k2);}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(So(()=>this.pendingTasks.remove(i)));}else return this.chain(e,i=>this.backend.handle(i));}static ɵfac=function(i){return new(i||t)(te(Rm),te(Ei));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})();var HH=/^\)\]\}',?\n/,$H=RegExp(`^${w2}:`,"m");function UH(t){return"responseURL"in t&&t.responseURL?t.responseURL:$H.test(t.getAllResponseHeaders())?t.getResponseHeader(w2):null;}var SC=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e;}handle(e){if(e.method==="JSONP")throw new X(-2800,!1);let i=this.xhrFactory;return(i.ɵloadImpl?Ot(i.ɵloadImpl()):se(null)).pipe(ai(()=>new qe(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((T,L)=>a.setRequestHeader(T,L.join(","))),e.headers.has(x2)||a.setRequestHeader(x2,FH),!e.headers.has(y2)){let T=e.detectContentTypeHeader();T!==null&&a.setRequestHeader(y2,T);}if(e.responseType){let T=e.responseType.toLowerCase();a.responseType=T!=="json"?T:"text";}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let T=a.statusText||"OK",L=new lt(a.getAllResponseHeaders()),q=UH(a)||e.url;return l=new Og({headers:L,status:a.status,statusText:T,url:q}),l;},h=()=>{let{headers:T,status:L,statusText:q,url:ie}=c(),Y=null;L!==LH&&(Y=typeof a.response>"u"?a.responseText:a.response),L===0&&(L=Y?NH:0);let me=L>=200&&L<300;if(e.responseType==="json"&&typeof Y=="string"){let xe=Y;Y=Y.replace(HH,"");try{Y=Y!==""?JSON.parse(Y):null;}catch(Re){Y=xe,me&&(me=!1,Y={error:Re,text:Y});}}me?(o.next(new Om({body:Y,headers:T,status:L,statusText:q,url:ie||void 0})),o.complete()):o.error(new Pm({error:Y,headers:T,status:L,statusText:q,url:ie||void 0}));},g=T=>{let{url:L}=c(),q=new Pm({error:T,status:a.status||0,statusText:a.statusText||"Unknown Error",url:L||void 0});o.error(q);},b=!1,_=T=>{b||(o.next(c()),b=!0);let L={type:kl.DownloadProgress,loaded:T.loaded};T.lengthComputable&&(L.total=T.total),e.responseType==="text"&&a.responseText&&(L.partialText=a.responseText),o.next(L);},x=T=>{let L={type:kl.UploadProgress,loaded:T.loaded};T.lengthComputable&&(L.total=T.total),o.next(L);};return a.addEventListener("load",h),a.addEventListener("error",g),a.addEventListener("timeout",g),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",_),s!==null&&a.upload&&a.upload.addEventListener("progress",x)),a.send(s),o.next({type:kl.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",h),a.removeEventListener("timeout",g),e.reportProgress&&(a.removeEventListener("progress",_),s!==null&&a.upload&&a.upload.removeEventListener("progress",x)),a.readyState!==a.DONE&&a.abort();};})));}static ɵfac=function(i){return new(i||t)(te(El));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})(),I2=new A(""),qH="XSRF-TOKEN",WH=new A("",{providedIn:"root",factory:()=>qH}),GH="X-XSRF-TOKEN",YH=new A("",{providedIn:"root",factory:()=>GH}),Fm=class{},QH=(()=>{class t{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r;}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=km(e,this.cookieName),this.lastCookieString=e),this.lastToken;}static ɵfac=function(i){return new(i||t)(te(_e),te(Bo),te(WH));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})();function KH(t,n){let e=t.url.toLowerCase();if(!p(I2)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(t);let i=p(Fm).getToken(),r=p(YH);return i!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t);}var AC=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t;}(AC||{});function ZH(t,n){return{ɵkind:t,ɵproviders:n};}function RC(...t){let n=[Bi,SC,Pg,{provide:cd,useExisting:Pg},{provide:Rm,useFactory:()=>p(VH,{optional:!0})??p(SC)},{provide:IC,useValue:KH,multi:!0},{provide:I2,useValue:!0},{provide:Fm,useClass:QH}];for(let e of t)n.push(...e.ɵproviders);return Wc(n);}var C2=new A("");function OC(){return ZH(AC.LegacyInterceptors,[{provide:C2,useFactory:jH},{provide:IC,useExisting:C2,multi:!0}]);}var Tn=(()=>{class t{_doc;constructor(e){this._doc=e;}getTitle(){return this._doc.title;}setTitle(e){this._doc.title=e||"";}static ɵfac=function(i){return new(i||t)(te(_e));};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var xr=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:function(i){let r=null;return i?r=new(i||t)():r=te(XH),r;},providedIn:"root"});}return t;})(),XH=(()=>{class t extends xr{_doc;constructor(e){super(),this._doc=e;}sanitize(e,i){if(i==null)return null;switch(e){case hn.NONE:return i;case hn.HTML:return Ua(i,"HTML")?Pr(i):kx(this._doc,String(i)).toString();case hn.STYLE:return Ua(i,"Style")?Pr(i):i;case hn.SCRIPT:if(Ua(i,"Script"))return Pr(i);throw new X(5200,!1);case hn.URL:return Ua(i,"URL")?Pr(i):Kf(String(i));case hn.RESOURCE_URL:if(Ua(i,"ResourceURL"))return Pr(i);throw new X(5201,!1);default:throw new X(5202,!1);}}bypassSecurityTrustHtml(e){return sI(e);}bypassSecurityTrustStyle(e){return lI(e);}bypassSecurityTrustScript(e){return cI(e);}bypassSecurityTrustUrl(e){return dI(e);}bypassSecurityTrustResourceUrl(e){return uI(e);}static ɵfac=function(i){return new(i||t)(te(_e));};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var it="primary",Ym=Symbol("RouteTitle"),VC=class{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n);}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e;}return null;}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e];}return[];}get keys(){return Object.keys(this.params);}};function Il(t){return new VC(t);}function L2(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.length<t.length))return null;let r={};for(let o=0;o<i.length;o++){let a=i[o],s=t[o];if(a[0]===":")r[a.substring(1)]=s;else if(a!==s.path)return null;}return{consumed:t.slice(0,i.length),posParams:r};}function JH(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!Uo(t[e],n[e]))return!1;return!0;}function Uo(t,n){let e=t?zC(t):void 0,i=n?zC(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!V2(t[r],n[r]))return!1;return!0;}function zC(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)];}function V2(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),i=[...n].sort();return e.every((r,o)=>i[o]===r);}else return t===n;}function z2(t){return t.length>0?t[t.length-1]:null;}function Ps(t){return Sc(t)?t:Ms(t)?Ot(Promise.resolve(t)):se(t);}var e9={exact:j2,subset:H2},B2={exact:t9,subset:i9,ignored:()=>!0};function T2(t,n,e){return e9[e.paths](t.root,n.root,e.matrixParams)&&B2[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment);}function t9(t,n){return Uo(t,n);}function j2(t,n,e){if(!Ml(t.segments,n.segments)||!Lg(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!j2(t.children[i],n.children[i],e))return!1;return!0;}function i9(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>V2(t[e],n[e]));}function H2(t,n,e){return $2(t,n,n.segments,e);}function $2(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!Ml(r,e)||n.hasChildren()||!Lg(r,e,i));}else if(t.segments.length===e.length){if(!Ml(t.segments,e)||!Lg(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!H2(t.children[r],n.children[r],i))return!1;return!0;}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Ml(t.segments,r)||!Lg(t.segments,r,i)||!t.children[it]?!1:$2(t.children[it],n,o,i);}}function Lg(t,n,e){return n.every((i,r)=>B2[e](t[r].parameters,i.parameters));}var Wo=class{root;queryParams;fragment;_queryParamMap;constructor(n=new It([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i;}get queryParamMap(){return this._queryParamMap??=Il(this.queryParams),this._queryParamMap;}toString(){return o9.serialize(this);}},It=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>i.parent=this);}hasChildren(){return this.numberOfChildren>0;}get numberOfChildren(){return Object.keys(this.children).length;}toString(){return Vg(this);}},As=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=Il(this.parameters),this._parameterMap;}toString(){return q2(this);}};function n9(t,n){return Ml(t,n)&&t.every((e,i)=>Uo(e.parameters,n[i].parameters));}function Ml(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path);}function r9(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===it&&(e=e.concat(n(r,i)));}),Object.entries(t.children).forEach(([i,r])=>{i!==it&&(e=e.concat(n(r,i)));}),e;}var Tl=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:()=>new Rs(),providedIn:"root"});}return t;})(),Rs=class{parse(n){let e=new jC(n);return new Wo(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment());}serialize(n){let e=`/${Nm(n.root,!0)}`,i=l9(n.queryParams),r=typeof n.fragment=="string"?`#${a9(n.fragment)}`:"";return`${e}${i}${r}`;}},o9=new Rs();function Vg(t){return t.segments.map(n=>q2(n)).join("/");}function Nm(t,n){if(!t.hasChildren())return Vg(t);if(n){let e=t.children[it]?Nm(t.children[it],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==it&&i.push(`${r}:${Nm(o,!1)}`);}),i.length>0?`${e}(${i.join("//")})`:e;}else{let e=r9(t,(i,r)=>r===it?[Nm(t.children[it],!1)]:[`${r}:${Nm(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[it]!=null?`${Vg(t)}/${e[0]}`:`${Vg(t)}/(${e.join("//")})`;}}function U2(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",");}function Fg(t){return U2(t).replace(/%3B/gi,";");}function a9(t){return encodeURI(t);}function BC(t){return U2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&");}function zg(t){return decodeURIComponent(t);}function A2(t){return zg(t.replace(/\+/g,"%20"));}function q2(t){return`${BC(t.path)}${s9(t.parameters)}`;}function s9(t){return Object.entries(t).map(([n,e])=>`;${BC(n)}=${BC(e)}`).join("");}function l9(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Fg(e)}=${Fg(r)}`).join("&"):`${Fg(e)}=${Fg(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:"";}var c9=/^[^\/()?;#]+/;function PC(t){let n=t.match(c9);return n?n[0]:"";}var d9=/^[^\/()?;=#]+/;function u9(t){let n=t.match(d9);return n?n[0]:"";}var m9=/^[^=?&#]+/;function p9(t){let n=t.match(m9);return n?n[0]:"";}var h9=/^[^&#]+/;function f9(t){let n=t.match(h9);return n?n[0]:"";}var jC=class{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new It([],{}):new It([],this.parseChildren());}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n;}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null;}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[it]=new It(n,e)),i;}parseSegment(){let n=PC(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new X(4009,!1);return this.capture(n),new As(zg(n),this.parseMatrixParams());}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n;}parseParam(n){let e=u9(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=PC(this.remaining);r&&(i=r,this.capture(i));}n[zg(e)]=zg(i);}parseQueryParam(n){let e=p9(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=f9(this.remaining);a&&(i=a,this.capture(i));}let r=A2(e),o=A2(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o);}else n[r]=o;}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=PC(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new X(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=it);let a=this.parseChildren();e[o]=Object.keys(a).length===1?a[it]:new It([],a),this.consumeOptional("//");}return e;}peekStartsWith(n){return this.remaining.startsWith(n);}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1;}capture(n){if(!this.consumeOptional(n))throw new X(4011,!1);}};function W2(t){return t.segments.length>0?new It([],{[it]:t}):t;}function G2(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=G2(r);if(i===it&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o);}let e=new It(t.segments,n);return g9(e);}function g9(t){if(t.numberOfChildren===1&&t.children[it]){let n=t.children[it];return new It(t.segments.concat(n.segments),n.children);}return t;}function Os(t){return t instanceof Wo;}function Y2(t,n,e=null,i=null){let r=Q2(t);return K2(r,n,e,i);}function Q2(t){let n;function e(o){let a={};for(let l of o.children){let c=e(l);a[l.outlet]=c;}let s=new It(o.url,a);return o===t&&(n=s),s;}let i=e(t.root),r=W2(i);return n??r;}function K2(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return FC(r,r,r,e,i);let o=_9(n);if(o.toRoot())return FC(r,r,new It([],{}),e,i);let a=b9(o,r,t),s=a.processChildren?Vm(a.segmentGroup,a.index,o.commands):X2(a.segmentGroup,a.index,o.commands);return FC(r,a.segmentGroup,s,e,i);}function jg(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath;}function Bm(t){return typeof t=="object"&&t!=null&&t.outlets;}function FC(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(h=>`${h}`):`${c}`;});let a;t===n?a=e:a=Z2(t,n,e);let s=W2(G2(a));return new Wo(s,o,r);}function Z2(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=Z2(o,n,e);}),new It(t.segments,i);}var Hg=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&jg(i[0]))throw new X(4003,!1);let r=i.find(Bm);if(r&&r!==z2(i))throw new X(4004,!1);}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/";}};function _9(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Hg(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c;}),[...r,{outlets:s}];}if(o.segmentPath)return[...r,o.segmentPath];}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?n++:s!=""&&r.push(s));}),r):[...r,o];},[]);return new Hg(e,n,i);}var pd=class{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i;}};function b9(t,n,e){if(t.isAbsolute)return new pd(n,!0,0);if(!e)return new pd(n,!1,NaN);if(e.parent===null)return new pd(e,!0,0);let i=jg(t.commands[0])?0:1,r=e.segments.length-1+i;return v9(e,r,t.numberOfDoubleDots);}function v9(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new X(4005,!1);r=i.segments.length;}return new pd(i,!1,r-o);}function y9(t){return Bm(t[0])?t[0].outlets:{[it]:t};}function X2(t,n,e){if(t??=new It([],{}),t.segments.length===0&&t.hasChildren())return Vm(t,n,e);let i=x9(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){let o=new It(t.segments.slice(0,i.pathIndex),{});return o.children[it]=new It(t.segments.slice(i.pathIndex),t.children),Vm(o,0,r);}else return i.match&&r.length===0?new It(t.segments,{}):i.match&&!t.hasChildren()?HC(t,n,e):i.match?Vm(t,0,r):HC(t,n,e);}function Vm(t,n,e){if(e.length===0)return new It(t.segments,{});{let i=y9(e),r={};if(Object.keys(i).some(o=>o!==it)&&t.children[it]&&t.numberOfChildren===1&&t.children[it].segments.length===0){let o=Vm(t.children[it],n,e);return new It(t.segments,o.children);}return Object.entries(i).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=X2(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{i[o]===void 0&&(r[o]=a);}),new It(t.segments,r);}}function x9(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return o;let a=t.segments[r],s=e[i];if(Bm(s))break;let l=`${s}`,c=i<e.length-1?e[i+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!O2(l,c,a))return o;i+=2;}else{if(!O2(l,{},a))return o;i++;}r++;}return{match:!0,pathIndex:r,commandIndex:i};}function HC(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r<e.length;){let o=e[r];if(Bm(o)){let l=C9(o.outlets);return new It(i,l);}if(r===0&&jg(e[0])){let l=t.segments[n];i.push(new As(l.path,R2(e[0]))),r++;continue;}let a=Bm(o)?o.outlets[it]:`${o}`,s=r<e.length-1?e[r+1]:null;a&&s&&jg(s)?(i.push(new As(a,R2(s))),r+=2):(i.push(new As(a,{})),r++);}return new It(i,{});}function C9(t){let n={};return Object.entries(t).forEach(([e,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=HC(new It([],{}),0,i));}),n;}function R2(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n;}function O2(t,n,e){return t==e.path&&Uo(n,e.parameters);}var Bg="imperative",Xi=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t;}(Xi||{}),Dr=class{id;url;constructor(n,e){this.id=n,this.url=e;}},Er=class extends Dr{type=Xi.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r;}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`;}},jn=class extends Dr{urlAfterRedirects;type=Xi.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i;}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`;}},ar=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t;}(ar||{}),fd=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t;}(fd||{}),qo=class extends Dr{reason;code;type=Xi.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r;}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`;}},Go=class extends Dr{reason;code;type=Xi.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r;}},gd=class extends Dr{error;target;type=Xi.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r;}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;}},jm=class extends Dr{urlAfterRedirects;state;type=Xi.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r;}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;}},$g=class extends Dr{urlAfterRedirects;state;type=Xi.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r;}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;}},Ug=class extends Dr{urlAfterRedirects;state;shouldActivate;type=Xi.GuardsCheckEnd;constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o;}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`;}},qg=class extends Dr{urlAfterRedirects;state;type=Xi.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r;}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;}},Wg=class extends Dr{urlAfterRedirects;state;type=Xi.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r;}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;}},Gg=class{route;type=Xi.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`;}},Yg=class{route;type=Xi.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`;}},Qg=class{snapshot;type=Xi.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`;}},Kg=class{snapshot;type=Xi.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`;}},Zg=class{snapshot;type=Xi.ActivationStart;constructor(n){this.snapshot=n;}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`;}},Xg=class{snapshot;type=Xi.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`;}},_d=class{routerEvent;position;anchor;type=Xi.Scroll;constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`;}},Hm=class{},bd=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function w9(t,n){return t.providers&&!t._injector&&(t._injector=mm(t.providers,n,`Route: ${t.path}`)),t._injector??n;}function so(t){return t.outlet||it;}function D9(t,n){let e=t.filter(i=>so(i)===n);return e.push(...t.filter(i=>so(i)!==n)),e;}function Qm(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector;}return null;}var Jg=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Qm(this.route?.snapshot)??this.rootInjector;}constructor(n){this.rootInjector=n,this.children=new Al(this.rootInjector);}},Al=(()=>{class t{rootInjector;contexts=new Map();constructor(e){this.rootInjector=e;}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r);}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map(),e;}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new Jg(this.rootInjector),this.contexts.set(e,i)),i;}getContext(e){return this.contexts.get(e)||null;}static ɵfac=function(i){return new(i||t)(te(Ei));};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),e0=class{_root;constructor(n){this._root=n;}get root(){return this._root.value;}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null;}children(n){let e=$C(n,this._root);return e?e.children.map(i=>i.value):[];}firstChild(n){let e=$C(n,this._root);return e&&e.children.length>0?e.children[0].value:null;}siblings(n){let e=UC(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n);}pathFromRoot(n){return UC(n,this._root).map(e=>e.value);}};function $C(t,n){if(t===n.value)return n;for(let e of n.children){let i=$C(t,e);if(i)return i;}return null;}function UC(t,n){if(t===n.value)return[n];for(let e of n.children){let i=UC(t,e);if(i.length)return i.unshift(n),i;}return[];}var wr=class{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return`TreeNode(${this.value})`;}};function md(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n;}var $m=class extends e0{snapshot;constructor(n,e){super(n),this.snapshot=e,XC(this,n);}toString(){return this.snapshot.toString();}};function J2(t){let n=E9(t),e=new Qt([new As("",{})]),i=new Qt({}),r=new Qt({}),o=new Qt({}),a=new Qt(""),s=new An(e,i,o,a,r,it,t,n.root);return s.snapshot=n.root,new $m(new wr(s,[]),n);}function E9(t){let n={},e={},i={},r="",o=new Sl([],n,i,r,e,it,t,null,{});return new Um("",new wr(o,[]));}var An=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,i,r,o,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ue(c=>c[Ym]))??se(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o;}get routeConfig(){return this._futureSnapshot.routeConfig;}get root(){return this._routerState.root;}get parent(){return this._routerState.parent(this);}get firstChild(){return this._routerState.firstChild(this);}get children(){return this._routerState.children(this);}get pathFromRoot(){return this._routerState.pathFromRoot(this);}get paramMap(){return this._paramMap??=this.params.pipe(ue(n=>Il(n))),this._paramMap;}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ue(n=>Il(n))),this._queryParamMap;}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`;}};function t0(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:B(B({},n.params),t.params),data:B(B({},n.data),t.data),resolve:B(B(B(B({},t.data),n.data),r?.data),t._resolvedData)}:i={params:B({},t.params),data:B({},t.data),resolve:B(B({},t.data),t._resolvedData??{})},r&&tA(r)&&(i.resolve[Ym]=r.title),i;}var Sl=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ym];}constructor(n,e,i,r,o,a,s,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c;}get root(){return this._routerState.root;}get parent(){return this._routerState.parent(this);}get firstChild(){return this._routerState.firstChild(this);}get children(){return this._routerState.children(this);}get pathFromRoot(){return this._routerState.pathFromRoot(this);}get paramMap(){return this._paramMap??=Il(this.params),this._paramMap;}get queryParamMap(){return this._queryParamMap??=Il(this.queryParams),this._queryParamMap;}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`;}},Um=class extends e0{url;constructor(n,e){super(e),this.url=n,XC(this,e);}toString(){return eA(this._root);}};function XC(t,n){n.value._routerState=t,n.children.forEach(e=>XC(t,e));}function eA(t){let n=t.children.length>0?` { ${t.children.map(eA).join(", ")} } `:"";return`${t.value}${n}`;}function NC(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Uo(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Uo(n.params,e.params)||t.paramsSubject.next(e.params),JH(n.url,e.url)||t.urlSubject.next(e.url),Uo(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function qC(t,n){let e=Uo(t.params,n.params)&&n9(t.url,n.url),i=!t.parent!=!n.parent;return e&��&!i&&(!t.parent||qC(t.parent,n.parent));}function tA(t){return typeof t.title=="string"||t.title===null;}var iA=new A(""),Xa=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated;}_activatedRoute=null;name=it;activateEvents=new V();deactivateEvents=new V();attachEvents=new V();detachEvents=new V();routerOutletData=rt(void 0);parentContexts=p(Al);location=p(Dt);changeDetector=p(pe);inputBinder=p(Km,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this;}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return!!this.activated;}get component(){if(!this.activated)throw new X(4012,!1);return this.activated.instance;}get activatedRoute(){if(!this.activated)throw new X(4012,!1);return this._activatedRoute;}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{};}detach(){if(!this.activated)throw new X(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e;}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,i){if(this.isActivated)throw new X(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new WC(e,s,r.injector,this.routerOutletData);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[He]});}return t;})(),WC=class{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r;}get(n,e){return n===An?this.route:n===Al?this.childContexts:n===iA?this.outletData:this.parent.get(n,e);}},Km=new A(""),JC=(()=>{class t{outletDataSubscriptions=new Map();bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e);}subscribeToRouteData(e){let{activatedRoute:i}=e,r=Jr([i.queryParams,i.params,i.data]).pipe(ai(([o,a,s],l)=>(s=B(B(B({},o),a),s),l===0?se(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return;}let a=NT(i.component);if(!a){this.unsubscribeFromRouteData(e);return;}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s]);});this.outletDataSubscriptions.set(e,r);}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})();function k9(t,n,e){let i=qm(t,n._root,e?e._root:void 0);return new $m(i,n);}function qm(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=M9(t,n,e);return new wr(i,r);}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>qm(t,s)),a;}}let i=S9(n.value),r=n.children.map(o=>qm(t,o));return new wr(i,r);}}function M9(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return qm(t,i,r);return qm(t,i);});}function S9(t){return new An(new Qt(t.url),new Qt(t.params),new Qt(t.queryParams),new Qt(t.fragment),new Qt(t.data),t.outlet,t.component,t);}var vd=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},nA="ngNavigationCancelingError";function i0(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=Os(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=rA(!1,ar.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r;}function rA(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[nA]=!0,e.cancellationCode=n,e;}function I9(t){return oA(t)&&Os(t.url);}function oA(t){return!!t&&t[nA];}var T9=(t,n,e,i)=>ue(r=>(new GC(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),GC=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),NC(this.futureState.root),this.activateChildRoutes(e,i,n);}deactivateChildRoutes(n,e,i){let r=md(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a];}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i);});}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o){if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,i);}else o&&this.deactivateRouteAndItsChildren(e,i);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=md(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s});}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=md(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null);}activateChildRoutes(n,e,i){let r=md(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new Xg(o.value.snapshot));}),n.children.length&&this.forwardEvent(new Kg(n.value.snapshot));}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(NC(r),r===o){if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,i);}else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),NC(s.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,i);}},n0=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},hd=class{component;route;constructor(n,e){this.component=n,this.route=e;}};function A9(t,n,e){let i=t._root,r=n?n._root:null;return Lm(i,r,e,[i.value]);}function R9(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n};}function xd(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!$M(t)?t:n.get(t):i;}function Lm(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=md(n);return t.children.forEach(a=>{O9(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,s])=>zm(s,e.getContext(a),r)),r;}function O9(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=P9(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new n0(i)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Lm(t,n,s?s.children:null,i,r):Lm(t,n,e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new hd(s.outlet.component,a));}else a&&zm(n,s,r),r.canActivateChecks.push(new n0(i)),o.component?Lm(t,null,s?s.children:null,i,r):Lm(t,null,e,i,r);return r;}function P9(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!Ml(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ml(t.url,n.url)||!Uo(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qC(t,n)||!Uo(t.queryParams,n.queryParams);case"paramsChange":default:return!qC(t,n);}}function zm(t,n,e){let i=md(t),r=t.value;Object.entries(i).forEach(([o,a])=>{r.component?n?zm(a,n.children.getContext(o),e):zm(a,null,e):zm(a,n,e);}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new hd(n.outlet.component,r)):e.canDeactivateChecks.push(new hd(null,r)):e.canDeactivateChecks.push(new hd(null,r));}function Zm(t){return typeof t=="function";}function F9(t){return typeof t=="boolean";}function N9(t){return t&&Zm(t.canLoad);}function L9(t){return t&&Zm(t.canActivate);}function V9(t){return t&&Zm(t.canActivateChild);}function z9(t){return t&&Zm(t.canDeactivate);}function B9(t){return t&&Zm(t.canMatch);}function aA(t){return t instanceof Pa||t?.name==="EmptyError";}var Ng=Symbol("INITIAL_VALUE");function yd(){return ai(t=>Jr(t.map(n=>n.pipe(de(1),ht(Ng)))).pipe(ue(n=>{for(let e of n)if(e!==!0){if(e===Ng)return Ng;if(e===!1||j9(e))return e;}return!0;}),Ie(n=>n!==Ng),de(1)));}function j9(t){return Os(t)||t instanceof vd;}function H9(t,n){return Pi(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?se(ze(B({},e),{guardsResult:!0})):$9(a,i,r,t).pipe(Pi(s=>s&&F9(s)?U9(i,o,t,n):se(s)),ue(s=>ze(B({},e),{guardsResult:s})));});}function $9(t,n,e,i){return Ot(t).pipe(Pi(r=>Q9(r.component,r.route,e,n,i)),Na(r=>r!==!0,!0));}function U9(t,n,e,i){return Ot(n).pipe(Mo(r=>bs(W9(r.route.parent,i),q9(r.route,i),Y9(t,r.path,e),G9(t,r.route,e))),Na(r=>r!==!0,!0));}function q9(t,n){return t!==null&&n&&n(new Zg(t)),se(!0);}function W9(t,n){return t!==null&&n&&n(new Qg(t)),se(!0);}function G9(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return se(!0);let r=i.map(o=>ko(()=>{let a=Qm(n)??e,s=xd(o,a),l=L9(s)?s.canActivate(n,t):er(a,()=>s(n,t));return Ps(l).pipe(Na());}));return se(r).pipe(yd());}function Y9(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>R9(a)).filter(a=>a!==null).map(a=>ko(()=>{let s=a.guards.map(l=>{let c=Qm(a.node)??e,h=xd(l,c),g=V9(h)?h.canActivateChild(i,t):er(c,()=>h(i,t));return Ps(g).pipe(Na());});return se(s).pipe(yd());}));return se(o).pipe(yd());}function Q9(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return se(!0);let a=o.map(s=>{let l=Qm(n)??r,c=xd(s,l),h=z9(c)?c.canDeactivate(t,n,e,i):er(l,()=>c(t,n,e,i));return Ps(h).pipe(Na());});return se(a).pipe(yd());}function K9(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return se(!0);let o=r.map(a=>{let s=xd(a,t),l=N9(s)?s.canLoad(n,e):er(t,()=>s(n,e));return Ps(l);});return se(o).pipe(yd(),sA(i));}function sA(t){return bv(vi(n=>{if(typeof n!="boolean")throw i0(t,n);}),ue(n=>n===!0));}function Z9(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return se(!0);let o=r.map(a=>{let s=xd(a,t),l=B9(s)?s.canMatch(n,e):er(t,()=>s(n,e));return Ps(l);});return se(o).pipe(yd(),sA(i));}var Wm=class{segmentGroup;constructor(n){this.segmentGroup=n||null;}},Gm=class extends Error{urlTree;constructor(n){super(),this.urlTree=n;}};function ud(t){return _s(new Wm(t));}function X9(t){return _s(new X(4e3,!1));}function J9(t){return _s(rA(!1,ar.GuardRejected));}var YC=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return se(i);if(r.numberOfChildren>1||!r.children[it])return X9(`${n.redirectTo}`);r=r.children[it];}}applyRedirectCommands(n,e,i,r,o){if(typeof e!="string"){let s=e,{queryParams:l,fragment:c,routeConfig:h,url:g,outlet:b,params:_,data:x,title:T}=r,L=er(o,()=>s({params:_,data:x,queryParams:l,fragment:c,routeConfig:h,url:g,outlet:b,title:T}));if(L instanceof Wo)throw new Gm(L);e=L;}let a=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e[0]==="/")throw new Gm(a);return a;}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new Wo(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment);}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);i[r]=e[s];}else i[r]=o;}),i;}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,r);}),new It(o,a);}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i));}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new X(4001,!1);return r;}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++;}return n;}},QC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function e$(t,n,e,i,r){let o=lA(t,n,e);return o.matched?(i=w9(n,i),Z9(i,n,e,r).pipe(ue(a=>a===!0?o:B({},QC)))):se(o);}function lA(t,n,e){if(n.path==="**")return t$(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?B({},QC):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||L2)(e,t,n);if(!r)return B({},QC);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path;});let a=r.consumed.length>0?B(B({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}};}function t$(t){return{matched:!0,parameters:t.length>0?z2(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}};}function P2(t,n,e,i){return e.length>0&&r$(t,e,i)?{segmentGroup:new It(n,n$(i,new It(e,t.children))),slicedSegments:[]}:e.length===0&&o$(t,e,i)?{segmentGroup:new It(t.segments,i$(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new It(t.segments,t.children),slicedSegments:e};}function i$(t,n,e,i){let r={};for(let o of e)if(o0(t,n,o)&&!i[so(o)]){let a=new It([],{});r[so(o)]=a;}return B(B({},i),r);}function n$(t,n){let e={};e[it]=n;for(let i of t)if(i.path===""&&so(i)!==it){let r=new It([],{});e[so(i)]=r;}return e;}function r$(t,n,e){return e.some(i=>o0(t,n,i)&&so(i)!==it);}function o$(t,n,e){return e.some(i=>o0(t,n,i));}function o0(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path==="";}function a$(t,n,e){return n.length===0&&!t.children[e];}var KC=class{};function s$(t,n,e,i,r,o,a="emptyOnly"){return new ZC(t,n,e,i,r,a,o).recognize();}var l$=31,ZC=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,o,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new YC(this.urlSerializer,this.urlTree);}noMatchError(n){return new X(4002,`'${n.segmentGroup}'`);}recognize(){let n=P2(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(ue(({children:e,rootSnapshot:i})=>{let r=new wr(i,e),o=new Um("",r),a=Y2(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a};}));}match(n){let e=new Sl([],Object.freeze({}),Object.freeze(B({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),it,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,it,e).pipe(ue(i=>({children:i,rootSnapshot:e})),Dn(i=>{if(i instanceof Gm)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Wm?this.noMatchError(i):i;}));}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(ue(a=>a instanceof wr?[a]:[]));}processChildren(n,e,i,r){let o=[];for(let a of Object.keys(i.children))a==="primary"?o.unshift(a):o.push(a);return Ot(o).pipe(Mo(a=>{let s=i.children[a],l=D9(e,a);return this.processSegmentGroup(n,l,s,a,r);}),Dv((a,s)=>(a.push(...s),a)),vs(null),wv(),Pi(a=>{if(a===null)return ud(i);let s=cA(a);return c$(s),se(s);}));}processSegment(n,e,i,r,o,a,s){return Ot(e).pipe(Mo(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,a,s).pipe(Dn(c=>{if(c instanceof Wm)return se(null);throw c;}))),Na(l=>!!l),Dn(l=>{if(aA(l))return a$(i,r,o)?se(new KC()):ud(i);throw l;}));}processSegmentAgainstRoute(n,e,i,r,o,a,s,l){return so(i)!==a&&(a===it||!o0(r,o,i))?ud(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,a,l):ud(r);}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a,s){let{matched:l,parameters:c,consumedSegments:h,positionalParamSegments:g,remainingSegments:b}=lA(e,r,o);if(!l)return ud(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>l$&&(this.allowRedirects=!1));let _=new Sl(o,c,Object.freeze(B({},this.urlTree.queryParams)),this.urlTree.fragment,F2(r),so(r),r.component??r._loadedComponent??null,r,N2(r)),x=t0(_,s,this.paramsInheritanceStrategy);_.params=Object.freeze(x.params),_.data=Object.freeze(x.data);let T=this.applyRedirects.applyRedirectCommands(h,r.redirectTo,g,_,n);return this.applyRedirects.lineralizeSegments(r,T).pipe(Pi(L=>this.processSegment(n,i,e,L.concat(b),a,!1,s)));}matchSegmentAgainstRoute(n,e,i,r,o,a){let s=e$(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),s.pipe(ai(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(ai(({routes:c})=>{let h=i._loadedInjector??n,{parameters:g,consumedSegments:b,remainingSegments:_}=l,x=new Sl(b,g,Object.freeze(B({},this.urlTree.queryParams)),this.urlTree.fragment,F2(i),so(i),i.component??i._loadedComponent??null,i,N2(i)),T=t0(x,a,this.paramsInheritanceStrategy);x.params=Object.freeze(T.params),x.data=Object.freeze(T.data);let{segmentGroup:L,slicedSegments:q}=P2(e,b,_,c);if(q.length===0&&L.hasChildren())return this.processChildren(h,c,L,x).pipe(ue(Y=>new wr(x,Y)));if(c.length===0&&q.length===0)return se(new wr(x,[]));let ie=so(i)===o;return this.processSegment(h,c,L,q,ie?it:o,!0,x).pipe(ue(Y=>new wr(x,Y instanceof wr?[Y]:[])));}))):ud(e)));}getChildConfig(n,e,i){return e.children?se({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?se({routes:e._loadedRoutes,injector:e._loadedInjector}):K9(n,e,i,this.urlSerializer).pipe(Pi(r=>r?this.configLoader.loadChildren(n,e).pipe(vi(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector;})):J9(e))):se({routes:[],injector:n});}};function c$(t){t.sort((n,e)=>n.value.outlet===it?-1:e.value.outlet===it?1:n.value.outlet.localeCompare(e.value.outlet));}function d$(t){let n=t.value.routeConfig;return n&&n.path==="";}function cA(t){let n=[],e=new Set();for(let i of t){if(!d$(i)){n.push(i);continue;}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i);}for(let i of e){let r=cA(i.children);n.push(new wr(i.value,r));}return n.filter(i=>!e.has(i));}function F2(t){return t.data||{};}function N2(t){return t.resolve||{};}function u$(t,n,e,i,r,o){return Pi(a=>s$(t,n,e,i,a.extractedUrl,r,o).pipe(ue(({state:s,tree:l})=>ze(B({},a),{targetSnapshot:s,urlAfterRedirects:l}))));}function m$(t,n){return Pi(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return se(e);let o=new Set(r.map(l=>l.route)),a=new Set();for(let l of o)if(!a.has(l))for(let c of dA(l))a.add(c);let s=0;return Ot(a).pipe(Mo(l=>o.has(l)?p$(l,i,t,n):(l.data=t0(l,l.parent,t).resolve,se(void 0))),vi(()=>s++),Tc(1),Pi(l=>s===a.size?se(e):Di));});}function dA(t){let n=t.children.map(e=>dA(e)).flat();return[t,...n];}function p$(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!tA(r)&&(o[Ym]=r.title),h$(o,t,n,i).pipe(ue(a=>(t._resolvedData=a,t.data=t0(t,t.parent,e).resolve,null)));}function h$(t,n,e,i){let r=zC(t);if(r.length===0)return se({});let o={};return Ot(r).pipe(Pi(a=>f$(t[a],n,e,i).pipe(Na(),vi(s=>{if(s instanceof vd)throw i0(new Rs(),s);o[a]=s;}))),Tc(1),ue(()=>o),Dn(a=>aA(a)?Di:_s(a)));}function f$(t,n,e,i){let r=Qm(n)??i,o=xd(t,r),a=o.resolve?o.resolve(n,e):er(r,()=>o(n,e));return Ps(a);}function LC(t){return ai(n=>{let e=t(n);return e?Ot(e).pipe(ue(()=>n)):se(n);});}var ew=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===it);return i;}getResolvedTitleForRoute(e){return e.data[Ym];}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:()=>p(uA),providedIn:"root"});}return t;})(),uA=(()=>{class t extends ew{title;constructor(e){super(),this.title=e;}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i);}static ɵfac=function(i){return new(i||t)(te(Tn));};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),Rl=new A("",{providedIn:"root",factory:()=>({})}),tw=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){i&1&&w(0,"router-outlet");},dependencies:[Xa],encapsulation:2});}return t;})();function iw(t){let n=t.children&&t.children.map(iw),e=n?ze(B({},t),{children:n}):B({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==it&&(e.component=tw),e;}var Ol=new A(""),a0=(()=>{class t{componentLoaders=new WeakMap();childrenLoaders=new WeakMap();onLoadStartListener;onLoadEndListener;compiler=p(dg);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return se(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Ps(e.loadComponent()).pipe(ue(pA),vi(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o;}),So(()=>{this.componentLoaders.delete(e);})),r=new gs(i,()=>new H()).pipe(kc());return this.componentLoaders.set(e,r),r;}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return se({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=mA(i,this.compiler,e,this.onLoadEndListener).pipe(So(()=>{this.childrenLoaders.delete(i);})),a=new gs(o,()=>new H()).pipe(kc());return this.childrenLoaders.set(i,a),a;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function mA(t,n,e,i){return Ps(t.loadChildren()).pipe(ue(pA),Pi(r=>r instanceof Ux||Array.isArray(r)?se(r):Ot(n.compileModuleAsync(r))),ue(r=>{i&&i(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(Ol,[],{optional:!0,self:!0}).flat()),{routes:a.map(iw),injector:o};}));}function g$(t){return t&&typeof t=="object"&&"default"in t;}function pA(t){return g$(t)?t.default:t;}var s0=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:()=>p(_$),providedIn:"root"});}return t;})(),_$=(()=>{class t{shouldProcessUrl(e){return!0;}extract(e){return e;}merge(e,i){return e;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),nw=new A(""),rw=new A("");function hA(t,n,e){let i=t.get(rw),r=t.get(_e);return t.get(ae).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,a=new Promise(c=>{o=c;}),s=r.startViewTransition(()=>(o(),b$(t))),{onViewTransitionCreated:l}=i;return l&&er(t,()=>l({transition:s,from:n,to:e})),a;});}function b$(t){return new Promise(n=>{li({read:()=>setTimeout(n)},{injector:t});});}var ow=new A(""),l0=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new H();transitionAbortSubject=new H();configLoader=p(a0);environmentInjector=p(Ei);destroyRef=p(Xc);urlSerializer=p(Tl);rootContexts=p(Al);location=p($o);inputBindingEnabled=p(Km,{optional:!0})!==null;titleStrategy=p(ew);options=p(Rl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(s0);createViewTransition=p(nw,{optional:!0});navigationErrorHandler=p(ow,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0;}transitions;afterPreactivation=()=>se(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=r=>this.events.next(new Gg(r)),i=r=>this.events.next(new Yg(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(ze(B({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:i}));}setupNavigations(e){return this.transitions=new Qt(null),this.transitions.pipe(Ie(i=>i!==null),ai(i=>{let r=!1,o=!1;return se(i).pipe(ai(a=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",ar.SupersededByNewNavigation),Di;this.currentTransition=i,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?ze(B({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&l!=="reload"){let c="";return this.events.next(new Go(a.id,this.urlSerializer.serialize(a.rawUrl),c,fd.IgnoredSameUrlNavigation)),a.resolve(!1),Di;}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return se(a).pipe(ai(c=>(this.events.next(new Er(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?Di:Promise.resolve(c))),u$(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),vi(c=>{i.targetSnapshot=c.targetSnapshot,i.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation=ze(B({},this.currentNavigation),{finalUrl:c.urlAfterRedirects});let h=new jm(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h);}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:c,extractedUrl:h,source:g,restoredState:b,extras:_}=a,x=new Er(c,this.urlSerializer.serialize(h),g,b);this.events.next(x);let T=J2(this.rootComponentType).snapshot;return this.currentTransition=i=ze(B({},a),{targetSnapshot:T,urlAfterRedirects:h,extras:ze(B({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,se(i);}else{let c="";return this.events.next(new Go(a.id,this.urlSerializer.serialize(a.extractedUrl),c,fd.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Di;}}),vi(a=>{let s=new $g(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s);}),ue(a=>(this.currentTransition=i=ze(B({},a),{guards:A9(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),i)),H9(this.environmentInjector,a=>this.events.next(a)),vi(a=>{if(i.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw i0(this.urlSerializer,a.guardsResult);let s=new Ug(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s);}),Ie(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",ar.GuardRejected),!1)),LC(a=>{if(a.guards.canActivateChecks.length!==0)return se(a).pipe(vi(s=>{let l=new qg(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(l);}),ai(s=>{let l=!1;return se(s).pipe(m$(this.paramsInheritanceStrategy,this.environmentInjector),vi({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(s,"",ar.NoDataFromResolver);}}));}),vi(s=>{let l=new Wg(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(l);}));}),LC(a=>{let s=l=>{let c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(vi(h=>{l.component=h;}),ue(()=>{})));for(let h of l.children)c.push(...s(h));return c;};return Jr(s(a.targetSnapshot.root)).pipe(vs(null),de(1));}),LC(()=>this.afterPreactivation()),ai(()=>{let{currentSnapshot:a,targetSnapshot:s}=i,l=this.createViewTransition?.(this.environmentInjector,a.root,s.root);return l?Ot(l).pipe(ue(()=>i)):se(i);}),ue(a=>{let s=k9(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=i=ze(B({},a),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,i;}),vi(()=>{this.events.next(new Hm());}),T9(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),de(1),vi({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new jn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0);},complete:()=>{r=!0;}}),Ve(this.transitionAbortSubject.pipe(vi(a=>{throw a;}))),So(()=>{!r&&!o&&this.cancelNavigationTransition(i,"",ar.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null);}),Dn(a=>{if(this.destroyed)return i.resolve(!1),Di;if(o=!0,oA(a))this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),a.message,a.cancellationCode)),I9(a)?this.events.next(new bd(a.url,a.navigationBehaviorOptions)):i.resolve(!1);else{let s=new gd(i.id,this.urlSerializer.serialize(i.extractedUrl),a,i.targetSnapshot??void 0);try{let l=er(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(l instanceof vd){let{message:c,cancellationCode:h}=i0(this.urlSerializer,l);this.events.next(new qo(i.id,this.urlSerializer.serialize(i.extractedUrl),c,h)),this.events.next(new bd(l.redirectTo,l.navigationBehaviorOptions));}else throw this.events.next(s),a;}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l);}}return Di;}));}));}cancelNavigationTransition(e,i,r){let o=new qo(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString();}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.��currentNavigation?.extras.skipLocationChange;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function v$(t){return t!==Bg;}var c0=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:()=>p(y$),providedIn:"root"});}return t;})(),r0=class{shouldDetach(n){return!1;}store(n,e){}shouldAttach(n){return!1;}retrieve(n){return null;}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig;}},y$=(()=>{class t extends r0{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),fA=(()=>{class t{urlSerializer=p(Tl);options=p(Rl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p($o);urlHandlingStrategy=p(s0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Wo();getCurrentUrlTree(){return this.currentUrlTree;}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree;}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,a=r??o;return a instanceof Wo?this.urlSerializer.serialize(a):a;}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r;}routerState=J2(null);getRouterState(){return this.routerState;}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento();}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState};}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:()=>p(x$),providedIn:"root"});}return t;})(),x$=(()=>{class t extends fA{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState();}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId;}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{e(i.url,i.state,"popstate");});});}handleRouterEvent(e,i){e instanceof Er?this.updateStateMemento():e instanceof Go?this.commitTransition(i):e instanceof jm?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Hm?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof qo&&(e.code===ar.GuardRejected||e.code===ar.NoDataFromResolver)?this.restoreHistory(i):e instanceof gd?this.restoreHistory(i,!0):e instanceof jn&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,{extras:i,id:r}){let{replaceUrl:o,state:a}=i;if(this.location.isCurrentPathEqualTo(e)||o){let s=this.browserPageId,l=B(B({},a),this.generateNgRouterState(r,s));this.location.replaceState(e,"",l);}else{let s=B(B({},a),this.generateNgRouterState(r,this.browserPageId+1));this.location.go(e,"",s);}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,ɵrouterPageId:i}:{navigationId:e};}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function d0(t,n){t.events.pipe(Ie(e=>e instanceof jn||e instanceof qo||e instanceof gd||e instanceof Go),ue(e=>e instanceof jn||e instanceof Go?0:(e instanceof qo?e.code===ar.Redirect||e.code===ar.SupersededByNewNavigation:!1)?2:1),Ie(e=>e!==2),de(1)).subscribe(()=>{n();});}var C$={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},w$={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Xe=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree();}get rawUrlTree(){return this.stateManager.getRawUrlTree();}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(Yx);stateManager=p(fA);options=p(Rl,{optional:!0})||{};pendingTasks=p($a);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(l0);urlSerializer=p(Tl);location=p($o);urlHandlingStrategy=p(s0);_events=new H();get events(){return this._events;}get routerState(){return this.stateManager.getRouterState();}navigated=!1;routeReuseStrategy=p(c0);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Ol,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(Km,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e);}}),this.subscribeToNavigationEvents();}eventsSubscription=new ve();subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof qo&&i.code!==ar.Redirect&&i.code!==ar.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof jn)this.navigated=!0;else if(i instanceof bd){let a=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=B({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||v$(r.source)},a);this.scheduleNavigation(s,Bg,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise});}}E$(i)&&this._events.next(i);}catch(r){this.navigationTransitions.transitionAbortSubject.next(r);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Bg,this.stateManager.restoredState());}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i);});}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=B({},r);delete l.navigationId,delete l.ɵrouterPageId,Object.keys(l).length!==0&&(o.state=l);}let s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o);}get url(){return this.serializeUrl(this.currentUrlTree);}getCurrentNavigation(){return this.navigationTransitions.currentNavigation;}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation;}resetConfig(e){this.config=e.map(iw),this.navigated=!1;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe();}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=B(B({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null;}h!==null&&(h=this.removeEmptyProps(h));let g;try{let b=r?r.snapshot:this.routerState.snapshot.root;g=Q2(b);}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),g=this.currentUrlTree.root;}return K2(g,e,h,c??null);}navigateByUrl(e,i={skipLocationChange:!1}){let r=Os(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Bg,null,i);}navigate(e,i={skipLocationChange:!1}){return D$(e),this.navigateByUrl(this.createUrlTree(e,i),i);}serializeUrl(e){return this.urlSerializer.serialize(e);}parseUrl(e){try{return this.urlSerializer.parse(e);}catch{return this.urlSerializer.parse("/");}}isActive(e,i){let r;if(i===!0?r=B({},C$):i===!1?r=B({},w$):r=i,Os(e))return T2(this.currentUrlTree,e,r);let o=this.parseUrl(e);return T2(this.currentUrlTree,o,r);}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{});}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((g,b)=>{s=g,l=b;});let h=this.pendingTasks.add();return d0(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h));}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(g=>Promise.reject(g));}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function D$(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new X(4008,!1);}function E$(t){return!(t instanceof Hm)&&!(t instanceof bd);}var Bt=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new H();constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof jn&&this.updateHref();}):this.setTabIndexIfNotOnNativeEl("0");}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this);}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Os(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,i,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||i||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l),!this.isAnchorElement;}ngOnDestroy(){this.subscription?.unsubscribe();}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:_I(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i);}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e);}get urlTree(){return this.routerLinkInput===null?null:Os(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment});}static ɵfac=function(i){return new(i||t)(D(Xe),D(An),Yf("tabindex"),D(tt),D(J),D(oo));};static ɵdir=z({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&S("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey);}),i&2&&ee("target",r.target);},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",U],skipLocationChange:[2,"skipLocationChange","skipLocationChange",U],replaceUrl:[2,"replaceUrl","replaceUrl",U],routerLink:"routerLink"},features:[He]});}return t;})(),Pl=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive;}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new V();constructor(e,i,r,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof jn&&this.update();});}ngAfterContentInit(){se(this.links.changes,se(null)).pipe(Eo()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Ot(e).pipe(Eo()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update();});}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let i=k$(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1;};}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e);}static ɵfac=function(i){return new(i||t)(D(Xe),D(J),D(tt),D(pe),D(Bt,8));};static ɵdir=z({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&Ee(o,Bt,5),i&2){let a;R(a=O())&&(r.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[He]});}return t;})();function k$(t){return!!t.paths;}var Xm=class{};var gA=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,o,a){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=a;}setUpPreloading(){this.subscription=this.router.events.pipe(Ie(e=>e instanceof jn),Mo(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config);}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe();}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=mm(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes));}return Ot(r).pipe(Eo());}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=se(null);let o=r.pipe(Pi(a=>a===null?se(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return Ot([o,a]).pipe(Eo());}else return o;});}static ɵfac=function(i){return new(i||t)(te(Xe),te(dg),te(Ei),te(Xm),te(a0));};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),_A=new A(""),M$=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled";}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Er?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof jn?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Go&&e.code===fd.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));});}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof _d&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]));});}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new _d(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i));});},0);});}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static ɵfac=function(i){od();};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})();function sw(t,...n){return Wc([{provide:Ol,multi:!0,useValue:t},[],{provide:An,useFactory:bA,deps:[Xe]},{provide:sg,multi:!0,useFactory:vA},n.map(e=>e.ɵproviders)]);}function bA(t){return t.routerState.root;}function Jm(t,n){return{ɵkind:t,ɵproviders:n};}function vA(){let t=p(Se);return n=>{let e=t.get(Jn);if(n!==e.components[0])return;let i=t.get(Xe),r=t.get(yA);t.get(lw)===1&&i.initialNavigation(),t.get(wA,null,dt.Optional)?.setUpPreloading(),t.get(_A,null,dt.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe());};}var yA=new A("",{factory:()=>new H()}),lw=new A("",{providedIn:"root",factory:()=>1});function xA(){let t=[{provide:lw,useValue:0},hm(()=>{let n=p(Se);return n.get(cC,Promise.resolve()).then(()=>new Promise(i=>{let r=n.get(Xe),o=n.get(yA);d0(r,()=>{i(!0);}),n.get(l0).afterPreactivation=()=>(i(!0),o.closed?se(void 0):o),r.initialNavigation();}));})];return Jm(2,t);}function CA(){let t=[hm(()=>{p(Xe).setUpLocationChangeListener();}),{provide:lw,useValue:2}];return Jm(3,t);}var wA=new A("");function DA(t){return Jm(0,[{provide:wA,useExisting:gA},{provide:Xm,useExisting:t}]);}function EA(){return Jm(8,[JC,{provide:Km,useExisting:JC}]);}function kA(t){jo("NgRouterViewTransitions");let n=[{provide:nw,useValue:hA},{provide:rw,useValue:B({skipNextTransition:!!t?.skipInitialTransition},t)}];return Jm(9,n);}var MA=[$o,{provide:Tl,useClass:Rs},Xe,Al,{provide:An,useFactory:bA,deps:[Xe]},a0,[]],Ft=(()=>{class t{constructor(){}static forRoot(e,i){return{ngModule:t,providers:[MA,[],{provide:Ol,multi:!0,useValue:e},[],i?.errorHandler?{provide:ow,useValue:i.errorHandler}:[],{provide:Rl,useValue:i||{}},i?.useHash?I$():T$(),S$(),i?.preloadingStrategy?DA(i.preloadingStrategy).ɵproviders:[],i?.initialNavigation?A$(i):[],i?.bindToComponentInputs?EA().ɵproviders:[],i?.enableViewTransitions?kA().ɵproviders:[],R$()]};}static forChild(e){return{ngModule:t,providers:[{provide:Ol,multi:!0,useValue:e}]};}static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({});}return t;})();function S$(){return{provide:_A,useFactory:()=>{let t=p(a2),n=p(ae),e=p(Rl),i=p(l0),r=p(Tl);return e.scrollOffset&&t.setOffset(e.scrollOffset),new M$(r,i,t,n,e);}};}function I$(){return{provide:oo,useClass:gC};}function T$(){return{provide:oo,useClass:hg};}function A$(t){return[t.initialNavigation==="disabled"?CA().ɵproviders:[],t.initialNavigation==="enabledBlocking"?xA().ɵproviders:[]];}var aw=new A("");function R$(){return[{provide:aw,useFactory:vA},{provide:sg,multi:!0,useExisting:aw}];}var cw;try{cw=typeof Intl<"u"&&Intl.v8BreakIterator;}catch{cw=!1;}var Ae=(()=>{class t{_platformId=p(Bo);isBrowser=this._platformId?_C(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||cw)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var ep;function SA(){if(ep==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ep=!0}));}finally{ep=ep||!1;}return ep;}function Fs(t){return SA()?t:!!t.capture;}var lo=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t;}(lo||{}),u0,Fl;function m0(){if(Fl==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Fl=!1,Fl;if("scrollBehavior"in document.documentElement.style)Fl=!0;else{let t=Element.prototype.scrollTo;t?Fl=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Fl=!1;}}return Fl;}function Cd(){if(typeof document!="object"||!document)return lo.NORMAL;if(u0==null){let t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";let e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),u0=lo.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,u0=t.scrollLeft===0?lo.NEGATED:lo.INVERTED),t.remove();}return u0;}var dw;function IA(){if(dw==null){let t=typeof document<"u"?document.head:null;dw=!!(t&&(t.createShadowRoot||t.attachShadow));}return dw;}function uw(t){if(IA()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n;}return null;}function co(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let n=t.shadowRoot.activeElement;if(n===t)break;t=n;}return t;}function Hn(t){return t.composedPath?t.composedPath()[0]:t.target;}function mw(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha;}function Wt(t,n,e,i,r){let o=parseInt(aC.major),a=parseInt(aC.minor);return o>19||o===19&&a>0||o===0&&a===0?t.listen(n,e,i,r):(n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r);});}var wd,TA=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function pw(){if(wd)return wd;if(typeof document!="object"||!document)return wd=new Set(TA),wd;let t=document.createElement("input");return wd=new Set(TA.filter(n=>(t.setAttribute("type",n),t.type===n))),wd;}function Nl(t){return t.buttons===0||t.detail===0;}function Ll(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1);}function $n(t,n=0){return p0(t)?Number(t):arguments.length===2?n:0;}function p0(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t));}function Un(t){return t instanceof J?t.nativeElement:t;}var AA=new A("cdk-input-modality-detector-options"),RA={ignoreKeys:[18,17,224,91,16]},OA=650,hw={passive:!0,capture:!0},PA=(()=>{class t{_platform=p(Ae);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value;}_mostRecentTarget=null;_modality=new Qt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Hn(e));};_onMousedown=e=>{Date.now()-this._lastTouchMs<OA||(this._modality.next(Nl(e)?"keyboard":"mouse"),this._mostRecentTarget=Hn(e));};_onTouchstart=e=>{if(Ll(e)){this._modality.next("keyboard");return;}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Hn(e);};constructor(){let e=p(ae),i=p(_e),r=p(AA,{optional:!0});if(this._options=B(B({},RA),r),this.modalityDetected=this._modality.pipe(al(1)),this.modalityChanged=this.modalityDetected.pipe(Qh()),this._platform.isBrowser){let o=p(Fi).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[Wt(o,i,"keydown",this._onKeydown,hw),Wt(o,i,"mousedown",this._onMousedown,hw),Wt(o,i,"touchstart",this._onTouchstart,hw)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e());}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),tp=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t;}(tp||{}),FA=new A("cdk-focus-monitor-default-options"),h0=Fs({passive:!0,capture:!0}),Mi=(()=>{class t{_ngZone=p(ae);_platform=p(Ae);_inputModalityDetector=p(PA);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map();_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map();_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1);};_document=p(_e,{optional:!0});_stopInputModalityDetector=new H();constructor(){let e=p(FA,{optional:!0});this._detectionMode=e?.detectionMode||tp.IMMEDIATE;}_rootNodeFocusAndBlurListener=e=>{let i=Hn(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r);};monitor(e,i=!1){let r=Un(e);if(!this._platform.isBrowser||r.nodeType!==1)return se();let o=uw(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new H(),rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject;}stopMonitoring(e){let i=Un(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r));}focusVia(e,i,r){let o=Un(e),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r));}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i));}_getDocument(){return this._document||document;}_getWindow(){return this._getDocument().defaultView||window;}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program";}_shouldBeAttributedToTouch(e){return this._detectionMode===tp.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget);}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program");}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===tp.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?OA:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r);}});}_onFocus(e,i){let r=this._elementInfo.get(i),o=Hn(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r);}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null));}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i));}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,h0),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,h0);}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Ve(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0);}));}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,h0),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,h0),this._rootNodeFocusListenerCount.delete(i));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i;}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r]);}),i;}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a<o.length;a++)if(o[a].contains(i))return!0;}return!1;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),ip=(()=>{class t{_elementRef=p(J);_focusMonitor=p(Mi);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new V();constructor(){}get focusOrigin(){return this._focusOrigin;}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i);});}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe();}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});}return t;})();var f0=new WeakMap(),nt=(()=>{class t{_appRef;_injector=p(Se);_environmentInjector=p(Ei);load(e){let i=this._appRef=this._appRef||this._injector.get(Jn),r=f0.get(i);r||(r={loaders:new Set(),refs:[]},f0.set(i,r),i.onDestroy(()=>{f0.get(i)?.refs.forEach(o=>o.destroy()),f0.delete(i);})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(ug(e,{environmentInjector:this._environmentInjector})));}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var Br=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,select��ors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},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}
`],encapsulation:2,changeDetection:0});}return t;})();function Dd(t){return Array.isArray(t)?t:[t];}var NA=new Set(),Vl,VA=(()=>{class t{_platform=p(Ae);_nonce=p(am,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):P$;}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&O$(e,this._nonce),this._matchMedia(e);}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function O$(t,n){if(!NA.has(t))try{Vl||(Vl=document.createElement("style"),n&&Vl.setAttribute("nonce",n),Vl.setAttribute("type","text/css"),document.head.appendChild(Vl)),Vl.sheet&&(Vl.sheet.insertRule(`@media ${t} {body{ }}`,0),NA.add(t));}catch(e){console.error(e);}}function P$(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}};}var Ja=(()=>{class t{_mediaMatcher=p(VA);_zone=p(ae);_queries=new Map();_destroySubject=new H();constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(e){return LA(Dd(e)).some(r=>this._registerQuery(r).mql.matches);}observe(e){let r=LA(Dd(e)).map(a=>this._registerQuery(a).observable),o=Jr(r);return o=bs(o.pipe(de(1)),o.pipe(al(1),Fa(0))),o.pipe(ue(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l;}),s;}));}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new qe(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s);};}).pipe(ht(i),ue(({matches:a})=>({query:e,matches:a})),Ve(this._destroySubject)),mql:i};return this._queries.set(e,o),o;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function LA(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim());}function F$(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let n=0;n<t.addedNodes.length;n++)if(!(t.addedNodes[n]instanceof Comment))return!1;for(let n=0;n<t.removedNodes.length;n++)if(!(t.removedNodes[n]instanceof Comment))return!1;return!0;}return!1;}var zA=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e);}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),BA=(()=>{class t{_mutationObserverFactory=p(zA);_observedElements=new Map();_ngZone=p(ae);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i));}observe(e){let i=Un(e);return new qe(r=>{let a=this._observeElement(i).pipe(ue(s=>s.filter(l=>!F$(l))),Ie(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s);});});return()=>{a.unsubscribe(),this._unobserveElement(i);};});}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new H(),r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1});}return this._observedElements.get(e).stream;});}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e));}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e);}}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),g0=(()=>{class t{_contentObserver=p(BA);_elementRef=p(J);event=new V();get disabled(){return this._disabled;}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe();}_disabled=!1;get debounce(){return this._debounce;}set debounce(e){this._debounce=$n(e),this._subscribe();}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe();}ngOnDestroy(){this._unsubscribe();}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Fa(this.debounce)):e).subscribe(this.event);}_unsubscribe(){this._currentSubscription?.unsubscribe();}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",U],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});}return t;})(),Ed=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[zA]});}return t;})();var _0=(()=>{class t{_platform=p(Ae);constructor(){}isDisabled(e){return e.hasAttribute("disabled");}isVisible(e){return L$(e)&&getComputedStyle(e).visibility==="visible";}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=N$(q$(e));if(i&&(jA(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=jA(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!$$(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0;}isFocusable(e,i){return U$(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e));}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function N$(t){try{return t.frameElement;}catch{return null;}}function L$(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length);}function V$(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea";}function z$(t){return j$(t)&&t.type=="hidden";}function B$(t){return H$(t)&&t.hasAttribute("href");}function j$(t){return t.nodeName.toLowerCase()=="input";}function H$(t){return t.nodeName.toLowerCase()=="a";}function UA(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)));}function jA(t){if(!UA(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n;}function $$(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea";}function U$(t){return z$(t)?!1:V$(t)||B$(t)||t.hasAttribute("contenteditable")||UA(t);}function q$(t){return t.ownerDocument&&t.ownerDocument.defaultView||window;}var gw=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled;}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor));}_enabled=!0;constructor(n,e,i,r,o=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,o||this.attachAnchors();}destroy(){let n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1;}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener));}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached);}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)));});}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)));});}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)));});}_getRegionBoundary(n){let e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element);}focusInitialElement(n){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(n),!!i;}return e.focus(n),!0;}return this.focusFirstTabbableElement(n);}focusFirstTabbableElement(n){let e=this._getRegionBoundary("start");return e&&e.focus(n),!!e;}focusLastTabbableElement(n){let e=this._getRegionBoundary("end");return e&&e.focus(n),!!e;}hasAttached(){return this._hasAttached;}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=0;i<e.length;i++){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(r)return r;}return null;}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=e.length-1;i>=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r;}return null;}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n;}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex");}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor));}_executeOnStable(n){this._injector?li(n,{injector:this._injector}):setTimeout(n);}},b0=(()=>{class t{_checker=p(_0);_ngZone=p(ae);_document=p(_e);_injector=p(Se);constructor(){p(nt).load(Br);}create(e,i=!1){return new gw(e,this._checker,this._ngZone,this._document,i,this._injector);}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),_w=(()=>{class t{_elementRef=p(J);_focusTrapFactory=p(b0);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1;}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e);}autoCapture;constructor(){p(Ae).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0));}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null);}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus();}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors();}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus();}_captureFocus(){this._previouslyFocusedElement=co(),this.focusTrap?.focusInitialElementWhenReady();}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",U],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",U]},exportAs:["cdkTrapFocus"],features:[He]});}return t;})(),qA=new A("liveAnnouncerElement",{providedIn:"root",factory:WA});function WA(){return null;}var GA=new A("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),W$=0,zl=(()=>{class t{_ngZone=p(ae);_defaultOptions=p(GA,{optional:!0});_liveElement;_document=p(_e);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(qA,{optional:!0});this._liveElement=e||this._createLiveElement();}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;},100),this._currentPromise));}clear(){this._liveElement&&(this._liveElement.textContent="");}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;}_createLiveElement(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o<i.length;o++)i[o].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${W$++}`,this._document.body.appendChild(r),r;}_exposeAnnouncerToModals(e){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<i.length;r++){let o=i[r],a=o.getAttribute("aria-owns");a?a.indexOf(e)===-1&&o.setAttribute("aria-owns",a+" "+e):o.setAttribute("aria-owns",e);}}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var Ns=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t;}(Ns||{}),HA="cdk-high-contrast-black-on-white",$A="cdk-high-contrast-white-on-black",fw="cdk-high-contrast-active",v0=(()=>{class t{_platform=p(Ae);_hasCheckedHighContrastMode;_document=p(_e);_breakpointSubscription;constructor(){this._breakpointSubscription=p(Ja).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses());});}getHighContrastMode(){if(!this._platform.isBrowser)return Ns.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Ns.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Ns.BLACK_ON_WHITE;}return Ns.NONE;}ngOnDestroy(){this._breakpointSubscription.unsubscribe();}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(fw,HA,$A),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Ns.BLACK_ON_WHITE?e.add(fw,HA):i===Ns.WHITE_ON_BLACK&&e.add(fw,$A);}}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),es=(()=>{class t{constructor(){p(v0)._applyBodyHighContrastModeCssClasses();}static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[Ed]});}return t;})();var bw={},Ye=(()=>{class t{_appId=p(Cl);getId(e){return this._appId!=="ng"&&(e+=this._appId),bw.hasOwnProperty(e)||(bw[e]=0),`${e}${bw[e]++}`;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var G$=200,y0=class{_letterKeyStream=new H();_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new H();selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:G$;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n;}setItems(n){this._items=n;}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e));}isTyping(){return this._pressedLetters.length>0;}reset(){this._pressedLetters=[];}_setupKeyHandler(n){this._letterKeyStream.pipe(vi(e=>this._pressedLetters.push(e)),Fa(n),Ie(()=>this._pressedLetters.length>0),ue(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;i<this._items.length+1;i++){let r=(this._selectedItemIndex+i)%this._items.length,o=this._items[r];if(!this._skipPredicateFn?.(o)&&o.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(o);break;}}this._pressedLetters=[];});}};function ti(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey;}var kd=class{_items;_activeItemIndex=-1;_activeItem=Zi(null);_wrap=!1;_typeaheadSubscription=ve.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof pn?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):ks(n)&&(this._effectRef=_m(()=>this._itemsChanged(n()),{injector:e}));}tabOut=new H();change=new H();skipPredicate(n){return this._skipPredicateFn=n,this;}withWrap(n=!0){return this._wrap=n,this;}withVerticalOrientation(n=!0){return this._vertical=n,this;}withHorizontalOrientation(n){return this._horizontal=n,this;}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this;}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new y0(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i);}),this;}cancelTypeahead(){return this._typeahead?.reset(),this;}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this;}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this;}setActiveItem(n){let e=this._activeItem();this.updateActiveItem(n),this._activeItem()!==e&&this.change.next(this._activeItemIndex);}onKeydown(n){let e=n.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break;}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break;}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break;}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break;}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break;}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break;}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break;}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o<a?o:a-1,-1);break;}else return;default:(r||ti(n,"shiftKey"))&&this._typeahead?.handleKey(n);return;}this._typeahead?.reset(),n.preventDefault();}get activeItemIndex(){return this._activeItemIndex;}get activeItem(){return this._activeItem();}isTyping(){return!!this._typeahead&&this._typeahead.isTyping();}setFirstItemActive(){this._setActiveItemByIndex(0,1);}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1);}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1);}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1);}updateActiveItem(n){let e=this._getItemsArray(),i=typeof n=="number"?n:e.indexOf(n),r=e[i];this._activeItem.set(r??null),this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i);}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete();}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n);}_setActiveInWrapMode(n){let e=this._getItemsArray();for(let i=1;i<=e.length;i++){let r=(this._activeItemIndex+n*i+e.length)%e.length,o=e[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return;}}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n);}_setActiveItemByIndex(n,e){let i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(n+=e,!i[n])return;this.setActiveItem(n);}}_getItemsArray(){return ks(this._items)?this._items():this._items instanceof pn?this._items.toArray():this._items;}_itemsChanged(n){this._typeahead?.setItems(n);let e=this._activeItem();if(e){let i=n.indexOf(e);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i));}}};var np=class extends kd{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles();}};var uo=class extends kd{_origin="program";setFocusOrigin(n){return this._origin=n,this;}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin);}};var KA=" ";function xw(t,n,e){let i=k0(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(KA)));}function M0(t,n,e){let i=k0(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(KA)):t.removeAttribute(n);}function k0(t,n){return t.getAttribute(n)?.match(/\S+/g)??[];}var ZA="cdk-describedby-message",E0="cdk-describedby-host",yw=0,rp=(()=>{class t{_platform=p(Ae);_document=p(_e);_messageRegistry=new Map();_messagesContainer=null;_id=`${yw++}`;constructor(){p(nt).load(Br),this._id=p(Cl)+"-"+yw++;}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=vw(i,r);typeof i!="string"?(QA(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o);}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=vw(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o);}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null);}ngOnDestroy(){let e=this._document.querySelectorAll(`[${E0}="${this._id}"]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(E0);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear();}_createMessageElement(e,i){let r=this._document.createElement("div");QA(r,this._id),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(vw(e,i),{messageElement:r,referenceCount:0});}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e);}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let o=0;o<i.length;o++)i[o].remove();let r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(e),r.classList.add("cdk-visually-hidden"),this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r;}_removeCdkDescribedByReferenceIds(e){let i=k0(e,"aria-describedby").filter(r=>r.indexOf(ZA)!=0);e.setAttribute("aria-describedby",i.join(" "));}_addMessageReference(e,i){let r=this._messageRegistry.get(i);xw(e,"aria-describedby",r.messageElement.id),e.setAttribute(E0,this._id),r.referenceCount++;}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,M0(e,"aria-describedby",r.messageElement.id),e.removeAttribute(E0);}_isElementDescribedByMessage(e,i){let r=k0(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1;}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1;}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function vw(t,n){return typeof t=="string"?`${n||""}/${t}`:t;}function QA(t,n){t.id||(t.id=`${ZA}-${n}-${yw++}`);}var Q$=new A("cdk-dir-doc",{providedIn:"root",factory:K$});function K$(){return p(_e);}var Z$=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function XA(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?Z$.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr";}var Et=(()=>{class t{value="ltr";change=new V();constructor(){let e=p(Q$,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=XA(i||r||"ltr");}}ngOnDestroy(){this.change.complete();}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var Xo=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({});}return t;})();var he=(()=>{class t{constructor(){p(v0)._applyBodyHighContrastModeCssClasses();}static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[Xo,Xo]});}return t;})();var X$=["*",[["mat-toolbar-row"]]],J$=["*","mat-toolbar-row"],e7=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]});}return t;})(),rn=(()=>{class t{_elementRef=p(J);_platform=p(Ae);_document=p(_e);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()));}_checkToolbarMixedModes(){this._toolbarRows.length;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(i&1&&Ee(o,e7,5),i&2){let a;R(a=O())&&(r._toolbarRows=a);}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(bt(r.color?"mat-"+r.color:""),Z("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0));},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:J$,decls:2,vars:0,template:function(i,r){i&1&&(De(X$),le(0),le(1,1));},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}
`],encapsulation:2,changeDetection:0});}return t;})();var on=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,he]});}return t;})();var S0;function t7(){if(S0===void 0&&(S0=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(S0=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}));}return S0;}function op(t){return t7()?.createHTML(t)||t;}function JA(t){return Error(`Unable to find icon with the name "${t}"`);}function i7(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.");}function eR(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`);}function tR(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`);}var ts=class{url;svgText;options;svgElement;constructor(n,e,i){this.url=n,this.svgText=e,this.options=i;}},nR=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map();_iconSetConfigs=new Map();_cachedIconsByUrl=new Map();_inProgressUrlFetches=new Map();_fontCssClassesByAlias=new Map();_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._document=r;}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r);}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r);}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new ts(r,null,o));}addSvgIconResolver(e){return this._resolvers.push(e),this;}addSvgIconLiteralInNamespace(e,i,r,o){let a=this._sanitizer.sanitize(hn.HTML,r);if(!a)throw tR(r);let s=op(a);return this._addSvgIconConfig(e,i,new ts("",s,o));}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i);}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i);}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new ts(i,null,r));}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(hn.HTML,i);if(!o)throw tR(i);let a=op(o);return this._addSvgIconSetConfig(e,new ts("",a,r));}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this;}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e;}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this;}getDefaultFontSetClass(){return this._defaultFontSetClass;}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(hn.RESOURCE_URL,e);if(!��i)throw eR(e);let r=this._cachedIconsByUrl.get(i);return r?se(I0(r)):this._loadSvgIconFromConfig(new ts(e,null)).pipe(vi(o=>this._cachedIconsByUrl.set(i,o)),ue(o=>I0(o)));}getNamedSvgIcon(e,i=""){let r=iR(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):_s(JA(r));}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear();}_getSvgFromConfig(e){return e.svgText?se(I0(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(ue(i=>I0(i)));}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return se(r);let o=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Dn(s=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(hn.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),se(null);})));return Bu(o).pipe(ue(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw JA(e);return a;}));}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s;}}return null;}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(vi(i=>e.svgText=i),ue(()=>this._svgElementFromConfig(e)));}_loadSvgIconSetFromConfig(e){return e.svgText?se(null):this._fetchIcon(e).pipe(vi(i=>e.svgText=i));}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(op("<svg></svg>"));return s.appendChild(a),this._setSvgAttributes(s,r);}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r;}_toSvgElement(e){let i=this._svgElementFromString(op("<svg></svg>")),r=e.attributes;for(let o=0;o<r.length;o++){let{name:a,value:s}=r[o];a!=="id"&&i.setAttribute(a,s);}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[o].cloneNode(!0));return i;}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e;}_fetchIcon(e){let{url:i,options:r}=e,o=r?.withCredentials??!1;if(!this._httpClient)throw i7();if(i==null)throw Error(`Cannot fetch icon from URL "${i}".`);let a=this._sanitizer.sanitize(hn.RESOURCE_URL,i);if(!a)throw eR(i);let s=this._inProgressUrlFetches.get(a);if(s)return s;let l=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(ue(c=>op(c)),So(()=>this._inProgressUrlFetches.delete(a)),Uu());return this._inProgressUrlFetches.set(a,l),l;}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(iR(e,i),r),this;}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this;}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i;}return e.svgElement;}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){let o=this._resolvers[r](i,e);if(o)return n7(o)?new ts(o.url,null,o.options):new ts(o,null);}}static ɵfac=function(i){return new(i||t)(te(Bi,8),te(xr),te(_e,8),te(Bn));};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function I0(t){return t.cloneNode(!0);}function iR(t,n){return t+":"+n;}function n7(t){return!!(t.url&&t.options);}var r7=["*"],o7=new A("MAT_ICON_DEFAULT_OPTIONS"),a7=new A("mat-icon-location",{providedIn:"root",factory:s7});function s7(){let t=p(_e),n=t?t.location:null;return{getPathname:()=>n?n.pathname+n.search:""};}var rR=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],l7=rR.map(t=>`[${t}]`).join(", "),c7=/^url\(['"]?#(.*?)['"]?\)$/,Oe=(()=>{class t{_elementRef=p(J);_iconRegistry=p(nR);_location=p(a7);_errorHandler=p(Bn);_defaultColor;get color(){return this._color||this._defaultColor;}set color(e){this._color=e;}_color;inline=!1;get svgIcon(){return this._svgIcon;}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e);}_svgIcon;get fontSet(){return this._fontSet;}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses());}_fontSet;get fontIcon(){return this._fontIcon;}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses());}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=ve.EMPTY;constructor(){let e=p(new Ki("aria-hidden"),{optional:!0}),i=p(o7,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true");}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`);}}ngOnInit(){this._updateFontIconClasses();}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i));}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();}_usingFontIcon(){return!this.svgIcon;}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e);}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove();}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon);}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e;}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`);});});}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(l7),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map();for(let o=0;o<i.length;o++)rR.forEach(a=>{let s=i[o],l=s.getAttribute(a),c=l?l.match(c7):null;if(c){let h=r.get(s);h||(h=[],r.set(s,h)),h.push({name:a,value:c[1]});}});}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(de(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a));});}}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(ee("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),bt(r.color?"mat-"+r.color:""),Z("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"));},inputs:{color:"color",inline:[2,"inline","inline",U],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:r7,decls:1,vars:0,template:function(i,r){i&1&&(De(),le(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}
`],encapsulation:2,changeDetection:0});}return t;})(),ke=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,he]});}return t;})();function Ji(t){return t!=null&&`${t}`!="false";}function Li(t){return t==null?"":typeof t=="string"?t:`${t}px`;}var qn=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t;}(qn||{}),Cw=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=qn.HIDDEN;constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r;}fadeOut(){this._renderer.fadeOutRipple(this);}},oR=Fs({passive:!0,capture:!0}),ww=class{_events=new Map();addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]));}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,oR);});}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,oR)));}_delegateEventHandler=n=>{let e=Hn(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n));});};},ap={enterDuration:225,exitDuration:150},d7=800,aR=Fs({passive:!0,capture:!0}),sR=["mousedown","touchstart"],lR=["mouseup","mouseleave","touchend","touchcancel"],u7=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},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}
`],encapsulation:2,changeDetection:0});}return t;})(),Bl=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map();_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new ww();constructor(n,e,i,r,o){this._target=n,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=Un(i)),o&&o.get(nt).load(u7);}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=B(B({},ap),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||m7(n,e,r),s=n-r.left,l=e-r.top,c=o.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=`${s-a}px`,h.style.top=`${l-a}px`,h.style.height=`${a*2}px`,h.style.width=`${a*2}px`,i.color!=null&&(h.style.backgroundColor=i.color),h.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(h);let g=window.getComputedStyle(h),b=g.transitionProperty,_=g.transitionDuration,x=b==="none"||_==="0s"||_==="0s, 0s"||r.width===0&&r.height===0,T=new Cw(this,h,i,x);h.style.transform="scale3d(1, 1, 1)",T.state=qn.FADING_IN,i.persistent||(this._mostRecentTransientRipple=T);let L=null;return!x&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let q=()=>{L&&(L.fallbackTimer=null),clearTimeout(Y),this._finishRippleTransition(T);},ie=()=>this._destroyRipple(T),Y=setTimeout(ie,c+100);h.addEventListener("transitionend",q),h.addEventListener("transitioncancel",ie),L={onTransitionEnd:q,onTransitionCancel:ie,fallbackTimer:Y};}),this._activeRipples.set(T,L),(x||!c)&&this._finishRippleTransition(T),T;}fadeOutRipple(n){if(n.state===qn.FADING_OUT||n.state===qn.HIDDEN)return;let e=n.element,i=B(B({},ap),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=qn.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n);}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut();});}setupTriggerEvents(n){let e=Un(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,sR.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this);}));}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{lR.forEach(e=>{this._triggerElement.addEventListener(e,this,aR);});}),this._pointerUpEventsRegistered=!0);}_finishRippleTransition(n){n.state===qn.FADING_IN?this._startFadeOutTransition(n):n.state===qn.FADING_OUT&&this._destroyRipple(n);}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=qn.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut();}_destroyRipple(n){let e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=qn.HIDDEN,e!==null&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),n.element.remove();}_onMousedown(n){let e=Nl(n),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+d7;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(n.clientX,n.clientY,this._target.rippleConfig));}_onTouchStart(n){if(!this._target.rippleDisabled&&!Ll(n)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=n.changedTouches;if(e)for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(n=>{let e=n.state===qn.VISIBLE||n.config.terminateOnPointerUp&&n.state===qn.FADING_IN;!n.config.persistent&&e&&n.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys());}_removeTriggerEvents(){let n=this._triggerElement;n&&(sR.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(lR.forEach(e=>n.removeEventListener(e,this,aR)),this._pointerUpEventsRegistered=!1));}};function m7(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r);}var Ls=new A("mat-ripple-global-options"),an=(()=>{class t{_elementRef=p(J);_animationMode=p(Ne,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled;}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled();}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement;}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(ae),i=p(Ae),r=p(Ls,{optional:!0}),o=p(Se);this._globalOptions=r||{},this._rippleRenderer=new Bl(this,e,this._elementRef,i,o);}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled();}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents();}fadeOutAll(){this._rippleRenderer.fadeOutAll();}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent();}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:B(B(B({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp};}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled;}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger);}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,B(B({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,B(B({},this.rippleConfig),e));}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&Z("mat-ripple-unbounded",r.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"]});}return t;})();var p7={capture:!0},h7=["focus","mousedown","mouseenter","touchstart"],Dw="mat-ripple-loader-uninitialized",Ew="mat-ripple-loader-class-name",cR="mat-ripple-loader-centered",T0="mat-ripple-loader-disabled",dR=(()=>{class t{_document=p(_e);_animationMode=p(Ne,{optional:!0});_globalRippleOptions=p(Ls,{optional:!0});_platform=p(Ae);_ngZone=p(ae);_injector=p(Se);_eventCleanups;_hosts=new Map();constructor(){let e=p(Fi).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>h7.map(i=>Wt(e,this._document,i,this._onInteraction,p7)));}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);this._eventCleanups.forEach(i=>i());}configureRipple(e,i){e.setAttribute(Dw,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Ew))&&e.setAttribute(Ew,i.className||""),i.centered&&e.setAttribute(cR,""),i.disabled&&e.setAttribute(T0,"");}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(T0,""):e.removeAttribute(T0);}_onInteraction=e=>{let i=Hn(e);if(i instanceof HTMLElement){let r=i.closest(`[${Dw}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r);}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(Ew)),e.append(i);let r=this._animationMode==="NoopAnimations",o=this._globalRippleOptions,a=r?0:o?.animation?.enterDuration??ap.enterDuration,s=r?0:o?.animation?.exitDuration??ap.exitDuration,l={rippleDisabled:r||o?.disabled||e.hasAttribute(T0),rippleConfig:{centered:e.hasAttribute(cR),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:a,exitDuration:s}}},c=new Bl(l,this._ngZone,i,this._platform,this._injector),h=!l.rippleDisabled;h&&c.setupTriggerEvents(e),this._hosts.set(e,{target:l,renderer:c,hasSetUpEvents:h}),e.removeAttribute(Dw);}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e));}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var ii=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},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}}
`],encapsulation:2,changeDetection:0});}return t;})();var f7=["mat-icon-button",""],g7=["*"];var _7=new A("MAT_BUTTON_CONFIG");var b7=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],sp=(()=>{class t{_elementRef=p(J);_ngZone=p(ae);_animationMode=p(Ne,{optional:!0});_focusMonitor=p(Mi);_rippleLoader=p(dR);_isFab=!1;color;get disableRipple(){return this._disableRipple;}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled();}_disableRipple=!1;get disabled(){return this._disabled;}set disabled(e){this._disabled=e,this._updateRippleDisabled();}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){p(nt).load(ii);let e=p(_7,{optional:!0}),i=this._elementRef.nativeElement,r=i.classList;this.disabledInteractive=e?.disabledInteractive??!1,this.color=e?.color??null,this._rippleLoader?.configureRipple(i,{className:"mat-mdc-button-ripple"});for(let{attribute:o,mdcClasses:a}of b7)i.hasAttribute(o)&&r.add(...a);}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0);}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i);}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null;}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0;}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled);}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",U],disabled:[2,"disabled","disabled",U],ariaDisabled:[2,"aria-disabled","ariaDisabled",U],disabledInteractive:[2,"disabledInteractive","disabledInteractive",U]}});}return t;})();var uR=(()=>{class t extends sp{_renderer=p(tt);_cleanupClick;tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._elementRef.nativeElement,"click",this._haltDisabledEvents);});}ngOnDestroy(){super.ngOnDestroy(),this._cleanupClick?.();}_haltDisabledEvents=e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation());};_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled||null;}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,inputs:{tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ut(e)]},features:[W]});}return t;})(),Si=(()=>{class t extends sp{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0});}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(ee("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),bt(r.color?"mat-"+r.color:""),Z("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0));},exportAs:["matButton"],features:[W],attrs:f7,ngContentSelectors:g7,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(i,r){i&1&&(De(),w(0,"span",0),le(1),w(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;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-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}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:""}.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:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.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(--mdc-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(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius: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}
`,`@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-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}
`],encapsulation:2,changeDetection:0});}return t;})();var sr=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,he]});}return t;})();var pR=["mat-button",""],kw=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Mw=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],v7=`.mat-mdc-button-base{text-decoration:none}.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-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-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(--mdc-text-button-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-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin��-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-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-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-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-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-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-filled-button-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-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-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-filled-button-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-filled-button-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:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-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(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-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(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-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-protected-button-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-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-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-protected-button-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-protected-button-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:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-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(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-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(--mdc-protected-button-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(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-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-outlined-button-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-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-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-outlined-button-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-outlined-button-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:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-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(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-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-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.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{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{top:0;left:0;right:0;bottom:0;position:absolute}.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{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-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-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)}
`,y7=`@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-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}
`;var x7=["mat-mini-fab",""],C7=`.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(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-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:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.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(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-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(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-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:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.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;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-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%}
`,ye=(()=>{class t extends sp{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(ee("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),bt(r.color?"mat-"+r.color:""),Z("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0));},exportAs:["matButton"],features:[W],attrs:pR,ngContentSelectors:Mw,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(i,r){i&1&&(De(kw),w(0,"span",0),le(1),m(2,"span",1),le(3,1),u(),le(4,2),w(5,"span",2)(6,"span",3)),i&2&&Z("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab);},styles:[`.mat-mdc-button-base{text-decoration:none}.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-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-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(--mdc-text-button-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-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-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-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-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-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-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-filled-button-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-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-rip��ple::before{opacity:var(--mat-filled-button-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-filled-button-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-filled-button-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:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-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(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-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(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-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-protected-button-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-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-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-protected-button-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-protected-button-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:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-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(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-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(--mdc-protected-button-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(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-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-outlined-button-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-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-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-outlined-button-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-outlined-button-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:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-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(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-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-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.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{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{top:0;left:0;right:0;bottom:0;position:absolute}.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{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-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-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)}
`,`@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-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}
`],encapsulation:2,changeDetection:0});}return t;})(),Rn=(()=>{class t extends uR{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(i,r){i&2&&(ee("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getAriaDisabled()),bt(r.color?"mat-"+r.color:""),Z("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0));},exportAs:["matButton","matAnchor"],features:[W],attrs:pR,ngContentSelectors:Mw,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(i,r){i&1&&(De(kw),w(0,"span",0),le(1),m(2,"span",1),le(3,1),u(),le(4,2),w(5,"span",2)(6,"span",3)),i&2&&Z("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab);},styles:[v7,y7],encapsulation:2,changeDetection:0});}return t;})(),w7=new A("mat-mdc-fab-default-options",{providedIn:"root",factory:hR});function hR(){return{color:"accent"};}var mR=hR();var A0=(()=>{class t extends sp{_options=p(w7,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||mR,this.color=this._options.color||mR.color;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(i,r){i&2&&(ee("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),bt(r.color?"mat-"+r.color:""),Z("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0));},exportAs:["matButton"],features:[W],attrs:x7,ngContentSelectors:Mw,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(i,r){i&1&&(De(kw),w(0,"span",0),le(1),m(2,"span",1),le(3,1),u(),le(4,2),w(5,"span",2)(6,"span",3)),i&2&&Z("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab);},styles:[C7],encapsulation:2,changeDetection:0});}return t;})();var ce=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,sr,he]});}return t;})();var D7=["determinateSpinner"];function E7(t,n){if(t&1&&(Zt(),m(0,"svg",11),w(1,"circle",12),u()),t&2){let e=y();ee("viewBox",e._viewBox()),d(),xi("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ee("r",e._circleRadius());}}var k7=new A("mat-progress-spinner-default-options",{providedIn:"root",factory:M7});function M7(){return{diameter:fR};}var fR=100,S7=10,ji=(()=>{class t{_elementRef=p(J);_noopAnimations;get color(){return this._color||this._defaultColor;}set color(e){this._color=e;}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(Ne,{optional:!0}),i=p(k7);this._noopAnimations=e==="NoopAnimations"&&!!i&&!i._forceAnimations,this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",i&&(i.color&&(this.color=this._defaultColor=i.color),i.diameter&&(this.diameter=i.diameter),i.strokeWidth&&(this.strokeWidth=i.strokeWidth));}mode;get value(){return this.mode==="determinate"?this._value:0;}set value(e){this._value=Math.max(0,Math.min(100,e||0));}_value=0;get diameter(){return this._diameter;}set diameter(e){this._diameter=e||0;}_diameter=fR;get strokeWidth(){return this._strokeWidth??this.diameter/10;}set strokeWidth(e){this._strokeWidth=e||0;}_strokeWidth;_circleRadius(){return(this.diameter-S7)/2;}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`;}_strokeCircumference(){return 2*Math.PI*this._circleRadius();}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null;}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&$(D7,5),i&2){let o;R(o=O())&&(r._determinateCircle=o.first);}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(ee("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),bt("mat-"+r.color),xi("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),Z("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"));},inputs:{color:"color",mode:"mode",value:[2,"value","value",ut],diameter:[2,"diameter","diameter",ut],strokeWidth:[2,"strokeWidth","strokeWidth",ut]},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(i,r){if(i&1&&(I(0,E7,2,8,"ng-template",null,0,Vr),m(2,"div",2,1),Zt(),m(4,"svg",3),w(5,"circle",4),u()(),zo(),m(6,"div",5)(7,"div",6)(8,"div",7),Xt(9,8),u(),m(10,"div",9),Xt(11,8),u(),m(12,"div",10),Xt(13,8),u()()()),i&2){let o=We(1);d(4),ee("viewBox",r._viewBox()),d(),xi("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),ee("r",r._circleRadius()),d(4),v("ngTemplateOutlet",o),d(2),v("ngTemplateOutlet",o),d(2),v("ngTemplateOutlet",o);}},dependencies:[Ts],styles:[`.mat-mdc-progress-spinner{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(--mdc-circular-progress-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}}.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 1568.2352941176ms 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(--mdc-circular-progress-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 1333ms 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 1333ms 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 5332ms 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)}}
`],encapsulation:2,changeDetection:0});}return t;})();var Hi=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he]});}return t;})();var Sd=class{_attachedHost;attach(n){return this._attachedHost=n,n.attach(this);}detach(){let n=this._attachedHost;n!=null&&(this._attachedHost=null,n.detach());}get isAttached(){return this._attachedHost!=null;}setAttachedHost(n){this._attachedHost=n;}},lr=class extends Sd{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(n,e,i,r,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.projectableNodes=o;}},$i=class extends Sd{templateRef;viewContainerRef;context;injector;constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r;}get origin(){return this.templateRef.elementRef;}attach(n,e=this.context){return this.context=e,super.attach(n);}detach(){return this.context=void 0,super.detach();}},R0=class extends Sd{element;constructor(n){super(),this.element=n instanceof J?n.nativeElement:n;}},is=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal;}attach(n){if(n instanceof lr)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof $i)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof R0)return this._attachedPortal=n,this.attachDomPortal(n);}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0;}setDisposeFn(n){this._disposeFn=n;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}};var Id=class extends is{outletElement;_appRef;_defaultInjector;_document;constructor(n,e,i,r,o){super(),this.outletElement=n,this._appRef=i,this._defaultInjector=r,this._document=o;}attachComponentPortal(n){let e;if(n.viewContainerRef){let i=n.injector||n.viewContainerRef.injector,r=i.get(Ba,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy());}else{let i=this._appRef,r=n.injector||this._defaultInjector||Se.NULL,o=r.get(Ei,i.injector);e=ug(n.component,{elementInjector:r,environmentInjector:o,projectableNodes:n.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e;}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r);}),this._attachedPortal=n,i;}attachDomPortal=n=>{let e=n.element;e.parentNode;let i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(n){return n.hostView.rootNodes[0];}};var Sw=(()=>{class t extends $i{constructor(){let e=p(st),i=p(Dt);super(e,i);}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[W]});}return t;})();var en=(()=>{class t extends is{_moduleRef=p(Ba,{optional:!0});_document=p(_e);_viewContainerRef=p(Dt);_isInitialized=!1;_attachedRef;constructor(){super();}get portal(){return this._attachedPortal;}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null);}attached=new V();get attachedRef(){return this._attachedRef;}ngOnInit(){this._isInitialized=!0;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r;}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i;}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r);});};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode;}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[W]});}return t;})();var On=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({});}return t;})();var lp=class{};function cp(t){return t&&typeof t.connect=="function"&&!(t instanceof gs);}var Vs=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t;}(Vs||{}),Td=new A("_ViewRepeater");var I7=20,Ad=(()=>{class t{_ngZone=p(ae);_platform=p(Ae);_renderer=p(Fi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new H();_scrolledCount=0;scrollContainers=new Map();register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)));}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e));}scrolled(e=I7){return this._platform.isBrowser?new qe(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe(Ic(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);};}):se();}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete();}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Ie(o=>!o||r.indexOf(o)>-1));}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o);}),i;}_scrollableContainsElement(e,i){let r=Un(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),dp=(()=>{class t{elementRef=p(J);scrollDispatcher=p(Ad);ngZone=p(ae);dir=p(Et,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new H();_renderer=p(tt);_cleanupScroll;_elementScrolled=new H();constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this);}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete();}elementScrolled(){return this._elementScrolled;}getElementRef(){return this.elementRef;}scrollTo(e){let i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&Cd()!=lo.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),Cd()==lo.INVERTED?e.left=e.right:Cd()==lo.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e);}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;m0()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left));}measureScrollOffset(e){let i="left",r="right",��o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&Cd()==lo.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&Cd()==lo.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft;}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});}return t;})(),T7=20,ea=(()=>{class t{_platform=p(Ae);_listeners;_viewportSize;_change=new H();_document=p(_e,{optional:!0});constructor(){let e=p(ae),i=p(Fi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e;}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i};}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s};}change(e=T7){return e>0?this._change.pipe(Ic(e)):this._change;}_getWindow(){return this._document.defaultView||window;}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0};}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var mo=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({});}return t;})(),up=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[Xo,mo,Xo,mo]});}return t;})();var gR=m0(),O0=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(n,e){this._viewportRuler=n,this._document=e;}attach(){}enable(){if(this._canBeEnabled()){let n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=Li(-this._previousScrollPosition.left),n.style.top=Li(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0;}}disable(){if(this._isEnabled){let n=this._document.documentElement,e=this._document.body,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),gR&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),gR&&(i.scrollBehavior=o,r.scrollBehavior=a);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width;}};var P0=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r;}attach(n){this._overlayRef,this._overlayRef=n;}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(Ie(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition();})):this._scrollSubscription=n.subscribe(this._detach);}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach());};},mp=class{enable(){}disable(){}attach(){}};function Iw(t,n){return n.some(e=>{let i=t.bottom<e.top,r=t.top>e.bottom,o=t.right<e.left,a=t.left>e.right;return i||r||o||a;});}function _R(t,n){return n.some(e=>{let i=t.top<e.top,r=t.bottom>e.bottom,o=t.left<e.left,a=t.right>e.right;return i||r||o||a;});}var F0=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r;}attach(n){this._overlayRef,this._overlayRef=n;}enable(){if(!this._scrollSubscription){let n=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(n).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Iw(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},wR=(()=>{class t{_scrollDispatcher=p(Ad);_viewportRuler=p(ea);_ngZone=p(ae);_document=p(_e);constructor(){}noop=()=>new mp();close=e=>new P0(this._scrollDispatcher,this._ngZone,this._viewportRuler,e);block=()=>new O0(this._viewportRuler,this._document);reposition=e=>new F0(this._scrollDispatcher,this._viewportRuler,this._ngZone,e);static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),jr=class{positionStrategy;scrollStrategy=new mp();panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i]);}}};var N0=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e;}};var DR=(()=>{class t{_attachedOverlays=[];_document=p(_e);_isAttached;constructor(){}ngOnDestroy(){this.detach();}add(e){this.remove(e),this._attachedOverlays.push(e);}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach();}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),ER=(()=>{class t extends DR{_ngZone=p(ae);_renderer=p(Fi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=!0);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1);}_keydownListener=e=>{let i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[r]._keydownEvents.next(e));break;}};static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),kR=(()=>{class t extends DR{_platform=p(Ae);_ngZone=p(ae);_renderer=p(Fi).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,r={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[Wt(this._renderer,i,"pointerdown",this._pointerDownListener,r),Wt(this._renderer,i,"click",this._clickListener,r),Wt(this._renderer,i,"auxclick",this._clickListener,r),Wt(this._renderer,i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0;}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1);}_pointerDownListener=e=>{this._pointerDownEventTarget=Hn(e);};_clickListener=e=>{let i=Hn(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(bR(s.overlayElement,i)||bR(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e);}};static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function bR(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode;}return!1;}var MR=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{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}@layer cdk-overlay{.cdk-overlay-backdrop{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}}@layer cdk-overlay{.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}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
`],encapsulation:2,changeDetection:0});}return t;})(),V0=(()=>{class t{_platform=p(Ae);_containerElement;_document=p(_e);_styleLoader=p(nt);constructor(){}ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement;}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||mw()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove();}let i=this._document.createElement("div");i.classList.add(e),mw()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i;}_loadStyles(){this._styleLoader.load(MR);}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),Tw=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(n,e,i,r){this._renderer=e,this._ngZone=i,this.element=n.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=e.listen(this.element,"click",r);}detach(){this._ngZone.runOutsideAngular(()=>{let n=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(n,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),n.style.pointerEvents="none",n.classList.remove("cdk-overlay-backdrop-showing");});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();};},Hl=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new H();_attachments=new H();_detachments=new H();_positionStrategy;_scrollStrategy;_locationChanges=ve.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new H();_outsidePointerEvents=new H();_renders=new H();_afterRenderRef;_afterNextRenderRef;constructor(n,e,i,r,o,a,s,l,c,h=!1,g,b){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=h,this._injector=g,this._renderer=b,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=rr(()=>wl(()=>{this._renders.next();},{injector:this._injector}));}get overlayElement(){return this._pane;}get backdropElement(){return this._backdropRef?.element||null;}get hostElement(){return this._host;}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=li(()=>{this.hasAttached()&&this.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._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),e;}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n;}dispose(){let n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.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),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,n&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete();}hasAttached(){return this._portalOutlet.hasAttached();}backdropClick(){return this._backdropClick;}attachments(){return this._attachments;}detachments(){return this._detachments;}keydownEvents(){return this._keydownEvents;}outsidePointerEvents(){return this._outsidePointerEvents;}getConfig(){return this._config;}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()));}updateSize(n){this._config=B(B({},this._config),n),this._updateElementSize();}setDirection(n){this._config=ze(B({},this._config),{direction:n}),this._updateElementDirection();}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0);}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1);}getDirection(){let n=this._config.direction;return n?typeof n=="string"?n:n.value:"ltr";}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let n=this._pane.style;n.width=Li(this._config.width),n.height=Li(this._config.height),n.minWidth=Li(this._config.minWidth),n.minHeight=Li(this._config.minHeight),n.maxWidth=Li(this._config.maxWidth),n.maxHeight=Li(this._config.maxHeight);}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none";}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Tw(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e);}),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._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(n));}):this._backdropRef.element.classList.add(n);}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(n,e,i){let r=Dd(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r));}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let n=this._renders.pipe(Ve(St(this._attachments,this._detachments))).subscribe(()=>{(!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()),n.unsubscribe());});});}_disposeScrollStrategy(){let n=this._scrollStrategy;n?.disable(),n?.detach?.();}},vR="cdk-overlay-connected-position-bounding-box",R7=/([A-Za-z%]+)$/,pp=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new H();_resizeSubscription=ve.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions;}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n);}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(vR),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return;}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),c=this._getOverlayPoint(l,e,s),h=this._getOverlayFit(c,e,i,s);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return;}if(this._canFitWithFlexibleDimensions(h,c,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue;}(!a||a.overlayFit.visibleArea<h.visibleArea)&&(a={overlayFit:h,overlayPoint:c,originPoint:l,position:s,overlayRect:e});}if(o.length){let s=null,l=-1;for(let c of o){let h=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);h>l&&(l=h,s=c);}this._isPushed=!1,this._applyPosition(s.position,s.origin);return;}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return;}this._applyPosition(a.position,a.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&jl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(vR),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e);}else this.apply();}withScrollableContainers(n){return this._scrollables=n,this;}withPositions(n){return this._preferredPositions=n,n.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this;}withViewportMargin(n){return this._viewportMargin=n,this;}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this;}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this;}withPush(n=!0){return this._canPush=n,this;}withLockedPosition(n=!0){return this._positionLocked=n,this;}setOrigin(n){return this._origin=n,this;}withDefaultOffsetX(n){return this._offsetX=n,this;}withDefaultOffsetY(n){return this._offsetY=n,this;}withTransformOriginOn(n){return this._transformOriginSelector=n,this;}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s;}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o};}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o};}_getOverlayFit(n,e,i,r){let o=xR(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let h=0-a,g=a+o.width-i.width,b=0-s,_=s+o.height-i.height,x=this._subtractOverflows(o.width,h,g),T=this._subtractOverflows(o.height,b,_),L=x*T;return{visibleArea:L,isCompletelyWithinViewport:o.width*o.height===L,fitsInViewportVertically:T===o.height,fitsInViewportHorizontally:x==o.width};}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=yR(this._overlayRef.getConfig().minHeight),s=yR(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,c=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c;}return!1;}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=xR(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),h=0,g=0;return r.width<=o.width?h=c||-a:h=n.x<this._viewportMargin?o.left-i.left-n.x:0,r.height<=o.height?g=l||-s:g=n.y<this._viewportMargin?o.top-i.top-n.y:0,this._previousPushAmount={x:h,y:g},{x:n.x+h,y:n.y+g};}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(n!==this._lastPosition||!this._lastScrollVisibility||!O7(this._lastScrollVisibility,i)){let r=new N0(n,i);this._positionChanges.next(r);}this._lastScrollVisibility=i;}this._lastPosition=n,this._isInitialRender=!1;}_setTransformOrigin(n){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,r=n.overlayY;n.overlayX==="center"?i="center":this._isRtl()?i=n.overlayX==="start"?"right":"left":i=n.overlayX==="start"?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${i} ${r}`;}_calculateBoundingBoxRect(n,e){let i=this._viewportRect,r=this._isRtl(),o,a,s;if(e.overlayY==="top")a=n.y,o=i.height-a+this._viewportMargin;else if(e.overlayY==="bottom")s=i.height-n.y+this._viewportMargin*2,o=i.height-s+this._viewportMargin;else{let _=Math.min(i.bottom-n.y+i.top,n.y),x=this._lastBoundingBoxSize.height;o=_*2,a=n.y-_,o>x&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-x/2);}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,h,g,b;if(c)b=i.width-n.x+this._viewportMargin*2,h=n.x-this._viewportMargin;else if(l)g=n.x,h=i.right-n.x;else{let _=Math.min(i.right-n.x+i.left,n.x),x=this._lastBoundingBoxSize.width;h=_*2,g=n.x-_,h>x&&!this._isInitialRender&&!this._growAfterOpen&&(g=n.x-x/2);}return{top:a,left:g,bottom:s,right:b,width:h,height:o};}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=Li(i.height),r.top=Li(i.top),r.bottom=Li(i.bottom),r.width=Li(i.width),r.left=Li(i.left),r.right=Li(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=Li(o)),a&&(r.maxWidth=Li(a));}this._lastBoundingBoxSize=i,jl(this._boundingBox.style,r);}_resetBoundingBoxStyles(){jl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){jl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let h=this._viewportRuler.getViewportScrollPosition();jl(i,this._getExactOverlayY(e,n,h)),jl(i,this._getExactOverlayX(e,n,h));}else i.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=Li(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=Li(a.maxWidth):o&&(i.maxWidth="")),jl(this._pane.style,i);}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`;}else r.top=Li(o.y);return r;}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`;}else r.left=Li(o.x);return r;}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:_R(n,i),isOriginOutsideView:Iw(n,i),isOverlayClipped:_R(e,i),isOverlayOutsideView:Iw(e,i)};}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n);}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin};}_isRtl(){return this._overlayRef.getDirection()==="rtl";}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed;}_getOffset(n,e){return e==="x"?n.offsetX==null?this._offsetX:n.offsetX:n.offsetY==null?this._offsetY:n.offsetY;}_validatePositions(){}_addPanelClasses(n){this._pane&&Dd(n).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e));});}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n);}),this._appliedPanelClasses=[]);}_getOriginRect(){let n=this._origin;if(n instanceof J)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e};}};function jl(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t;}function yR(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(R7);return!e||e==="px"?parseFloat(n):null;}return t||null;}function xR(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)};}function O7(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView;}var CR="cdk-global-overlay-wrapper",L0=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(n){let e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(CR),this._isDisposed=!1;}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this;}left(n=""){return this._xOffset=n,this._xPosition="left",this;}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this;}right(n=""){return this._xOffset=n,this._xPosition="right",this;}start(n=""){return this._xOffset=n,this._xPosition="start",this;}end(n=""){��return this._xOffset=n,this._xPosition="end",this;}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this;}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this;}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this;}centerVertically(n=""){return this.top(n),this._alignItems="center",this;}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),h=this._xPosition,g=this._xOffset,b=this._overlayRef.getConfig().direction==="rtl",_="",x="",T="";l?T="flex-start":h==="center"?(T="center",b?x=g:_=g):b?h==="left"||h==="end"?(T="flex-end",_=g):(h==="right"||h==="start")&&(T="flex-start",x=g):h==="left"||h==="start"?(T="flex-start",_=g):(h==="right"||h==="end")&&(T="flex-end",x=g),n.position=this._cssPosition,n.marginLeft=l?"0":_,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":x,e.justifyContent=T,e.alignItems=c?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(CR),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0;}},SR=(()=>{class t{_viewportRuler=p(ea);_document=p(_e);_platform=p(Ae);_overlayContainer=p(V0);constructor(){}global(){return new L0();}flexibleConnectedTo(e){return new pp(e,this._viewportRuler,this._document,this._platform,this._overlayContainer);}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),Gt=(()=>{class t{scrollStrategies=p(wR);_overlayContainer=p(V0);_positionBuilder=p(SR);_keyboardDispatcher=p(ER);_injector=p(Se);_ngZone=p(ae);_document=p(_e);_directionality=p(Et);_location=p($o);_outsideClickDispatcher=p(kR);_animationsModuleType=p(Ne,{optional:!0});_idGenerator=p(Ye);_renderer=p(Fi).createRenderer(null,null);_appRef;_styleLoader=p(nt);constructor(){}create(e){this._styleLoader.load(MR);let i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),a=new jr(e);return a.direction=a.direction||this._directionality.value,new Hl(o,i,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Ei),this._renderer);}position(){return this._positionBuilder;}_createPaneElement(e){let i=this._document.createElement("div");return i.id=this._idGenerator.getId("cdk-overlay-"),i.classList.add("cdk-overlay-pane"),e.appendChild(i),i;}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e;}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Jn)),new Id(e,null,this._appRef,this._injector,this._document);}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),P7=[{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"}],IR=new A("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Gt);return()=>t.scrollStrategies.reposition();}}),Rd=(()=>{class t{elementRef=p(J);constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});}return t;})(),z0=(()=>{class t{_overlay=p(Gt);_dir=p(Et,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=ve.EMPTY;_attachSubscription=ve.EMPTY;_detachSubscription=ve.EMPTY;_positionSubscription=ve.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(IR);_disposeOnNavigation=!1;_ngZone=p(ae);origin;positions;positionStrategy;get offsetX(){return this._offsetX;}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position);}get offsetY(){return this._offsetY;}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position);}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation;}set disposeOnNavigation(e){this._disposeOnNavigation=e;}backdropClick=new V();positionChange=new V();attach=new V();detach=new V();overlayKeydown=new V();overlayOutsideClick=new V();constructor(){let e=p(st),i=p(Dt);this._templatePortal=new $i(e,i),this.scrollStrategy=this._scrollStrategyFactory();}get overlayRef(){return this._overlayRef;}get dir(){return this._dir?this._dir.value:"ltr";}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose();}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay());}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=P7);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!ti(i)&&(i.preventDefault(),this.detachOverlay());}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=Hn(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i);});}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new jr({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i;}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector);}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e;}_getOrigin(){return this.origin instanceof Rd?this.origin.elementRef:this.origin;}_getOriginElement(){return this.origin instanceof Rd?this.origin.elementRef.nativeElement:this.origin instanceof J?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null;}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e);}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(ys(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe();})),this.open=!0;}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1;}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,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",U],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",U],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",U],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",U],push:[2,"cdkConnectedOverlayPush","push",U],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",U]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[He]});}return t;})();function F7(t){return()=>t.scrollStrategies.reposition();}var N7={provide:IR,deps:[Gt],useFactory:F7},Wn=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[Gt,N7],imports:[Xo,On,up,up]});}return t;})();var L7=["mat-menu-item",""],V7=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],z7=["mat-icon, [matMenuItemIcon]","*"];function B7(t,n){t&1&&(Zt(),m(0,"svg",2),w(1,"polygon",3),u());}var j7=["*"];function H7(t,n){if(t&1){let e=K();m(0,"div",0),S("click",function(){k(e);let r=y();return M(r.closed.emit("click"));})("animationstart",function(r){k(e);let o=y();return M(o._onAnimationStart(r.animationName));})("animationend",function(r){k(e);let o=y();return M(o._onAnimationDone(r.animationName));})("animationcancel",function(r){k(e);let o=y();return M(o._onAnimationDone(r.animationName));}),m(1,"div",1),le(2),u()();}if(t&2){let e=y();bt(e._classList),Z("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating),v("id",e.panelId),ee("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null);}}var Rw=new A("MAT_MENU_PANEL"),kr=(()=>{class t{_elementRef=p(J);_document=p(_e);_focusMonitor=p(Mi);_parentMenu=p(Rw,{optional:!0});_changeDetectorRef=p(pe);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new H();_focused=new H();_highlighted=!1;_triggersSubmenu=!1;constructor(){p(nt).load(ii),this._parentMenu?.addItem?.(this);}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this);}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1);}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete();}_getTabIndex(){return this.disabled?"-1":"0";}_getHostElement(){return this._elementRef.nativeElement;}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation());}_handleMouseEnter(){this._hovered.next(this);}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<i.length;r++)i[r].remove();return e.textContent?.trim()||"";}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef.markForCheck();}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef.markForCheck();}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement();}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(i,r){i&1&&S("click",function(a){return r._checkDisabled(a);})("mouseenter",function(){return r._handleMouseEnter();}),i&2&&(ee("role",r.role)("tabindex",r._getTabIndex())("aria-disabled",r.disabled)("disabled",r.disabled||null),Z("mat-mdc-menu-item-highlighted",r._highlighted)("mat-mdc-menu-item-submenu-trigger",r._triggersSubmenu));},inputs:{role:"role",disabled:[2,"disabled","disabled",U],disableRipple:[2,"disableRipple","disableRipple",U]},exportAs:["matMenuItem"],attrs:L7,ngContentSelectors:z7,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(i,r){i&1&&(De(V7),le(0),m(1,"span",0),le(2,1),u(),w(3,"div",1),I(4,B7,2,0,":svg:svg",2)),i&2&&(d(3),v("matRippleDisabled",r.disableRipple||r.disabled)("matRippleTrigger",r._getHostElement()),d(),Q(r._triggersSubmenu?4:-1));},dependencies:[an],encapsulation:2,changeDetection:0});}return t;})();var $7=new A("MatMenuContent");var U7=new A("mat-menu-default-options",{providedIn:"root",factory:q7});function q7(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"};}var Aw="_mat-menu-enter",B0="_mat-menu-exit",cr=(()=>{class t{_elementRef=p(J);_changeDetectorRef=p(pe);_injector=p(Se);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled;_allItems;_directDescendantItems=new pn();_classList={};_panelAnimationState="void";_animationDone=new H();_isAnimating=!1;parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition;}set xPosition(e){this._xPosition=e,this.setPositionClasses();}get yPosition(){return this._yPosition;}set yPosition(e){this._yPosition=e,this.setPositionClasses();}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(e){let i=this._previousPanelClass,r=B({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1;}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0;}),this._elementRef.nativeElement.className=""),this._classList=r;}_previousPanelClass;get classList(){return this.panelClass;}set classList(e){this.panelClass=e;}closed=new V();close=this.closed;panelId=p(Ye).getId("mat-menu-panel-");constructor(){let e=p(U7);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop,this._animationsDisabled=p(Ne,{optional:!0})==="NoopAnimations";}ngOnInit(){this.setPositionClasses();}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new uo(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ht(this._directDescendantItems),ai(e=>St(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive();}});}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout);}_hovered(){return this._directDescendantItems.changes.pipe(ht(this._directDescendantItems),ai(i=>St(...i.map(r=>r._hovered))));}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:ti(e)||(e.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:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return;}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=li(()=>{let i=this._resolvePanel();if(!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus();}},{injector:this._injector});}resetActiveItem(){this._keyManager.setActiveItem(-1);}setElevation(e){}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=ze(B({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef.markForCheck();}_onAnimationDone(e){let i=e===B0;(i||e===Aw)&&(i&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(i?"void":"enter"),this._isAnimating=!1);}_onAnimationStart(e){(e===Aw||e===B0)&&(this._isAnimating=!0);}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let i=this._resolvePanel();i&&(i.scrollTop=0);}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(B0),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?Aw:B0);}),this._changeDetectorRef.markForCheck();}_updateDirectDescendants(){this._allItems.changes.pipe(ht(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges();});}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&(Ee(o,$7,5),Ee(o,kr,5),Ee(o,kr,4)),i&2){let a;R(a=O())&&(r.lazyContent=a.first),R(a=O())&&(r._allItems=a),R(a=O())&&(r.items=a);}},viewQuery:function(i,r){if(i&1&&$(st,5),i&2){let o;R(o=O())&&(r.templateRef=o.first);}},hostVars:3,hostBindings:function(i,r){i&2&&ee("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",U],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:U(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[be([{provide:Rw,useExisting:t}])],ngContentSelectors:j7,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(i,r){i&1&&(De(),I(0,H7,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{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}
`],encapsulation:2,changeDetection:0});}return t;})(),TR=new A("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Gt);return()=>t.scrollStrategies.reposition();}});function W7(t){return()=>t.scrollStrategies.reposition();}var G7={provide:TR,deps:[Gt],useFactory:W7},Y7={passive:!0};var hp=new WeakMap(),ta=(()=>{class t{_overlay=p(Gt);_element=p(J);_viewContainerRef=p(Dt);_menuItemInstance=p(kr,{optional:!0,self:!0});_dir=p(Et,{optional:!0});_focusMonitor=p(Mi);_ngZone=p(ae);_scrollStrategy=p(TR);_changeDetectorRef=p(pe);_cleanupTouchstart;_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=ve.EMPTY;_hoverSubscription=ve.EMPTY;_menuCloseSubscription=ve.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu;}set _deprecatedMatMenuTriggerFor(e){this.menu=e;}get menu(){return this._menu;}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i);})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()));}_menu;menuData;restoreFocus=!0;menuOpened=new V();onMenuOpen=this.menuOpened;menuClosed=new V();onMenuClose=this.menuClosed;constructor(){let e=p(Rw,{optional:!0}),i=p(tt);this._parentMaterialMenu=e instanceof cr?e:void 0,this._cleanupTouchstart=Wt(i,this._element.nativeElement,"touchstart",r=>{Ll(r)||(this._openedBy="touch");},Y7);}ngAfterContentInit(){this._handleHover();}ngOnDestroy(){this.menu&&this._ownsMenu(this.menu)&&hp.delete(this.menu),this._cleanupTouchstart(),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null);}get menuOpen(){return this._menuOpen;}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr";}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu);}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu();}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;this._pendingRemoval?.unsubscribe();let i=hp.get(e);hp.set(e,this),i&&i!==this&&i.closeMenu();let r=this._createOverlay(e),o=r.getConfig(),a=o.positionStrategy;this._setPosition(e,a),o.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,r.hasAttached()||(r.attach(this._getPortal(e)),e.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),e instanceof cr&&(e._setIsOpen(!0),e._directDescendantItems.changes.pipe(Ve(e.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0);}));}closeMenu(){this.menu?.close.emit();}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i);}updatePosition(){this._overlayRef?.updatePosition();}_destroyMenu(e){let i=this._overlayRef,r=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),r instanceof cr&&this._ownsMenu(r)?(this._pendingRemoval=r._animationDone.pipe(de(1)).subscribe(()=>{i.detach(),r.lazyContent?.detach();}),r._setIsOpen(!1)):(i.detach(),r?.lazyContent?.detach()),r&&this._ownsMenu(r)&&hp.delete(r),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1));}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck());}_createOverlay(e){if(!this._overlayRef){let i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe(r=>{this.menu instanceof cr&&this.menu._handleKeydown(r);});}return this._overlayRef;}_getOverlayConfig(e){return new jr({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr"});}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{this._ngZone.run(()=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,a);});});}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[a,s],[h,g]=[r,o],b=0;if(this.triggersSubmenu()){if(g=r=e.xPosition==="before"?"start":"end",o=h=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let _=this._parentMaterialMenu.items.first;this._parentInnerPadding=_?_._getHostElement().offsetTop:0;}b=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding;}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",c=s==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:h,overlayY:a,offsetY:b},{originX:o,originY:l,overlayX:g,overlayY:a,offsetY:b},{originX:r,originY:c,overlayX:h,overlayY:s,offsetY:-b},{originX:o,originY:c,overlayX:g,overlayY:s,offsetY:-b}]);}_menuClosingActions(){let e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:se(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ie(a=>this._menuOpen&&a!==this._menuItemInstance)):se();return St(e,r,o,i);}_handleMousedown(e){Nl(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault());}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu());}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu();}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&(this._openedBy="mouse",this.openMenu());}));}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new $i(e.templateRef,this._viewContainerRef)),this._portal;}_ownsMenu(e){return hp.get(e)===this;}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(a){return r._handleClick(a);})("mousedown",function(a){return r._handleMousedown(a);})("keydown",function(a){return r._handleKeydown(a);}),i&2&&e��e("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.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"]});}return t;})(),ia=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[G7],imports:[sr,he,Wn,mo,he]});}return t;})(),AR={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},cxe=AR.fadeInItems,dxe=AR.transformMenu;var Q7=["tooltip"],Ow=20;var Pw=new A("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Gt);return()=>t.scrollStrategies.reposition({scrollThrottle:Ow});}});function PR(t){return()=>t.scrollStrategies.reposition({scrollThrottle:Ow});}var FR={provide:Pw,deps:[Gt],useFactory:PR};function NR(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500};}var LR=new A("mat-tooltip-default-options",{providedIn:"root",factory:NR});var RR="tooltip-panel",OR=Fs({passive:!0}),K7=8,Z7=8,X7=24,J7=200,Ct=(()=>{class t{_elementRef=p(J);_ngZone=p(ae);_platform=p(Ae);_ariaDescriber=p(rp);_focusMonitor=p(Mi);_dir=p(Et);_injector=p(Se);_viewContainerRef=p(Dt);_defaultOptions=p(LR,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=VR;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position;}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()));}get positionAtOrigin(){return this._positionAtOrigin;}set positionAtOrigin(e){this._positionAtOrigin=Ji(e),this._detach(),this._overlayRef=null;}get disabled(){return this._disabled;}set disabled(e){let i=Ji(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message));}get showDelay(){return this._showDelay;}set showDelay(e){this._showDelay=$n(e);}_showDelay;get hideDelay(){return this._hideDelay;}set hideDelay(e){this._hideDelay=$n(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay);}_hideDelay;touchGestures="auto";get message(){return this._message;}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i);}_message="";get tooltipClass(){return this._tooltipClass;}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass);}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new H();_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=K7;}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ve(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0));});}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,OR);}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e);}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return;}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new lr(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Ve(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e);}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()));}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e);}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible();}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof J)return this._overlayRef;this._detach();}let i=this._injector.get(Ad).getAncestorScrollContainers(this._elementRef),r=this._injector.get(Gt),o=r.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(Ve(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0));}),this._overlayRef=r.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${RR}`,scrollStrategy:this._injector.get(Pw)()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ve(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ve(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ve(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!ti(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)));}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Ve(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef);})),this._overlayRef;}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null;}_updatePosition(e){let i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(B(B({},r.main),o.main)),this._addOffset(B(B({},r.fallback),o.fallback))]);}_addOffset(e){let i=Z7,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-8:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-8:i:e.originX==="end"&&(e.offsetX=r?i:-8),e;}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}};}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}};}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),li(()=>{this._tooltipInstance&&this._overlayRef.updatePosition();},{injector:this._injector}));}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck());}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i};}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${RR}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a);}this._currentPosition=a;}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i);}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r);},this._defaultOptions?.touchLongPressShowDelay??o);}])),this._addListeners(this._passiveListeners));}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide();}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay);};e.push(["touchend",i],["touchcancel",i]);}this._addListeners(e),this._passiveListeners.push(...e);}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,OR);});}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID;}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(_e).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide();}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent";}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||li({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip");}},{injector:this._injector}));}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&Z("mat-mdc-tooltip-disabled",r.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"]});}return t;})(),VR=(()=>{class t{_changeDetectorRef=p(pe);_elementRef=p(J);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new H();_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let e=p(Ne,{optional:!0});this._animationsDisabled=e==="NoopAnimations";}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0;},e);}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0;},e);}afterHidden(){return this._onHide;}isVisible(){return this._isVisible;}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null;}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0);}_markForCheck(){this._changeDetectorRef.markForCheck();}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1));}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck();}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>X7&&e.width>=J7;}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation);}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0;}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next();}_toggleVisibility(e){let i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0);}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e));}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&$(Q7,7),i&2){let o;R(o=O())&&(r._tooltip=o.first);}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&S("mouseleave",function(a){return r._handleMouseLeave(a);});},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(i,r){if(i&1){let o=K();m(0,"div",1,0),S("animationend",function(s){return k(o),M(r._handleAnimationEnd(s));}),m(2,"div",2),f(3),u()();}i&2&&(Z("mdc-tooltip--multiline",r._isMultiline),v("ngClass",r.tooltipClass),d(3),C(r.message));},dependencies:[yr],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(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-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}
`],encapsulation:2,changeDetection:0});}return t;})(),Je=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[FR],imports:[es,Wn,he,he,mo]});}return t;})();var zR=(()=>{class t{constructor(e){this.localeId=e,this.english="English",this.french="French",this.spanish="Spanish",this.languages=[],this.languages.push({name:this.english,path:"en-US",abbreviation:"en",color:"#ffb6c1"}),this.languages.push({name:this.spanish,path:"es",abbreviation:"es",color:"#87cefa"}),this.languages.push({name:this.french,path:"fr",abbreviation:"fr",color:"#20b2aa"}),this.languages=this.getLanguages(),this.activeLanguage=this.getLanguageByPath(this.localeId);}getLanguages(){return this.languages;}getActiveLanguage(){return this.activeLanguage;}setActiveLanguage(e){this.activeLanguage=e;}getDefaultLanguage(){return this.getLanguageByPath("en-US");}getLanguageByPath(e){let i=this.languages.find(r=>r.path===e);return i||(console.log("language by path not found"),this.languages[0]);}getLanguageByAbbreviation(e){let i=this.languages.find(r=>r.abbreviation.toLowerCase()===e.toLowerCase());return i||(console.log("language by abbreviation not found"),this.languages[0]);}static{this.ɵfac=function(i){return new(i||t)(te(Is));};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();function tU(t,n){if(t&1){let e=K();m(0,"div")(1,"button",7),S("click",function(){let r=k(e).$implicit,o=y();return M(o.selectLanguage(r));}),m(2,"span"),f(3),u(),m(4,"span",8),f(5),u()()();}if(t&2){let e=n.$implicit,i=y();d(),v("disabled",i.menuItemDisabled(e)),d(),Nr("language-abbr language-option lang-option-",e.abbreviation,""),d(),C(e.abbreviation),d(2),C(e.name);}}var BR=(()=>{class t{constructor(e){this.langService=e,this.toolTipMsg="Select A Language",this.unableToSelect="Unable to select language.",this.languages=[];}ngOnInit(){this.languages=this.langService.getLanguages();}menuItemDisabled(e){return this.langService.getActiveLanguage().path===e.path;}selectLanguage(e){let i=window.location.pathname,r=this.langService.getActiveLanguage().path,o="/"+r+"/",a=i.indexOf(o);if(a===-1){alert(this.unableToSelect),this.langService.setActiveLanguage(e);return;}let s=i.substring(0,a)+"/"+e.path+i.substring(a+r.length+1);window.location.replace(s);}static{this.ɵfac=function(i){return new(i||t)(D(zR));};}static{this.ɵcmp=E({type:t,selectors:[["language-picker"]],decls:8,vars:4,consts:[["pickerMenu","matMenu"],["id","language-selector"],["mat-icon-button","","id","selector-button",3,"matTooltip","matMenuTriggerFor"],["id","abbr-container",1,"flex-center"],[1,"language-abbr"],["id","language-picker-menu"],[4,"ngFor","ngForOf"],["mat-menu-item","",1,"language-button",3,"click","disabled"],[1,"language-name"]],template:function(i,r){if(i&1&&(m(0,"span",1)(1,"button",2)(2,"span",3)(3,"span",4),f(4),u()()(),m(5,"mat-menu",5,0),I(7,tU,6,6,"div",6),u()()),i&2){let o=We(6);d(),v("matTooltip",r.toolTipMsg)("matMenuTriggerFor",o),d(3),C(r.langService.getActiveLanguage().abbreviation),d(3),v("ngForOf",r.languages);}},dependencies:[j,ei,ce,Si,ia,cr,kr,ta,ke,Je,Ct],styles:[".language-abbr[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-weight:700;height:25px}.language-option[_ngcontent-%COMP%]{border-radius:50%;padding:5px;margin-right:10px;border:1px solid var(--mat-sys-on-surface)}"]});}}return t;})();function iU(t,n){}var zs=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext;};var Nw=(()=>{class t extends is{_elementRef=p(J);_focusTrapFactory=p(b0);_config;_interactivityChecker=p(_0);_ngZone=p(ae);_overlayRef=p(Hl);_focusMonitor=p(Mi);_renderer=p(tt);_platform=p(Ae);_document=p(_e,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=p(pe);_injector=p(Se);_isDestroyed=!1;constructor(){super(),this._config=p(zs,{optional:!0})||new zs(),this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i;}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i;}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i;};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r);})),e.focus(i);}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i);}_trapFocus(e){this._isDestroyed||li(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break;}},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=co(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(e){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus(e);}_containsFocus(){let e=this._elementRef.nativeElement,i=co();return e===i||e.contains(i);}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=co()));}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus();});}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&$(en,7),i&2){let o;R(o=O())&&(r._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&ee("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null);},features:[W],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&I(0,iU,0,0,"ng-template",0);},dependencies:[en],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
`],encapsulation:2});}return t;})(),gp=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new H();backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!ti(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}));}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"});}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close();});}close(n,e){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this;}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this;}addPanelClass(n){return this.overlayRef.addPanelClass(n),this;}removePanelClass(n){return this.overlayRef.removePanelClass(n),this;}},nU=new A("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(Gt);return()=>t.scrollStrategies.block();}}),rU=new A("DialogData"),oU=new A("DefaultDialogConfig");var Lw=(()=>{class t{_overlay=p(Gt);_injector=p(Se);_defaultOptions=p(oU,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(V0);_idGenerator=p(Ye);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new H();_afterOpenedAtThisLevel=new H();_ariaHiddenElements=new Map();_scrollStrategy=p(nU);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel;}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel;}afterAllClosed=ko(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ht(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new zs();i=B(B({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=this._overlay.create(o),s=new gp(a,i),l=this._attachContainer(a,s,i);return s.containerInstance=l,this._attachDialogContent(e,s,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s;}closeAll(){Fw(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(i=>i.id===e);}ngOnDestroy(){Fw(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1);}),Fw(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let i=new jr({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i;}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:zs,useValue:r},{provide:gp,useValue:i},{provide:Hl,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=Nw;let l=new lr(s,r.viewContainerRef,Se.create({parent:o||this._injector,providers:a}));return e.attach(l).instance;}_attachDialogContent(e,i,r,o){if(e instanceof st){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=B(B({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new $i(e,null,s,a));}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new lr(e,o.viewContainerRef,a));i.componentRef=s,i.componentInstance=s.instance;}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:rU,useValue:e.data},{provide:gp,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Et,null,{optional:!0}))&&s.push({provide:Et,useValue:{value:e.direction,change:se()}}),Se.create({parent:a||o,providers:s});}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function Fw(t,n){let e=t.length;for(;e--;)n(t[e]);}var jR=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[Lw],imports:[Wn,On,es,On]});}return t;})();function aU(t,n){}var bp=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDu��ration;},Vw="mdc-dialog--open",HR="mdc-dialog--opening",$R="mdc-dialog--closing",sU=150,lU=75,WR=(()=>{class t extends Nw{_animationMode=p(Ne,{optional:!0});_animationStateChanged=new V();_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?qR(this._config.enterAnimationDuration)??sU:0;_exitAnimationDuration=this._animationsEnabled?qR(this._config.exitAnimationDuration)??lU:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(UR,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(HR,Vw)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Vw),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Vw),this._animationsEnabled?(this._hostElement.style.setProperty(UR,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add($R)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck();}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration);};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration});};_clearAnimationClasses(){this._hostElement.classList.remove(HR,$R);}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e);}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e();});}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus();}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e});}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i;}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(ki("id",r._config.id),ee("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),Z("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0));},features:[W],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(i,r){i&1&&(m(0,"div",0)(1,"div",1),I(2,aU,0,0,"ng-template",2),u()());},dependencies:[en],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(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-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(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-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(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-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;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;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}
`],encapsulation:2});}return t;})(),UR="--mat-dialog-transition-duration";function qR(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?$n(t.substring(0,t.length-2)):t.endsWith("s")?$n(t.substring(0,t.length-1))*1e3:t==="0"?0:null;}var _p=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t;}(_p||{}),At=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new H();_beforeClosed=new H();_result;_closeFallbackTimeout;_state=_p.OPEN;_closeInteractionType;constructor(n,e,i){this._ref=n,this._containerInstance=i,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(Ie(r=>r.state==="opened"),de(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),i._animationStateChanged.pipe(Ie(r=>r.state==="closed"),de(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),St(this.backdropClick(),this.keydownEvents().pipe(Ie(r=>r.keyCode===27&&!this.disableClose&&!ti(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),zw(this,r.type==="keydown"?"keyboard":"mouse"));});}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(Ie(e=>e.state==="closing"),de(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100);}),this._state=_p.CLOSING,this._containerInstance._startExitAnimation();}afterOpened(){return this._afterOpened;}afterClosed(){return this._ref.closed;}beforeClosed(){return this._beforeClosed;}backdropClick(){return this._ref.backdropClick;}keydownEvents(){return this._ref.keydownEvents;}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this;}updateSize(n="",e=""){return this._ref.updateSize(n,e),this;}addPanelClass(n){return this._ref.addPanelClass(n),this;}removePanelClass(n){return this._ref.removePanelClass(n),this;}getState(){return this._state;}_finishDialogClose(){this._state=_p.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function zw(t,n,e){return t._closeInteractionType=n,t.close(e);}var Yt=new A("MatMdcDialogData"),GR=new A("mat-mdc-dialog-default-options"),YR=new A("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Gt);return()=>t.scrollStrategies.block();}});var ni=(()=>{class t{_overlay=p(Gt);_defaultOptions=p(GR,{optional:!0});_scrollStrategy=p(YR);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(Ye);_dialog=p(Lw);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new H();_afterOpenedAtThisLevel=new H();dialogConfigClass=bp;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel;}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel;}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel;}afterAllClosed=ko(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ht(void 0)));constructor(){this._dialogRefConstructor=At,this._dialogContainerType=WR,this._dialogDataToken=Yt;}open(e,i){let r;i=B(B({},this._defaultOptions||new bp()),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,ze(B({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:zs,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next());}),r;}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(e){return this.openDialogs.find(i=>i.id===e);}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close();}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),Ii=(()=>{class t{dialogRef=p(At,{optional:!0});_elementRef=p(J);_dialog=p(ni);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=KR(this._elementRef,this._dialog.openDialogs));}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue);}_onButtonClick(e){zw(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult);}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){i&1&&S("click",function(a){return r._onButtonClick(a);}),i&2&&ee("aria-label",r.ariaLabel||null)("type",r.type);},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[He]});}return t;})(),QR=(()=>{class t{_dialogRef=p(At,{optional:!0});_elementRef=p(J);_dialog=p(ni);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=KR(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd();});}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove();});}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t});}return t;})(),ri=(()=>{class t extends QR{id=p(Ye).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id);}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id);}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&ki("id",r.id);},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[W]});}return t;})(),oi=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[dT([dp])]});}return t;})(),di=(()=>{class t extends QR{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1);}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1);}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&Z("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end");},inputs:{align:"align"},features:[W]});}return t;})();function KR(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null;}var vt=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[ni],imports:[jR,Wn,On,he,he]});}return t;})();var na=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this.data=i,this.router=r,this.title="Unsaved Changes",this.saveChangesMsg="You have unsaved changes.  Continue Anyway?",this.cancelMsg="Cancel",this.continueMsg="Continue",this.newTab="New Tab",this.destinationUrl="",this.navigation=void 0;}ngOnInit(){this.destinationUrl=this.data.destinationUrl||"",this.navigation=this.data.navigation||void 0;}navigate(){this.navigation?this.router.navigate(this.navigation):this.destinationUrl?window.open(this.destinationUrl,"_self"):console.warn("unable to navigate."),this.dialogRef.close();}navigateNewTab(){this.dialogRef.close(),window.open(this.destinationUrl,"_blank");}static{this.ɵfac=function(i){return new(i||t)(D(At),D(Yt),D(Xe));};}static{this.ɵcmp=E({type:t,selectors:[["unsaved-changes-dialog"]],decls:13,vars:5,consts:[[1,"modal-content"],["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","","mat-dialog-close",""],["mat-button","",3,"click"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"h1",1),f(2),u(),m(3,"div",2)(4,"p"),f(5),u()(),m(6,"div",3)(7,"button",4),f(8),u(),m(9,"button",5),S("click",function(){return r.navigate();}),f(10),u(),m(11,"button",5),S("click",function(){return r.navigateNewTab();}),f(12),u()()()),i&2&&(d(2),C(r.title),d(3),C(r.saveChangesMsg),d(3),C(r.cancelMsg),d(2),C(r.continueMsg),d(2),C(r.newTab));},dependencies:[vt,Ii,ri,di,oi,ce,ye,j],encapsulation:2});}}return t;})();var pt=(()=>{class t{constructor(e){this.http=e,console.log("environment - ",sd);}allowNavigation(){return!(window.self!==window.top);}demoMode(){return!this.allowNavigation();}fetchSite(){let e=new lt({"Content-Type":"application/json"}),i={data:window.location.host},r=sd.apiUrl+"/site";return this.http.post(r,i,{headers:e});}static{this.ɵfac=function(i){return new(i||t)(te(Bi));};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var Fn=(()=>{class t{constructor(){this.changes=new Map();}set(e,i){console.log("set unsaved changes key:",e),this.changes.set(e,i);}unset(e){this.changes.delete(e),console.log("unset unsaved changes key:",e);}clear(){this.changes.clear();}hasUnsavedChanges(){return this.changes.size>0;}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var ra=(()=>{class t{constructor(e,i){this.http=e,this.site=i,this.baseUrl=this.site.site.wpHost+"/wp-json/wp/v2";}isLoggedIn(e){let i=new lt({"Content-Type":"application/json",Authorization:`Bearer ${e}`}),r=this.site.site.wpHost+"/wp-json/jwt-auth/v1/token/validate";return this.http.post(r,{},{withCredentials:!1,headers:i}).pipe(ue(o=>({loggedIn:o.success,user:o.data})),Dn(o=>se({loggedIn:!1,error:o.message})));}getLoginToken(e,i){let r=new lt({"Content-Type":"application/json"}),o={username:e,password:i,site:window.location.host},a=this.site.site.apiHost+"/login/";return this.http.post(a,o,{headers:r});}createPost(e,i,r,o,a="pending"){let s=new lt({"Content-Type":"application/json",Authorization:`Bearer ${e}`}),l="";r.forEach(g=>{l+='<div class="chat-message">',l+=g,l+="</div><br />";});let c={title:i,content:l,status:a},h=this.site.site.wpHost+"/wp-json/wp/v2/posts";return o&&(h+="/"+o,console.log("update post")),this.http.post(h,c,{headers:s});}fetchRecentContent(e){let i=this.baseUrl+"/posts?_embed&per_page=5",r=this.site.site.wpPostCategories;return r&&(i+=`&categories=${r}`),this.http.get(i);}fetchNews(e){let i=this.baseUrl+"/posts?_embed&per_page=4",r=this.site.site.wpNewsCategories;return r&&(i+=`&categories=${r}`),this.http.get(i);}fetchFeaturedImages(e){return this.http.get(this.baseUrl+"/media?per_page=12&media_type=image");}getPostJsonFromUrl(e){console.log("fetch post at",e);let i="";return this.http.get(e);}fetchArticle(e,i){let r=new lt({"Content-Type":"application/json",Authorization:`Bearer ${e}`});return this.http.get(this.baseUrl+"/posts/"+i);}decodeHtmlEntities(e){let i=document.createElement("textarea");return i.innerHTML=e,i.textContent||"";}convertWpPosts(e){let i=[],r=[];return e.forEach(o=>{let a={id:o.id,date:o.date,date_gmt:o.date_gmt,guid:{rendered:o.guid.rendered},modified:o.modified,modified_gmt:o.modified_gmt,slug:o.slug,status:o.status,type:o.type,link:o.link,title:{rendered:o.title.rendered},content:{rendered:o.content.rendered,protected:o.content.protected},excerpt:{rendered:o.excerpt.rendered,protected:o.excerpt.protected},author:o.author,featured_media:o.featured_media,comment_status:o.comment_status,ping_status:o.ping_status,sticky:o.sticky,template:o.template,format:o.format,meta:{footnotes:o.meta.footnotes},categories:[],tags:[],_links:{},_embedded:o._embedded};i.push(a);}),i.forEach(o=>{let a={title:o.title.rendered,url:o.link,imageUrl:"",fullImageUrl:"",excerpt:this.decodeHtmlEntities(o.excerpt.rendered),date:o.modified,author:o._embedded.author[0].name};o._embedded["wp:featuredmedia"]&&o._embedded["wp:featuredmedia"][0].media_details&&(a.imageUrl=o._embedded["wp:featuredmedia"][0].media_details.sizes.thumbnail.source_url,a.fullImageUrl=o._embedded["wp:featuredmedia"][0].source_url),a.title=this.decodeHtmlEntities(a.title);let s=new Date(a.date),l=new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric"}).format(s);a.date=l,r.push(a);}),r;}static{this.ɵfac=function(i){return new(i||t)(te(Bi),te(pt));};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var Nn=(()=>{class t{constructor(e){this.wp=e,this.sharedDrupalId="e2b59604-0148-4eb2-bd29-6959171fe159";}doLogin(e,i){return this.wp.getLoginToken(e,i);}isLoggedIn(){return!!this.user;}logout(){this.user=void 0;}static{this.ɵfac=function(i){return new(i||t)(te(ra));};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var ZR=(()=>{class t{constructor(e,i,r,o,a){this.router=e,this.site=i,this.unsavedChanges=r,this.dialog=o,this.userService=a,this.LogoutEvent=new V(),this.settingsTxt="Settings",this.imagesTxt="Images",this.navLabel="Navigation Menu",this.chat="Chat",this.newTab="New Chatbot",this.manageContent="Manage Content",this.logoutTxt="Logout",this.wpHostName="";}ngOnInit(){let e=this.site.site.wpHost,i=e.indexOf("//");console.assert(i!==-1,"invalid index"),this.wpHostName=e.substring(i+2);}logout(){console.log("logout"),this.userService.logout(),this.LogoutEvent.emit(!0);}goToSettings(){this.router.navigate(["/settings"]);}goToImages(){this.router.navigate(["/image"]);}goToText(){this.router.navigate(["/chat"]);}openInNewTab(){window.open(window.location.href,"_blank");}getHost(){return window.location.hostname;}returnToSite(){window.open("/");}goToCms(e){let i=e==="wordpress"?this.site.site.wpHost:this.site.site.drupalHost;this.unsavedChanges.hasUnsavedChanges()?this.dialog.open(na,{width:"350px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{destinationUrl:i}}):window.open(i,"_self");}static{this.ɵfac=function(i){return new(i||t)(D(Xe),D(pt),D(Fn),D(ni),D(Nn));};}static{this.ɵcmp=E({type:t,selectors:[["cb-header-links"]],outputs:{LogoutEvent:"LogoutEvent"},decls:40,vars:11,consts:[["menu","matMenu"],["id","links-menu-trigger","mat-icon-button","","aria-label","navigation menu",3,"matMenuTriggerFor"],[1,"header-links-menu"],["mat-menu-item","",3,"click","disabled"],["mat-menu-item","",3,"click"]],template:function(i,r){if(i&1){let o=K();m(0,"button",1)(1,"mat-icon"),f(2,"more_vert"),u()(),m(3,"mat-menu",2,0)(5,"button",3),S("click",function(){return k(o),M(r.goToSettings());}),m(6,"mat-icon"),f(7,"settings"),u(),m(8,"span"),f(9),u()(),m(10,"button",3),S("click",function(){return k(o),M(r.goToText());}),m(11,"mat-icon"),f(12,"question_answer"),u(),m(13,"span"),f(14),u()(),m(15,"button",3),S("click",function(){return k(o),M(r.goToImages());}),m(16,"mat-icon"),f(17,"image"),u(),m(18,"span"),f(19),u()(),m(20,"button",4),S("click",function(){return k(o),M(r.openInNewTab());}),m(21,"mat-icon"),f(22,"open_in_new"),u(),m(23,"span"),f(24),u()(),m(25,"button",4),S("click",function(){return k(o),M(r.goToCms("wordpress"));}),m(26,"mat-icon"),f(27,"keyboard_return"),u(),m(28,"span"),f(29),u()(),m(30,"button",4),S("click",function(){return k(o),M(r.goToCms("drupal"));}),m(31,"mat-icon"),f(32,"dataset"),u(),m(33,"span"),f(34),u()(),m(35,"button",4),S("click",function(){return k(o),M(r.logout());}),m(36,"mat-icon"),f(37,"logout"),u(),m(38,"span"),f(39),u()()();}if(i&2){let o=We(4);v("matMenuTriggerFor",o),d(5),v("disabled",r.router.url==="/settings"),d(4),C(r.settingsTxt),d(),v("disabled",r.router.url==="/chat"),d(4),C(r.chat),d(),v("disabled",r.router.url==="/image"),d(4),C(r.imagesTxt),d(5),C(r.newTab),d(5),C(r.wpHostName),d(5),C(r.manageContent),d(5),C(r.logoutTxt);}},dependencies:[j,Ft,ke,Oe,ia,cr,kr,ta,ce,Si,vt],encapsulation:2});}}return t;})();var $0=(()=>{class t{constructor(){if(this.palettes=[],this.addAll(),this.addIds(),window.sessionStorage.getItem("palette")){let e=this.palettes.find(i=>i.color+i.id===window.sessionStorage.getItem("palette"));e?(this.activePalette=e,document.body.classList.toggle("dark-mode",this.activePalette.mode==="Dark")):(console.warn("palette not found in session storage."),this.activePalette=this.palettes[0]);}else this.activePalette=this.palettes[0];this.activate(this.activePalette);}activate(e){let i=document.body,r="cb-palette-";document.body.classList.remove(r+this.activePalette.color),this.activePalette=e,document.body.classList.add(r+this.activePalette.color),window.sessionStorage.setItem("palette",this.activePalette.color+this.activePalette.id),i.classList.toggle("dark-mode",this.activePalette.mode==="Dark");}addIds(){this.palettes.forEach((e,i)=>{e.id=i;});}addAll(){this.add({color:"green",name:"Green",mode:"Dark"}),this.add({color:"yellow",name:"Yellow",mode:"Dark"}),this.add({color:"cyan",name:"Cyan",mode:"Dark"}),this.add({color:"magenta",name:"Magenta",mode:"Dark"}),this.add({color:"orange",name:"Orange",mode:"Dark"}),this.add({color:"chartreuse",name:"Chartreuse",mode:"Dark"}),this.add({color:"spring-green",name:"Spring Green",mode:"Dark"}),this.add({color:"azure",name:"Azure",mode:"Dark"}),this.add({color:"violet",name:"Violet",mode:"Dark"}),this.add({color:"rose",name:"Rose",mode:"Dark"}),this.add({color:"red",name:"Red",mode:"Dark"}),this.add({color:"green",name:"Green",mode:"Light"}),this.add({color:"blue",name:"Blue",mode:"Light"}),this.add({color:"yellow",name:"Yellow",mode:"Light"}),this.add({color:"cyan",name:"Cyan",mode:"Light"}),this.add({color:"magenta",name:"Magenta",mode:"Light"}),this.add({color:"orange",name:"Orange",mode:"Light"}),this.add({color:"chartreuse",name:"Chartreuse",mode:"Light"}),this.add({color:"spring-green",name:"Spring Green",mode:"Light"}),this.add({color:"azure",name:"Azure",mode:"Light"}),this.add({color:"violet",name:"Violet",mode:"Light"}),this.add({color:"rose",name:"Rose",mode:"Light"}),this.add({color:"red",name:"Red",mode:"Light"}),this.add({color:"blue",name:"Blue",mode:"Dark"});}add(e){this.palettes.push(e);}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();function dU(t,n){if(t&1){let e=K();m(0,"div")(1,"button",4),S("click",function(){let r=k(e).$implicit,o=y();return M(o.selectPalette(r));}),m(2,"mat-icon"),f(3,"text_fields"),u(),m(4,"span",5),f(5),u()()();}if(t&2){let e=n.$implicit;d(2),DT("palette-icon ",e.mode.toLowerCase()," ",e.id,""),d(3),br("",e.name," (",e.mode,")");}}var XR=(()=>{class t{constructor(){this.helpStr="Select a theme color.",this.selectPaletteEvent=new V(),this.paletteService=p($0);}selectPalette(e){console.log("palette is ",e),this.selectPaletteEvent.emit(e);}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-palette-picker"]],outputs:{selectPaletteEvent:"selectPaletteEvent"},decls:8,vars:2,consts:[["menu",""],["id","palette-picker"],["mat-icon-button","","aria-label","palette picker",3,"matTooltip","matMenuTriggerFor"],["id","palette-picker-menu"],["mat-menu-item","",1,"palette-button",3,"click"],[1,"palette"]],template:function(i,r){if(i&1&&(m(0,"span",1)(1,"button",2)(2,"mat-icon"),f(3,"format_color_fill"),u()(),m(4,"mat-menu",3,0),Ut(6,dU,6,6,"div",null,ir),u()()),i&2){let o=We(5);d(),v("matTooltip",r.helpStr)("matMenuTriggerFor",o),d(5),qt(r.paletteService.palettes);}},dependencies:[ke,Oe,ce,Si,Je,Ct,ia,cr,kr,ta],styles:[".cb-palette-1[_ngcontent-%COMP%]{background-color:#fff;color:#026e00}.cb-palette-2[_ngcontent-%COMP%]{background-color:#121212}.cb-palette-3[_ngcontent-%COMP%]{background-color:#cdcd00;color:#121212}.cb-palette-4[_ngcontent-%COMP%]{background-color:#121212;color:#cdcd00}"]});}}return t;})();var U0=function(t){return t._1024x1024="1024x1024",t._1792x1024="1792x1024",t._1024x1792="1024x1792",t;}(U0||{}),q0=function(t){return t.standard="standard",t.hd="hd",t;}(q0||{}),W0=function(t){return t.vivid="vivid",t.natural="natural",t;}(W0||{}),jt=(()=>{class t{static{this.sNextID=0;}constructor(){this.id=0,this.userId=1,this.endpoint=oe.unknown,this.body="",this.bodyOriginal="",this.id=t.sNextID++;}}return t;})(),oe=function(t){return t.unknown="unknown",t.chat="chat",t.chatAlt="chatAlt",t.ancientPhilosophy="ancientPhilosophy",t.jokes="jokes",t.topTen="topTen",t.imageGenerate="imageGenerate",t.imageEdit="imageEdit",t.imageVariations="imageVariations",t.openaimodels="openaimodels",t.characters="characters",t.imagePrompts="imagePrompts",t.toFrench="toFrench",t.toSpanish="toSpanish",t.chatStream="chatStream",t.home="home",t.chemicalElements="chemicalElements",t.socrates="socrates",t.particlePhysics="particlePhysics",t.blackjack="blackjack",t.pythonTutor="pythonTutor",t.mlTutor="mlTutor",t.dynamicWidget="dynamicWidget",t.character="character",t;}(oe||{}),Tt=function(t){return t[t.human=0]="human",t[t.ai=1]="ai",t[t.unknown=2]="unknown",t;}(Tt||{});var oa=(()=>{class t{constructor(e){this.site=e,this.homeCards=[],this.imageCards=[],this.textCards=[],this.homeCards=[{id:"chat",title:"Chat",subtitle:"AI Widgets",description:"A collection of general and narrowly focused AI chat widgets.  All of the widgets here use Large Language Models (LLMs).",icon:"question_answer",quickLinks:[{name:"Ask Me Anything",href:"/chat/ask-me-anything",tooltip:"General Purpose Chat"},{name:"Widget Manager",href:"/chat/widget-manager",tooltip:"New!  Build your own narrow AI widgets."},{name:"Jokes",href:"chat/jokes",tooltip:"A different joke every time!"},{name:"Chemical Elements",href:"chat/chemical-elements",tooltip:"Information and interactive quizzing about chemical elements."},{name:"Particle Physics",href:"chat/particle-physics",tooltip:"Information and interactive quizzing about subatomic particles."},{name:"Blackjack",href:"chat/blackjack",tooltip:"Play blackjack.  Chatbot is the dealer."},{name:"Python Tutor",href:"chat/python-tutor",tooltip:"Learn and be quizzed about various Python topics"},{name:"ML Tutor",href:"chat/ml-tutor",tooltip:"Learn and be quizzed about machine learning techinques and libraries."},{name:"Ancient Philosophy",href:"/chat/ancient-philosophy",tooltip:"Words of wisdom, mainly from ancient Western and Eastern philosophers."},{name:"Socrates",href:"chat/socrates",tooltip:"Match wits with Socrates."},{name:"To Spanish",href:"/chat/to-spanish",tooltip:"Translate to Spanish"},{name:"To French",href:"/chat/to-french",tooltip:"Translate to French"},{name:"View All",href:"/chat",tooltip:"Explore narrow chat widgets"}],link:{name:"View Dashboard",href:"/chat"},weight:1,enabled:!��0,hidden:!1,dynamic:!0},{id:"images",title:"Images",subtitle:"AI Widgets",description:"Use the widgets here to create images from text.  Variations, editing, upload, download, prompt management, and other features available as well.",icon:"photo_library",quickLinks:[{name:"Dashboard",href:"/image",tooltip:"Explore the image widgets"},{name:"Create",href:"image/generate",tooltip:"Generate images from text."},{name:"Edit",href:"image/edit",tooltip:"Inpaint and outpaint using image masks."},{name:"Variations",href:"image/variations",tooltip:"Create variants on images."},{name:"Prompts",href:"image/prompts",tooltip:"Build sophisticated image prompts easily."}],link:{name:"View Dashboard",href:"image"},weight:2,enabled:!0,hidden:!1,dynamic:!0},{id:"characters",title:"Characters",subtitle:"AI Agents",description:"",icon:"people",link:{name:"Configure Characters",href:"characters"},weight:3,enabled:!0,hidden:!1,dynamic:!0},{id:"recent",title:"Recent",subtitle:"AI Content",description:"",icon:"calendar_today",link:{name:"View All",href:"about"},quickLinks:[{name:"Browse Chats",href:this.site.site.wpHost+"/category/ai-chat/",tooltip:"Browse all chat conversations.",external:!0},{name:"Browse Images",href:this.site.site.wpHost+"/gallery/",tooltip:"Browse all images.",external:!0}],weight:4,enabled:!0,hidden:!0,dynamic:!0},{id:"news",title:"News",subtitle:"Latest News",description:"",icon:"newspaper",quickLinks:[{name:"All the News",href:this.site.site.wpHost,tooltip:"Read the latest Chatbot news.",external:!0}],link:{name:"All the News",href:""},weight:5,enabled:!0,hidden:!0,dynamic:!0},{id:"about",title:"About",subtitle:"Site Information",description:"",icon:"info",link:{name:"Read More",href:"about"},weight:7,enabled:!0,hidden:!1,dynamic:!0},{id:"support",title:"Support",subtitle:"Site Information",description:"",icon:"contact_support",link:{name:"Get Help",href:"support"},weight:8,enabled:!0,hidden:!1,dynamic:!0},{id:"api",title:"Status",subtitle:"API Information",description:"Status and model availability.",icon:"api",quickLinks:[{name:"View All",href:"models"}],link:{name:"View All",href:"models"},weight:9,enabled:!0,hidden:!1,dynamic:!0}],this.imageCards=[{title:"Create",subtitle:"Image Widget",description:"Create images based on text descriptions.  Download and other options available.",icon:"add_photo_alternate",link:{name:"Start Here!",href:"/image/generate"},weight:0,enabled:!0,hidden:!1,routeKey:oe.imageGenerate,dynamic:!1},{title:"Edit",subtitle:"Image Widget",description:"Enhance regions of an image based on a text description.",icon:"auto_fix_high",link:{name:"Go!",href:"/image/edit"},weight:1,enabled:!0,hidden:!1,routeKey:oe.imageEdit,dynamic:!1},{title:"Variations",subtitle:"Image Widget",description:"Upload an image and get variations on your original.",icon:"burst_mode",link:{name:"Alrighty",href:"/image/variations"},weight:2,enabled:!0,hidden:!1,routeKey:oe.imageVariations,dynamic:!1},{title:"Prompts",subtitle:"Image Widget",description:"Generate detailed prompts for creating images.",icon:"auto_awesome",link:{name:"Make Prompts",href:"/image/prompts"},weight:3,enabled:!0,hidden:!1,routeKey:oe.imagePrompts,dynamic:!1}],this.textCards=[{title:"Ask Me Anything",subtitle:"Chat Widget",description:"This chat widget is general purpose and uses AI APIs (OpenAI).  It's capable of\n          amazing things including writing code and poetry, answering math and history questions, and much more.  The \n          api is trained with data up until roughly one year ago.",icon:"wechat",link:{name:"Try It Out",href:"/chat/ask-me-anything"},help:"Ask any question and provide details where appropriate.  Chatbot will consider all the messages in the current conversation (i.e. on this page) when responding.",weight:1,enabled:!0,hidden:!1,routeKey:oe.chat,dynamic:!1},{title:"Character Manager",subtitle:"Manage Your Characters",description:"Create, edit, and use characters.",icon:"face",link:{name:"Manage Characters",href:"/characters"},weight:1.1,enabled:!0,hidden:!1,dynamic:!1},{title:"Widget Manager",subtitle:"Narrow AI Widget",description:"Create, edit, and use narrow AI widgets.",icon:"widgets",link:{name:"Manage Widgets",href:"/chat/widget-manager"},weight:1.1,enabled:!0,hidden:!1,dynamic:!1},{title:"Ask Me Anything (GPT 3.5)",subtitle:"Chat Widget",description:"This general purpose chat application is based on GPT 3.5 Turbo. This widget\n          is significantly faster than the main \"Ask Me Anything\" widget, but mostly works the same.",icon:"wechat",link:{name:"Let's talk",href:"/chat/ask-me-anything-alt"},weight:2,enabled:!1,hidden:!1,routeKey:oe.chatAlt,dynamic:!1},{title:"Jokes",subtitle:"Chat Widget",description:"Enter a topic and get a new joke every time.",icon:"mic_external_on",link:{name:"Make me Laugh",href:"/chat/jokes"},weight:3,enabled:!0,hidden:!1,routeKey:oe.jokes,dynamic:!1},{title:"Chemical Elements",subtitle:"Chat Widget",description:"Information and interactive quizzing about elements of the periodic table.",icon:"science",link:{name:"Try It Out",href:"/chat/chemical-elements"},weight:4,enabled:!0,hidden:!1,routeKey:oe.chemicalElements,dynamic:!1},{title:"Particle Physics",subtitle:"Chat Widget",description:"Information and interactive quizzing about subatomic particles.",icon:"bolt",link:{name:"Try It Out",href:"/chat/particle-physics"},weight:4.2,enabled:!0,hidden:!0,routeKey:oe.particlePhysics,dynamic:!1},{title:"Blackjack",subtitle:"Chat Widget",description:"Play blackjack against Chatbot.",icon:"table_bar",link:{name:"Play Now",href:"/chat/blackjack"},weight:4.4,enabled:!0,hidden:!1,routeKey:oe.blackjack,dynamic:!1},{title:"Python Tutor",subtitle:"Chat Widget",description:"Learn about Python and be quizzed by Chatbot.",icon:"school",link:{name:"Learn Python",href:"/chat/python-tutor"},weight:4.5,enabled:!0,hidden:!1,routeKey:oe.pythonTutor,dynamic:!1},{title:"ML Tutor",subtitle:"Chat Widget",description:"Learn about machine learning techinques and libraries. Be quizzed by Chatbot.",icon:"engineering",link:{name:"Study ML Now",href:"/chat/ml-tutor"},weight:4.6,enabled:!0,hidden:!1,routeKey:oe.mlTutor,dynamic:!1},{title:"Ancient Philosophy",subtitle:"AI Widget",description:"Words of wisdom from ancient philosophers.  Most of the quotations are from\n        ancient Western and Eastern philosophers, but you will see quotes from other time periods and sources as well.",icon:"library_books",link:{name:"Go There",href:"/chat/ancient-philosophy"},weight:5,enabled:!0,hidden:!1,routeKey:oe.ancientPhilosophy,dynamic:!1},{title:"Socrates",subtitle:"Text Chat",description:"This widget is an interactive demonstration of the Socratic method.",icon:"wine_bar",link:{name:"Ponder",href:"/chat/socrates"},help:"Converse with the great Socrates.",weight:6,enabled:!0,hidden:!1,routeKey:oe.socrates,dynamic:!1},{title:"To Spanish",subtitle:"Text Chat",description:"This text-based widget ia set up to easily translate to Spanish from any language.",icon:"translate",link:{name:"Translate Now",href:"/chat/to-spanish"},help:"Chatbot will consider all the messages in the current conversation (i.e. on this page) when responding.",weight:7,enabled:!0,hidden:!1,routeKey:oe.toSpanish,dynamic:!1},{title:"To French",subtitle:"Text Chat",description:"This text-based widget ia set up to easily translate to French from any language.",icon:"translate",link:{name:"Translate Now",href:"/chat/to-french"},help:"Chatbot will consider all the messages in the current conversation (i.e. on this page) when responding.",weight:8,enabled:!0,hidden:!1,routeKey:oe.toFrench,dynamic:!1},{title:"Top Ten",subtitle:"Chat Widget",description:"Enter a subject and get a top ten list of interesting facts.",icon:"123",link:{name:"Lets Do This!",href:"/chat/topten"},weight:10,enabled:!1,hidden:!1,routeKey:oe.topTen,dynamic:!1},{title:"Character",subtitle:"Chat Widget",description:"Enter text and click send to begin communications.",icon:"person",link:{name:"Meet",href:"/chat/character"},weight:10,enabled:!0,hidden:!0,routeKey:oe.character,dynamic:!1}],this.homeCards.sort((i,r)=>i.weight<r.weight?-1:i.weight>r.weight?1:0),this.imageCards.sort((i,r)=>i.weight<r.weight?-1:i.weight>r.weight?1:0),this.textCards.sort((i,r)=>i.weight<r.weight?-1:i.weight>r.weight?1:0);}scrollToBottom(){let e=document.getElementsByTagName("cb-prompter")[0];e&&e.scrollIntoView({behavior:"auto",block:"end"});}static{this.ɵfac=function(i){return new(i||t)(te(pt));};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var Bs=(()=>{class t{constructor(){}get(e){let i=localStorage.getItem(e);if(i!==null){let r=JSON.parse(i);if(new Date(r.expirationDate)>new Date())return r.value;localStorage.removeItem(e);}return null;}set(e,i,r=60){let o=new Date(new Date().getTime()+6e4*r),a={value:i,expirationDate:o.toISOString()};localStorage.setItem(e,JSON.stringify(a));}remove(e){localStorage.removeItem(e);}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();function uU(t,n){t&1&&w(0,"div",2);}var mU=new A("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var tO=(()=>{class t{_elementRef=p(J);_ngZone=p(ae);_changeDetectorRef=p(pe);_renderer=p(tt);_cleanupTransitionEnd;_animationMode=p(Ne,{optional:!0});constructor(){let e=p(mU,{optional:!0});this._isNoopAnimation=this._animationMode==="NoopAnimations",e&&(e.color&&(this.color=this._defaultColor=e.color),this.mode=e.mode||this.mode);}_isNoopAnimation=!1;get color(){return this._color||this._defaultColor;}set color(e){this._color=e;}_color;_defaultColor="primary";get value(){return this._value;}set value(e){this._value=eO(e||0),this._changeDetectorRef.markForCheck();}_value=0;get bufferValue(){return this._bufferValue||0;}set bufferValue(e){this._bufferValue=eO(e||0),this._changeDetectorRef.markForCheck();}_bufferValue=0;animationEnd=new V();get mode(){return this._mode;}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck();}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler);});}ngOnDestroy(){this._cleanupTransitionEnd?.();}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`;}_getBufferBarFlexBasis(){return`${this.mode==="buffer"?this.bufferValue:100}%`;}_isIndeterminate(){return this.mode==="indeterminate"||this.mode==="query";}_transitionendHandler=e=>{this.animationEnd.observers.length===0||!e.target||!e.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}));};static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,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(i,r){i&2&&(ee("aria-valuenow",r._isIndeterminate()?null:r.value)("mode",r.mode),bt("mat-"+r.color),Z("_mat-animation-noopable",r._isNoopAnimation)("mdc-linear-progress--animation-ready",!r._isNoopAnimation)("mdc-linear-progress--indeterminate",r._isIndeterminate()));},inputs:{color:"color",value:[2,"value","value",ut],bufferValue:[2,"bufferValue","bufferValue",ut],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(i,r){i&1&&(m(0,"div",0),w(1,"div",1),I(2,uU,1,0,"div",2),u(),m(3,"div",3),w(4,"span",4),u(),m(5,"div",5),w(6,"span",4),u()),i&2&&(d(),xi("flex-basis",r._getBufferBarFlexBasis()),d(),Q(r.mode==="buffer"?2:-1),d(),xi("transform",r._getPrimaryBarTransform()));},styles:[`.mat-mdc-progress-bar{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}.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(--mdc-linear-progress-track-height, 4px),var(--mdc-linear-progress-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(--mdc-linear-progress-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(--mdc-linear-progress-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-linear-progress-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(--mdc-linear-progress-track-height, 4px);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color, var(--mat-sys-surface-variant))}@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 250ms 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(--mdc-linear-progress-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 2s 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 2s 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 2s 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 2s 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(--mdc-linear-progress-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)}}
`],encapsulation:2,changeDetection:0});}return t;})();function eO(t,n=0,e=100){return Math.max(n,Math.min(e,t));}var aa=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he]});}return t;})();var iO={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};function hU(t,n){if(t&1){let e=K();m(0,"div",1)(1,"button",2),S("click",function(){k(e);let r=y();return M(r.action());}),f(2),u()();}if(t&2){let e=y();d(2),N(" ",e.data.action," ");}}var fU=["label"];function gU(t,n){}var _U=Math.pow(2,31)-1,vp=class{_overlayRef;instance;containerInstance;_afterDismissed=new H();_afterOpened=new H();_onAction=new H();_durationTimeoutId;_dismissedByAction=!1;constructor(n,e){this._overlayRef=e,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss());}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId);}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId);}closeWithAction(){this.dismissWithAction();}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,_U));}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete());}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1;}afterDismissed(){return this._afterDismissed;}afterOpened(){return this.containerInstance._onEnter;}onAction(){return this._onAction;}},rO=new A("MatSnackBarData"),Od=class{politeness="assertive";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom";},bU=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]});}return t;})(),vU=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]});}return t;})(),yU=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]});}return t;})(),oO=(()=>{class t{snackBarRef=p(vp);data=p(rO);constructor(){}action(){this.snackBarRef.dismissWithAction();}get hasAction(){return!!this.data.action;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,r){i&1&&(m(0,"div",0),f(1),u(),I(2,hU,3,1,"div",1)),i&2&&(d(),N(" ",r.data.message,`
`),d(),Q(r.hasAction?2:-1));},dependencies:[ye,bU,vU,yU],styles:[`.mat-mdc-simple-snack-bar{display:flex}
`],encapsulation:2,changeDetection:0});}return t;})(),Bw="_mat-snack-bar-enter",jw="_mat-snack-bar-exit",xU=(()=>{class t extends is{_ngZone=p(ae);_elementRef=p(J);_changeDetectorRef=p(pe);_platform=p(Ae);_rendersRef;_animationsDisabled=p(Ne,{optional:!0})==="NoopAnimations";snackBarConfig=p(Od);_document=p(_e);_trackedModals=new Set();_enterFallback;_exitFallback;_renders=new H();_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new H();_onExit=new H();_onEnter=new H();_animationState="void";_live;_label;_role;_liveElementId=p(Ye).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert")),this._rendersRef=wl(()=>this._renders.next(),{manualCleanup:!0});}attachComponentPortal(e){this._assertNotAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i;}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i;}attachDomPortal=e=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),i;};onAnimationEnd(e){e===jw?this._completeExit():e===Bw&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete();}));}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?this._renders.pipe(de(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(Bw)));}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(Bw);},200)));}exit(){return this._destroyed?se(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?this._renders.pipe(de(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(jw)));}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(jw),200));}),this._onExit);}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit(),this._renders.complete(),this._rendersRef.destroy();}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete();});}_afterPortalAttached(){let e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(a=>e.classList.add(a)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`));}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<i.length;r++){let o=i[r],a=o.getAttribute("aria-owns");this._trackedModals.add(o),a?a.indexOf(e)===-1&&o.setAttribute("aria-owns",a+" "+e):o.setAttribute("aria-owns",e);}}_clearFromModals(){this._trackedModals.forEach(e=>{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns");}}),this._trackedModals.clear();}_assertNotAttached(){this._portalOutlet.hasAttached();}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,i=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(i&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&i.contains(document.activeElement)&&(o=document.activeElement),i.removeAttribute("aria-hidden"),r.appendChild(i),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete();}},this._announceDelay);});}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&($(en,7),$(fU,7)),i&2){let o;R(o=O())&&(r._portalOutlet=o.first),R(o=O())&&(r._label=o.first);}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(i,r){i&1&&S("animationend",function(a){return r.onAnimationEnd(a.animationName);})("animationcancel",function(a){return r.onAnimationEnd(a.animationName);}),i&2&&Z("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled);},features:[W],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(i,r){i&1&&(m(0,"div",1)(1,"div",2,0)(3,"div",3),I(4,gU,0,0,"ng-template",4),u(),w(5,"div"),u()()),i&2&&(d(5),ee("aria-live",r._live)("role",r._role)("id",r._liveElementId));},dependencies:[en],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(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-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(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-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-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-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}
`],encapsulation:2});}return t;})();function CU(){return new Od();}var wU=new A("mat-snack-bar-default-options",{providedIn:"root",factory:CU}),_n=(()=>{class t{_overlay=p(Gt);_live=p(zl);_injector=p(Se);_breakpointObserver=p(Ja);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p(wU);_snackBarRefAtThisLevel=null;simpleSnackBarComponent=oO;snackBarContainerComponent=xU;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel;}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e;}constructor(){}openFromComponent(e,i){return this._attach(e,i);}openFromTemplate(e,i){return this._attach(e,i);}open(e,i="",r){let o=B(B({},this._d��efaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o);}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss();}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss();}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=Se.create({parent:r||this._injector,providers:[{provide:Od,useValue:i}]}),a=new lr(this.snackBarContainerComponent,i.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance;}_attach(e,i){let r=B(B(B({},new Od()),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new vp(a,o);if(e instanceof st){let l=new $i(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l);}else{let l=this._createInjector(r,s),c=new lr(e,void 0,l),h=a.attachComponentPortal(c);s.instance=h.instance;}return this._breakpointObserver.observe(iO.HandsetPortrait).pipe(Ve(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches);}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness);}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef;}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear();}),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter();}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter();}_createOverlay(e){let i=new jr();i.direction=e.direction;let r=this._overlay.position().global(),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i);}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Se.create({parent:r||this._injector,providers:[{provide:vp,useValue:i},{provide:rO,useValue:e.data}]});}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var js=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[_n],imports:[Wn,On,ce,he,oO,he]});}return t;})();var ns=(()=>{class t{constructor(e,i,r,o){this.http=e,this.site=i,this._snackBar=r,this.user=o,this.cancelRequest$=new H();}sendFapiMessage(e,i,r){if(r||(r="You are a helpful assistant."),e.d3RequestData)return this.createD3Image(e.d3RequestData);let o={endpoint:e.endpoint,options:e.options||{},userId:e.userId,conversation:i,msg:e.body,prompt:e.body,instructions:r,temperature:e.temperature||"",maskBase64:e.maskBase64||"",croppedBase64:e.croppedBase64||"",imageCount:e.imageCount||"",imageSize:e.imageSize||"",devHost:this.site.site.drupalHost,sourceImage:e.images?e.images[0]:""};switch(console.log("send msg: ",o),e.endpoint){case oe.imageGenerate:return this.createImage(o);case oe.imageVariations:return this.createImageVariations(o);case oe.imageEdit:return this.createImageEdits(o);default:throw console.log("route not found"),new Error("function not implemented");}}createD3Image(e){let i=this.user.user?.fapiToken,r=new lt({Authorization:`Bearer ${i}`});console.log("creating d3 image");let o=this.site.site.apiHost+"/image/d3create/";return this.http.post(o,e,{headers:r});}createImage(e){let i=this.user.user?.fapiToken,r=new lt({Authorization:`Bearer ${i}`}),o=this.site.site.apiHost+"/image/create/";return this.http.post(o,e,{headers:r});}createImageVariations(e){let i=this.user.user?.fapiToken,r=new lt({Authorization:`Bearer ${i}`}),o=this.site.site.apiHost+"/image/variations/";return this.http.post(o,e,{headers:r});}createImageEdits(e){let i=this.user.user?.fapiToken,r=new lt({Authorization:`Bearer ${i}`}),o=this.site.site.apiHost+"/image/edit/";return this.http.post(o,e,{headers:r});}sendFile(e){let i=this.user.user?.fapiToken,r=new lt({Authorization:`Bearer ${i}`}),o=new FormData();o.append("file",e,e.name);let a=this.site.site.apiHost+"/image/upload/";return this.http.post(a,o,{headers:r});}getSize(e,i){let r=this.site.site.apiHost+"/compress/get-compressed-jpg-size/",o={url:e,compression_level:i},a=this.user.user?.fapiToken,s=new lt({Authorization:`Bearer ${a}`});return this.http.post(r,o,{headers:s});}cancelRequest(){this.cancelRequest$.next();}ngOnDestroy(){this.cancelRequest$.next(),this.cancelRequest$.complete();}compressAndSave(e,i){console.log("writing compressed image");let r=this.site.site.apiHost+"/compress/convert-to-jpg/",o={url:e,compression_level:i},a=this.user.user?.fapiToken,s=new lt({Authorization:`Bearer ${a}`});return this.http.post(r,o,{headers:s});}saveToMediaLibrary(e,i){let r=this;this.compressAndSave(e,i).pipe(de(1)).subscribe({next(o){console.log("save image result:",o),r._snackBar.open("Image added to Media Library",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-success"]});},error(o){console.log("Error: ",o),r._snackBar.open("Unable to add image to Media Library",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]});},complete(){}});}static{this.ɵfac=function(i){return new(i||t)(te(Bi),te(pt),te(_n),te(Nn));};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var Q0=(()=>{class t{_animationMode=p(Ne,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&Z("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations");},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},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-minimal-pseudo-checkbox-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-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-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-full-pseudo-checkbox-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-full-pseudo-checkbox-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-full-pseudo-checkbox-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-full-pseudo-checkbox-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-full-pseudo-checkbox-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}
`],encapsulation:2,changeDetection:0});}return t;})();var DU=["text"],EU=[[["mat-icon"]],"*"],kU=["mat-icon","*"];function MU(t,n){if(t&1&&w(0,"mat-pseudo-checkbox",1),t&2){let e=y();v("disabled",e.disabled)("state",e.selected?"checked":"unchecked");}}function SU(t,n){if(t&1&&w(0,"mat-pseudo-checkbox",3),t&2){let e=y();v("disabled",e.disabled);}}function IU(t,n){if(t&1&&(m(0,"span",4),f(1),u()),t&2){let e=y();d(),N("(",e.group.label,")");}}var $w=new A("MAT_OPTION_PARENT_COMPONENT"),Uw=new A("MatOptgroup");var Hw=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e;}},rs=(()=>{class t{_element=p(J);_changeDetectorRef=p(pe);_parent=p($w,{optional:!0});group=p(Uw,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple;}get selected(){return this._selected;}value;id=p(Ye).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled;}set disabled(e){this._disabled=e;}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple;}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator);}onSelectionChange=new V();_text;_stateChanges=new H();constructor(){let e=p(nt);e.load(ii),e.load(Br),this._signalDisableRipple=!!this._parent&&ks(this._parent.disableRipple);}get active(){return this._active;}get viewValue(){return(this._text?.nativeElement.textContent||"").trim();}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent());}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent());}focus(e,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i);}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck());}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck());}getLabel(){return this.viewValue;}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!ti(e)&&(this._selectViaInteraction(),e.preventDefault());}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0));}_getTabIndex(){return this.disabled?"-1":"0";}_getHostElement(){return this._element.nativeElement;}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e);}}ngOnDestroy(){this._stateChanges.complete();}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Hw(this,e));}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&$(DU,7),i&2){let o;R(o=O())&&(r._text=o.first);}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&S("click",function(){return r._selectViaInteraction();})("keydown",function(a){return r._handleKeydown(a);}),i&2&&(ki("id",r.id),ee("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),Z("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled));},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",U]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:kU,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(i,r){i&1&&(De(EU),I(0,MU,1,2,"mat-pseudo-checkbox",1),le(1),m(2,"span",2,0),le(4,1),u(),I(5,SU,1,1,"mat-pseudo-checkbox",3)(6,IU,2,1,"span",4),w(7,"div",5)),i&2&&(Q(r.multiple?0:-1),d(5),Q(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),d(),Q(r.group&&r.group._inert?6:-1),d(),v("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple));},dependencies:[Q0,an],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-multiple){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-multiple) .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-minimal-pseudo-checkbox-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{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}
`],encapsulation:2,changeDetection:0});}return t;})();function sO(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;a<t+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o;}return 0;}function lO(t,n,e,i){return t<e?t:t+n>e+i?Math.max(0,t-i+n):e;}var qw=class{_box;_destroyed=new H();_resizeSubject=new H();_resizeObserver;_elementObservables=new Map();constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)));}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new qe(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n);};}).pipe(Ie(e=>e.some(i=>i.target===n)),Xh({bufferSize:1,refCount:!0}),Ve(this._destroyed))),this._elementObservables.get(n);}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear();}},K0=(()=>{class t{_cleanupErrorListener;_observers=new Map();_ngZone=p(ae);constructor(){typeof ResizeObserver<"u";}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.();}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new qw(r)),this._observers.get(r).observe(e);}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var TU=["notch"],AU=["matFormFieldNotchedOutline",""],RU=["*"],OU=["textField"],PU=["iconPrefixContainer"],FU=["textPrefixContainer"],NU=["iconSuffixContainer"],LU=["textSuffixContainer"],VU=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],zU=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function BU(t,n){t&1&&w(0,"span",20);}function jU(t,n){if(t&1&&(m(0,"label",19),le(1,1),I(2,BU,1,0,"span",20),u()),t&2){let e=y(2);v("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),ee("for",e._control.disableAutomaticLabeling?null:e._control.id),d(2),Q(!e.hideRequiredMarker&&e._control.required?2:-1);}}function HU(t,n){if(t&1&&I(0,jU,3,5,"label",19),t&2){let e=y();Q(e._hasFloatingLabel()?0:-1);}}function $U(t,n){t&1&&w(0,"div",7);}function UU(t,n){}function qU(t,n){if(t&1&&I(0,UU,0,0,"ng-template",13),t&2){y(2);let e=We(1);v("ngTemplateOutlet",e);}}function WU(t,n){if(t&1&&(m(0,"div",9),I(1,qU,1,1,null,13),u()),t&2){let e=y();v("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),d(),Q(e._forceDisplayInfixLabel()?-1:1);}}function GU(t,n){t&1&&(m(0,"div",10,2),le(2,2),u());}function YU(t,n){t&1&&(m(0,"div",11,3),le(2,3),u());}function QU(t,n){}function KU(t,n){if(t&1&&I(0,QU,0,0,"ng-template",13),t&2){y();let e=We(1);v("ngTemplateOutlet",e);}}function ZU(t,n){t&1&&(m(0,"div",14,4),le(2,4),u());}function XU(t,n){t&1&&(m(0,"div",15,5),le(2,5),u());}function JU(t,n){t&1&&w(0,"div",16);}function eq(t,n){t&1&&le(0,6);}function tq(t,n){if(t&1&&(m(0,"mat-hint",21),f(1),u()),t&2){let e=y(2);v("id",e._hintLabelId),d(),C(e.hintLabel);}}function iq(t,n){if(t&1&&(I(0,tq,2,2,"mat-hint",21),le(1,7),w(2,"div",22),le(3,8)),t&2){let e=y();Q(e.hintLabel?0:-1);}}var Nt=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["mat-label"]]});}return t;})(),fO=new A("MatError"),Ul=(()=>{class t{id=p(Ye).getId("mat-mdc-error-");constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&ki("id",r.id);},inputs:{id:"id"},features:[be([{provide:fO,useExisting:t}])]});}return t;})(),Ww=(()=>{class t{align="start";id=p(Ye).getId("mat-mdc-hint-");static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(ki("id",r.id),ee("align",null),Z("mat-mdc-form-field-hint-end",r.align==="end"));},inputs:{align:"align",id:"id"}});}return t;})(),nq=new A("MatPrefix");var rq=new A("MatSuffix");var gO=new A("FloatingLabelParent"),cO=(()=>{class t{_elementRef=p(J);get floating(){return this._floating;}set floating(e){this._floating=e,this.monitorResize&&this._handleResize();}_floating=!1;get monitorResize(){return this._monitorResize;}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe();}_monitorResize=!1;_resizeObserver=p(K0);_ngZone=p(ae);_parent=p(gO);_resizeSubscription=new ve();constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe();}getWidth(){return oq(this._elementRef.nativeElement);}get element(){return this._elementRef.nativeElement;}_handleResize(){setTimeout(()=>this._parent._handleLabelResized());}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize());});}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&Z("mdc-floating-label--float-above",r.floating);},inputs:{floating:"floating",monitorResize:"monitorResize"}});}return t;})();function oq(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i;}var dO="mdc-line-ripple--active",Z0="mdc-line-ripple--deactivating",uO=(()=>{class t{_elementRef=p(J);_cleanupTransitionEnd;constructor(){let e=p(ae),i=p(tt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd);});}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Z0),e.add(dO);}deactivate(){this._elementRef.nativeElement.classList.add(Z0);}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(Z0);e.propertyName==="opacity"&&r&&i.remove(dO,Z0);};ngOnDestroy(){this._cleanupTransitionEnd();}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]});}return t;})(),mO=(()=>{class t{_elementRef=p(J);_ngZone=p(ae);open=!1;_notch;constructor(){}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="");}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label");}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&$(TU,5),i&2){let o;R(o=O())&&(r._notch=o.first);}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&Z("mdc-notched-outline--notched",r.open);},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:AU,ngContentSelectors:RU,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(i,r){i&1&&(De(),w(0,"div",1),m(1,"div",2,0),le(3),u(),w(4,"div",3));},encapsulation:2,changeDetection:0});}return t;})(),yp=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t});}return t;})();var xp=new A("MatFormField"),aq=new A("MAT_FORM_FIELD_DEFAULT_OPTIONS"),pO="fill",sq="auto",hO="fixed",lq="translateY(-50%)",Lt=(()=>{class t{_elementRef=p(J);_changeDetectorRef=p(pe);_dir=p(Et);_platform=p(Ae);_idGenerator=p(Ye);_ngZone=p(ae);_injector=p(Se);_defaults=p(aq,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=sT(Nt);get hideRequiredMarker(){return this._hideRequiredMarker;}set hideRequiredMarker(e){this._hideRequiredMarker=Ji(e);}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||sq;}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck());}_floatLabel;get appearance(){return this._appearance;}set appearance(e){let i=this._appearance,r=e||this._defaults?.appearance||pO;this._appearance=r,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0);}_appearance=pO;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||hO;}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||hO;}_subscriptSizing=null;get hintLabel(){return this._hintLabel;}set hintLabel(e){this._hintLabel=e,this._processHints();}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");get _control(){return this._explicitFormFieldControl||this._formFieldControl;}set _control(e){this._explicitFormFieldControl=e;}_destroyed=new H();_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_animationsDisabled;constructor(){let e=this._defaults;e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),this._animationsDisabled=p(Ne,{optional:!0})==="NoopAnimations";}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled");},300);}),this._changeDetectorRef.detectChanges();}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions();}ngAfterContentChecked(){this._assertFormFieldControl(),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();}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete();}getLabelId=Ga(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef;}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always");}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck();}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(ht([void 0,void 0]),ue(()=>[i.errorState,i.userAriaDescribedBy]),Zh(),Ie(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(Ve(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()));}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText);}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),St(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck();});}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck();}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck();}),this._validateHints(),this._syncDescribedByIds();}_assertFormFieldControl(){this._control;}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused);}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),wl(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset());},{injector:this._injector}),this._dir.change.pipe(Ve(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0);}_shouldAlwaysFloat(){return this.floatLabel==="always";}_hasOutline(){return this.appearance==="outline";}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat();}_hasFloatingLabel=Ga(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel(��)?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1;}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[e];}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint";}_handleLabelResized(){this._refreshOutlineNotchWidth();}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth());}_processHints(){this._validateHints(),this._syncDescribedByIds();}_validateHints(){this._hintChildren;}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let i=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,r=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id);}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e);}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return;}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return;}let i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,s=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,h=a?.getBoundingClientRect().width??0,g=this._dir.value==="rtl"?"-1":"1",b=`${s+l}px`,x=`calc(${g} * (${b} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var(
        --mat-mdc-form-field-label-transform,
        ${lq} translateX(${x})
    )`;let T=s+l+c+h;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${T}px)`);}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e;}return document.documentElement.contains(e);}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(kT(o,r._labelChild,Nt,5),Ee(o,yp,5),Ee(o,nq,5),Ee(o,rq,5),Ee(o,fO,5),Ee(o,Ww,5)),i&2){ad();let a;R(a=O())&&(r._formFieldControl=a.first),R(a=O())&&(r._prefixChildren=a),R(a=O())&&(r._suffixChildren=a),R(a=O())&&(r._errorChildren=a),R(a=O())&&(r._hintChildren=a);}},viewQuery:function(i,r){if(i&1&&($(OU,5),$(PU,5),$(FU,5),$(NU,5),$(LU,5),$(cO,5),$(mO,5),$(uO,5)),i&2){let o;R(o=O())&&(r._textField=o.first),R(o=O())&&(r._iconPrefixContainer=o.first),R(o=O())&&(r._textPrefixContainer=o.first),R(o=O())&&(r._iconSuffixContainer=o.first),R(o=O())&&(r._textSuffixContainer=o.first),R(o=O())&&(r._floatingLabel=o.first),R(o=O())&&(r._notchedOutline=o.first),R(o=O())&&(r._lineRipple=o.first);}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:40,hostBindings:function(i,r){i&2&&Z("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"));},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[be([{provide:xp,useExisting:t},{provide:gO,useExisting:t}])],ngContentSelectors:zU,decls:20,vars:25,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",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["aria-atomic","true","aria-live","polite"],["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(i,r){if(i&1){let o=K();De(VU),I(0,HU,1,1,"ng-template",null,0,Vr),m(2,"div",6,1),S("click",function(s){return k(o),M(r._control.onContainerClick(s));}),I(4,$U,1,0,"div",7),m(5,"div",8),I(6,WU,2,2,"div",9)(7,GU,3,0,"div",10)(8,YU,3,0,"div",11),m(9,"div",12),I(10,KU,1,1,null,13),le(11),u(),I(12,ZU,3,0,"div",14)(13,XU,3,0,"div",15),u(),I(14,JU,1,0,"div",16),u(),m(15,"div",17),rC(16),m(17,"div",18),I(18,eq,1,0)(19,iq,4,1),u()();}if(i&2){let o;d(2),Z("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),d(2),Q(!r._hasOutline()&&!r._control.disabled?4:-1),d(2),Q(r._hasOutline()?6:-1),d(),Q(r._hasIconPrefix?7:-1),d(),Q(r._hasTextPrefix?8:-1),d(2),Q(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),d(2),Q(r._hasTextSuffix?12:-1),d(),Q(r._hasIconSuffix?13:-1),d(),Q(r._hasOutline()?-1:14),d(),Z("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();d(2),Z("mat-mdc-form-field-error-wrapper",a==="error")("mat-mdc-form-field-hint-wrapper",a==="hint"),d(),Q((o=a)==="error"?18:o==="hint"?19:-1);}},dependencies:[cO,mO,Ts,uO,Ww],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{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(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-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(--mdc-filled-text-field-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(--mdc-filled-text-field-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(--mdc-filled-text-field-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(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-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__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-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(--mdc-outlined-text-field-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(--mdc-outlined-text-field-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(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-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(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-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(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-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(--mdc-filled-text-field-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(--mdc-filled-text-field-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(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-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(--mdc-filled-text-field-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(--mdc-filled-text-field-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(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-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(--mdc-outlined-text-field-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(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-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(--mdc-outlined-text-field-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(--mdc-outlined-text-field-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(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-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(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-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(--mdc-outlined-text-field-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(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-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(--mdc-outlined-text-field-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(--mdc-outlined-text-field-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(--mdc-outlined-text-field-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(--mdc-outlined-text-field-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(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-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(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-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(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-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(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-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%),100% - max(12px,var(--mdc-outlined-text-field-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;--mat-form-field-notch-max-width: 100%}[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(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-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(--mdc-filled-text-field-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(--mdc-filled-text-field-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(--mdc-filled-text-field-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(--mdc-filled-text-field-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(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-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(--mdc-filled-text-field-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;will-change:auto}.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;will-change: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::a��fter{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)}
`],encapsulation:2,changeDetection:0});}return t;})();var Cp=(()=>{class t{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i);}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i);};}ngOnDestroy(){this._listeners=[];}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var ql=class{applyChanges(n,e,i,r,o){n.forEachOperation((a,s,l)=>{let c,h;if(a.previousIndex==null){let g=i(a,s,l);c=e.createEmbeddedView(g.templateRef,g.context,g.index),h=Vs.INSERTED;}else l==null?(e.remove(s),h=Vs.REMOVED):(c=e.get(s),e.move(c,l),h=Vs.MOVED);o&&o({context:c?.context,operation:h,record:a});});}detach(){}};var Wl=class{_multiple;_emitChanges;compareWith;_selection=new Set();_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected;}changed=new H();constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0);}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e;}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e;}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r;}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n);}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e;}isSelected(n){return this._selection.has(this._getConcreteValue(n));}isEmpty(){return this._selection.size===0;}hasValue(){return!this.isEmpty();}sort(n){this._multiple&&this.selected&&this._selected.sort(n);}isMultipleSelection(){return this._multiple;}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[]);}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n));}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n));}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n));}_verifyValueAssignment(n){n.length>1&&this._multiple;}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length);}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let i of e)if(this.compareWith(n,i))return i;return n;}else return n;}};var EO=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i;}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty("disabled",e);}static ɵfac=function(i){return new(i||t)(D(tt),D(J));};static ɵdir=z({type:t});}return t;})(),kO=(()=>{class t extends EO{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,features:[W]});}return t;})(),Sr=new A("");var cq={provide:Sr,useExisting:yi(()=>fi),multi:!0};function dq(){let t=vr()?vr().getUserAgent():"";return /android (\d+)/.test(t.toLowerCase());}var uq=new A(""),fi=(()=>{class t extends EO{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!dq());}writeValue(e){let i=e??"";this.setProperty("value",i);}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e);}_compositionStart(){this._composing=!0;}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e);}static ɵfac=function(i){return new(i||t)(D(tt),D(J),D(uq,8));};static ɵdir=z({type:t,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(i,r){i&1&&S("input",function(a){return r._handleInput(a.target.value);})("blur",function(){return r.onTouched();})("compositionstart",function(){return r._compositionStart();})("compositionend",function(a){return r._compositionEnd(a.target.value);});},standalone:!1,features:[be([cq]),W]});}return t;})();function Xw(t){return t==null||Jw(t)===0;}function Jw(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null;}var ho=new A(""),Gl=new A(""),mq=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,wt=class{static min(n){return pq(n);}static max(n){return hq(n);}static required(n){return fq(n);}static requiredTrue(n){return gq(n);}static email(n){return _q(n);}static minLength(n){return bq(n);}static maxLength(n){return vq(n);}static pattern(n){return yq(n);}static nullValidator(n){return MO();}static compose(n){return OO(n);}static composeAsync(n){return PO(n);}};function pq(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null;};}function hq(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null;};}function fq(t){return Xw(t.value)?{required:!0}:null;}function gq(t){return t.value===!0?null:{required:!0};}function _q(t){return Xw(t.value)||mq.test(t.value)?null:{email:!0};}function bq(t){return n=>{let e=n.value?.length??Jw(n.value);return e===null||e===0?null:e<t?{minlength:{requiredLength:t,actualLength:e}}:null;};}function vq(t){return n=>{let e=n.value?.length??Jw(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null;};}function yq(t){if(!t)return MO;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(Xw(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}};};}function MO(t){return null;}function SO(t){return t!=null;}function IO(t){return Ms(t)?Ot(t):t;}function TO(t){let n={};return t.forEach(e=>{n=e!=null?B(B({},n),e):n;}),Object.keys(n).length===0?null:n;}function AO(t,n){return n.map(e=>e(t));}function xq(t){return!t.validate;}function RO(t){return t.map(n=>xq(n)?n:e=>n.validate(e));}function OO(t){if(!t)return null;let n=t.filter(SO);return n.length==0?null:function(e){return TO(AO(e,n));};}function e1(t){return t!=null?OO(RO(t)):null;}function PO(t){if(!t)return null;let n=t.filter(SO);return n.length==0?null:function(e){let i=AO(e,n).map(IO);return Bu(i).pipe(ue(TO));};}function t1(t){return t!=null?PO(RO(t)):null;}function bO(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n];}function FO(t){return t._rawValidators;}function NO(t){return t._rawAsyncValidators;}function Gw(t){return t?Array.isArray(t)?t:[t]:[];}function J0(t,n){return Array.isArray(t)?t.includes(n):t===n;}function vO(t,n){let e=Gw(n);return Gw(t).forEach(r=>{J0(e,r)||e.push(r);}),e;}function yO(t,n){return Gw(n).filter(e=>!J0(t,e));}var e_=class{get value(){return this.control?this.control.value:null;}get valid(){return this.control?this.control.valid:null;}get invalid(){return this.control?this.control.invalid:null;}get pending(){return this.control?this.control.pending:null;}get disabled(){return this.control?this.control.disabled:null;}get enabled(){return this.control?this.control.enabled:null;}get errors(){return this.control?this.control.errors:null;}get pristine(){return this.control?this.control.pristine:null;}get dirty(){return this.control?this.control.dirty:null;}get touched(){return this.control?this.control.touched:null;}get status(){return this.control?this.control.status:null;}get untouched(){return this.control?this.control.untouched:null;}get statusChanges(){return this.control?this.control.statusChanges:null;}get valueChanges(){return this.control?this.control.valueChanges:null;}get path(){return null;}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=e1(this._rawValidators);}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=t1(this._rawAsyncValidators);}get validator(){return this._composedValidatorFn||null;}get asyncValidator(){return this._composedAsyncValidatorFn||null;}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n);}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[];}reset(n=void 0){this.control&&this.control.reset(n);}hasError(n,e){return this.control?this.control.hasError(n,e):!1;}getError(n,e){return this.control?this.control.getError(n,e):null;}},bn=class extends e_{name;get formDirective(){return null;}get path(){return null;}},Mr=class extends e_{_parent=null;name=null;valueAccessor=null;},t_=class{_cd;constructor(n){this._cd=n;}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched;}get isUntouched(){return!!this._cd?.control?.untouched;}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine;}get isDirty(){return!!this._cd?.control?.dirty;}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid;}get isInvalid(){return!!this._cd?.control?.invalid;}get isPending(){return!!this._cd?.control?.pending;}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted;}},Cq={"[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"},cDe=ze(B({},Cq),{"[class.ng-submitted]":"isSubmitted"}),Ti=(()=>{class t extends t_{constructor(e){super(e);}static ɵfac=function(i){return new(i||t)(D(Mr,2));};static ɵdir=z({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&Z("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending);},standalone:!1,features:[W]});}return t;})(),Hr=(()=>{class t extends t_{constructor(e){super(e);}static ɵfac=function(i){return new(i||t)(D(bn,10));};static ɵdir=z({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&Z("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted);},standalone:!1,features:[W]});}return t;})();var wp="VALID",X0="INVALID",Pd="PENDING",Dp="DISABLED",Hs=class{},i_=class extends Hs{value;source;constructor(n,e){super(),this.value=n,this.source=e;}},kp=class extends Hs{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e;}},Mp=class extends Hs{touched;source;constructor(n,e){super(),this.touched=n,this.source=e;}},Fd=class extends Hs{status;source;constructor(n,e){super(),this.status=n,this.source=e;}},Yw=class extends Hs{source;constructor(n){super(),this.source=n;}},Qw=class extends Hs{source;constructor(n){super(),this.source=n;}};function i1(t){return(a_(t)?t.validators:t)||null;}function wq(t){return Array.isArray(t)?e1(t):t||null;}function n1(t,n){return(a_(n)?n.asyncValidators:t)||null;}function Dq(t){return Array.isArray(t)?t1(t):t||null;}function a_(t){return t!=null&&!Array.isArray(t)&&typeof t=="object";}function LO(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new X(1e3,"");if(!i[e])throw new X(1001,"");}function VO(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new X(1002,"");});}var Nd=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e);}get validator(){return this._composedValidatorFn;}set validator(n){this._rawValidators=this._composedValidatorFn=n;}get asyncValidator(){return this._composedAsyncValidatorFn;}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n;}get parent(){return this._parent;}get status(){return rr(this.statusReactive);}set status(n){rr(()=>this.statusReactive.set(n));}_status=Ga(()=>this.statusReactive());statusReactive=Zi(void 0);get valid(){return this.status===wp;}get invalid(){return this.status===X0;}get pending(){return this.status==Pd;}get disabled(){return this.status===Dp;}get enabled(){return this.status!==Dp;}errors;get pristine(){return rr(this.pristineReactive);}set pristine(n){rr(()=>this.pristineReactive.set(n));}_pristine=Ga(()=>this.pristineReactive());pristineReactive=Zi(!0);get dirty(){return!this.pristine;}get touched(){return rr(this.touchedReactive);}set touched(n){rr(()=>this.touchedReactive.set(n));}_touched=Ga(()=>this.touchedReactive());touchedReactive=Zi(!1);get untouched(){return!this.touched;}_events=new H();events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change";}setValidators(n){this._assignValidators(n);}setAsyncValidators(n){this._assignAsyncValidators(n);}addValidators(n){this.setValidators(vO(n,this._rawValidators));}addAsyncValidators(n){this.setAsyncValidators(vO(n,this._rawAsyncValidators));}removeValidators(n){this.setValidators(yO(n,this._rawValidators));}removeAsyncValidators(n){this.setAsyncValidators(yO(n,this._rawAsyncValidators));}hasValidator(n){return J0(this._rawValidators,n);}hasAsyncValidator(n){return J0(this._rawAsyncValidators,n);}clearValidators(){this.validator=null;}clearAsyncValidators(){this.asyncValidator=null;}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(ze(B({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Mp(!0,i));}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n));}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i});}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new Mp(!1,i));}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(ze(B({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new kp(!1,i));}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent});}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new kp(!0,i));}markAsPending(n={}){this.status=Pd;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Fd(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(ze(B({},n),{sourceControl:e}));}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Dp,this.errors=null,this._forEachChild(r=>{r.disable(ze(B({},n),{onlySelf:!0}));}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new i_(this.value,i)),this._events.next(new Fd(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ze(B({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0));}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=wp,this._forEachChild(i=>{i.enable(ze(B({},n),{onlySelf:!0}));}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(ze(B({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1));}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e));}setParent(n){this._parent=n;}getRawValue(){return this.value;}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wp||this.status===Pd)&&this._runAsyncValidator(i,n.emitEvent);}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new i_(this.value,e)),this._events.next(new Fd(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(ze(B({},n),{sourceControl:e}));}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent});}_setInitialStatus(){this.status=this._allControlsDisabled()?Dp:wp;}_runValidator(){return this.validator?this.validator(this):null;}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=Pd,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=IO(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n});});}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n;}return!1;}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted);}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this);}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null;}hasError(n,e){return!!this.getError(n,e);}get root(){let n=this;for(;n._parent;)n=n._parent;return n;}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new Fd(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i);}_initObservables(){this.valueChanges=new V(),this.statusChanges=new V();}_calculateStatus(){return this._allControlsDisabled()?Dp:this.errors?X0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Pd)?Pd:this._anyControlsHaveStatus(X0)?X0:wp;}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n);}_anyControlsDirty(){return this._anyControls(n=>n.dirty);}_anyControlsTouched(){return this._anyControls(n=>n.touched);}_updatePristine(n,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new kp(this.pristine,e));}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Mp(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e);}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n;}_setUpdateStrategy(n){a_(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn);}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty();}_find(n){return null;}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=wq(this._rawValidators);}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=Dq(this._rawAsyncValidators);}},Ld=class extends Nd{constructor(n,e,i){super(i1(e),n1(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator});}controls;registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e);}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled;}setValue(n,e={}){VO(this,!0,n),Object.keys(n).forEach(i=>{LO(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent});}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e);}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n));}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n;}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e);});}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange);});}_updateValue(){this.value=this._reduceValue();}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1;}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e));}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o);}),i;}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled;}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null;}};var Kw=class extends Ld{};var Vd=new A("",{providedIn:"root",factory:()=>s_}),s_="always";function l_(t,n){return[...n.path,t];}function Sp(t,n,e=s_){r1(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),kq(t,n),Sq(t,n),Mq(t,n),Eq(t,n);}function n_(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),o_(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}));}function r_(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n);});}function Eq(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i);};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e);});}}function r1(t,n){let e=FO(t);n.validator!==null?t.setValidators(bO(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=NO(t);n.asyncValidator!==null?t.setAsyncValidators(bO(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();r_(n._rawValidators,r),r_(n._rawAsyncValidators,r);}function o_(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=FO(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o));}}if(n.asyncValidator!==null){let r=NO(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o));}}}let i=()=>{};return r_(n._rawValidators,i),r_(n._rawAsyncValidators,i),e;}function kq(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&zO(t,n);});}function Mq(t,n){n.valueAccessor.registerOnTouched(()=>{t._��pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&zO(t,n),t.updateOn!=="submit"&&t.markAsTouched();});}function zO(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1;}function Sq(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i);};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e);});}function BO(t,n){t==null,r1(t,n);}function Iq(t,n){return o_(t,n);}function o1(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue);}function Tq(t){return Object.getPrototypeOf(t.constructor)===kO;}function jO(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1);});}function a1(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===fi?e=o:Tq(o)?i=o:r=o;}),r||i||e||null;}function Aq(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1);}var Rq={provide:bn,useExisting:yi(()=>os)},Ep=Promise.resolve(),os=(()=>{class t extends bn{callSetDisabledState;get submitted(){return rr(this.submittedReactive);}_submitted=Ga(()=>this.submittedReactive());submittedReactive=Zi(!1);_directives=new Set();form;ngSubmit=new V();options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new Ld({},e1(e),t1(i));}ngAfterViewInit(){this._setUpdateStrategy();}get formDirective(){return this;}get control(){return this.form;}get path(){return[];}get controls(){return this.form.controls;}addControl(e){Ep.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Sp(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e);});}getControl(e){return this.form.get(e.path);}removeControl(e){Ep.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e);});}addFormGroup(e){Ep.then(()=>{let i=this._findContainer(e.path),r=new Ld({});BO(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1});});}removeFormGroup(e){Ep.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name);});}getFormGroup(e){return this.form.get(e.path);}updateModel(e,i){Ep.then(()=>{this.form.get(e.path).setValue(i);});}setValue(e){this.control.setValue(e);}onSubmit(e){return this.submittedReactive.set(!0),jO(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog";}onReset(){this.resetForm();}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1);}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn);}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form;}static ɵfac=function(i){return new(i||t)(D(ho,10),D(Gl,10),D(Vd,8));};static ɵdir=z({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a);})("reset",function(){return r.onReset();});},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[be([Rq]),W]});}return t;})();function xO(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1);}function CO(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t;}var sa=class extends Nd{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(i1(e),n1(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),a_(e)&&(e.nonNullable||e.initialValueIsDefault)&&(CO(n)?this.defaultValue=n.value:this.defaultValue=n);}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e);}patchValue(n,e={}){this.setValue(n,e);}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1;}_updateValue(){}_anyControls(n){return!1;}_allControlsDisabled(){return this.disabled;}registerOnChange(n){this._onChange.push(n);}_unregisterOnChange(n){xO(this._onChange,n);}registerOnDisabledChange(n){this._onDisabledChange.push(n);}_unregisterOnDisabledChange(n){xO(this._onDisabledChange,n);}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1;}_applyFormState(n){CO(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n;}};var Oq=t=>t instanceof sa,Pq=(()=>{class t extends bn{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this);}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this);}get control(){return this.formDirective.getFormGroup(this);}get path(){return l_(this.name==null?this.name:this.name.toString(),this._parent);}get formDirective(){return this._parent?this._parent.formDirective:null;}_checkParentType(){}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,standalone:!1,features:[W]});}return t;})();var Fq={provide:Mr,useExisting:yi(()=>fo)},wO=Promise.resolve(),fo=(()=>{class t extends Mr{_changeDetectorRef;callSetDisabledState;control=new sa();static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new V();constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=a1(this,o);}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)});}this._setUpControl();}"isDisabled"in e&&this._updateDisabled(e),o1(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this);}get path(){return this._getPath(this.name);}get formDirective(){return this._parent?this._parent.formDirective:null;}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0;}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn);}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone);}_setUpStandalone(){Sp(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1});}_checkForErrors(){this._checkName();}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name;}_updateValue(e){wO.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck();});}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&U(i);wO.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck();});}_getPath(e){return this._parent?l_(e,this._parent):[e];}static ɵfac=function(i){return new(i||t)(D(bn,9),D(ho,10),D(Gl,10),D(Sr,10),D(pe,8),D(Vd,8));};static ɵdir=z({type:t,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:[be([Fq]),W,He]});}return t;})();var $r=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1});}return t;})(),Nq={provide:Sr,useExisting:yi(()=>s1),multi:!0},s1=(()=>{class t extends kO{writeValue(e){let i=e??"";this.setProperty("value",i);}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i));};}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&S("input",function(a){return r.onChange(a.target.value);})("blur",function(){return r.onTouched();});},standalone:!1,features:[be([Nq]),W]});}return t;})();var l1=new A(""),Lq={provide:Mr,useExisting:yi(()=>Ip)},Ip=(()=>{class t extends Mr{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new V();static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=a1(this,r);}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&n_(i,this,!1),Sp(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1});}o1(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.form&&n_(this.form,this,!1);}get path(){return[];}get control(){return this.form;}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_isControlChanged(e){return e.hasOwnProperty("form");}static ɵfac=function(i){return new(i||t)(D(ho,10),D(Gl,10),D(Sr,10),D(l1,8),D(Vd,8));};static ɵdir=z({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[be([Lq]),W,He]});}return t;})(),Vq={provide:bn,useExisting:yi(()=>dr)},dr=(()=>{class t extends bn{callSetDisabledState;get submitted(){return rr(this._submittedReactive);}set submitted(e){this._submittedReactive.set(e);}_submitted=Ga(()=>this._submittedReactive());_submittedReactive=Zi(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new V();constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form);}ngOnDestroy(){this.form&&(o_(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}));}get formDirective(){return this;}get control(){return this.form;}get path(){return[];}addControl(e){let i=this.form.get(e.path);return Sp(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i;}getControl(e){return this.form.get(e.path);}removeControl(e){n_(e.control||null,e,!1),Aq(this.directives,e);}addFormGroup(e){this._setUpFormContainer(e);}removeFormGroup(e){this._cleanUpFormContainer(e);}getFormGroup(e){return this.form.get(e.path);}addFormArray(e){this._setUpFormContainer(e);}removeFormArray(e){this._cleanUpFormContainer(e);}getFormArray(e){return this.form.get(e.path);}updateModel(e,i){this.form.get(e.path).setValue(i);}onSubmit(e){return this._submittedReactive.set(!0),jO(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Yw(this.control)),e?.target?.method==="dialog";}onReset(){this.resetForm();}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new Qw(this.form));}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(n_(i||null,e),Oq(r)&&(Sp(r,e,this.callSetDisabledState),e.control=r));}),this.form._updateTreeValidity({emitEvent:!1});}_setUpFormContainer(e){let i=this.form.get(e.path);BO(i,e),i.updateValueAndValidity({emitEvent:!1});}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&Iq(i,e)&&i.updateValueAndValidity({emitEvent:!1});}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{});}_updateValidators(){r1(this.form,this),this._oldForm&&o_(this._oldForm,this);}static ɵfac=function(i){return new(i||t)(D(ho,10),D(Gl,10),D(Vd,8));};static ɵdir=z({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&S("submit",function(a){return r.onSubmit(a);})("reset",function(){return r.onReset();});},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[be([Vq]),W,He]});}return t;})(),zq={provide:bn,useExisting:yi(()=>c_)},c_=(()=>{class t extends Pq{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}_checkParentType(){$O(this._parent);}static ɵfac=function(i){return new(i||t)(D(bn,13),D(ho,10),D(Gl,10));};static ɵdir=z({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[be([zq]),W]});}return t;})(),Bq={provide:bn,useExisting:yi(()=>HO)},HO=(()=>{class t extends bn{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}ngOnInit(){$O(this._parent),this.formDirective.addFormArray(this);}ngOnDestroy(){this.formDirective?.removeFormArray(this);}get control(){return this.formDirective.getFormArray(this);}get formDirective(){return this._parent?this._parent.formDirective:null;}get path(){return l_(this.name==null?this.name:this.name.toString(),this._parent);}static ɵfac=function(i){return new(i||t)(D(bn,13),D(ho,10),D(Gl,10));};static ɵdir=z({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[be([Bq]),W]});}return t;})();function $O(t){return!(t instanceof c_)&&!(t instanceof dr)&&!(t instanceof HO);}var jq={provide:Mr,useExisting:yi(()=>as)},as=(()=>{class t extends Mr{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new V();static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=a1(this,o);}ngOnChanges(e){this._added||this._setUpControl(),o1(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model));}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this);}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}get path(){return l_(this.name==null?this.name:this.name.toString(),this._parent);}get formDirective(){return this._parent?this._parent.formDirective:null;}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0;}static ɵfac=function(i){return new(i||t)(D(bn,13),D(ho,10),D(Gl,10),D(Sr,10),D(l1,8));};static ɵdir=z({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[be([jq]),W,He]});}return t;})();var UO=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({});}return t;})(),Zw=class extends Nd{constructor(n,e,i){super(i1(e),n1(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator});}controls;at(n){return this.controls[this._adjustIndex(n)];}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent});}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent});}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}get length(){return this.controls.length;}setValue(n,e={}){VO(this,!1,n),n.forEach((i,r)=>{LO(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent});}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e);}getRawValue(){return this.controls.map(n=>n.getRawValue());}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}));}_adjustIndex(n){return n<0?n+this.length:n;}_syncPendingControls(){let n=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n;}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i);});}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value);}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e));}_setUpControls(){this._forEachChild(n=>this._registerControl(n));}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled;}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange);}_find(n){return this.at(n)??null;}};function DO(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0);}var $s=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t();return e.useNonNullable=!0,e;}group(e,i=null){let r=this._reduceControls(e),o={};return DO(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Ld(r,o);}record(e,i=null){let r=this._reduceControls(e);return new Kw(r,i);}control(e,i,r){let o={};return this.useNonNullable?(DO(i)?o=i:(o.validators=i,o.asyncValidators=r),new sa(e,ze(B({},o),{nonNullable:!0}))):new sa(e,i,r);}array(e,i,r){let o=e.map(a=>this._createControl(a));return new Zw(o,i,r);}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r]);}),i;}_createControl(e){if(e instanceof sa)return e;if(e instanceof Nd)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o);}else return this.control(e);}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var gi=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Vd,useValue:e.callSetDisabledState??s_}]};}static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[UO]});}return t;})(),Ur=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:l1,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Vd,useValue:e.callSetDisabledState??s_}]};}static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[UO]});}return t;})();var Us=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted));}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var zd=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o;}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next());}};var Rt=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,Ed,he]});}return t;})();var d_=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he]});}return t;})();var c1=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[sr,he,d_]});}return t;})();var Hq=["trigger"],$q=["panel"],Uq=[[["mat-select-trigger"]],"*"],qq=["mat-select-trigger","*"];function Wq(t,n){if(t&1&&(m(0,"span",4),f(1),u()),t&2){let e=y();d(),C(e.placeholder);}}function Gq(t,n){t&1&&le(0);}function Yq(t,n){if(t&1&&(m(0,"span",11),f(1),u()),t&2){let e=y(2);d(),C(e.triggerValue);}}function Qq(t,n){if(t&1&&(m(0,"span",5),I(1,Gq,1,0)(2,Yq,2,1,"span",11),u()),t&2){let e=y();d(),Q(e.customTrigger?1:2);}}function Kq(t,n){if(t&1){let e=K();m(0,"div",12,1),S("keydown",function(r){k(e);let o=y();return M(o._handleKeydown(r));}),le(2,1),u();}if(t&2){let e=y();Nr("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),Z("mat-select-panel-animations-enabled",!e._animationsDisabled),v("ngClass",e.panelClass),ee("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby());}}var d1=new A("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Gt);return()=>t.scrollStrategies.reposition();}});function qO(t){return()=>t.scrollStrategies.reposition();}var WO=new A("MAT_SELECT_CONFIG"),GO={provide:d1,deps:[Gt],useFactory:qO},YO=new A("MatSelectTrigger"),u_=class{source;value;constructor(n,e){this.source=n,this.value=e;}},Yl=(()=>{class t{_viewportRuler=p(ea);_changeDetectorRef=p(pe);_elementRef=p(J);_dir=p(Et,{optional:!0});_idGenerator=p(Ye);_renderer=p(tt);_parentFormField=p(xp,{optional:!0});ngControl=p(Mr,{self:!0,optional:!0});_liveAnnouncer=p(zl);_defaultOptions=p(WO,{optional:!0});_animationsDisabled=p(Ne,{optional:!0})==="NoopAnimations";_initialized=new H();_cleanupDetach;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(e){let i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=sO(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=lO(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight);}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0);}_getChangeEvent(e){return new u_(this,e);}_scrollStrategyFactory=p(d1);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new H();_errorStateTracker;stateChanges=new H();disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen;}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator;}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties();}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder;}set placeholder(e){this._placeholder=e,this.stateChanges.next();}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(wt.required)??!1;}set required(e){this._required=e,this.stateChanges.next();}_required;get multiple(){return this._multiple;}set multiple(e){this._selectionModel,this._multiple=e;}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith;}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection();}get value(){return this._value;}set value(e){this._assignValue(e)&&this._onChange(e);}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher;}set errorStateMatcher(e){this._errorStateTracker.matcher=e;}typeaheadDebounceInterval;sortComparator;get id(){return this._id;}set id(e){this._id=e||this._uid,this.stateChanges.next();}_id;get errorState(){return this._errorStateTracker.errorState;}set errorState(e){this._errorStateTracker.errorState=e;}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=ko(()=>{let e=this.options;return e?e.changes.pipe(ht(e),ai(()=>St(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(ai(()=>this.optionSelectionChanges));});openedChange=new V();_openedStream=this.openedChange.pipe(Ie(e=>e),ue(()=>{}));_closedStream=this.openedChange.pipe(Ie(e=>!e),ue(()=>{}));selectionChange=new V();valueChange=new V();constructor(){let e=p(Us),i=p(os,{optional:!0}),r=p(dr,{optional:!0}),o=p(new Ki("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new zd(e,this.ngControl,r,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id;}ngOnInit(){this._selectionModel=new Wl(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Ve(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges());});}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(Ve(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect());}),this.options.changes.pipe(ht(null),Ve(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection();});}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby");}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState());}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval);}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal();}toggle(){this.panelOpen?this.close():this.open();}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(de(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled();}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)));}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=`${this.id}-panel`;this._trackedModal&&M0(this._trackedModal,"aria-owns",i),xw(e,"aria-owns",i),this._trackedModal=e;}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;M0(this._trackedModal,"aria-owns",e),this._trackedModal=null;}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)));}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return;}this._cleanupDetach?.(),this._cleanupDetach=()=>{i(),clearTimeout(r),this._cleanupDetach=void 0;};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay());}),r=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay();},200);e.classList.add("mat-select-panel-exit");}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck();}writeValue(e){this._assignValue(e);}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next();}get panelOpen(){return this._panelOpen;}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0];}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ");}return this._selectionModel.selected[0].viewValue;}updateErrorState(){this._errorStateTracker.updateErrorState();}_isRtl(){return this._dir?this._dir.value==="rtl":!1;}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e));}_handleClosedKeydown(e){let i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!ti(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4);}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!ti(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect());});}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction();}}_handleOverlayKeydown(e){e.keyCode===27&&!ti(e)&&(e.preventDefault(),this.close());}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next());}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next());}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:"";}get empty(){return!this._selectionModel||this._selectionModel.isEmpty();}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next();});}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1);}this._changeDetectorRef.markForCheck();}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e);}catch{return!1;}});return i&&this._selectionModel.select(i),i;}_assignValue(e){return e!==this��._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1;}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Rd?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth;}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck();}_initKeyManager(){this._keyManager=new np(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close());}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction();});}_resetOptions(){let e=St(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ve(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus());}),St(...this.options.map(i=>i._stateChanges)).pipe(Ve(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next();});}_onSelect(e,i){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next();}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next();}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck();}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i<this.options.length;i++)if(!this.options.get(i).disabled){e=i;break;}this._keyManager.setActiveItem(e);}else this._keyManager.setActiveItem(this._selectionModel.selected[0]);}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir;}focus(e){this._elementRef.nativeElement.focus(e);}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e;}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null;}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i;}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby");}onContainerClick(){this.focus(),this.open();}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(Ee(o,YO,5),Ee(o,rs,5),Ee(o,Uw,5)),i&2){let a;R(a=O())&&(r.customTrigger=a.first),R(a=O())&&(r.options=a),R(a=O())&&(r.optionGroups=a);}},viewQuery:function(i,r){if(i&1&&($(Hq,5),$($q,5),$(z0,5)),i&2){let o;R(o=O())&&(r.trigger=o.first),R(o=O())&&(r.panel=o.first),R(o=O())&&(r._overlayDir=o.first);}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._handleKeydown(a);})("focus",function(){return r._onFocus();})("blur",function(){return r._onBlur();}),i&2&&(ee("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),Z("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple));},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",U],disableRipple:[2,"disableRipple","disableRipple",U],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",U],placeholder:"placeholder",required:[2,"required","required",U],multiple:[2,"multiple","multiple",U],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",U],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ut],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",U]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[be([{provide:yp,useExisting:t},{provide:$w,useExisting:t}]),He],ngContentSelectors:qq,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"],["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(i,r){if(i&1){let o=K();De(Uq),m(0,"div",2,0),S("click",function(){return k(o),M(r.open());}),m(3,"div",3),I(4,Wq,2,1,"span",4)(5,Qq,3,1,"span",5),u(),m(6,"div",6)(7,"div",7),Zt(),m(8,"svg",8),w(9,"path",9),u()()()(),I(10,Kq,3,10,"ng-template",10),S("detach",function(){return k(o),M(r.close());})("backdropClick",function(){return k(o),M(r.close());})("overlayKeydown",function(s){return k(o),M(r._handleOverlayKeydown(s));});}if(i&2){let o=We(1);d(3),ee("id",r._valueId),d(),Q(r.empty?4:5),d(6),v("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0);}},dependencies:[Rd,z0,yr],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-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:static;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}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.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))}
`],encapsulation:2,changeDetection:0});}return t;})();var _o=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[GO],imports:[Wn,c1,he,mo,Rt,c1,he]});}return t;})();var Qe=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t;}(Qe||{}),qr="*";function Kl(t,n){return{type:Qe.Trigger,name:t,definitions:n,options:{}};}function Zl(t,n=null){return{type:Qe.Animate,styles:n,timings:t};}function QO(t,n=null){return{type:Qe.Sequence,steps:t,options:n};}function Tr(t){return{type:Qe.Style,styles:t,offset:null};}function ca(t,n,e){return{type:Qe.State,name:t,styles:n,options:e};}function Xl(t,n,e=null){return{type:Qe.Transition,expr:t,animation:n,options:e};}var la=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,e=0){this.totalTime=n+e;}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[]);}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n);}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n);}onDestroy(n){this._onDestroyFns.push(n);}hasStarted(){return this._started;}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[]);}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(n){this._position=this.totalTime?n*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1;}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0;}},Ql=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let e=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish();}),a.onDestroy(()=>{++i==o&&this._onDestroy();}),a.onStart(()=>{++r==o&&this._onStart();});}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0);}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[]);}init(){this.players.forEach(n=>n.init());}onStart(n){this._onStartFns.push(n);}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[]);}onDone(n){this._onDoneFns.push(n);}onDestroy(n){this._onDestroyFns.push(n);}hasStarted(){return this._started;}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play());}pause(){this.players.forEach(n=>n.pause());}restart(){this.players.forEach(n=>n.restart());}finish(){this._onFinish(),this.players.forEach(n=>n.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[]);}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1;}setPosition(n){let e=n*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r);});}getPosition(){let n=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return n!=null?n.getPosition():0;}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy();});}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0;}},Bd="!";var Zq=[[["caption"]],[["colgroup"],["col"]],"*"],Xq=["caption","colgroup, col","*"];function Jq(t,n){t&1&&le(0,2);}function eW(t,n){t&1&&(m(0,"thead",0),Xt(1,1),u(),m(2,"tbody",0),Xt(3,2)(4,3),u(),m(5,"tfoot",0),Xt(6,4),u());}function tW(t,n){t&1&&Xt(0,1)(1,2)(2,3)(3,4);}var bo=new A("CDK_TABLE");var __=(()=>{class t{template=p(st);constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkCellDef",""]]});}return t;})(),b_=(()=>{class t{template=p(st);constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkHeaderCellDef",""]]});}return t;})(),XO=(()=>{class t{template=p(st);constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkFooterCellDef",""]]});}return t;})(),jd=(()=>{class t{_table=p(bo,{optional:!0});_hasStickyChanged=!1;get name(){return this._name;}set name(e){this._setNameInput(e);}_name;get sticky(){return this._sticky;}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0);}_sticky=!1;get stickyEnd(){return this._stickyEnd;}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0);}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e;}resetStickyChanged(){this._hasStickyChanged=!1;}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`];}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName());}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(i&1&&(Ee(o,__,5),Ee(o,b_,5),Ee(o,XO,5)),i&2){let a;R(a=O())&&(r.cell=a.first),R(a=O())&&(r.headerCell=a.first),R(a=O())&&(r.footerCell=a.first);}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",U],stickyEnd:[2,"stickyEnd","stickyEnd",U]},features:[be([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]});}return t;})(),p_=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName);}},JO=(()=>{class t extends p_{constructor(){super(p(jd),p(J));}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[W]});}return t;})();var eP=(()=>{class t extends p_{constructor(){let e=p(jd),i=p(J);super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r);}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[W]});}return t;})(),h_=class{tasks=[];endTasks=[];},f_=new A("_COALESCED_STYLE_SCHEDULER"),m1=(()=>{class t{_currentSchedule=null;_ngZone=p(ae);constructor(){}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e);}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e);}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new h_(),this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let e=this._currentSchedule;this._currentSchedule=new h_();for(let i of e.tasks)i();for(let i of e.endTasks)i();}this._currentSchedule=null;})));}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})();var p1=(()=>{class t{template=p(st);_differs=p(Ho);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i);}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns);}extractCellTemplate(e){return this instanceof Tp?e.headerCell.template:this instanceof h1?e.footerCell.template:e.cell.template;}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,features:[He]});}return t;})(),Tp=(()=>{class t extends p1{_table=p(bo,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky;}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0);}_sticky=!1;constructor(){super(p(st),p(Ho));}ngOnChanges(e){super.ngOnChanges(e);}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e;}resetStickyChanged(){this._hasStickyChanged=!1;}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",U]},features:[W,He]});}return t;})(),h1=(()=>{class t extends p1{_table=p(bo,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky;}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0);}_sticky=!1;constructor(){super(p(st),p(Ho));}ngOnChanges(e){super.ngOnChanges(e);}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e;}resetStickyChanged(){this._hasStickyChanged=!1;}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",U]},features:[W,He]});}return t;})(),v_=(()=>{class t extends p1{_table=p(bo,{optional:!0});when;constructor(){super(p(st),p(Ho));}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[W]});}return t;})(),Jl=(()=>{class t{_viewContainer=p(Dt);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this;}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null);}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkCellOutlet",""]]});}return t;})(),f1=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Xt(0,0);},dependencies:[Jl],encapsulation:2});}return t;})();var g1=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Xt(0,0);},dependencies:[Jl],encapsulation:2});}return t;})(),y_=(()=>{class t{templateRef=p(st);_contentClassName="cdk-no-data-row";constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["ng-template","cdkNoDataRow",""]]});}return t;})(),KO=["top","bottom","left","right"],u1=class{_isNativeHtmlTable;_stickCellCss;direction;_coalescedStyleScheduler;_isBrowser;_needsPositionStickyOnElement;_positionListener;_tableInjector;_elemSizeCache=new WeakMap();_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(n=>this._updateCachedSizes(n)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(n,e,i,r,o=!0,a=!0,s,l){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._tableInjector=l,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`};}clearStickyPositioning(n,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(n);let i=[];for(let r of n)r.nodeType===r.ELEMENT_NODE&&i.push(r,...Array.from(r.children));this._afterNextRender({write:()=>{for(let r of i)this._removeStickyStyle(r,e);}});}updateStickyColumns(n,e,i,r=!0,o=!0){if(!n.length||!this._isBrowser||!(e.some(L=>L)||i.some(L=>L))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return;}let a=n[0],s=a.children.length,l=this.direction==="rtl",c=l?"right":"left",h=l?"left":"right",g=e.lastIndexOf(!0),b=i.indexOf(!0),_,x,T;o&&this._updateStickyColumnReplayQueue({rows:[...n],stickyStartStates:[...e],stickyEndStates:[...i]}),this._afterNextRender({earlyRead:()=>{_=this._getCellWidths(a,r),x=this._getStickyStartColumnPositions(_,e),T=this._getStickyEndColumnPositions(_,i);},write:()=>{for(let L of n)for(let q=0;q<s;q++){let ie=L.children[q];e[q]&&this._addStickyStyle(ie,c,x[q],q===g),i[q]&&this._addStickyStyle(ie,h,T[q],q===b);}this._positionListener&&_.some(L=>!!L)&&(this._positionListener.stickyColumnsUpdated({sizes:g===-1?[]:_.slice(0,g+1).map((L,q)=>e[q]?L:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:b===-1?[]:_.slice(b).map((L,q)=>i[q+b]?L:null).reverse()}));}});}stickRows(n,e,i){if(!this._isBrowser)return;let r=i==="bottom"?n.slice().reverse():n,o=i==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];this._afterNextRender({earlyRead:()=>{for(let c=0,h=0;c<r.length;c++){if(!o[c])continue;a[c]=h;let g=r[c];l[c]=this._isNativeHtmlTable?Array.from(g.children):[g];let b=this._retrieveElementSize(g).height;h+=b,s[c]=b;}},write:()=>{let c=o.lastIndexOf(!0);for(let h=0;h<r.length;h++){if(!o[h])continue;let g=a[h],b=h===c;for(let _ of l[h])this._addStickyStyle(_,i,g,b);}i==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:s,offsets:a,elements:l}):this._positionListener?.stickyFooterRowsUpdated({sizes:s,offsets:a,elements:l});}});}updateStickyFooterContainer(n,e){this._isNativeHtmlTable&&this._afterNextRender({write:()=>{let i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1));}});}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0;}_removeStickyStyle(n,e){if(!n.classList.contains(this._stickCellCss))return;for(let r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);KO.some(r=>e.indexOf(r)===-1&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss));}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ");}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},i=0;for(let r of KO)n.style[r]&&(i+=e[r]);return i?`${i}`:"";}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=n.children;for(let o=0;o<r.length;o++){let a=r[o];i.push(this._retrieveElementSize(a).width);}return this._cachedCellWidths=i,i;}_getStickyStartColumnPositions(n,e){let i=[],r=0;for(let o=0;o<n.length;o++)e[o]&&(i[o]=r,r+=n[o]);return i;}_getStickyEndColumnPositions(n,e){let i=[],r=0;for(let o=n.length;o>0;o--)e[o]&&(i[o]=r,r+=n[o]);return i;}_retrieveElementSize(n){let e=this._elemSizeCache.get(n);if(e)return e;let i=n.getBoundingClientRect(),r={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(n,r),this._resizeObserver.observe(n,{box:"border-box"})),r;}_updateStickyColumnReplayQueue(n){this._removeFromStickyColumnReplayQueue(n.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(n);}_removeFromStickyColumnReplayQueue(n){let e=new Set(n);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length);}_updateCachedSizes(n){let e=!1;for(let i of n){let r=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};r.width!==this._elemSizeCache.get(i.target)?.width&&iW(i.target)&&(e=!0),this._elemSizeCache.set(i.target,r);}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null;}},0));}_afterNextRender(n){this._tableInjector?li(n,{injector:this._tableInjector}):this._coalescedStyleScheduler.schedule(()=>{n.earlyRead?.(),n.write();});}};function iW(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(n=>t.classList.contains(n));}var g_=new A("CDK_SPL");var _1=(()=>{class t{viewContainer=p(Dt);elementRef=p(J);constructor(){let e=p(bo);e._rowOutlet=this,e._outletAssigned();}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","rowOutlet",""]]});}return t;})(),b1=(()=>{class t{viewContainer=p(Dt);elementRef=p(J);constructor(){let e=p(bo);e._headerRowOutlet=this,e._outletAssigned();}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","headerRowOutlet",""]]});}return t;})(),v1=(()=>{class t{viewContainer=p(Dt);elementRef=p(J);constructor(){let e=p(bo);e._footerRowOutlet=this,e._outletAssigned();}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","footerRowOutlet",""]]});}return t;})(),y1=(()=>{class t{viewContainer=p(Dt);elementRef=p(J);constructor(){let e=p(bo);e._noDataRowOutlet=this,e._outletAssigned();}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","noDataRowOutlet",""]]});}return t;})();var x1=(()=>{class t{_differs=p(Ho);_changeDetectorRef=p(pe);_elementRef=p(J);_dir=p(Et,{optional:!0});_platform=p(Ae);_viewRepeater=p(Td);_coalescedStyleScheduler=p(f_);_viewportRuler=p(ea);_stickyPositioningListener=p(g_,{optional:!0,skipSelf:!0});_document=p(_e);_data;_onDestroy=new H();_renderRows;_renderChangeSubscription;_columnDefsByName=new Map();_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set();_customRowDefs=new Set();_customHeaderRowDefs=new Set();_customFooterRowDefs=new Set();_customNoDataRow;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map();_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell";}return this._cellRoleInternal;}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn;}set trackBy(e){this._trackByFn=e;}_trackByFn;get dataSource(){return this._dataSource;}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e);}_dataSource;get multiTemplateDataRows(){return this._multiTemplateDataRows;}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles());}_multiTe��mplateDataRows=!1;get fixedLayout(){return this._fixedLayout;}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0;}_fixedLayout=!1;contentChanged=new V();viewChange=new Qt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=p(Se);constructor(){p(new Ki("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((i,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r);}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Ve(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0;});}ngAfterContentInit(){this._hasInitialized=!0;}ngAfterContentChecked(){this._canRender()&&this._render();}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear();}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),cp(this.dataSource)&&this.dataSource.disconnect(this);}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return;}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===Vs.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context);}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.item.data;}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles();}addColumnDef(e){this._customColumnDefs.add(e);}removeColumnDef(e){this._customColumnDefs.delete(e);}addRowDef(e){this._customRowDefs.add(e);}removeRowDef(e){this._customRowDefs.delete(e);}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0;}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0;}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0;}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0;}setNoDataRow(e){this._customNoDataRow=e;}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let r=ZO(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none");}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged());}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=ZO(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none");}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged());}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a]);}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s<i.length;s++)this._renderRows[s].rowDef===o&&a.push(i[s]);this._addStickyColumnStyles(a,o);}),r.forEach((o,a)=>{this._addStickyColumnStyles([o],this._footerRowDefs[a]);}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged());}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render());}_canRender(){return this._hasAllOutlets&&this._hasInitialized;}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,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&&this.updateStickyColumnStyles(),this._checkStickyStates();}_getAllRenderRows(){let e=[],i=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map(),!this._data)return e;for(let r=0;r<this._data.length;r++){let o=this._data[r],a=this._getRenderRowsForData(o,r,i.get(o));this._cachedRenderRowsMap.has(o)||this._cachedRenderRowsMap.set(o,new WeakMap());for(let s=0;s<a.length;s++){let l=a[s],c=this._cachedRenderRowsMap.get(l.data);c.has(l.rowDef)?c.get(l.rowDef).push(l):c.set(l.rowDef,[l]),e.push(l);}}return e;}_getRenderRowsForData(e,i,r){return this._getRowDefs(e,i).map(a=>{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=i,l;}else return{data:e,rowDef:a,dataIndex:i};});}_cacheColumnDefs(){this._columnDefsByName.clear(),m_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i);});}_cacheRowDefs(){this._headerRowDefs=m_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=m_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=m_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0];}_renderUpdatedColumns(){let e=(a,s)=>{let l=!!s.getColumnsDiff();return a||l;},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o;}_switchDataSource(e){this._data=[],cp(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e;}_observeRenderChanges(){if(!this.dataSource)return;let e;cp(this.dataSource)?e=this.dataSource.connect(this):Sc(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=se(this.dataSource)),this._renderChangeSubscription=e.pipe(Ve(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows();});}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles();}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles();}_addStickyColumnStyles(e,i){let r=Array.from(i?.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l;}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths);}_getRenderedRows(e){let i=[];for(let r=0;r<e.viewContainer.length;r++){let o=e.viewContainer.get(r);i.push(o.rootNodes[0]);}return i;}_getRowDefs(e,i){if(this._rowDefs.length==1)return[this._rowDefs[0]];let r=[];if(this.multiTemplateDataRows)r=this._rowDefs.filter(o=>!o.when||o.when(i,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;o&&r.push(o);}return r.length,r;}_getEmbeddedViewArgs(e,i){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:i};}_renderRow(e,i,r,o={}){let a=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),a;}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Jl.mostRecentCellOutlet&&Jl.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck();}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i<r;i++){let a=e.get(i).context;a.count=r,a.first=i===0,a.last=i===r-1,a.even=i%2===0,a.odd=!a.even,this.multiTemplateDataRows?(a.dataIndex=this._renderRows[i].dataIndex,a.renderIndex=i):a.index=this._renderRows[i].dataIndex;}}_getCellTemplates(e){return!e||!e.columns?[]:Array.from(e.columns,i=>{let r=this._columnDefsByName.get(i);return e.extractCellTemplate(r);});}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows();}_checkStickyStates(){let e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles());}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr";this._stickyStyler=new u1(this._isNativeHtmlTable,this.stickyCssClass,e,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:se()).pipe(Ve(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles();});}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this);}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName));}else r.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck();}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,r,o){if(i&1&&(Ee(o,y_,5),Ee(o,jd,5),Ee(o,v_,5),Ee(o,Tp,5),Ee(o,h1,5)),i&2){let a;R(a=O())&&(r._noDataRow=a.first),R(a=O())&&(r._contentColumnDefs=a),R(a=O())&&(r._contentRowDefs=a),R(a=O())&&(r._contentHeaderRowDefs=a),R(a=O())&&(r._contentFooterRowDefs=a);}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,r){i&2&&Z("cdk-table-fixed-layout",r.fixedLayout);},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",U],fixedLayout:[2,"fixedLayout","fixedLayout",U]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[be([{provide:bo,useExisting:t},{provide:Td,useClass:ql},{provide:f_,useClass:m1},{provide:g_,useValue:null}])],ngContentSelectors:Xq,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(De(Zq),le(0),le(1,1),I(2,Jq,1,0)(3,eW,7,0)(4,tW,4,0)),i&2&&(d(2),Q(r._isServer?2:-1),d(),Q(r._isNativeHtmlTable?3:4));},dependencies:[b1,_1,y1,v1],styles:[`.cdk-table-fixed-layout{table-layout:fixed}
`],encapsulation:2});}return t;})();function m_(t,n){return t.concat(Array.from(n));}function ZO(t,n){let e=n.toUpperCase(),i=t.viewContainer.element.nativeElement;for(;i;){let r=i.nodeType===1?i.nodeName:null;if(r===e)return i;if(r==="TABLE")break;i=i.parentNode;}return null;}var tP=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[up]});}return t;})();var nW=[[["caption"]],[["colgroup"],["col"]],"*"],rW=["caption","colgroup, col","*"];function oW(t,n){t&1&&le(0,2);}function aW(t,n){t&1&&(m(0,"thead",0),Xt(1,1),u(),m(2,"tbody",2),Xt(3,3)(4,4),u(),m(5,"tfoot",0),Xt(6,5),u());}function sW(t,n){t&1&&Xt(0,1)(1,3)(2,4)(3,5);}var vn=(()=>{class t extends x1{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&Z("mdc-table-fixed-layout",r.fixedLayout);},exportAs:["matTable"],features:[be([{provide:x1,useExisting:t},{provide:bo,useExisting:t},{provide:f_,useClass:m1},{provide:Td,useClass:ql},{provide:g_,useValue:null}]),W],ngContentSelectors:rW,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(De(nW),le(0),le(1,1),I(2,oW,1,0)(3,aW,7,0)(4,sW,4,0)),i&2&&(d(2),Q(r._isServer?2:-1),d(),Q(r._isNativeHtmlTable?3:4));},dependencies:[b1,_1,y1,v1],styles:[`.mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.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}
`],encapsulation:2});}return t;})(),da=(()=>{class t extends __{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["","matCellDef",""]],features:[be([{provide:__,useExisting:t}]),W]});}return t;})(),ua=(()=>{class t extends b_{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["","matHeaderCellDef",""]],features:[be([{provide:b_,useExisting:t}]),W]});}return t;})();var ma=(()=>{class t extends jd{get name(){return this._name;}set name(e){this._setNameInput(e);}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`);}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[be([{provide:jd,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),W]});}return t;})(),pa=(()=>{class t extends JO{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[W]});}return t;})();var ha=(()=>{class t extends eP{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[W]});}return t;})();var fa=(()=>{class t extends Tp{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",U]},features:[be([{provide:Tp,useExisting:t}]),W]});}return t;})();var ga=(()=>{class t extends v_{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[be([{provide:v_,useExisting:t}]),W]});}return t;})(),_a=(()=>{class t extends f1{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[be([{provide:f1,useExisting:t}]),W],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Xt(0,0);},dependencies:[Jl],encapsulation:2});}return t;})();var ba=(()=>{class t extends g1{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[be([{provide:g1,useExisting:t}]),W],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Xt(0,0);},dependencies:[Jl],encapsulation:2});}return t;})(),x_=(()=>{class t extends y_{_contentClassName="mat-mdc-no-data-row";static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[be([{provide:y_,useExisting:t}]),W]});}return t;})();var va=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,tP,he]});}return t;})(),lW=9007199254740991,Wr=class extends lp{_data;_renderData=new Qt([]);_filter=new Qt("");_internalPageChanges=new H();_renderChangesSubscription=null;filteredData;get data(){return this._data.value;}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n);}get filter(){return this._filter.value;}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data);}get sort(){return this._sort;}set sort(n){this._sort=n,this._updateChangeSubscription();}_sort;get paginator(){return this._paginator;}set paginator(n){this._paginator=n,this._updateChangeSubscription();}_paginator;sortingDataAccessor=(n,e)=>{let i=n[e];if(p0(i)){let r=Number(i);return r<lW?r:i;}return i;};sortData=(n,e)=>{let i=e.active,r=e.direction;return!i||r==""?n:n.sort((o,a)=>{let s=this.sortingDataAccessor(o,i),l=this.sortingDataAccessor(a,i),c=typeof s,h=typeof l;c!==h&&(c==="number"&&(s+=""),h==="number"&&(l+=""));let g=0;return s!=null&&l!=null?s>l?g=1:s<l&&(g=-1):s!=null?g=1:l!=null&&(g=-1),g*(r=="asc"?1:-1);});};filterPredicate=(n,e)=>{let i=e.trim().toLowerCase();return Object.values(n).some(r=>`${r}`.toLowerCase().includes(i));};constructor(n=[]){super(),this._data=new Qt(n),this._updateChangeSubscription();}_updateChangeSubscription(){let n=this._sort?St(this._sort.sortChange,this._sort.initialized):se(null),e=this._paginator?St(this._paginator.page,this._internalPageChanges,this._paginator.initialized):se(null),i=this._data,r=Jr([i,this._filter]).pipe(ue(([s])=>this._filterData(s))),o=Jr([r,n]).pipe(ue(([s])=>this._orderData(s))),a=Jr([o,e]).pipe(ue(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s));}_filterData(n){return this.filteredData=this.filter==null||this.filter===""?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData;}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n;}_pageData(n){if(!this.paginator)return n;let e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize);}_updatePaginator(n){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){let i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next());}});}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData;}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null;}};var qs=(()=>{class t{constructor(e,i){this.http=e,this.site=i;}isLoggedIn(e){throw new Error("function not implemented");}getLoginToken(e,i){let o=this.site.site.drupalHost+"/session/token",a={headers:new lt({"Content-Type":"application/json"}),responseType:"text"};return this.http.post(o,{},a);}createPost(e,i,r,o,a="1"){let s=this.site.site.drupalHost+this.site.site.drupalApi+"/node/chat",l={data:{type:"node--chat",attributes:{title:i,body:{value:"",format:"plain_text"},field_message3:r}}},c={headers:new lt({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"};return this.http.post(s,l,c);}getCsrfToken(){let i=this.site.site.drupalHost+"/session/token",r={headers:new lt({"Content-Type":"application/json"}),responseType:"text"};return this.http.post(i,{},r);}postPrompt(e,i){let r=this.site.site.drupalHost+this.site.site.drupalApi+"/node/prompt",o={data:{type:"node--prompt",attributes:{title:i.substring(0,50),body:{value:"",format:"plain_text"},field_message:i,field_image_prompt:!0}}},a={headers:new lt({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"};return this.http.post(r,o,a);}fetchPrompts(e,i,r,o){let s=`&filter[field_image_prompt][value]=${o?"1":"0"}`,l=`/node/prompt?page[offset]=${e}&page[limit]=${i}&include=uid,field_categories`+s,c=this.site.site.drupalHost+this.site.site.drupalApi+l;return this.http.get(c);}static{this.ɵfac=function(i){return new(i||t)(te(Bi),te(pt));};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var iP=t=>({display:t}),cW=()=>["expandedDetail"];function dW(t,n){if(t&1&&(m(0,"th",12),f(1),u()),t&2){let e=y().$implicit;d(),C(e);}}function uW(t,n){if(t&1){let e=K();m(0,"button",16),S("click",function(){k(e);let r=y().$implicit,o=y(2);return M(o.choosePrompt(r));}),f(1),u();}if(t&2){let e=y(3);d(),N(" ",e.select," ");}}function mW(t,n){if(t&1&&(m(0,"td",13)(1,"div",14),f(2),I(3,uW,2,1,"button",15),u()()),t&2){let e=n.$implicit,i=y().$implicit;d(2),N(" ",e[i]," "),d(),v("ngIf",i==="Actions");}}function pW(t,n){if(t&1&&(Ce(0,10),I(1,dW,2,1,"th",11)(2,mW,4,2,"td",5),we()),t&2){let e=n.$implicit;G("matColumnDef",e);}}function hW(t,n){t&1&&(m(0,"th",17),f(1,"\xA0"),u());}function fW(t,n){t&1&&(m(0,"mat-icon"),f(1,"keyboard_arrow_down"),u());}function gW(t,n){t&1&&(m(0,"mat-icon"),f(1,"keyboard_arrow_up"),u());}function _W(t,n){if(t&1){let e=K();m(0,"td",13)(1,"button",18),S("click",function(r){let o=k(e).$implicit;return o.Expanded=!o.Expanded,M(r.stopPropagation());}),I(2,fW,2,0,"mat-icon",19)(3,gW,2,0,"mat-icon",19),u()();}if(t&2){let e=n.$implicit;d(2),v("ngIf",!e.Expanded),d(),v("ngIf",e.Expanded);}}function bW(t,n){if(t&1&&(m(0,"td",13)(1,"div",20)(2,"div",21)(3,"strong"),f(4),u(),f(5),u()()()),t&2){let e=n.$implicit,i=y();ee("colspan",i.columnsToDisplayWithExpand.length),d(),v("@detailExpand",e.Expanded?"expanded":"collapsed"),d(3),N("",i.fullText,":"),d(),N(" ",e.Message," ");}}function vW(t,n){t&1&&w(0,"tr",22);}function yW(t,n){if(t&1){let e=K();m(0,"tr",23),S("click",function(){let r=k(e).$implicit;return M(r.Expanded=!r.Expanded);}),u();}if(t&2){let e=n.$implicit;Z("expanded-row",e.Expanded);}}function xW(t,n){t&1&&w(0,"tr",24);}var nP=(()=>{class t{constructor(e,i,r){this.user=e,this.site=i,this.drupal=r,this.imagePrompt=rt(!1),this.character=rt.required(),this.select="Select",this.fullText="Prompt",this.rowActions="row actions",this.promptData=[],this.loaded=!1,this.dataSource=new Wr(this.promptData),this.columnsToDisplay=["Category","Title","Actions"],this.columnsToDisplayWithExpand=[...this.columnsToDisplay,"expand"],this.choosePromptEvent=new V(),this.terms=[];}ngOnInit(){}ngAfterViewInit(){this.fetchPrompts();}fetchPrompts(){let e=this,i=this.site.site.drupalUid;this.site.demoMode()&&(i=this.site.site.drupalUid),this.drupal.fetchPrompts(0,50,i,this.imagePrompt()).pipe(de(1),ue(r=>{if(this.loaded=!0,!r)return console.log("no data received"),{prompts:[],terms:[]};let o=r.included||[];console.log("filting terms");let a=o.filter(c=>c.type.startsWith("taxonomy_term"));e.terms=a;let s=r.data,l=this.loadPrompts(s);return this.imagePrompt()||(l=this.filterPromptsByCategory(l)),l=this.sortPrompts(l),{prompts:l,terms:a};}),Dn(r=>(console.log("error:",r),se({prompts:[],terms:[]})))).subscribe(({prompts:r,terms:o})=>{this.terms=o,this.dataSource.data=r,this.table.renderRows();});}filterPromptsByCategory(e){let i=["Tech","Sales","Support","Legal"];return e.filter(r=>!r.Categories||r.Categories.length===0?!1:this.site.demoMode()?i.includes(r.Category):!i.includes(r.Category));}sortByCategory(e,i){return e.sort((r,o)=>r.Category===i&&o.Category!==i?-1:r.Category!==i&&o.Category===i?1:0);}sortPrompts(e){let i=e.sort((a,s)=>a.Category>s.Category?1:a.Category<s.Category?-1:0),r="Tech",o=this.character();return o&&(o.name==="Alma"?r="Sales":o.name==="Roberto"?r="Support":o.name==="Mario"&&(r="Legal")),this.sortByCategory(e,r),i;}loadPrompts(e){let i=[];return e.forEach(r=>{let o=r.relationships,a=r.attributes,l=Date.parse(a.changed),c=new Date(l),h={},g=new Intl.DateTimeFormat("en-US",h).format(c),_=o.uid.data.id,x=o.field_categories.data,T=[];x&&x.forEach(q=>{let ie=this.terms.find(Y=>Y.id===q.id);ie?T.push(ie.attributes.name):console.log("prompt is not categorized.");});let L={ID:a.drupal_internal__nid,Title:a.title,Message:a.field_message[0],Categories:T,Category:T.length?T[0]:"",Revision:a.drupal_internal__vid,Modified:g,Expanded:!1,Uid:_};i.push(L);}),i;}choosePrompt(e){this.choosePromptEvent.emit(e);}static{this.ɵfac=function(i){return new(i||t)(D(Nn),D(pt),D(qs));};}static{this.ɵcmp=E({type:t,selectors:[["choose-prompt"]],viewQuery:function(i,r){if(i&1&&$(vn,5),i&2){let o;R(o=O())&&(r.table=o.first);}},inputs:{imagePrompt:[1,"imagePrompt"],character:[1,"character"]},outputs:{choosePromptEvent:"choosePromptEvent"},decls:12,vars:12,consts:[[1,"loader",3,"ngStyle"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"ngStyle","dataSource"],[3,"matColumnDef",4,"ngFor","ngForOf"],["matColumnDef","expand"],["mat-header-cell","","aria-label","row actions",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","","class","prompts-header-row",4,"matHeaderRowDef"],["mat-row","","class","prompt-row",3,"expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","detail-row",4,"matRowDef","matRowDefColumns"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-cell",""],["mat-cell",""],[1,"prompt-column-container"],["class","choose-prompt-button","color","primary","mat-stroked-button","","aria-label","Select",3,"click",4,"ngIf"],["color","primary","mat-stroked-button","","aria-label","Select",1,"choose-prompt-button",3,"click"],["mat-header-cell","","aria-label","row actions"],["mat-icon-button","","aria-label","expand row",3,"click"],[4,"ngIf"],[1,"prompt-detail"],[1,"prompt-description"],["mat-header-row","",1,"prompts-header-row"],["mat-row","",1,"prompt-row",3,"click"],["mat-row","",1,"detail-row"]],template:function(i,r){i&1&&(m(0,"div",0),w(1,"mat-spinner"),u(),m(2,"table",1),I(3,pW,3,1,"ng-container",2),Ce(4,3),I(5,hW,2,0,"th",4)(6,_W,4,2,"td",5),we(),Ce(7,6),I(8,bW,6,4,"td",5),we(),I(9,vW,1,0,"tr",7)(10,yW,1,2,"tr",8)(11,xW,1,0,"tr",9),u()),i&2&&(v("ngStyle",Ue(7,iP,r.loaded?"none":"block")),d(2),v("ngStyle",Ue(9,iP,r.loaded?"table":"none"))("dataSource",r.dataSource),d(),v("ngForOf",r.columnsToDisplay),d(6),v("matHeaderRowDef",r.columnsToDisplayWithExpand),d(),v("matRowDefColumns",r.columnsToDisplayWithExpand),d(),v("matRowDefColumns",Sn(11,cW)));},dependencies:[va,vn,ua,fa,ma,da,ga,pa,ha,_a,ba,j,ei,Pt,gn,ce,ye,Si,ke,Oe,Hi,ji],styles:[".loader[_ngcontent-%COMP%]{text-align:center}.loader[_n��gcontent-%COMP%]   mat-spinner[_ngcontent-%COMP%]{margin:0 auto}table[_ngcontent-%COMP%]{width:100%}tr.detail-row[_ngcontent-%COMP%]{height:0}tr.prompt-row[_ngcontent-%COMP%]:not(.expanded-row):active{background:#efefef}.prompt-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom-width:0}.prompt-column-container[_ngcontent-%COMP%]{margin-top:10px}.prompt-column-container[_ngcontent-%COMP%]   .choose-prompt-button[_ngcontent-%COMP%]{height:24px;margin:5px 0}.prompt-detail[_ngcontent-%COMP%]{display:block}.prompt-description[_ngcontent-%COMP%]{padding:20px 5px}"],data:{animation:[Kl("detailExpand",[ca("collapsed",Tr({height:"0px",minHeight:"0"})),ca("expanded",Tr({height:"*"})),Xl("expanded <=> collapsed",Zl("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});}}return t;})();var CW=["mysubmit"];var Hd=(()=>{class t{constructor(e){this.data=e,this.title="Chatbot Says:",this.wait="One moment please...";}static{this.ɵfac=function(i){return new(i||t)(D(Yt));};}static{this.ɵcmp=E({type:t,selectors:[["progress-dialog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["id","spinner"],["mode","indeterminate"]],template:function(i,r){i&1&&(m(0,"h1",0),f(1),u(),m(2,"div",1)(3,"p"),f(4),u(),m(5,"p"),f(6),u(),m(7,"div",2),w(8,"mat-progress-bar",3),u(),m(9,"p"),f(10),u()()),i&2&&(d(),C(r.title),d(3),C(r.data.msg),d(2),C(r.data.msg2),d(4),C(r.wait));},dependencies:[vt,ri,oi,ce,aa,tO],encapsulation:2});}}return t;})();var Ws=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.txt1="Image Count",this.txt2="Image Size",this.txt3="Close",this.txt4="Submit",this.imageCount="1",this.imageSize="512x512";}ngAfterViewInit(){console.log("submit",this.submitButton),setTimeout(()=>{this.submitButton.focus();},1e3);}createVariations(){this.dialogRef.close({count:this.imageCount,size:this.imageSize});}static{this.ɵfac=function(i){return new(i||t)(D(At),D(Yt));};}static{this.ɵcmp=E({type:t,selectors:[["image-size-and-count-dialog"]],viewQuery:function(i,r){if(i&1&&$(CW,5),i&2){let o;R(o=O())&&(r.submitButton=o.first);}},decls:39,vars:9,consts:[["mysubmit",""],[1,"modal-content"],["mat-dialog-title",""],["mat-dialog-content",""],["id","image-count",2,"margin-right","10px"],[3,"valueChange","value"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["id","image-size"],["value","256x256"],["value","512x512"],["value","1024x1024"],["mat-dialog-actions",""],["mat-button","","mat-dialog-close",""],["id","mysubmitbutton","mat-button","",3,"click"]],template:function(i,r){if(i&1){let o=K();m(0,"div",1)(1,"h1",2),f(2),u(),m(3,"div",3)(4,"p"),f(5),u(),m(6,"p"),f(7),u(),Ce(8),m(9,"mat-form-field",4)(10,"mat-label"),f(11),u(),m(12,"mat-select",5),pi("valueChange",function(s){return k(o),Ci(r.imageCount,s)||(r.imageCount=s),M(s);}),m(13,"mat-option",6),f(14,"1"),u(),m(15,"mat-option",7),f(16,"2"),u(),m(17,"mat-option",8),f(18,"3"),u(),m(19,"mat-option",9),f(20,"4"),u(),m(21,"mat-option",10),f(22,"5"),u()()(),m(23,"mat-form-field",11)(24,"mat-label"),f(25),u(),m(26,"mat-select",5),pi("valueChange",function(s){return k(o),Ci(r.imageSize,s)||(r.imageSize=s),M(s);}),m(27,"mat-option",12),f(28,"256x256"),u(),m(29,"mat-option",13),f(30,"512x512"),u(),m(31,"mat-option",14),f(32,"1024x1024"),u()()(),we(),u(),m(33,"div",15)(34,"button",16),f(35),u(),m(36,"button",17,0),S("click",function(){return k(o),M(r.createVariations());}),f(38),u()()();}i&2&&(d(2),C(r.data.title),d(3),C(r.data.msg),d(2),C(r.data.msg2),d(4),C(r.txt1),d(),mi("value",r.imageCount),d(13),C(r.txt2),d(),mi("value",r.imageSize),d(9),C(r.txt3),d(3),N(" ",r.txt4," "));},dependencies:[vt,Ii,ri,di,oi,ce,ye,j,_o,Lt,Nt,Yl,rs],encapsulation:2});}}return t;})(),rP=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.choosePromptMsg="Choose a Prompt:",this.closeMsg="Close";}choosePrompt(e){this.dialogRef.close({prompt:e});}static{this.ɵfac=function(i){return new(i||t)(D(At),D(Yt));};}static{this.ɵcmp=E({type:t,selectors:[["choose-prompt-dialog"]],decls:11,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"choosePromptEvent","imagePrompt","character"],["mat-dialog-actions","","align","center"],["mat-button","","mat-dialog-close",""]],template:function(i,r){if(i&1&&(m(0,"h1",0),f(1),u(),m(2,"div",1)(3,"p"),f(4),u(),m(5,"p"),f(6),u(),m(7,"choose-prompt",2),S("choosePromptEvent",function(a){return r.choosePrompt(a);}),u()(),m(8,"div",3)(9,"button",4),f(10),u()()),i&2){let o;d(),C(r.choosePromptMsg),d(3),C(r.data.msg),d(2),C(r.data.msg2),d(),v("imagePrompt",(o=r.data.imagePrompt)!==null&&o!==void 0?o:!1)("character",r.data.characterData),d(3),C(r.closeMsg);}},dependencies:[vt,Ii,ri,di,oi,ce,ye,j,nP],encapsulation:2});}}return t;})(),oP=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.title="",this.yesTxt="Yes",this.cancelTxt="Cancel";}ngOnInit(){this.title=this.data.title||"Untitled";}static{this.ɵfac=function(i){return new(i||t)(D(At),D(Yt));};}static{this.ɵcmp=E({type:t,selectors:[["confirmation-dialog"]],decls:13,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"dialog-actions"],["mat-button","",3,"click"]],template:function(i,r){i&1&&(m(0,"h1",0),f(1),u(),m(2,"div",1)(3,"p"),f(4),u(),m(5,"p"),f(6),u()(),m(7,"div",2)(8,"button",3),S("click",function(){return r.dialogRef.close();}),f(9),u(),m(10,"button",3),S("click",function(){return r.dialogRef.close({confirm:!0});}),f(11),u()(),f(12," , ")),i&2&&(d(),C(r.title),d(3),C(r.data.msg),d(2),C(r.data.msg2),d(3),C(r.cancelTxt),d(2),N(" ",r.yesTxt," "));},dependencies:[vt,ri,di,oi,ce,ye,j],styles:[".dialog-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:15px}"]});}}return t;})();var M1=["*"];function wW(t,n){t&1&&le(0);}var DW=["tabListContainer"],EW=["tabList"],kW=["tabListInner"],MW=["nextPaginator"],SW=["previousPaginator"],IW=["content"];function TW(t,n){}var AW=["tabBodyWrapper"],RW=["tabHeader"];function OW(t,n){}function PW(t,n){if(t&1&&I(0,OW,0,0,"ng-template",12),t&2){let e=y().$implicit;v("cdkPortalOutlet",e.templateLabel);}}function FW(t,n){if(t&1&&f(0),t&2){let e=y().$implicit;C(e.textLabel);}}function NW(t,n){if(t&1){let e=K();m(0,"div",7,2),S("click",function(){let r=k(e),o=r.$implicit,a=r.$index,s=y(),l=We(1);return M(s._handleClick(o,l,a));})("cdkFocusChange",function(r){let o=k(e).$index,a=y();return M(a._tabFocusChanged(r,o));}),w(2,"span",8)(3,"div",9),m(4,"span",10)(5,"span",11),I(6,PW,1,1,null,12)(7,FW,1,1),u()()();}if(t&2){let e=n.$implicit,i=n.$index,r=We(1),o=y();bt(e.labelClass),Z("mdc-tab--active",o.selectedIndex===i),v("id",o._getTabLabelId(e,i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),ee("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),d(3),v("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),d(3),Q(e.templateLabel?6:7);}}function LW(t,n){t&1&&le(0);}function VW(t,n){if(t&1){let e=K();m(0,"mat-tab-body",13),S("_onCentered",function(){k(e);let r=y();return M(r._removeTabBodyWrapperHeight());})("_onCentering",function(r){k(e);let o=y();return M(o._setTabBodyWrapperHeight(r));})("_beforeCentering",function(r){k(e);let o=y();return M(o._bodyCentered(r));}),u();}if(t&2){let e=n.$implicit,i=n.$index,r=y();bt(e.bodyClass),v("id",r._getTabContentId(i))("content",e.content)("position",e.position)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),ee("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(e,i))("aria-hidden",r.selectedIndex!==i);}}var zW=new A("MatTabContent"),BW=(()=>{class t{template=p(st);constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","matTabContent",""]],features:[be([{provide:zW,useExisting:t}])]});}return t;})(),jW=new A("MatTabLabel"),cP=new A("MAT_TAB"),HW=(()=>{class t extends Sw{_closestTab=p(cP,{optional:!0});static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[be([{provide:jW,useExisting:t}]),W]});}return t;})(),dP=new A("MAT_TAB_GROUP"),S1=(()=>{class t{_viewContainerRef=p(Dt);_closestTabGroup=p(dP,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel;}set templateLabel(e){this._setTemplateLabelInput(e);}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal;}_stateChanges=new H();position=null;origin=null;isActive=!1;constructor(){p(nt).load(ii);}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next();}ngOnDestroy(){this._stateChanges.complete();}ngOnInit(){this._contentPortal=new $i(this._explicitContent||this._implicitContent,this._viewContainerRef);}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e);}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(Ee(o,HW,5),Ee(o,BW,7,st)),i&2){let a;R(a=O())&&(r.templateLabel=a.first),R(a=O())&&(r._explicitContent=a.first);}},viewQuery:function(i,r){if(i&1&&$(st,7),i&2){let o;R(o=O())&&(r._implicitContent=o.first);}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(i,r){i&2&&ee("id",null);},inputs:{disabled:[2,"disabled","disabled",U],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[be([{provide:cP,useExisting:t}]),He],ngContentSelectors:M1,decls:1,vars:0,template:function(i,r){i&1&&(De(),I(0,wW,1,0,"ng-template"));},encapsulation:2});}return t;})(),w1="mdc-tab-indicator--active",aP="mdc-tab-indicator--no-transition",D1=class{_items;_currentItem;constructor(n){this._items=n;}hide(){this._items.forEach(n=>n.deactivateInkBar()),this._currentItem=void 0;}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e;}}},$W=(()=>{class t{_elementRef=p(J);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent;}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement());}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(w1);return;}let r=i.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;i.classList.add(aP),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(aP),i.classList.add(w1),this._inkBarContentElement.style.setProperty("transform","");}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(w1);}ngOnInit(){this._createInkBarElement();}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null;}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.appendChild(this._inkBarContentElement),this._appendInkBarElement();}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement);}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",U]}});}return t;})();var uP=(()=>{class t extends $W{elementRef=p(J);disabled=!1;focus(){this.elementRef.nativeElement.focus();}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft;}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth;}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(ee("aria-disabled",!!r.disabled),Z("mat-mdc-tab-disabled",r.disabled));},inputs:{disabled:[2,"disabled","disabled",U]},features:[W]});}return t;})(),sP={passive:!0},UW=650,qW=100,WW=(()=>{class t{_elementRef=p(J);_changeDetectorRef=p(pe);_viewportRuler=p(ea);_dir=p(Et,{optional:!0});_ngZone=p(ae);_platform=p(Ae);_sharedResizeObserver=p(K0);_injector=p(Se);_renderer=p(tt);_animationMode=p(Ne,{optional:!0});_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new H();_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new H();disablePagination=!1;get selectedIndex(){return this._selectedIndex;}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i));}_selectedIndex=0;selectFocusedIndex=new V();indexFocused=new V();constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())]);}ngAfterViewInit(){this._eventCleanups.push(Wt(this._renderer,this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),sP),Wt(this._renderer,this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),sP));}ngAfterContentInit(){let e=this._dir?this._dir.change:se("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Fa(32),Ve(this._destroyed)),r=this._viewportRuler.change(150).pipe(Ve(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab();};this._keyManager=new uo(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),li(o,{injector:this._injector}),St(e,r,i,this._items.changes,this._itemsResized()).pipe(Ve(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o();});}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection());}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a);});}_itemsResized(){return typeof ResizeObserver!="function"?Di:this._items.changes.pipe(ht(this._items),ai(e=>new qe(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect();};}))),al(1),Ie(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)));}ngAfterContentChecked(){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());}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete();}_handleKeydown(e){if(!ti(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));}break;default:this._keyManager.onKeydown(e);}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck();}));}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition();}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0;}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e);}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0;}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth;}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr";}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0);}get scrollDistance(){return this._scrollDistance;}set scrollDistance(e){this._scrollTo(e);}_scrollHeader(e){let i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r);}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e);}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let c=this.scrollDistance,h=this.scrollDistance+r;s<c?this.scrollDistance-=c-s:l>h&&(this.scrollDistance+=Math.min(l-h,s-c));}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,this._changeDetectorRef.markForCheck());}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck());}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0;}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide();}_stopInterval(){this._stopScrolling.next();}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),ju(UW,qW).pipe(Ve(St(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval();}));}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance};}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",U],selectedIndex:[2,"selectedIndex","selectedIndex",ut]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}});}return t;})(),GW=(()=>{class t extends WW{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new D1(this._items),super.ngAfterContentInit();}_itemSelected(e){e.preventDefault();}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&Ee(o,uP,4),i&2){let a;R(a=O())&&(r._items=a);}},viewQuery:function(i,r){if(i&1&&($(DW,7),$(EW,7),$(kW,7),$(MW,5),$(SW,5)),i&2){let o;R(o=O())&&(r._tabListContainer=o.first),R(o=O())&&(r._tabList=o.first),R(o=O())&&(r._tabListInner=o.first),R(o=O())&&(r._nextPaginator=o.first),R(o=O())&&(r._previousPaginator=o.first);}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&Z("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl");},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",U]},features:[W],ngContentSelectors:M1,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(i,r){if(i&1){let o=K();De(),m(0,"div",5,0),S("click",function(){return k(o),M(r._handlePaginatorClick("before"));})("mousedown",function(s){return k(o),M(r._handlePaginatorPress("before",s));})("touchend",function(){return k(o),M(r._stopInterval());}),w(2,"div",6),u(),m(3,"div",7,1),S("keydown",function(s){return k(o),M(r._handleKeydown(s));}),m(5,"div",8,2),S("cdkObserveContent",function(){return k(o),M(r._onContentChanges());}),m(7,"div",9,3),le(9),u()()(),m(10,"div",10,4),S("mousedown",function(s){return k(o),M(r._handlePaginatorPress("after",s));})("click",function(){return k(o),M(r._handlePaginatorClick("after"));})("touchend",function(){return k(o),M(r._stopInterval());}),w(12,"div",6),u();}i&2&&(Z("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),v("matRippleDisabled",r._disableScrollBefore||r.disableRipple),d(3),Z("_mat-animation-noopable",r._animationMode==="NoopAnimations"),d(2),ee("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),d(5),Z("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),v("matRippleDisabled",r._disableScrollAfter||r.disableRipple));},dependencies:[an,g0],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-header-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-header-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-header-divider-height, 1px);border-bottom-color:var(--mat-tab-header-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-header-divider-height, 1px);border-top-color:var(--mat-tab-header-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(--mdc-secondary-navigation-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}
`],encapsulation:2});}return t;})(),YW=new A("MAT_TABS_CONFIG"),lP=(()=>{class t extends en{_host=p(E1);_centeringSub=ve.EMPTY;_leavingSub=ve.EMPTY;constructor(){super();}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(ht(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this.attach(this._host._content);}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach();});}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe();}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","matTabBodyHost",""]],features:[W]});}return t;})(),E1=(()=>{class t{_elementRef=p(J);_dir=p(Et,{optional:!0});_ngZone=p(ae);_injector=p(Se);_renderer=p(tt);_animationsModule=p(Ne,{optional:!0});_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=ve.EMPTY;_position;_previousPosition;_onCentering=new V();_beforeCentering=new V();_afterLeavingCenter=new V();_onCentered=new V(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState();}constructor(){if(this._dir){let e=p(pe);this._dirChangeSubscription=this._dir.change.subscribe(i=>{this._computePositionAnimationState(i),e.markForCheck();});}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),li(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0;}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe();}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,i=r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),r.type==="transitionend"&&this._transitionDone());};this._eventCleanups=[this._renderer.listen(e,"transitionstart",r=>{r.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted());}),this._renderer.listen(e,"transitionend",i),this._renderer.listen(e,"transitioncancel",i)];});}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight);}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit();}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e);}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr";}_isCenterPosition(){return this._positionIndex===0;}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)));}_simulateTransitionEvents(){this._transitionStarted(),li(()=>this._transitionDone(),{injector:this._injector});}_animationsDisabled(){return this._animationsModule==="NoopAnimations"||this.animationDuration==="0ms"||this.animationDuration==="0s";}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&($(lP,5),$(IW,5)),i&2){let o;R(o=O())&&(r._portalHost=o.first),R(o=O())&&(r._contentElement=o.first);}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(i,r){i&2&&ee("inert",r._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(i,r){i&1&&(m(0,"div",1,0),I(2,TW,0,0,"ng-template",2),u()),i&2&&Z("mat-tab-body-content-left",r._position==="left")("mat-tab-body-content-right",r._position==="right")("mat-tab-body-content-can-animate",r._position==="center"||r._previousPosition==="center");},dependencies:[lP,dp],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-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)}
`],encapsulation:2});}return t;})(),C_=(()=>{class t{_elementRef=p(J);_changeDetectorRef=p(pe);_ngZone=p(ae);_tabsSubscription=ve.EMPTY;_tabLabelSubscription=ve.EMPTY;_tabBodySubscription=ve.EMPTY;_animationMode=p(Ne,{optional:!0});_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new pn();_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent;}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck();}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex;}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e;}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration;}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i;}_animationDuration;get contentTabIndex(){return this._contentTabIndex;}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e;}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor;}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("ma��t-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e;}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new V();focusChange=new V();animationDone=new V();selectedTabChange=new V(!0);_groupId;_isServer=!p(Ae).isBrowser;constructor(){let e=p(YW,{optional:!0});this._groupId=p(Ye).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null;}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px";}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="");});}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.origin=e-this._selectedIndex);}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck());}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let i=this._tabs.toArray(),r;for(let o=0;o<i.length;o++)if(i[o].isActive){this._indexToSelect=this._selectedIndex=o,this._lastFocusedTabIndex=null,r=i[o];break;}!r&&i[e]&&Promise.resolve().then(()=>{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e));});}this._changeDetectorRef.markForCheck();});}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0));}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(ht(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges();});}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe();}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab();}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination();}focusTab(e){let i=this._tabHeader;i&&(i.focusIndex=e);}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e));}_createChangeEvent(e){let i=new k1();return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i;}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=St(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck());}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0));}_getTabLabelId(e,i){return e.id||`${this._groupId}-label-${i}`;}_getTabContentId(e){return`${this._groupId}-content-${e}`;}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return;}let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px");}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit());}_handleClick(e,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r);}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1;}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i);}_bodyCentered(e){e&&this._tabBodies?.forEach((i,r)=>i._setActiveClass(r===this._selectedIndex));}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&Ee(o,S1,5),i&2){let a;R(a=O())&&(r._allTabs=a);}},viewQuery:function(i,r){if(i&1&&($(AW,5),$(RW,5),$(E1,5)),i&2){let o;R(o=O())&&(r._tabBodyWrapper=o.first),R(o=O())&&(r._tabHeader=o.first),R(o=O())&&(r._tabBodies=o);}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,r){i&2&&(ee("mat-align-tabs",r.alignTabs),bt("mat-"+(r.color||"primary")),xi("--mat-tab-animation-duration",r.animationDuration),Z("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs));},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",U],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",U],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",U],selectedIndex:[2,"selectedIndex","selectedIndex",ut],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ut],disablePagination:[2,"disablePagination","disablePagination",U],disableRipple:[2,"disableRipple","disableRipple",U],preserveContent:[2,"preserveContent","preserveContent",U],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[be([{provide:dP,useExisting:t}])],ngContentSelectors:M1,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(i,r){if(i&1){let o=K();De(),m(0,"mat-tab-header",3,0),S("indexFocused",function(s){return k(o),M(r._focusChanged(s));})("selectFocusedIndex",function(s){return k(o),M(r.selectedIndex=s);}),Ut(2,NW,8,17,"div",4,Wa),u(),I(4,LW,1,0),m(5,"div",5,1),Ut(7,VW,1,10,"mat-tab-body",6,Wa),u();}i&2&&(v("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),d(2),qt(r._tabs),d(2),Q(r._isServer?4:-1),d(),Z("_mat-animation-noopable",r._animationMode==="NoopAnimations"),d(2),qt(r._tabs));},dependencies:[GW,uP,ip,an,en,E1],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}.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(--mdc-secondary-navigation-tab-container-height, 48px);font-family:var(--mat-tab-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-header-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(--mdc-tab-indicator-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height, 2px);border-radius:var(--mdc-tab-indicator-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-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-header-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-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-header-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-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-header-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-header-disabled-ripple-color)}.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-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-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-header-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-header-with-background-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-header-with-background-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-header-with-background-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-header-with-background-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-header-with-background-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-header-with-background-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-header-with-background-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-header-with-background-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}
`],encapsulation:2});}return t;})(),k1=class{index;tab;};var mP=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,he]});}return t;})();var KW=["mysubmit"],pP=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.D3Size=U0,this.D3Quality=q0,this.D3Style=W0,this.selectedIndex=1,this.countTxt="Count",this.sizeTxt="Size",this.qualityTxt="Quality",this.styleTxt="Style",this.closeTxt="Close",this.submitTxt="Submit",this.d3SizeValue=U0._1024x1024,this.d3QualityValue=q0.standard,this.d3StyleValue=W0.vivid,this.imageCount="1",this.imageSize="512x512";}ngAfterViewInit(){console.log("submit",this.submitButton),console.log("tabs",this.tabs),setTimeout(()=>{this.submitButton.focus();},1e3);}createImages(){console.log("active tab",this.tabs.selectedIndex);let e={};this.tabs.selectedIndex===0?e={count:1,size:this.d3SizeValue,quality:this.d3QualityValue,style:this.d3StyleValue}:e={count:this.imageCount,size:this.imageSize},this.dialogRef.close(e);}static{this.ɵfac=function(i){return new(i||t)(D(At),D(Yt));};}static{this.ɵcmp=E({type:t,selectors:[["image-create-dialog"]],viewQuery:function(i,r){if(i&1&&($(C_,5),$(KW,5)),i&2){let o;R(o=O())&&(r.tabs=o.first),R(o=O())&&(r.submitButton=o.first);}},decls:68,vars:28,consts:[["mysubmit",""],[1,"modal-content"],["mat-dialog-title",""],["mat-dialog-content",""],["mat-stretch-tabs","false","mat-align-tabs","center"],["label","Dalle-3"],[2,"margin-right","10px"],[3,"valueChange","value"],[3,"value"],["label","Dalle-2"],["id","image-count",2,"margin-right","10px"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["id","image-size"],["value","256x256"],["value","512x512"],["value","1024x1024"],["mat-dialog-actions",""],["mat-button","","mat-dialog-close",""],["id","mysubmitbutton","mat-button","",3,"click"]],template:function(i,r){if(i&1){let o=K();m(0,"div",1)(1,"h1",2),f(2),u(),m(3,"div",3)(4,"p"),f(5),u(),m(6,"p"),f(7),u(),m(8,"mat-tab-group",4)(9,"mat-tab",5),w(10,"br"),m(11,"mat-form-field",6)(12,"mat-label"),f(13),u(),m(14,"mat-select",7),pi("valueChange",function(s){return k(o),Ci(r.d3SizeValue,s)||(r.d3SizeValue=s),M(s);}),m(15,"mat-option",8),f(16),u(),m(17,"mat-option",8),f(18),u(),m(19,"mat-option",8),f(20),u()()(),m(21,"mat-form-field",6)(22,"mat-label"),f(23),u(),m(24,"mat-select",7),pi("valueChange",function(s){return k(o),Ci(r.d3QualityValue,s)||(r.d3QualityValue=s),M(s);}),m(25,"mat-option",8),f(26),u(),m(27,"mat-option",8),f(28,"high definition"),u()()(),m(29,"mat-form-field",6)(30,"mat-label"),f(31),u(),m(32,"mat-select",7),pi("valueChange",function(s){return k(o),Ci(r.d3StyleValue,s)||(r.d3StyleValue=s),M(s);}),m(33,"mat-option",8),f(34),u(),m(35,"mat-option",8),f(36),u()()()(),m(37,"mat-tab",9)(38,"mat-form-field",10)(39,"mat-label"),f(40),u(),m(41,"mat-select",7),pi("valueChange",function(s){return k(o),Ci(r.imageCount,s)||(r.imageCount=s),M(s);}),m(42,"mat-option",11),f(43,"1"),u(),m(44,"mat-option",12),f(45,"2"),u(),m(46,"mat-option",13),f(47,"3"),u(),m(48,"mat-option",14),f(49,"4"),u(),m(50,"mat-option",15),f(51,"5"),u()()(),m(52,"mat-form-field",16)(53,"mat-label"),f(54),u(),m(55,"mat-select",7),pi("valueChange",function(s){return k(o),Ci(r.imageSize,s)||(r.imageSize=s),M(s);}),m(56,"mat-option",17),f(57,"256x256"),u(),m(58,"mat-option",18),f(59,"512x512"),u(),m(60,"mat-option",19),f(61,"1024x1024"),u()()()()()(),m(62,"div",20)(63,"button",21),f(64),u(),m(65,"button",22,0),S("click",function(){return k(o),M(r.createImages());}),f(67),u()()();}i&2&&(d(2),C(r.data.title),d(3),C(r.data.msg),d(2),C(r.data.msg2),d(6),C(r.sizeTxt),d(),mi("value",r.d3SizeValue),d(),G("value",r.D3Size._1024x1024),d(),C(r.D3Size._1024x1024),d(),G("value",r.D3Size._1792x1024),d(),C(r.D3Size._1792x1024),d(),G("value",r.D3Size._1024x1792),d(),C(r.D3Size._1024x1792),d(3),C(r.qualityTxt),d(),mi("value",r.d3QualityValue),d(),G("value",r.D3Quality.standard),d(),C(r.D3Quality.standard),d(),G("value",r.D3Quality.hd),d(4),C(r.styleTxt),d(),mi("value",r.d3StyleValue),d(),G("value",r.D3Style.vivid),d(),C(r.D3Style.vivid),d(),G("value",r.D3Style.natural),d(),C(r.D3Style.natural),d(4),C(r.countTxt),d(),mi("value",r.imageCount),d(13),C(r.sizeTxt),d(),mi("value",r.imageSize),d(9),C(r.closeTxt),d(3),N(" ",r.submitTxt," "));},dependencies:[j,vt,Ii,ri,di,oi,ce,ye,_o,Lt,Nt,Yl,rs,mP,S1,C_],encapsulation:2});}}return t;})();var hP=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,r){},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}
`],encapsulation:2,changeDetection:0});}return t;})(),ZW={passive:!0},fP=(()=>{class t{_platform=p(Ae);_ngZone=p(ae);_renderer=p(Fi).createRenderer(null,null);_styleLoader=p(nt);_monitoredElements=new Map();constructor(){}monitor(e){if(!this._platform.isBrowser)return Di;this._styleLoader.load(hP);let i=Un(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new H(),a="cdk-text-field-autofilled",s=c=>{c.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})));},l=this._ngZone.runOutsideAngular(()=>(i.classList.add("cdk-text-field-autofill-monitored"),Wt(this._renderer,i,"animationstart",s,ZW)));return this._monitoredElements.set(i,{subject:o,unlisten:l}),o;}stopMonitoring(e){let i=Un(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i));}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i));}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();var ya=(()=>{class t{_elementRef=p(J);_platform=p(Ae);_ngZone=p(ae);_renderer=p(tt);_resizeEvents=new H();_previousValue;_initialHeight;_destroyed=new H();_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows;}set minRows(e){this._minRows=$n(e),this._setMinHeight();}get maxRows(){return this._maxRows;}set maxRows(e){this._maxRows=$n(e),this._setMaxHeight();}get enabled(){return this._enabled;}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset());}get placeholder(){return this._textareaElement.placeholder;}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight();}_cachedLineHeight;_cachedPlaceholderHeight;_cachedScrollTop;_document=p(_e,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){p(nt).load(hP),this._textareaElement=this._elementRef.nativeElement;}_setMinHeight(){let e=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.minHeight=e);}_setMaxHeight(){let e=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.maxHeight=e);}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe(Ic(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0);});}),this._isViewInited=!0,this.resizeToFitContent(!0));}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete();}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1),i=e.style;e.rows=1,i.position="absolute",i.visibility="hidden",i.border="none",i.padding="0",i.height="",i.minHeight="",i.maxHeight="",i.top=i.bottom=i.left=i.right="auto",i.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight();}_measureScrollHeight(){let e=this._textareaElement,i=e.style.marginBottom||"",r=this._platform.FIREFOX,o=r&&this._hasFocus,a=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";o&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),o&&(e.style.marginBottom=i),s;}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return;}let e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e;}_handleFocusEvent=e=>{this._hasFocus=e.type==="focus";};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent();}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedScrollTop=this._textareaElement.scrollTop,!this._cachedLineHeight))return;let i=this._elementRef.nativeElement,r=i.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;let o=this._measureScrollHeight(),a=Math.max(o,this._cachedPlaceholderHeight||0);i.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(i)):setTimeout(()=>this._scrollToCaretPosition(i));}),this._previousValue=r,this._previousMinRows=this._minRows;}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight);}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:i,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&(e.setSelectionRange(i,r),e.scrollTop=this._cachedScrollTop);}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(i,r){i&1&&S("input",function(){return r._noopInputHandler();});},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",U],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});}return t;})(),gP=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({});}return t;})();var _P=new A("MAT_INPUT_VALUE_ACCESSOR");var XW=["button","checkbox","file","hidden","image","radio","range","reset","submit"],JW=new A("MAT_INPUT_CONFIG"),Ai=(()=>{class t{_elementRef=p(J);_platform=p(Ae);ngControl=p(Mr,{optional:!0,self:!0});_autofillMonitor=p(fP);_ngZone=p(ae);_formField=p(xp,{optional:!0});_renderer=p(tt);_uid=p(Ye).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=p(JW,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new H();controlType="mat-input";autofilled=!1;get disabled(){return this._disabled;}set disabled(e){this._disabled=Ji(e),this.focused&&(this.focused=!1,this.stateChanges.next());}_disabled=!1;get id(){return this._id;}set id(e){this._id=e||this._uid;}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(wt.required)??!1;}set required(e){this._required=Ji(e);}_required;get type(){return this._type;}set type(e){let i=this._type;this._type=e||"text",this._validateType(),!this._isTextarea&&pw().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._type!==i&&this._ensureWheelDefaultBehavior();}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher;}set errorStateMatcher(e){this._errorStateTracker.matcher=e;}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value;}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next());}get readonly(){return this._readonly;}set readonly(e){this._readonly=Ji(e);}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState;}set errorState(e){this._errorStateTracker.errorState=e;}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>pw().has(e));constructor(){let e=p(os,{optional:!0}),i=p(dr,{optional:!0}),r=p(Us),o=p(_P,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?ks(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener);}),this._errorStateTracker=new zd(r,this.ngControl,i,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&_m(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next();});}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next();});}ngOnChanges(){this.stateChanges.next();}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.();}ngDoCheck(){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();}focus(e){this._elementRef.nativeElement.focus(e);}updateErrorState(){this._errorStateTracker.updateErrorState();}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.setSelectionRange(0,0);}this.focused=e,this.stateChanges.next();}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next());}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder");}}_getPlaceholder(){return this.placeholder||null;}_validateType(){XW.indexOf(this._type)>-1;}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1;}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput;}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled;}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label);}else return this.focused&&!this.disabled||!this.empty;}setDescribedByIds(e){let i=this._elementRef.nativeElement,r=i.getAttribute("aria-describedby"),o;if(r){let a=this._formFieldDescribedBy||e;o=e.concat(r.split(" ").filter(s=>s&&!a.includes(s)));}else o=e;this._formFieldDescribedBy=e,o.length?i.setAttribute("aria-describedby",o.join(" ")):i.removeAttribute("aria-describedby");}onContainerClick(){this.focused||this.focus();}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1);}_iOSKeyupListener=e=>{let i=e.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0));};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){this._cleanupWebkitWheel?.(),this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._cleanupWebkitWheel=this._renderer.listen(this._elementRef.nativeElement,"wheel",this._webkitBlinkWheelListener));}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null;}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,r){i&1&&S("focus",function(){return r._focusChang��ed(!0);})("blur",function(){return r._focusChanged(!1);})("input",function(){return r._onInput();}),i&2&&(ki("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),ee("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),Z("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._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",U]},exportAs:["matInput"],features:[be([{provide:yp,useExisting:t}]),He]});}return t;})(),kt=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,Rt,Rt,gP,he]});}return t;})();var eG=["mat-internal-form-field",""],tG=["*"],w_=(()=>{class t{labelPosition;static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&Z("mdc-form-field--align-end",r.labelPosition==="before");},inputs:{labelPosition:"labelPosition"},attrs:eG,ngContentSelectors:tG,decls:1,vars:0,template:function(i,r){i&1&&(De(),le(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}
`],encapsulation:2,changeDetection:0});}return t;})();var nG=["input"],rG=["label"],oG=["*"],aG=new A("mat-checkbox-default-options",{providedIn:"root",factory:vP});function vP(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1};}var Ln=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t;}(Ln||{}),sG={provide:Sr,useExisting:yi(()=>D_),multi:!0},I1=class{source;checked;},bP=vP(),D_=(()=>{class t{_elementRef=p(J);_changeDetectorRef=p(pe);_ngZone=p(ae);_animationMode=p(Ne,{optional:!0});_options=p(aG,{optional:!0});focus(){this._inputElement.nativeElement.focus();}_createChangeEvent(e){let i=new I1();return i.source=this,i.checked=e,i;}_getAnimationTargetElement(){return this._inputElement?.nativeElement;}_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"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`;}required;labelPosition="after";name=null;change=new V();indeterminateChange=new V();value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Ln.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(nt).load(ii);let e=p(new Ki("tabindex"),{optional:!0});this._options=this._options||bP,this.color=this._options.color||bP.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(Ye).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1;}ngOnChanges(e){e.required&&this._validatorChangeFn();}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate);}get checked(){return this._checked;}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck());}_checked=!1;get disabled(){return this._disabled;}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck());}_disabled=!1;get indeterminate(){return this._indeterminate;}set indeterminate(e){let i=e!=this._indeterminate;this._indeterminate=e,i&&(this._indeterminate?this._transitionCheckState(Ln.Indeterminate):this._transitionCheckState(this.checked?Ln.Checked:Ln.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate);}_indeterminate=!1;_isRippleDisabled(){return this.disableRipple||this.disabled;}_onLabelTextChange(){this._changeDetectorRef.detectChanges();}writeValue(e){this.checked=!!e;}registerOnChange(e){this._controlValueAccessorChangeFn=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e;}validate(e){return this.required&&e.value!==!0?{required:!0}:null;}registerOnValidatorChange(e){this._validatorChangeFn=e;}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o);},1e3);});}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked);}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked);}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate);}),this._checked=!this._checked,this._transitionCheckState(this._checked?Ln.Checked:Ln.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate);}_onInteractionEvent(e){e.stopPropagation();}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck();});}_getAnimationClassForCheckStateTransition(e,i){if(this._animationMode==="NoopAnimations")return"";switch(e){case Ln.Init:if(i===Ln.Checked)return this._animationClasses.uncheckedToChecked;if(i==Ln.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Ln.Unchecked:return i===Ln.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Ln.Checked:return i===Ln.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Ln.Indeterminate:return i===Ln.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked;}return"";}_syncIndeterminate(e){let i=this._inputElement;i&&(i.nativeElement.indeterminate=e);}_onInputClick(){this._handleInputClick();}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus();}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation();}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&($(nG,5),$(rG,5)),i&2){let o;R(o=O())&&(r._inputElement=o.first),R(o=O())&&(r._labelElement=o.first);}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,r){i&2&&(ki("id",r.id),ee("tabindex",null)("aria-label",null)("aria-labelledby",null),bt(r.color?"mat-"+r.color:"mat-accent"),Z("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked)("mat-mdc-checkbox-disabled-interactive",r.disabledInteractive));},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",U],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",U],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",U],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ut(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",U],checked:[2,"checked","checked",U],disabled:[2,"disabled","disabled",U],indeterminate:[2,"indeterminate","indeterminate",U]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[be([sG,{provide:ho,useExisting:t,multi:!0}]),He],ngContentSelectors:oG,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(i,r){if(i&1){let o=K();De(),m(0,"div",3),S("click",function(s){return k(o),M(r._preventBubblingFromLabel(s));}),m(1,"div",4,0)(3,"div",5),S("click",function(){return k(o),M(r._onTouchTargetClick());}),u(),m(4,"input",6,1),S("blur",function(){return k(o),M(r._onBlur());})("click",function(){return k(o),M(r._onInputClick());})("change",function(s){return k(o),M(r._onInteractionEvent(s));}),u(),w(6,"div",7),m(7,"div",8),Zt(),m(8,"svg",9),w(9,"path",10),u(),zo(),w(10,"div",11),u(),w(11,"div",12),u(),m(12,"label",13,2),le(14),u()();}if(i&2){let o=We(2);v("labelPosition",r.labelPosition),d(4),Z("mdc-checkbox--selected",r.checked),v("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled&&!r.disabledInteractive)("id",r.inputId)("required",r.required)("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex),ee("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("aria-controls",r.ariaControls)("aria-disabled",r.disabled&&r.disabledInteractive?!0:null)("aria-expanded",r.ariaExpanded)("aria-owns",r.ariaOwns)("name",r.name)("value",r.value),d(7),v("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),d(),v("for",r.inputId);}},dependencies:[an,w_],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(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-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(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-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(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-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(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-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(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-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(--mdc-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(--mdc-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(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.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(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-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(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-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: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(--mdc-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(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-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(--mdc-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(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-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(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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(--mdc-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(--mdc-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(--mdc-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:CanvasText}}.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(--mdc-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(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.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))}.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:48px;width: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:""}
`],encapsulation:2,changeDetection:0});}return t;})();var E_=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[D_,he,he]});}return t;})();var cG=["*"];function dG(t,n){t&1&&le(0);}var T1=(()=>{class t{_elementRef=p(J);constructor(){}focus(){this._elementRef.nativeElement.focus();}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});}return t;})(),A1=(()=>{class t{template=p(st);constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkStepLabel",""]]});}return t;})();var ss={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},uG=new A("STEPPER_GLOBAL_OPTIONS"),k_=(()=>{class t{_stepperOptions;_stepper=p($d);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new V();label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride;}set completed(e){this._completedOverride=e;}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted;}get hasError(){return this._customError==null?this._getDefaultError():this._customError;}set hasError(e){this._customError=e;}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted;}constructor(){let e=p(uG,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1;}select(){this._stepper.selected=this;}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset());}ngOnChanges(){this._stepper._stateChanged();}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this));}_showError(){return this._stepperOptions.showError??this._customError!=null;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["cdk-step"]],contentQueries:function(i,r,o){if(i&1&&(Ee(o,A1,5),Ee(o,bn,5)),i&2){let a;R(a=O())&&(r.stepLabel=a.first),R(a=O())&&(r._childForms=a);}},viewQuery:function(i,r){if(i&1&&$(st,7),i&2){let o;R(o=O())&&(r.content=o.first);}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",U],optional:[2,"optional","optional",U],completed:[2,"completed","completed",U],hasError:[2,"hasError","hasError",U]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[He],ngContentSelectors:cG,decls:1,vars:0,template:function(i,r){i&1&&(De(),I(0,dG,1,0,"ng-template"));},encapsulation:2,changeDetection:0});}return t;})(),$d=(()=>{class t{_dir=p(Et,{optional:!0});_changeDetectorRef=p(pe);_elementRef=p(J);_destroyed=new H();_keyManager;_steps;steps=new pn();_stepHeader;_sortedHeaders=new pn();linear=!1;get selectedIndex(){return this._selectedIndex;}set selectedIndex(e){this._steps?(this._isValidIndex(e),this._selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex=e;}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0;}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1;}selectionChange=new V();selectedIndexChange=new V();_groupId=p(Ye).getId("cdk-stepper-");get orientation(){return this._orientation;}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical");}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(ht(this._steps),Ve(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.notifyOnChanges();});}ngAfterViewInit(){if(this._stepHeader.changes.pipe(ht(this._stepHeader),Ve(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,r)=>i._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges();}),this._keyManager=new uo(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:se()).pipe(ht(this._layoutDirection()),Ve(this._destroyed)).subscribe(e=>this._keyManager��.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0));}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0),this.linear&&this._selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex);for(let i of e)i._markAsInteracted();}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete();}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1);}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0);}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged();}_getStepLabelId(e){return`${this._groupId}-label-${e}`;}_getStepContentId(e){return`${this._groupId}-content-${e}`;}_stateChanged(){this._changeDetectorRef.markForCheck();}_getAnimationDirection(e){let i=e-this._selectedIndex;return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current";}_getIndicatorType(e,i=ss.NUMBER){let r=this.steps.toArray()[e],o=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,o):this._getGuidelineLogic(r,o,i);}_getDefaultIndicatorLogic(e,i){return e._showError()&&e.hasError&&!i?ss.ERROR:!e.completed||i?ss.NUMBER:e.editable?ss.EDIT:ss.DONE;}_getGuidelineLogic(e,i,r=ss.NUMBER){return e._showError()&&e.hasError&&!i?ss.ERROR:e.completed&&!i?ss.DONE:e.completed&&i?r:e.editable&&i?ss.EDIT:r;}_isCurrentStep(e){return this._selectedIndex===e;}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex;}_updateSelectedItemIndex(e){let i=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:i[e],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged();}_onKeydown(e){let i=ti(e),r=e.keyCode,o=this._keyManager;o.activeItemIndex!=null&&!i&&(r===32||r===13)?(this.selectedIndex=o.activeItemIndex,e.preventDefault()):o.setFocusOrigin("keyboard").onKeydown(e);}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(i=>{let r=i.stepControl;return(r?r.invalid||r.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride;}):!1;}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr";}_containsFocus(){let e=this._elementRef.nativeElement,i=co();return e===i||e.contains(i);}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length);}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(i,r,o){if(i&1&&(Ee(o,k_,5),Ee(o,T1,5)),i&2){let a;R(a=O())&&(r._steps=a),R(a=O())&&(r._stepHeader=a);}},inputs:{linear:[2,"linear","linear",U],selectedIndex:[2,"selectedIndex","selectedIndex",ut],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]});}return t;})(),yP=(()=>{class t{_stepper=p($d);type="submit";constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(i,r){i&1&&S("click",function(){return r._stepper.next();}),i&2&&ki("type",r.type);},inputs:{type:"type"}});}return t;})(),xP=(()=>{class t{_stepper=p($d);type="button";constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(i,r){i&1&&S("click",function(){return r._stepper.previous();}),i&2&&ki("type",r.type);},inputs:{type:"type"}});}return t;})(),CP=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[Xo]});}return t;})();function mG(t,n){if(t&1&&Xt(0,2),t&2){let e=y();v("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext());}}function pG(t,n){if(t&1&&(m(0,"span",7),f(1),u()),t&2){let e=y(2);d(),C(e._getDefaultTextForState(e.state));}}function hG(t,n){if(t&1&&(m(0,"span",8),f(1),u()),t&2){let e=y(3);d(),C(e._intl.completedLabel);}}function fG(t,n){if(t&1&&(m(0,"span",8),f(1),u()),t&2){let e=y(3);d(),C(e._intl.editableLabel);}}function gG(t,n){if(t&1&&(I(0,hG,2,1,"span",8)(1,fG,2,1,"span",8),m(2,"mat-icon",7),f(3),u()),t&2){let e=y(2);Q(e.state==="done"?0:e.state==="edit"?1:-1),d(3),C(e._getDefaultTextForState(e.state));}}function _G(t,n){if(t&1&&I(0,pG,2,1,"span",7)(1,gG,4,2),t&2){let e,i=y();Q((e=i.state)==="number"?0:1);}}function bG(t,n){t&1&&(m(0,"div",4),Xt(1,9),u()),t&2&&(d(),v("ngTemplateOutlet",n.template));}function vG(t,n){if(t&1&&(m(0,"div",4),f(1),u()),t&2){let e=y();d(),C(e.label);}}function yG(t,n){if(t&1&&(m(0,"div",5),f(1),u()),t&2){let e=y();d(),C(e._intl.optionalLabel);}}function xG(t,n){if(t&1&&(m(0,"div",6),f(1),u()),t&2){let e=y();d(),C(e.errorMessage);}}var wP=["*"];function CG(t,n){}function wG(t,n){if(t&1&&(le(0),I(1,CG,0,0,"ng-template",0)),t&2){let e=y();d(),v("cdkPortalOutlet",e._portal);}}var DG=["animatedContainer"],DP=(t,n)=>({step:t,i:n});function EG(t,n){t&1&&le(0);}function kG(t,n){t&1&&w(0,"div",7);}function MG(t,n){if(t&1&&(Xt(0,6),I(1,kG,1,0,"div",7)),t&2){let e=n.$implicit,i=n.$index,r=n.$index,o=n.$count;y(2);let a=We(4);v("ngTemplateOutlet",a)("ngTemplateOutletContext",Dl(3,DP,e,i)),d(),Q(r!==o-1?1:-1);}}function SG(t,n){if(t&1&&(m(0,"div",8,1),Xt(2,9),u()),t&2){let e=n.$implicit,i=n.$index,r=y(2);bt("mat-horizontal-stepper-content-"+r._getAnimationDirection(i)),v("id",r._getStepContentId(i)),ee("aria-labelledby",r._getStepLabelId(i))("inert",r.selectedIndex===i?null:""),d(2),v("ngTemplateOutlet",e.content);}}function IG(t,n){if(t&1&&(m(0,"div",2)(1,"div",3),Ut(2,MG,2,6,null,null,Wa),u(),m(4,"div",4),Ut(5,SG,3,6,"div",5,Wa),u()()),t&2){let e=y();d(2),qt(e.steps),d(3),qt(e.steps);}}function TG(t,n){if(t&1&&(m(0,"div",10),Xt(1,6),m(2,"div",11,1)(4,"div",12)(5,"div",13),Xt(6,9),u()()()()),t&2){let e=n.$implicit,i=n.$index,r=n.$index,o=n.$count,a=y(2),s=We(4);d(),v("ngTemplateOutlet",s)("ngTemplateOutletContext",Dl(10,DP,e,i)),d(),Z("mat-stepper-vertical-line",r!==o-1)("mat-vertical-content-container-active",a.selectedIndex===i),ee("inert",a.selectedIndex===i?null:""),d(2),v("id",a._getStepContentId(i)),ee("aria-labelledby",a._getStepLabelId(i)),d(2),v("ngTemplateOutlet",e.content);}}function AG(t,n){if(t&1&&Ut(0,TG,7,13,"div",10,Wa),t&2){let e=y();qt(e.steps);}}function RG(t,n){if(t&1){let e=K();m(0,"mat-step-header",14),S("click",function(){let r=k(e).step;return M(r.select());})("keydown",function(r){k(e);let o=y();return M(o._onKeydown(r));}),u();}if(t&2){let e=n.step,i=n.i,r=y();Z("mat-horizontal-stepper-header",r.orientation==="horizontal")("mat-vertical-stepper-header",r.orientation==="vertical"),v("tabIndex",r._getFocusIndex()===i?0:-1)("id",r._getStepLabelId(i))("index",i)("state",r._getIndicatorType(i,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===i)("active",r._stepIsNavigable(i,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(i,e))("color",e.color||r.color),ee("aria-posinset",i+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(i))("aria-selected",r.selectedIndex==i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",r._stepIsNavigable(i,e)?null:!0);}}var ec=(()=>{class t extends A1{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["","matStepLabel",""]],features:[W]});}return t;})(),M_=(()=>{class t{changes=new H();optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function OG(t){return t||new M_();}var PG={provide:M_,deps:[[new _r(),new no(),M_]],useFactory:OG},R1=(()=>{class t extends T1{_intl=p(M_);_focusMonitor=p(Mi);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=p(nt);e.load(ii),e.load(Br);let i=p(pe);this._intlSubscription=this._intl.changes.subscribe(()=>i.markForCheck());}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0);}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef);}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i);}_stringLabel(){return this.label instanceof ec?null:this.label;}_templateLabel(){return this.label instanceof ec?this.label:null;}_getHostElement(){return this._elementRef.nativeElement;}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional};}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(i,r){i&2&&bt("mat-"+(r.color||"primary"));},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[W],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(i,r){if(i&1&&(w(0,"div",0),m(1,"div")(2,"div",1),I(3,mG,1,2,"ng-container",2)(4,_G,2,1),u()(),m(5,"div",3),I(6,bG,2,1,"div",4)(7,vG,2,1,"div",4)(8,yG,2,1,"div",5)(9,xG,2,1,"div",6),u()),i&2){let o;v("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disableRipple),d(),Nr("mat-step-icon-state-",r.state," mat-step-icon"),Z("mat-step-icon-selected",r.selected),d(2),Q(r.iconOverrides&&r.iconOverrides[r.state]?3:4),d(2),Z("mat-step-label-active",r.active)("mat-step-label-selected",r.selected)("mat-step-label-error",r.state=="error"),d(),Q((o=r._templateLabel())?6:r._stringLabel()?7:-1,o),d(2),Q(r.optional&&r.state!="error"?8:-1),d(),Q(r.state==="error"?9:-1);}},dependencies:[an,Ts,Oe],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-inverse-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-inverse-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-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);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
`],encapsulation:2,changeDetection:0});}return t;})(),FG=(()=>{class t{templateRef=p(st);name;constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}});}return t;})(),NG=(()=>{class t{_template=p(st);constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["ng-template","matStepContent",""]]});}return t;})(),Op=(()=>{class t extends k_{_errorStateMatcher=p(Us,{skipSelf:!0});_viewContainerRef=p(Dt);_isSelected=ve.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(ai(()=>this._stepper.selectionChange.pipe(ue(e=>e.selectedStep===this),ht(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new $i(this._lazyContent._template,this._viewContainerRef));});}ngOnDestroy(){this._isSelected.unsubscribe();}isErrorState(e,i){let r=this._errorStateMatcher.isErrorState(e,i),o=!!(e&&e.invalid&&this.interacted);return r||o;}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-step"]],contentQueries:function(i,r,o){if(i&1&&(Ee(o,ec,5),Ee(o,NG,5)),i&2){let a;R(a=O())&&(r.stepLabel=a.first),R(a=O())&&(r._lazyContent=a.first);}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[be([{provide:Us,useExisting:t},{provide:k_,useExisting:t}]),W],ngContentSelectors:wP,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(i,r){i&1&&(De(),I(0,wG,2,1,"ng-template"));},dependencies:[en],encapsulation:2,changeDetection:0});}return t;})(),Pp=(()=>{class t extends $d{_ngZone=p(ae);_renderer=p(tt);_animationsModule=p(Ne,{optional:!0});_cleanupTransition;_isAnimating=Zi(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new pn();_icons;animationDone=new V();disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration;}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e;}_animationDuration="";_isServer=!p(Ae).isBrowser;constructor(){super();let i=p(J).nativeElement.nodeName.toLowerCase();this.orientation=i==="mat-vertical-stepper"?"vertical":"horizontal";}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:i})=>this._iconOverrides[e]=i),this.steps.changes.pipe(Ve(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(Ve(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0);}),this._ngZone.runOutsideAngular(()=>{this._animationsModule!=="NoopAnimations"&&setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend);},200);});}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(ht(null),Ve(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged();}));}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.();}_stepIsNavigable(e,i){return i.completed||this.selectedIndex===e||!this.linear;}_getAnimationDuration(){return this._animationsModule==="NoopAnimations"?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms";}_handleTransitionend=e=>{let i=e.target;if(!i)return;let r=this.orientation==="horizontal"&&e.propertyName==="transform"&&i.classList.contains("mat-horizontal-stepper-content-current"),o=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&i.classList.contains("mat-vertical-content-container-active");(r||o)&&this._animatedContainers.find(s=>s.nativeElement===i)&&this._onAnimationDone();};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit();}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(i,r,o){if(i&1&&(Ee(o,Op,5),Ee(o,FG,5)),i&2){let a;R(a=O())&&(r._steps=a),R(a=O())&&(r._icons=a);}},viewQuery:function(i,r){if(i&1&&($(R1,5),$(DG,5)),i&2){let o;R(o=O())&&(r._stepHeader=o),R(o=O())&&(r._animatedContainers=o);}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(i,r){i&2&&(ee("aria-orientation",r.orientation),xi("--mat-stepper-animation-duration",r._getAnimationDuration()),Z("mat-stepper-horizontal",r.orientation==="horizontal")("mat-stepper-vertical",r.orientation==="vertical")("mat-stepper-label-position-end",r.orientation==="horizontal"&&r.labelPosition=="end")("mat-stepper-label-position-bottom",r.orientation==="horizontal"&&r.labelPosition=="bottom")("mat-stepper-header-position-bottom",r.headerPosition==="bottom")("mat-stepper-animating",r._isAnimating()));},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[be([{provide:$d,useExisting:t}]),W],ngContentSelectors:wP,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",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"]],template:function(i,r){if(i&1&&(De(),I(0,EG,1,0)(1,IG,7,0,"div",2)(2,AG,2,0)(3,RG,1,23,"ng-template",null,0,Vr)),i&2){let o;Q(r._isServer?0:-1),d(),Q((o=r.orientation)==="horizontal"?1:o==="vertical"?2:-1);}},dependencies:[Ts,R1],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-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, 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;height:72px;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::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}
`],encapsulation:2,changeDetection:0});}return t;})(),S_=(()=>{class t extends yP{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(i,r){i&2&&ki("type",r.type);},features:[W]});}return t;})(),I_=(()=>{class t extends xP{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(i,r){i&2&&ki("type",r.type);},features:[W]});}return t;})(),T_=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[PG,Us],imports:[he,On,CP,ke,sr,Pp,R1,he]});}return t;})();function LG(t,n){if(t&1&&f(0),t&2){let e=y();C(e.step3Txt);}}function VG(t,n){if(t&1&&(m(0,"div"),f(1),u()),t&2){let e=y();d(),C(e.confirmEditTxt);}}function zG(t,n){if(t&1&&(m(0,"div"),f(1),u()),t&2){let e=y();d(),C(e.confirmCreateTxt);}}function BG(t,n){if(t&1&&(m(0,"p",39),f(1),u()),t&2){let e=y();d(),C(e.error1);}}function jG(t,n){if(t&1&&(m(0,"p",39),f(1),u()),t&2){let e=y();d(),C(e.error2);}}var kP=(()=>{class t{constructor(e,i,r){this.service=e,this.formBuilder=i,this.step1Txt="Appearance",this.step2Txt="Features",this.step3Txt="Confirmation",this.nextTxt="Next",this.backTxt="Back",this.confirmTxt="Confirm",this.requiredTxt="Required Field",this.minLengthTxt="Field has a minimum length of ",this.submitTxt="Submit",this.messageTxt="Initial User Message",this.messageHintTxt="Ex. How many inches in a foot?",this.messageHintLabelTxt="Hint for user initial message",this.messageHintLabelHintTxt="Enter your question here",this.instructionsTxt="Instructions",this.instructionsHintTxt="Instructions for the conversation.",this.appearanceTxt="Appearance",this.cardIdTxt="Slug",this.cardIdTipTxt="A short name for the url (use dashes and lowercase).",this.cardTitleTxt="Name",this.cardTitleTipTxt="Name is used on dashboards and navigation.",this.cardSubtitleTxt="Category",this.cardSubtitleTipTxt="Category is used on dashboards and elsewhere.",this.cardDescriptionTxt="Description",this.cardDescriptionTipTxt="Description is used primarily on the dashboard and detail page for the widget.",this.cardHelpTxt="Help",this.cardHelpTipTxt="Widget help.",this.cardIconTxt="Icon",this.cardIconTipTxt="Widget Icon",this.cardEnabledTxt="Enabled",this.cardEnabledTipTxt="Whether or not the widget is enabled.",this.cardHiddenTxt="Hidden",this.cardHiddenTipTxt="Whether or not the widget is hidden.",this.featuresTxt="Features",this.promptTxt="Prompt",this.promptTipTxt="Enable the user to respond with text input.",this.newTxt="New",this.newTipTxt="Allow the user to create a new conversation.",this.saveTxt="Save",this.saveTipTxt="Allow the user to save the conversation to a CMS.",this.clearTxt="Clear",this.clearTipTxt="Allow user to clear the current prompt.",this.shareTxt="Share",this.shareTipTxt="Share this content with others.",this.sendTxt="Send",this.sendTipTxt="Allow user to send responses.",this.refreshTxt="Refresh",this.refreshTipTxt="Allow the user to refresh the conversation.",this.copyToClipboardTxt="Copy to Clipboard",this.copyToClipboardTipTxt="Allow user to copy parts of the conversation to their clipboard.",this.copyToPromptTxt="Copy to Prompt",this.copyToPromptTipTxt="Allow user to copy parts of the conversation to the current prompt.",this.createImageFromTextTxt="Create Image from Text",this.createImageFromTextTipTxt="Allow user to create an image from parts of the conversation.",this.streamedResponsesTxt="Streamed Responses",this.streamedResponsesTipTxt="Receive AI responses tokens as they are produced by the LLM.",this.autoSendTxt="AutoSend",this.autoSendEnabledTxt="Enabled",this.autoSendEnabledTipTxt="Initial message sent automatically.",this.addToViewerTxt="Add to Viewer",this.addToViewerTipTxt="Show initial message in viewer.",this.addUserNameTxt="Add User Name",this.addUserNameTipTxt="Add user name to initial message.",this.introTxt="Intro",this.introTipTxt="Initial message body",this.promptsTxt="Prompts",this.promptsEnabledTxt="Enabled",this.promptsEnabledTipTxt="Enable user to access stored prompts.",this.promptsImagePromptTxt="Image Prompt",this.promptsImagePromptTipTxt="User can respond with an image.",this.confirmCreateTxt="Create new widget?",this.confirmEditTxt="Confirm widget changes?",this.editConfig=rt(),this.configSaveEvent=new V(),this.widgetData=this.service.createDefaultWidgetConfig(),this.appearanceFormError="Appearance form is invalid",this.featuresFormError="Features form is invalid",this.error1="",this.error2="",this.stepperOrientation=r.observe("(min-width: 800px)").pipe(ue(({matches:o})=>o?"horizontal":"vertical"));}ngOnInit(){let e=this.editConfig();console.log("edit config",e),e?this.widgetData=e:(console.log("default widget data: ",this.widgetData),this.widgetData.message="",this.widgetData.messageHint="",this.widgetData.instructions="You are a helpful assistant.",this.widgetData.features.streamedResponses=!0,this.widgetData.features.clear=!0,this.widgetData.features.save=!0,this.widgetData.card={id:"",title:"",subtitle:"Chatbot Widget",description:"",help:"",icon:"auto_awesome",quickLinks:[],link:{name:"Action Link Title",href:"#"},weight:10,enabled:!0,hidden:!1,dynamic:!0}),th��is.buildForm();}buildForm(){this.firstFormGroup=this.formBuilder.group({id:[this.widgetData.card?.id],title:[this.widgetData.card?.title,[wt.required]],subtitle:[this.widgetData.card?.subtitle,[wt.required]],description:[this.widgetData.card?.description,[wt.required]],help:[this.widgetData.card?.help,[wt.required]],icon:[this.widgetData.card?.icon,[wt.required,wt.minLength(3)]],message:[this.widgetData.message],messageHint:[this.widgetData.messageHint],instructions:this.widgetData.instructions||"",enabled:this.widgetData.card?.enabled,hidden:this.widgetData.card?.hidden}),this.secondFormGroup=this.formBuilder.group({prompt:this.widgetData.features.prompt,new:this.widgetData.features.new,save:this.widgetData.features.save,clear:this.widgetData.features.clear,share:this.widgetData.features.share,send:this.widgetData.features.send,refresh:this.widgetData.features.refresh,copyToClipboard:this.widgetData.features.copyToClipboard,copyToPrompt:this.widgetData.features.copyToPrompt,streamedResponses:this.widgetData.features.streamedResponses,createImageFromText:this.widgetData.features.createImageFromText,autoSend:this.formBuilder.group({enabled:this.widgetData.features.autoSend.enabled,addToViewer:this.widgetData.features.autoSend.addToViewer,addUserName:this.widgetData.features.autoSend.addUserName,intro:this.widgetData.features.autoSend.intro}),prompts:this.formBuilder.group({enabled:this.widgetData.features.prompts.enabled,imagePrompt:this.widgetData.features.prompts.imagePrompt}),images:this.formBuilder.group({imageCount:this.widgetData.features.imageCount,imageSize:this.widgetData.features.imageSize,uploadImages:this.widgetData.features.uploadImages,uploadImagesImageSize:this.widgetData.features.uploadImagesImageSize,downloadImages:this.widgetData.features.downloadImages,saveImagePrompt:this.widgetData.features.saveImagePrompt})});}isValid(){return!1;}showSubmitErrors(){this.error1=this.firstFormGroup.valid?"":this.appearanceFormError,this.error2=this.secondFormGroup.valid?"":this.featuresFormError;}submit(){if(console.log("submit form 1: ",this.firstFormGroup),console.log("submit form 2: ",this.secondFormGroup),this.showSubmitErrors(),!this.firstFormGroup.valid||!this.secondFormGroup.valid){console.log("form is invalid");return;}let e=this.editConfig(),i={storageId:e?e.storageId:void 0,endpoint:oe.unknown,messageType:"Chat Message",message:this.firstFormGroup.get("message")?.value,messageHint:this.firstFormGroup.get("messageHint")?.value,instructions:this.firstFormGroup.get("instructions")?.value,card:{id:this.firstFormGroup.get("id")?.value,title:this.firstFormGroup.get("title")?.value,subtitle:this.firstFormGroup.get("subtitle")?.value,description:this.firstFormGroup.get("description")?.value,help:this.firstFormGroup.get("help")?.value,icon:this.firstFormGroup.get("icon")?.value,quickLinks:[],link:{name:"Action Link Title",href:"#"},weight:10,enabled:this.firstFormGroup.get("enabled")?.value,hidden:this.firstFormGroup.get("hidden")?.value,dynamic:!0},features:{prompt:this.secondFormGroup.get("prompt")?.value,new:this.secondFormGroup.get("new")?.value,save:this.secondFormGroup.get("save")?.value,clear:this.secondFormGroup.get("clear")?.value,share:this.secondFormGroup.get("share")?.value,send:this.secondFormGroup.get("send")?.value,refresh:this.secondFormGroup.get("refresh")?.value,copyToClipboard:this.secondFormGroup.get("copyToClipboard")?.value,copyToPrompt:this.secondFormGroup.get("copyToPrompt")?.value,streamedResponses:this.secondFormGroup.get("streamedResponses")?.value,createImageFromText:this.secondFormGroup.get("createImageFromText")?.value,autoSend:{enabled:this.secondFormGroup.get("autoSend.enabled")?.value,addToViewer:this.secondFormGroup.get("autoSend.addToViewer")?.value,addUserName:this.secondFormGroup.get("autoSend.addUserName")?.value,intro:this.secondFormGroup.get("autoSend.intro")?.value},prompts:{enabled:this.secondFormGroup.get("prompts.enabled")?.value,imagePrompt:this.secondFormGroup.get("prompts.imagePrompt")?.value},imageCount:this.secondFormGroup.get("images.imageCount")?.value,imageSize:this.secondFormGroup.get("images.imageSize")?.value,uploadImages:this.secondFormGroup.get("images.uploadImages")?.value,uploadImagesImageSize:this.secondFormGroup.get("images.uploadImagesImageSize")?.value,downloadImages:this.secondFormGroup.get("images.downloadImages")?.value,saveImagePrompt:this.secondFormGroup.get("images.saveImagePrompt")?.value}};console.log("widget config: ",i),this.configSaveEvent.emit(i);}static{this.ɵfac=function(i){return new(i||t)(D(fe),D($s),D(Ja));};}static{this.ɵcmp=E({type:t,selectors:[["cb-dynamic-widget"]],inputs:{editConfig:[1,"editConfig"]},outputs:{configSaveEvent:"configSaveEvent"},decls:117,vars:69,consts:[[1,"example-stepper",3,"orientation"],[3,"stepControl","label"],[3,"formGroup"],[1,"widget-field","title-widget"],["type","text","matInput","","name","title","formControlName","title",3,"placeholder"],[1,"widget-field"],["type","text","matInput","","name","subtitle","formControlName","subtitle",3,"placeholder"],["type","text","matInput","","name","description","formControlName","description",3,"placeholder"],["type","text","matInput","","name","help","formControlName","help",3,"placeholder"],["type","text","matInput","","name","icon","formControlName","icon",3,"placeholder"],[1,"widget-field-wrapper"],["matInput","","name","message","formControlName","message",3,"placeholder"],["type","text","matInput","","name","messageHint","formControlName","messageHint",3,"placeholder"],["matInput","","name","instructions","formControlName","instructions",3,"placeholder"],["mat-raised-button","","matStepperNext",""],[1,"features-container"],[1,"features"],["formControlName","prompt",3,"matTooltip"],["formControlName","new",3,"matTooltip"],["formControlName","save",3,"matTooltip"],["formControlName","clear",3,"matTooltip"],["formControlName","share",3,"matTooltip"],["formControlName","send",3,"matTooltip"],["formControlName","refresh",3,"matTooltip"],["formControlName","copyToClipboard",3,"matTooltip"],["formControlName","copyToPrompt",3,"matTooltip"],["formControlName","streamedResponses",3,"matTooltip"],["formControlName","createImageFromText",3,"matTooltip"],["formGroupName","prompts",1,"prompts"],[1,"label"],["formControlName","enabled",3,"matTooltip"],["formControlName","imagePrompt",3,"matTooltip"],["formGroupName","autoSend",1,"autosend"],["formControlName","addToViewer",3,"matTooltip"],["formControlName","addUserName",3,"matTooltip"],["matInput","","name","intro","formControlName","intro",3,"placeholder"],["mat-raised-button","","matStepperPrevious",""],["matStepLabel",""],[1,"section-three"],[1,"validation-error"],["mat-raised-button","",3,"click"]],template:function(i,r){i&1&&(m(0,"mat-stepper",0),Ss(1,"async"),m(2,"mat-step",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),f(6),u(),w(7,"input",4),u(),m(8,"mat-form-field",5)(9,"mat-label"),f(10),u(),w(11,"input",6),u(),m(12,"mat-form-field",5)(13,"mat-label"),f(14),u(),w(15,"input",7),u(),m(16,"mat-form-field",5)(17,"mat-label"),f(18),u(),w(19,"input",8),u(),m(20,"mat-form-field",5)(21,"mat-label"),f(22),u(),w(23,"input",9),u(),m(24,"div",10)(25,"mat-form-field",5)(26,"mat-label"),f(27),u(),w(28,"textarea",11),u()(),m(29,"div",10)(30,"mat-form-field",5)(31,"mat-label"),f(32),u(),w(33,"input",12),u()(),m(34,"div",10)(35,"mat-form-field",5)(36,"mat-label"),f(37),u(),w(38,"textarea",13),u()(),m(39,"div")(40,"button",14),f(41),u()()()(),m(42,"mat-step",1)(43,"form",2)(44,"section")(45,"div",15)(46,"section",16)(47,"span")(48,"mat-checkbox",17),f(49),u()(),m(50,"span")(51,"mat-checkbox",18),f(52),u()(),m(53,"span")(54,"mat-checkbox",19),f(55),u()(),m(56,"span")(57,"mat-checkbox",20),f(58),u()(),m(59,"span")(60,"mat-checkbox",21),f(61),u()(),m(62,"span")(63,"mat-checkbox",22),f(64),u()(),m(65,"span")(66,"mat-checkbox",23),f(67),u()(),m(68,"span")(69,"mat-checkbox",24),f(70),u()(),m(71,"span")(72,"mat-checkbox",25),f(73),u()(),m(74,"span")(75,"mat-checkbox",26),f(76),u()(),m(77,"span")(78,"mat-checkbox",27),f(79),u()()(),m(80,"section",28)(81,"span",29),f(82),u(),m(83,"mat-checkbox",30),f(84),u(),m(85,"mat-checkbox",31),f(86),u()(),m(87,"section",32)(88,"span",29),f(89),u(),m(90,"mat-checkbox",30),f(91),u(),m(92,"mat-checkbox",33),f(93),u(),m(94,"mat-checkbox",34),f(95),u(),m(96,"mat-form-field",5)(97,"mat-label"),f(98),u(),w(99,"textarea",35),u()()()(),m(100,"div")(101,"button",36),f(102),u(),m(103,"button",14),f(104),u()()()(),m(105,"mat-step"),I(106,LG,1,1,"ng-template",37),m(107,"section",38),I(108,VG,2,1,"div")(109,zG,2,1,"div")(110,BG,2,1,"p",39)(111,jG,2,1,"p",39),u(),m(112,"div")(113,"button",36),f(114),u(),m(115,"button",40),S("click",function(){return r.submit();}),f(116),u()()()()),i&2&&(v("orientation",lg(1,67,r.stepperOrientation)),d(2),G("label",r.step1Txt),v("stepControl",r.firstFormGroup),d(),v("formGroup",r.firstFormGroup),d(3),C(r.cardTitleTxt),d(),G("placeholder",r.cardTitleTipTxt),d(3),C(r.cardSubtitleTxt),d(),G("placeholder",r.cardSubtitleTipTxt),d(3),C(r.cardDescriptionTxt),d(),G("placeholder",r.cardDescriptionTipTxt),d(3),C(r.cardHelpTxt),d(),G("placeholder",r.cardHelpTipTxt),d(3),C(r.cardIconTxt),d(),G("placeholder",r.cardIconTipTxt),d(4),C(r.messageTxt),d(),G("placeholder",r.messageHintTxt),d(4),C(r.messageHintLabelTxt),d(),G("placeholder",r.messageHintLabelHintTxt),d(4),C(r.instructionsTxt),d(),G("placeholder",r.instructionsHintTxt),d(3),C(r.nextTxt),d(),G("label",r.step2Txt),v("stepControl",r.secondFormGroup),d(),v("formGroup",r.secondFormGroup),d(5),G("matTooltip",r.promptTipTxt),d(),C(r.promptTxt),d(2),G("matTooltip",r.newTipTxt),d(),C(r.newTxt),d(2),G("matTooltip",r.saveTipTxt),d(),C(r.saveTxt),d(2),G("matTooltip",r.clearTipTxt),d(),C(r.clearTxt),d(2),G("matTooltip",r.shareTipTxt),d(),C(r.shareTxt),d(2),G("matTooltip",r.sendTipTxt),d(),C(r.sendTxt),d(2),G("matTooltip",r.refreshTipTxt),d(),C(r.refreshTxt),d(2),G("matTooltip",r.copyToClipboardTipTxt),d(),C(r.copyToClipboardTxt),d(2),G("matTooltip",r.copyToPromptTipTxt),d(),C(r.copyToPromptTxt),d(2),G("matTooltip",r.streamedResponsesTipTxt),d(),C(r.streamedResponsesTxt),d(2),G("matTooltip",r.createImageFromTextTipTxt),d(),C(r.createImageFromTextTxt),d(3),N("",r.promptsTxt,":"),d(),G("matTooltip",r.promptsEnabledTipTxt),d(),C(r.promptsEnabledTxt),d(),G("matTooltip",r.promptsImagePromptTipTxt),d(),C(r.promptsImagePromptTxt),d(3),N("",r.autoSendTxt,":"),d(),G("matTooltip",r.autoSendEnabledTipTxt),d(),C(r.autoSendEnabledTxt),d(),G("matTooltip",r.addToViewerTipTxt),d(),C(r.addToViewerTxt),d(),G("matTooltip",r.addUserNameTipTxt),d(),C(r.addUserNameTxt),d(3),C(r.introTxt),d(),G("placeholder",r.introTipTxt),d(3),N(" ",r.backTxt," "),d(2),C(r.nextTxt),d(4),Q(r.editConfig()?108:109),d(2),Q(r.error1?110:-1),d(),Q(r.error2?111:-1),d(3),C(r.backTxt),d(2),C(r.confirmTxt));},dependencies:[j,Dm,gi,$r,fi,Ti,Hr,Ur,dr,as,c_,kt,Ai,Lt,Nt,Rt,ce,ye,E_,D_,Je,Ct,T_,Op,ec,Pp,S_,I_],styles:["section[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}.example-stepper[_ngcontent-%COMP%]{margin-top:8px}.title-widget[_ngcontent-%COMP%]{margin-top:16px}button[_ngcontent-%COMP%]{margin-right:10px}.toggle[_ngcontent-%COMP%]{margin-bottom:20px}.mat-hint[_ngcontent-%COMP%]{color:red}.features-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}mat-form-field[_ngcontent-%COMP%]{width:100%}.features[_ngcontent-%COMP%], .autosend[_ngcontent-%COMP%], .prompts[_ngcontent-%COMP%]{border:1px solid darkgray;border-radius:5px;padding:5px;margin-top:5px;margin-bottom:5px;width:100%}.features[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .autosend[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .prompts[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#fff}.validation-error[_ngcontent-%COMP%]{color:red}"]});}}return t;})();var HG=["widget"],MP=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.closeTxt="Close";}ngOnInit(){console.log("dialog data",this.data);}ngAfterViewInit(){}submitEnabled(){return this.widgetComponent?this.widgetComponent.isValid():!1;}configSave(e){console.log("config saved",e),this.dialogRef.close({data:e});}static{this.ɵfac=function(i){return new(i||t)(D(At),D(Yt));};}static{this.ɵcmp=E({type:t,selectors:[["dynamic-widget-dialog"]],viewQuery:function(i,r){if(i&1&&$(HG,5),i&2){let o;R(o=O())&&(r.widgetComponent=o.first);}},decls:9,vars:3,consts:[["cblogin",""],["mat-dialog-title",""],["mat-dialog-content",""],[3,"configSaveEvent","editConfig"],["mat-dialog-actions","","align","center"],["mat-raised-button","","mat-dialog-close",""]],template:function(i,r){if(i&1){let o=K();m(0,"h1",1),f(1),u(),m(2,"div",2)(3,"cb-dynamic-widget",3,0),S("configSaveEvent",function(s){return k(o),M(r.configSave(s));}),u()(),m(5,"div",4)(6,"button",5),f(7),u()(),w(8,"br");}i&2&&(d(),C(r.data.title),d(2),v("editConfig",r.data.editWidgetConfig),d(4),C(r.closeTxt));},dependencies:[vt,Ii,ri,di,oi,ce,ye,j,kP,kt],encapsulation:2});}}return t;})();var $G=["switch"],UG=["*"];function qG(t,n){t&1&&(m(0,"span",10),Zt(),m(1,"svg",12),w(2,"path",13),u(),m(3,"svg",14),w(4,"path",15),u()());}var WG=new A("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),GG={provide:Sr,useExisting:yi(()=>R_),multi:!0},A_=class{source;checked;constructor(n,e){this.source=n,this.checked=e;}},R_=(()=>{class t{_elementRef=p(J);_focusMonitor=p(Mi);_changeDetectorRef=p(pe);defaults=p(WG);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new A_(this,e);}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`;}_switchElement;focus(){this._switchElement.nativeElement.focus();}_noopAnimations;_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked;}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck();}hideIcon;disabledInteractive;change=new V();toggleChange=new V();get inputId(){return`${this.id||this._uniqueId}-input`;}constructor(){p(nt).load(ii);let e=p(new Ki("tabindex"),{optional:!0}),i=this.defaults,r=p(Ne,{optional:!0});this.tabIndex=e==null?0:parseInt(e)||0,this.color=i.color||"accent",this._noopAnimations=r==="NoopAnimations",this.id=this._uniqueId=p(Ye).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.disabledInteractive??!1,this._labelId=this._uniqueId+"-label";}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck();});});}ngOnChanges(e){e.required&&this._validatorOnChange();}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef);}writeValue(e){this.checked=!!e;}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}validate(e){return this.required&&e.value!==!0?{required:!0}:null;}registerOnValidatorChange(e){this._validatorOnChange=e;}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck();}toggle(){this.checked=!this.checked,this._onChange(this.checked);}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked));}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new A_(this,this.checked))));}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(i&1&&$($G,5),i&2){let o;R(o=O())&&(r._switchElement=o.first);}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){i&2&&(ki("id",r.id),ee("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),bt(r.color?"mat-"+r.color:""),Z("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._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",U],color:"color",disabled:[2,"disabled","disabled",U],disableRipple:[2,"disableRipple","disableRipple",U],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)],checked:[2,"checked","checked",U],hideIcon:[2,"hideIcon","hideIcon",U],disabledInteractive:[2,"disabledInteractive","disabledInteractive",U]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[be([GG,{provide:ho,useExisting:t,multi:!0}]),He],ngContentSelectors:UG,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[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(i,r){if(i&1){let o=K();De(),m(0,"div",1)(1,"button",2,0),S("click",function(){return k(o),M(r._handleClick());}),w(3,"span",3),m(4,"span",4)(5,"span",5)(6,"span",6),w(7,"span",7),u(),m(8,"span",8),w(9,"span",9),u(),I(10,qG,5,0,"span",10),u()()(),m(11,"label",11),S("click",function(s){return k(o),M(s.stopPropagation());}),le(12),u()();}if(i&2){let o=We(2);v("labelPosition",r.labelPosition),d(),Z("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),v("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),ee("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),d(8),v("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),d(),Q(r.hideIcon?-1:10),d(),v("for",r.buttonId),ee("id",r._labelId);}},dependencies:[an,w_],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(--mdc-switch-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(--mdc-switch-track-height, 32px);border-radius:var(--mdc-switch-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-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-switch-track-outline-width, 2px);border-color:var(--mat-switch-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-switch-selected-track-outline-width, 2px);border-color:var(--mat-switch-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-switch-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(--mdc-switch-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-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-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(--mdc-switch-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-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-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-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(--mdc-switch-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(--mdc-switch-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(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-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-switch-unselected-handle-size, 16px);height:var(--mat-switch-unselected-handle-size, 16px);margin:var(--mat-switch-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size, 24px);height:var(--mat-switch-selected-handle-size, 24px);margin:var(--mat-switch-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size, 24px);height:var(--mat-switch-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size, 28px);height:var(--mat-switch-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-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-switch-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-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(--mdc-switch-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-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(--mdc-switch-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-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(--mdc-switch-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(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size, 40px);height:var(--mdc-switch-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{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.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(--mdc-switch-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-switch-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(--mdc-switch-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mdc-switch-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(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-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(--mdc-switch-unselected-icon-size, 16px);height:var(--mdc-switch-unselected-icon-size, 16px);fill:var(--mdc-switch-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 16px);height:var(--mdc-switch-selected-icon-size, 16px);fill:var(--mdc-switch-selected-icon-color, var(--mat-sys-on-primary-contai��ner))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-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-switch-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-switch-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(--mdc-switch-disabled-label-text-color)}
`],encapsulation:2,changeDetection:0});}return t;})();var SP=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[R_,he,he]});}return t;})();function QG(t,n){if(t&1&&(m(0,"mat-form-field")(1,"mat-label"),f(2),u(),w(3,"input",18),u()),t&2){let e=y();d(2),C(e.shortNameTxt),d(),G("placeholder",e.shortNameTipTxt);}}function KG(t,n){if(t&1&&f(0),t&2){let e=y();C(e.step3Txt);}}function ZG(t,n){if(t&1&&(m(0,"div"),f(1),u()),t&2){let e=y();d(),C(e.confirmEditTxt);}}function XG(t,n){if(t&1&&(m(0,"div"),f(1),u()),t&2){let e=y();d(),C(e.confirmCreateTxt);}}function JG(t,n){if(t&1&&(m(0,"p",16),f(1),u()),t&2){let e=y();d(),C(e.error1);}}function eY(t,n){if(t&1&&(m(0,"p",16),f(1),u()),t&2){let e=y();d(),C(e.error2);}}var IP=(()=>{class t{constructor(e,i,r,o){this.service=e,this.formBuilder=i,this.site=o,this.step1Txt="Info",this.step2Txt="Options",this.step3Txt="Confirm",this.nextTxt="Next",this.backTxt="Back",this.confirmTxt="Confirm",this.requiredTxt="Required Field",this.minLengthTxt="Field has a minimum length of ",this.submitTxt="Submit",this.nameTxt="Name",this.nameTipTxt="Give a name to your character.",this.shortNameTxt="Short Name",this.shortNameTipTxt="Give a short name to your character.",this.emailTxt="Email",this.emailTipTxt="An email address to use for your character.",this.descriptionTxt="Description",this.descriptionTipTxt="Describe your character",this.professionalDescriptionTxt="Professional Description",this.professionalDescriptionTipTxt="Describe your character in their professional life.",this.enabledTxt="Enabled",this.enabledTipTxt="Enable or disable your character",this.commentsPerDayTxt="Comments Per Day",this.commentsPerDayTipTxt="How many times per day your character will comment on average.",this.confirmCreateTxt="Create new character?",this.confirmEditTxt="Confirm character changes?",this.editData=rt(),this.saveEvent=new V(),this.character=this.service.createDefaultCharacter(),this.form1Error="Character information form is invalid",this.form2Error="Comments form is invalid",this.error1="",this.error2="",this.stepperOrientation=r.observe("(min-width: 800px)").pipe(ue(({matches:a})=>a?"horizontal":"vertical"));}ngOnInit(){let e=this.editData();e?(this.character=e,console.log("edit character data",this.character)):console.log("default character data: ",this.character),this.buildForm();}buildForm(){this.firstFormGroup=this.formBuilder.group({slug:[this.character.slug,[wt.required]],name:[this.character.name,[wt.required]],email:[this.character.email,[wt.email,wt.required]],description:[this.character.description,[wt.required]],professionalDescription:[this.character.professionalDescription,[wt.required]],date:[this.character.date,[wt.required]]}),this.secondFormGroup=this.formBuilder.group({enabled:[this.character.enabled],commentsPerDay:[this.character.commentsPerDay,[wt.required,wt.min(.001),wt.max(6)]]});}isValid(){return!1;}showSubmitErrors(){this.error1=this.firstFormGroup.valid?"":this.form1Error,this.error2=this.secondFormGroup.valid?"":this.form2Error;}makeSlug(e){return e.toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");}submit(){console.log("submit form 1: ",this.firstFormGroup),console.log("submit form 2: ",this.secondFormGroup);let e=this.firstFormGroup.get("slug")?.value;if((!e||e==="")&&(e=this.makeSlug(this.firstFormGroup.get("name")?.value),this.firstFormGroup.get("slug")?.setValue(e)),this.showSubmitErrors(),!this.firstFormGroup.valid||!this.secondFormGroup.valid){console.log("form is invalid");return;}let i=this.editData(),r={slug:e,name:this.firstFormGroup.get("name")?.value,email:this.firstFormGroup.get("email")?.value,description:this.firstFormGroup.get("description")?.value,professionalDescription:this.firstFormGroup.get("professionalDescription")?.value,enabled:this.secondFormGroup.get("enabled")?.value,commentsPerDay:this.secondFormGroup.get("commentsPerDay")?.value,siteId:this.site.site.slug,storageId:i?i.storageId:void 0,date:this.firstFormGroup.get("date")?.value};console.log("emit character: ",r),this.saveEvent.emit(r);}static{this.ɵfac=function(i){return new(i||t)(D(fe),D($s),D(Ja),D(pt));};}static{this.ɵcmp=E({type:t,selectors:[["cb-character-form"]],inputs:{editData:[1,"editData"]},outputs:{saveEvent:"saveEvent"},decls:52,vars:29,consts:[[1,"example-stepper",3,"orientation"],[3,"stepControl","label"],[3,"formGroup"],[1,"section-one"],["type","text","matInput","","name","name","formControlName","name",3,"placeholder"],["type","email","matInput","","name","email","formControlName","email",3,"placeholder"],["matInput","","name","description","formControlName","description",3,"placeholder"],["matInput","","name","professionalDescription","formControlName","professionalDescription",3,"placeholder"],["mat-raised-button","","matStepperNext",""],[1,"section-two"],[1,"enabled-toggle"],["formControlName","enabled"],["type","number","matInput","","name","commentsPerDay","formControlName","commentsPerDay",3,"placeholder"],["mat-raised-button","","matStepperPrevious",""],["matStepLabel",""],[1,"section-three"],[1,"validation-error"],["mat-raised-button","",3,"click"],["type","text","matInput","","name","slug","formControlName","slug",3,"placeholder"]],template:function(i,r){i&1&&(m(0,"mat-stepper",0),Ss(1,"async"),m(2,"mat-step",1)(3,"form",2)(4,"section",3)(5,"mat-form-field")(6,"mat-label"),f(7),u(),w(8,"input",4),u(),I(9,QG,4,2,"mat-form-field"),m(10,"mat-form-field")(11,"mat-label"),f(12),u(),w(13,"input",5),u(),m(14,"mat-form-field")(15,"mat-label"),f(16),u(),w(17,"textarea",6),u(),m(18,"mat-form-field")(19,"mat-label"),f(20),u(),w(21,"textarea",7),u()(),m(22,"div")(23,"button",8),f(24),u()()()(),m(25,"mat-step",1)(26,"form",2)(27,"section",9)(28,"div",10)(29,"mat-slide-toggle",11),f(30),u()(),m(31,"mat-form-field")(32,"mat-label"),f(33),u(),w(34,"input",12),u()(),m(35,"div")(36,"button",13),f(37),u(),m(38,"button",8),f(39),u()()()(),m(40,"mat-step"),I(41,KG,1,1,"ng-template",14),m(42,"section",15),I(43,ZG,2,1,"div")(44,XG,2,1,"div")(45,JG,2,1,"p",16)(46,eY,2,1,"p",16),u(),m(47,"div")(48,"button",13),f(49),u(),m(50,"button",17),S("click",function(){return r.submit();}),f(51),u()()()()),i&2&&(v("orientation",lg(1,27,r.stepperOrientation)),d(2),G("label",r.step1Txt),v("stepControl",r.firstFormGroup),d(),v("formGroup",r.firstFormGroup),d(4),C(r.nameTxt),d(),G("placeholder",r.nameTipTxt),d(),Q(r.character.slug?9:-1),d(3),C(r.emailTxt),d(),G("placeholder",r.emailTipTxt),d(3),C(r.descriptionTxt),d(),G("placeholder",r.descriptionTipTxt),d(3),C(r.professionalDescriptionTxt),d(),G("placeholder",r.professionalDescriptionTipTxt),d(3),C(r.nextTxt),d(),G("label",r.step2Txt),v("stepControl",r.secondFormGroup),d(),v("formGroup",r.secondFormGroup),d(4),C(r.enabledTxt),d(3),C(r.commentsPerDayTxt),d(),G("placeholder",r.commentsPerDayTipTxt),d(3),N(" ",r.backTxt," "),d(2),C(r.nextTxt),d(4),Q(r.editData()?43:44),d(2),Q(r.error1?45:-1),d(),Q(r.error2?46:-1),d(3),C(r.backTxt),d(2),C(r.confirmTxt));},dependencies:[j,Dm,gi,$r,fi,s1,Ti,Hr,Ur,dr,as,kt,Ai,Lt,Nt,Rt,ce,ye,E_,Je,T_,Op,ec,Pp,S_,I_,SP,R_],styles:["section[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}.example-stepper[_ngcontent-%COMP%]{margin-top:8px}button[_ngcontent-%COMP%]{margin-right:10px}.toggle[_ngcontent-%COMP%]{margin-bottom:20px}.mat-hint[_ngcontent-%COMP%]{color:red}mat-form-field[_ngcontent-%COMP%]{width:100%}.validation-error[_ngcontent-%COMP%]{color:red}.enabled-toggle[_ngcontent-%COMP%]{margin-bottom:20px}"]});}}return t;})();var tY=["widget"],TP=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.closeTxt="Close";}ngOnInit(){console.log("dialog data",this.data);}ngAfterViewInit(){}submitEnabled(){return this.characterForm?this.characterForm.isValid():!1;}configSave(e){console.log("character saved",e),this.dialogRef.close({data:e});}static{this.ɵfac=function(i){return new(i||t)(D(At),D(Yt));};}static{this.ɵcmp=E({type:t,selectors:[["character-manager-dialog"]],viewQuery:function(i,r){if(i&1&&$(tY,5),i&2){let o;R(o=O())&&(r.characterForm=o.first);}},decls:8,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"saveEvent","editData"],["mat-dialog-actions","","align","center"],["mat-raised-button","","mat-dialog-close",""]],template:function(i,r){i&1&&(m(0,"h1",0),f(1),u(),m(2,"div",1)(3,"cb-character-form",2),S("saveEvent",function(a){return r.configSave(a);}),u()(),m(4,"div",3)(5,"button",4),f(6),u()(),w(7,"br")),i&2&&(d(),C(r.data.title),d(2),v("editData",r.data.editCharacterData),d(3),C(r.closeTxt));},dependencies:[vt,Ii,ri,di,oi,ce,ye,j,IP,kt],encapsulation:2});}}return t;})();var $3=pk(cD());var Kd=(()=>{class t{constructor(e,i){this.http=e,this.site=i,this.apiParams=new $3.DrupalJsonApiParams();}fetchWidget(e){let i=this,r="/node/widget/"+e,o=this.site.site.drupalHost+this.site.site.drupalApi+r;return console.log("fetch widget at ",o),this.http.get(o);}postWidgetConfig(e,i){let r=this.site.site.drupalHost+this.site.site.drupalApi+"/node/widget",o={data:{type:"node--widget",attributes:{title:i.card?.title||"widget",body:{value:JSON.stringify(i),format:"plain_text"},field_site_id:this.site.site.slug}}},a={headers:new lt({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"};return this.http.post(r,o,a);}patchWidget(e,i){let r=this,o="/node/widget/"+i.storageId,a=this.site.site.drupalHost+this.site.site.drupalApi+o,s={headers:new lt({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"},l={data:{type:"node--widget",id:i.storageId,attributes:{body:{value:JSON.stringify(i),format:"plain_text"}}}};return this.http.patch(a,l,s);}deleteWidget(e,i){let r=this,o="/node/widget/"+i.storageId,a=this.site.site.drupalHost+this.site.site.drupalApi+o,s={headers:new lt({"Content-Type":"application/vnd.api+json","X-CSRF-Token":e}),responseType:"text"};return this.http.delete(a,s);}getWidgets(e=""){let i=e;return i||(i=this.site.site.drupalHost+this.site.site.drupalApi+"/node/widget?page[limit]=10&include=uid"),console.log("fetch widgets at ",i),this.http.get(i);}getAllWidgets(){return this.getWidgets().pipe($u(e=>e.links.next?this.getWidgets(e.links.next.href):se(null)),ys(e=>e!==null),ue(e=>[e]),Hu((e,i)=>[...e,...i],[]));}static{this.ɵfac=function(i){return new(i||t)(te(Bi),te(pt));};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var U3=pk(cD());var Da=(()=>{class t{constructor(e,i,r){this.http=e,this.site=i,this.user=r,this.apiParams=new U3.DrupalJsonApiParams();}clone(e){return{slug:e.slug,name:e.name,email:e.email,description:e.description,professionalDescription:e.professionalDescription,enabled:!!e.enabled,commentsPerDay:e.commentsPerDay,date:new Date(),siteId:this.site.site.slug,storageId:""};}fetchModifiedFilteredAndSortedCharacters(){let e=this.site.site.slug;return this.getAllCharacters().pipe(ue(i=>this.extractCharacters(i)),ue(i=>i.filter(r=>e===r.siteId||e==="demo"&&r.siteId==="tsai")),ue(i=>i.sort((r,o)=>r.name<o.name?-1:r.name>o.name?1:0)));}loadCharacter(e){let i=JSON.parse(e.attributes.body.value);i.storageId=e.id;let r=e.attributes.field_site_id,o=e.attributes.field_slug,a=e.attributes.changed,s=Date.parse(a),c=new Date(s);return{slug:o,name:i.name||"name not found",email:i.email||"email not found",description:i.description||"",professionalDescription:i.professionalDescription||"",enabled:!!i.enabled,commentsPerDay:i.commentsPerDay,date:c,siteId:r,storageId:i.storageId||"id not found"};}getCharacters(e=""){let i=e;return i||(i=this.site.site.drupalHost+this.site.site.drupalApi+"/node/character?page[limit]=10&include=uid"),this.http.get(i);}getAllCharacters(){return this.getCharacters().pipe($u(e=>e.links.next?this.getCharacters(e.links.next.href):se(null)),ys(e=>e!==null),ue(e=>[e]),Hu((e,i)=>[...e,...i],[]));}extractCharacterUsers(e){}extractCharacters(e){let i=[],r=[];return e.forEach(o=>{let a=o.data;i.push(...a);}),i.forEach(o=>{let a=this.loadCharacter(o);r.push(a);}),r;}fetchCharacterBySlug(e){let i=this.site.site.drupalHost+this.site.site.drupalApi,r="?filter[field_slug][value]="+e;return i+="/node/character/"+r,this.http.get(i);}fetchCharacterByTitle(e){let i="?filter[title][value]="+e,r=this.site.site.drupalHost+this.site.site.drupalApi;return r+="/node/character/",r+=i,this.http.get(r);}postCharacter(e){let i=this.user.user?.fapiToken,r=new lt({Authorization:`Bearer ${i}`}),o={character:e},a=this.site.site.apiHost+"/cms/character/";return this.http.post(a,o,{headers:r});}patchCharacter(e){let i=this.user.user?.fapiToken,r=new lt({Authorization:`Bearer ${i}`}),o={character:e},a=this.site.site.apiHost+"/cms/character/";return this.http.patch(a,o,{headers:r});}deleteCharacter(e){let i=this.user.user?.fapiToken,r=new lt({Authorization:`Bearer ${i}`}),o=this.site.site.apiHost+"/cms/character/"+e.storageId;return this.http.delete(o,{headers:r});}makeCharacterDemoInstructions(e){let i=this.site.site.slug,r=e.character,o=e.character?.description,a=r?.name,s=!0,l=`You are helping an organization to run their website, and you need to answer questions from users to the best of your ability. Users will
send questions to you through a chatbot interface on the web site.

In the text below you will find details about your own character such as your name, a description of your character, and a list of your hobbies. 
Below that will be a description of the organization you are helping, and then some technical information about their website. You will also be given some
sales information in case the customer is interested in any products or services. Finally, you will be given some technical information about supporting our software.

If the customer asks you personal questions, you can make some small talk, but try to keep the user focused on the goals of the organization you 
are representing.

`.trim();l+=`

CHARACTER DETAILS 

`,l+="CHARACTER NAME: "+a+`
`,l+="CHARACTER DESCRIPTION: "+o+`
`,l+=`
ORGANIZATION DESCRIPTION: `;let c=`The name of the organization you are helping is johnturman.net.  The organization has a web site at https://johnturman.net that 
serves primarily as a personal blog site for a software developer named John Turman.  John needs help answering questions from customers about his tech stack,
and other miscellaneous questions about the content on his site, etc.  John is not accepting any offers for work through this site.  Refer any inquiries about work 
to his other website at https://turmansolutions.ai.`.trim(),h=`The name of the company you are helping is Turman Solutions, LLC.  Our company website is at https://turmansolutions.ai.  We
build web sites and applications that are powered by Large Language Models (LLMs). The company was founded in 2024, and the president and CTO of the 
company is John Turman. The company provides consultancy, research and development services. The company provides hosting services for web sites.  The company 
also sells software products on a monthly subscription basis, and markets it's chatbot application as a full stack product available for sale. The company 
is actively seeking investors, partners, and early adopters of our product.`.trim();return i==="jpt"?l+=c+`

`:l+=h+`

`,l+="TECHNICAL INFORMATION: "+`The key components of the full stack solution that is used at our organization are Angular, Wordpress, Drupal, and FastAPI.  We have in depth knowledge of 
Typescript, Javascript, Python, and PHP, HTML, and CSS, and we have many years of experience in web development and design. The company also has expertise in content management, 
and the LAMP stack (Linux, Apache, MySQL, PHP).`,s&&(l+=`

SALES INFORMATION: `+`Turman Solutions is actively seeking investors, and partners, and early adopters of our full stack solution.  We have confidence in our
product and feel we can have a large impact in the high-stakes AI marketplace.  Our solutions are grounded with years of experience in web development, software engineering,
and providing users with powerful and easy-to-use software.  Our company is not directly involved in the development of large language models.  Rather,
we use APIs provided by vendors such as OpenAI, Anthropic, and others.

We focus on providing AI enabled web sites and tools to users, and letting users build out tools for their own purposes. Our chatbot supports NLP (natural language processing) 
widgets, allow users to effectively communicate with LLMs. We provide built-in NLP widgets such as our powerful "Ask Me Anything" widget. We also provide widgets for games, 
translation, literary quotes, quizzing engines, and more.  Users are able to create and manage their own NLP widgets as well, and are encouraged to contribute their widgets to others. 
These user managed widgets allow for powerful, structured interactions with LLMs.

Our full stack solution also supports AI character development.  AI characters (a.k.a. agents) have a name, an avatar image, a description of their personality and hobbies, 
and more. AI characters able to accomplish certain tasks on their own, such as writing new articles, or participating in discussion threads. Characters can also be asked to 
perform other tasks on demand.  We have our own characters to help us here with various tasks.  We can provide users with characters also, and our tools allow users to create 
and manage their own characters.

Our chatbot works with Wordpress and Drupal and allows users to save generated content as articles, images, comments, etc.  Our years of experience working with content 
management allows us to tap into the powerful features of these CMSs.  We have years of experience in the fields of publishing and education.  Our solutions provide state
of the art editing, design, and workflow experiences.  

We are seeking early adopters of our solution.  Early adopters will get their own web site and we would like to help them build out an awesome site with incredible content.
Early adopters can provide us valuable feedback as we craft features that improve our product and make it more reliable and useful.   

We are also seeking investors and partners.  Turman Solutions seeks to keep our operating costs at a minimum, and leverages open source solutions towards that end. We
are operating in a high stakes business where a viable AI product has great potential.  Our stack has been developed as a product from the first day, and 
is scalable in a well-known, predictable way.  We are open to discussion, consultation, etc.

As a sales person, be ready to describe our product line and the services we offer.  Also, find out if the user is a potential investor, partner, or an early adopter.  Explain
that an early adopter will get their own Wordpress site and will play an important role in the evolution of our product.  Encourage the user to consider running a personal blog
site where they can build the content that they themselves are most interested in.  If you have a productive conversation, remind the user that they can share the conversation
with us using the "Share" button in the chatbot.  If the user shares the conversation with us, we will get back to them in 1-2 business days.  Users can also use our contact form
at https://turmansolutions.ai/contact-us/ to initiate communication with us.
`),l+=`

TECHNICAL SUPPORT INFORMATION: `+`If you are asked support questions about our product, do your best to help the user.  The user interacts only with our chatbot and one or more Wordpress sites. Try to find out if 
the user is having a problem with the chatbot, Wordpress, or some other problem.

If the user has problems with the chatbot, you likely will not be able to help out with detailed questions, but you can suggest the user refresh the page, log out and log back in again, 
or that the user try a different browser or device.  The chatbot is a beta product and will have some defects.  Let the user know this.  

If it's a Wordpress problem, try to help the user resolve the problem.  Give them links to online resources where appropriate. 

If you are unable to resolve the issue, suggest that the user click the "Share" button for further assistance.`,console.log(`full instructions are: 
`,l),l;}static{this.ɵfac=function(i){return new(i||t)(te(Bi),te(pt),te(Nn));};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var Gr=(()=>{class t{constructor(e,i,r,o,a){this.widgetService=e,this.characters=i,this.http=r,this.site=o,this.user=a;}getFapiToken(){let e=new lt({"Content-Type":"application/json"});console.log("host is ",window.location.host);let i={data:window.location.host},r=this.site.site.apiHost+"/fapi-token/";return this.http.post(r,i,{headers:e});}createArticle(e,i){let r=this.user.user?.fapiToken,o=new lt({Authorization:`Bearer ${r}`}),a={character:e,user_instructions:i},s=this.site.site.apiHost+"/articles/create/";return this.http.post(s,a,{headers:o});}postComment(e,i,r){let o=this.user.user?.fapiToken,a=new lt({Authorization:`Bearer ${o}`}),s={url:i,character:e,user_instructions:r},l=this.site.site.apiHost+"/comments/comment/";return this.http.post(l,s,{headers:a});}fetchBuildInfo(){return this.http.get("assets/build-info.json");}fetchModels(){let e=this.site.site.apiHost+"/models";return this.http.get(e);}storeData(e){let i=this.site.site.apiHost+"/store/";return this.http.post(i,e);}static{this.ɵfac=function(i){return new(i||t)(te(Kd),te(Da),te(Bi),te(pt),te(Nn));};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();function MK(t,n){t&1&&(m(0,"mat-error"),f(1,"URL is "),m(2,"strong"),f(3,"required"),u()());}function SK(t,n){if(t&1&&(m(0,"mat-error"),f(1),u()),t&2){let e=y();d(),C(e.urlError);}}function IK(t,n){t&1&&f(0," \xA0 ");}function TK(t,n){t&1&&(m(0,"span",10),w(1,"mat-spinner",13),u()),t&2&&(d(),v("diameter",40));}var q3=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this.data=i,this.chatService=r,this.urlControl=new sa("",[wt.required]),this.instructionsControl=new sa(""),this.closeTxt="Close",this.replyTxt="Reply",this.instructions1="Instructions: ",this.instructions2="Paste the url of the post in the box. Be sure the post\n  allows comments.  If you want the character to reply to an existing comment, paste the Reply link\n  for that comment.\n  ",this.specialInstructions="Special Instructions: ",this.loading=!1,this.urlError="";}ngOnInit(){this.character=this.data.characterData;}ngAfterViewInit(){}reply(){let e=this;this.urlError="",e.loading=!0;let i=this.urlControl.value;if(!i)return;let r=this.instructionsControl.value;if(console.log("url is ",this.urlControl.value),console.log("instructions are: ",this.instructionsControl.value),!i?.startsWith("http")){this.urlError="Invalid url";return;}e.chatService.postComment(e.character,i,r||"").pipe(de(1)).subscribe({next(o){if(!o){console.log("no results from post comment");return;}e.loading=!1,console.log("post comment result is ",o),e.dialogRef.close({data:{msg:"Reply added successfully for post at "+i}});},error(o){e.loading=!1,e.urlError="Error: "+o.error.detail,console.log("error encountered posting comment: ",o.error.detail);},complete(){}});}static{this.ɵfac=function(i){return new(i||t)(D(At),D(Yt),D(Gr));};}static{this.ɵcmp=E({type:t,selectors:[["reply-dialog"]],decls:29,vars:13,consts:[["autosize","cdkTextareaAutosize"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"example-form"],[1,"full-width"],["type","text","matInput","","placeholder","Ex. https://example.com/my-article/",3,"formControl"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","75",3,"formControl"],[1,"error-container"],[1,"reply-container"],["mat-raised-button","",3,"click","disabled"],[1,"spinner-container"],["mat-dialog-actions","","align","center"],["mat-raised-button","","mat-dialog-close","",3,"disabled"],["mode","indeterminate",3,"diameter"]],template:function(i,r){if(i&1){let o=K();m(0,"h1",1),f(1),u(),m(2,"div",2)(3,"p")(4,"strong"),f(5),u(),f(6),u(),m(7,"form",3)(8,"mat-form-field",4)(9,"mat-label"),f(10,"URL"),u(),w(11,"input",5),I(12,MK,4,0,"mat-error"),u(),m(13,"mat-form-field",4)(14,"mat-label"),f(15),u(),w(16,"textarea",6,0),u(),m(18,"div",7),I(19,SK,2,1,"mat-error")(20,IK,1,0),u(),m(21,"div",8)(22,"button",9),S("click",function(){return k(o),M(r.reply());}),f(23),u(),I(24,TK,2,1,"span",10),u()()(),m(25,"div",11)(26,"button",12),f(27),u()(),w(28,"br");}i&2&&(d(),C(r.data.title),d(4),C(r.instructions1),d(),N(" ",r.instructions2,""),d(5),v("formControl",r.urlControl),d(),Q(r.urlControl.hasError("required")?12:-1),d(3),C(r.specialInstructions),d(),v("formControl",r.instructionsControl),d(3),Q(r.urlError!==""?19:20),d(3),v("disabled",r.loading),d(),N(" ",r.replyTxt," "),d(),Q(r.loading?24:-1),d(2),v("disabled",r.loading),d(),N(" ",r.closeTxt," "));},dependencies:[vt,Ii,ri,di,oi,ce,ye,j,kt,Ai,Lt,Nt,Ul,ya,gi,$r,fi,Ti,Hr,os,Rt,Ur,Ip,Hi,ji],styles:[".example-form[_ngcontent-%COMP%]{min-width:150px;max-width:900px;width:100%}.full-width[_ngcontent-%COMP%]{width:100%}.error-container[_ngcontent-%COMP%]{text-align:center;margin:10px 0 20px}.reply-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:30px}.spinner-container[_ngcontent-%COMP%]{margin-left:15px}"]});}}return t;})();function AK(t,n){t&1&&(m(0,"mat-error"),f(1,"Please enter a valid email address"),u());}function RK(t,n){t&1&&(m(0,"mat-error"),f(1,"Email is "),m(2,"strong"),f(3,"required"),u()());}function OK(t,n){t&1&&(m(0,"span"),f(1,"This field is required."),u());}function PK(t,n){if(t&1&&(m(0,"mat-error"),I(1,OK,2,0,"span",9),u()),t&2){let e,i=y();d(),v("ngIf",(e=i.form.get("comment"))==null||e.errors==null?null:e.errors.required);}}var W3=(()=>{class t{constructor(e,i,r){this.formBuilder=e,this.dialogRef=i,this.data=r,this.shareTxt="Share",this.closeTxt="Close",this.commentTxt="Comment",this.commentTipTxt="Enter your comment here",this.p1="Share your conversation with the staff at Turman Solutions.";}ngOnInit(){console.log("dialog data",this.data),this.form=this.formBuilder.group({email:["",[wt.required,wt.email]],comment:["",[wt.required]]});}ngAfterViewInit(){}isValid(){return this.form.valid;}submitEnabled(){return this.form.valid;}submit(){console.log("valid",this.form.value),this.dialogRef.close({data:this.form.value});}static{this.ɵfac=function(i){return new(i||t)(D($s),D(At),D(Yt));};}static{this.ɵcmp=E({type:t,selectors:[["share-dialog"]],decls:26,vars:11,consts:[["mat-dialog-title",""],[1,"dialog-header"],["mat-dialog-content",""],[1,"container"],[3,"formGroup"],[1,"my-form-field"],["appearance","outline",1,"form-field"],["matInput","","type","email","formControlName","email","id","email"],["matInput","","name","comment","formControlName","comment",3,"placeholder"],[4,"ngIf"],["mat-dialog-actions","","align","center"],["mat-button","","mat-dialog-close",""],["mat-raised-button","",3,"click","disabled"]],template:function(i,r){if(i&1&&(m(0,"h1",0),f(1),u(),m(2,"div",1),f(3),u(),m(4,"div",2)(5,"div",3)(6,"form",4)(7,"div",5)(8,"mat-form-field",6)(9,"mat-label"),f(10,"Email:"),u(),w(11,"input",7),I(12,AK,2,0,"mat-error")(13,RK,4,0,"mat-error"),u()(),m(14,"div",5)(15,"mat-form-field",6)(16,"mat-label"),f(17),u(),w(18,"textarea",8),I(19,PK,2,1,"mat-error",9),u()()()()(),m(20,"div",10)(21,"button",11),f(22),u(),m(23,"button",12),S("click",function(){return r.submit();}),f(24),u()(),w(25,"br")),i&2){let o;d(),C(r.shareTxt),d(2),C(r.p1),d(3),v("formGroup",r.form),d(6),Q(r.form.get("email").hasError("email")&&!r.form.get("email").hasError("required")?12:-1),d(),Q(r.form.get("email").hasError("required")?13:-1),d(4),C(r.commentTxt),d(),G("placeholder",r.commentTipTxt),d(),v("ngIf",((o=r.form.get("comment"))==null?null:o.touched)&&((o=r.form.get("comment"))==null?null:o.invalid)),d(3),C(r.closeTxt),d(),v("disabled",!r.submitEnabled()),d(),N(" ",r.shareTxt," ");}},dependencies:[vt,Ii,ri,di,oi,ce,ye,j,Pt,kt,Ai,Lt,Nt,Ul,Rt,gi,$r,fi,Ti,Hr,Ur,dr,as],styles:[".dialog-header[_ngcontent-%COMP%]{text-align:center}.container[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:10px}"]});}}return t;})();function FK(t,n){t&1&&(m(0,"span",8),w(1,"mat-spinner",11),u()),t&2&&(d(),v("diameter",40));}var G3=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this.data=i,this.chatService=r,this.instructionsControl=new sa(""),this.closeTxt="Close",this.createTxt="Create Article",this.instructions1="Instructions: ",this.instructions2="Add additional instructions for the character if desired.\n  ",this.userInstructions="Additional Instructions: ",this.loading=!1,this.formError="";}ngOnInit(){this.character=this.data.characterData;}ngAfterViewInit(){}add(){let e=this;this.formError="",e.loading=!0;let i=this.instructionsControl.value;console.log("instructions are: ",this.instructionsControl.value),e.chatService.createArticle(e.character,i||"").pipe(de(1)).subscribe({next(r){if(!r){console.log("no results from post comment");return;}e.loading=!1,console.log("post comment result is ",r),e.dialogRef.close({data:{msg:"Article created"}});},error(r){e.loading=!1,console.log("error encountered creating article: ",r.error.detail);},complete(){}});}static{this.ɵfac=function(i){return new(i||t)(D(At),D(Yt),D(Gr));};}static{this.ɵcmp=E({type:t,selectors:[["new-article-dialog"]],decls:21,vars:10,consts:[["autosize","cdkTextareaAutosize"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"example-form"],[1,"full-width"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","75",3,"formControl"],[1,"reply-container"],["mat-raised-button","",3,"click","disabled"],[1,"spinner-container"],["mat-dialog-actions","","align","center"],["mat-raised-button","","mat-dialog-close","",3,"disabled"],["mode","indeterminate",3,"diameter"]],template:function(i,r){if(i&1){let o=K();m(0,"h1",1),f(1),u(),m(2,"div",2)(3,"p")(4,"strong"),f(5),u(),f(6),u(),m(7,"form",3)(8,"mat-form-field",4)(9,"mat-label"),f(10),u(),w(11,"textarea",5,0),u(),m(13,"div",6)(14,"button",7),S("click",function(){return k(o),M(r.add());}),f(15),u(),I(16,FK,2,1,"span",8),u()()(),m(17,"div",9)(18,"button",10),f(19),u()(),w(20,"br");}i&2&&(d(),C(r.data.title),d(4),C(r.instructions1),d(),N(" ",r.instructions2,""),d(4),C(r.userInstructions),d(),v("formControl",r.instructionsControl),d(3),v("disabled",r.loading),d(),N(" ",r.createTxt," "),d(),Q(r.loading?16:-1),d(2),v("disabled",r.loading),d(),N(" ",r.closeTxt," "));},dependencies:[vt,Ii,ri,di,oi,ce,ye,j,kt,Ai,Lt,Nt,ya,gi,$r,fi,Ti,Hr,os,Rt,Ur,Ip,Hi,ji],styles:[".example-form[_ngcontent-%COMP%]{min-width:150px;ma��x-width:900px;width:100%}.full-width[_ngcontent-%COMP%]{width:100%}.error-container[_ngcontent-%COMP%]{text-align:center;margin:10px 0 20px}.reply-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:30px}.spinner-container[_ngcontent-%COMP%]{margin-left:15px}"]});}}return t;})();function NK(t,n){t&1&&(m(0,"small"),f(1,"Username is required."),u());}function LK(t,n){t&1&&(m(0,"small"),f(1,"Username must be at least 4 characters long."),u());}function VK(t,n){if(t&1&&(m(0,"mat-error"),I(1,NK,2,0,"small",4)(2,LK,2,0,"small",4),u()),t&2){let e,i,r=y();d(),v("ngIf",(e=r.loginForm.get("username"))==null||e.errors==null?null:e.errors.required),d(),v("ngIf",(i=r.loginForm.get("username"))==null||i.errors==null?null:i.errors.minlength);}}function zK(t,n){t&1&&(m(0,"span"),f(1,"This field is mandatory."),u());}function BK(t,n){if(t&1&&(m(0,"mat-error"),I(1,zK,2,0,"span",4),u()),t&2){let e,i=y();d(),v("ngIf",(e=i.loginForm.get("password"))==null||e.errors==null?null:e.errors.required);}}var Q_=(()=>{class t{constructor(e){this.formBuilder=e;}ngOnInit(){this.loginForm=this.formBuilder.group({username:["",[wt.required]],password:["",[wt.required]]});}isValid(){return this.loginForm.valid;}onSubmit(){this.loginForm.valid?console.log("Form Submitted",this.loginForm.value):console.log("Form is not valid");}static{this.ɵfac=function(i){return new(i||t)(D($s));};}static{this.ɵcmp=E({type:t,selectors:[["cb-login"]],decls:12,vars:3,consts:[[1,"container"],[3,"ngSubmit","formGroup"],["appearance","outline",1,"form-field"],["matInput","","type","text","formControlName","username","id","username"],[4,"ngIf"],["matInput","","formControlName","password","type","password"]],template:function(i,r){if(i&1&&(m(0,"div",0)(1,"form",1),S("ngSubmit",function(){return r.onSubmit();}),m(2,"mat-form-field",2)(3,"mat-label"),f(4,"Username:"),u(),w(5,"input",3),I(6,VK,3,2,"mat-error",4),u(),m(7,"mat-form-field",2)(8,"mat-label"),f(9," Password"),u(),w(10,"input",5),I(11,BK,2,1,"mat-error",4),u()()()),i&2){let o,a;d(),v("formGroup",r.loginForm),d(5),v("ngIf",((o=r.loginForm.get("username"))==null?null:o.invalid)&&(((o=r.loginForm.get("username"))==null?null:o.dirty)||((o=r.loginForm.get("username"))==null?null:o.touched))),d(5),v("ngIf",((a=r.loginForm.get("password"))==null?null:a.touched)&&((a=r.loginForm.get("password"))==null?null:a.invalid));}},dependencies:[j,Pt,gi,$r,fi,Ti,Hr,Ur,dr,as,kt,Ai,Lt,Nt,Ul,Rt],styles:[".container[_ngcontent-%COMP%]{width:300px;margin:0 auto;padding-top:20px;text-align:center}div[_ngcontent-%COMP%]{margin-bottom:10px}label[_ngcontent-%COMP%]{margin-right:5px}input[_ngcontent-%COMP%]{margin-right:15px}button[_ngcontent-%COMP%]{margin-top:10px}small[_ngcontent-%COMP%]{color:red}"]});}}return t;})();var jK=["cblogin"],Y3=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.loginTxt="Log In";}ngOnInit(){}ngAfterViewInit(){}submitEnabled(){return this.loginComponent?this.loginComponent.isValid():!1;}submit(){this.dialogRef.close({data:this.loginComponent.loginForm.value});}static{this.ɵfac=function(i){return new(i||t)(D(At),D(Yt));};}static{this.ɵcmp=E({type:t,selectors:[["login-dialog"]],viewQuery:function(i,r){if(i&1&&$(jK,5),i&2){let o;R(o=O())&&(r.loginComponent=o.first);}},decls:9,vars:3,consts:[["cblogin",""],["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","","align","center"],["mat-raised-button","",3,"click","disabled"]],template:function(i,r){if(i&1){let o=K();m(0,"h1",1),f(1),u(),m(2,"div",2),w(3,"cb-login",null,0),u(),m(5,"div",3)(6,"button",4),S("click",function(){return k(o),M(r.submit());}),f(7),u()(),w(8,"br");}i&2&&(d(),C(r.loginTxt),d(5),v("disabled",!r.submitEnabled()),d(),N(" ",r.loginTxt," "));},dependencies:[vt,ri,di,oi,ce,ye,j,Q_,kt],encapsulation:2});}}return t;})();var fe=(()=>{class t{constructor(e,i,r,o){this.site=e,this.user=i,this.http=r,this.dialog=o,this.userWidgets=[];}openLoginWindow(e){return this.dialog.open(Y3,{width:"400px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e,backdropClass:"login-backdrop"});}openShareDialog(e){return this.dialog.open(W3,{width:"500px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,panelClass:"share-panel",data:e});}openPromptsDialog(e,i){let r="Available prompts shown below.";return this.dialog.open(rP,{enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,restoreFocus:!1,panelClass:"choose-prompt-panel",data:{msg:r,msg2:"",imagePrompt:e,characterData:i}});}openWidgetCreateDialog(e){return this.dialog.open(MP,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}openNewArticleDialog(e){return this.dialog.open(G3,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}openReplyDialog(e){return this.dialog.open(q3,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}openCharacterCreateDialog(e){return this.dialog.open(TP,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}openConfirmationDialog(e){return this.dialog.open(oP,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}openImageCreateDialog(e){return this.dialog.open(pP,{width:"300px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}openImageSizeAndCountDialog(e){return this.dialog.open(Ws,{width:"350px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e}).afterClosed();}pxToNum(e){let i=e;return i.endsWith("px")&&(i=i.substring(0,i.length-2)),parseInt(i,10);}numToPx(e){return e===0?"0":e+"px";}formatDate(e){var i=new Date(e),r=""+(i.getMonth()+1),o=""+i.getDate(),a=i.getFullYear();return r.length<2&&(r="0"+r),o.length<2&&(o="0"+o),[a,r,o].join("-");}formatDateShort(e){var i=new Date(e),r=""+(i.getMonth()+1),o=""+i.getDate(),a=i.getFullYear();r.length<2&&(r="0"+r),o.length<2&&(o="0"+o);let s=a.toString().substring(2);return[r,o,s].join("-");}truncateString(e,i=200){if(e.length<=i)return e;let r=e.slice(0,i);if(e.charAt(i)!==" "){let o=r.lastIndexOf(" ");o>-1&&(r=r.slice(0,o));}return r+"...";}createDefaultWidgetConfig(){return{endpoint:oe.unknown,messageHint:"Enter your message",message:"",messageType:"Chat Message",features:{prompt:!0,new:!0,save:!1,prompts:{enabled:!1,imagePrompt:!1},clear:!1,share:!1,send:!0,refresh:!1,imageCount:!1,imageSize:!1,uploadImages:!1,uploadImagesImageSize:!1,downloadImages:!1,copyToClipboard:!0,copyToPrompt:!0,saveImagePrompt:!1,createImageFromText:!1,autoSend:{enabled:!1,addToViewer:!1,addUserName:!1},streamedResponses:!1},animation:{enterDuration:"500ms",exitDuration:"300ms"}};}createDefaultCharacter(){return{slug:"",name:"",email:"tester@example.com",description:"You are a helpful assistant.",professionalDescription:"You are a helpful assistant.",enabled:!0,commentsPerDay:1,date:new Date(Date.now()),siteId:this.site.site.slug};}convertAIMessageToHtml(e){let i=JSON.parse(e);return i=i.replace(/[\u00A0-\u9999<>\&]/g,function(r){return"&#"+r.charCodeAt(0)+";";}),i=this.addCodeTags(i),i;}addCodeTags(e){let i=`
`;function r(l){let c="",h=!1;for(let g=l;!h;g++){if(e.charAt(g)===i){h=!0;continue;}c+=e[g];}return c;}let o="",a="",s=!1;for(let l=0;l<e.length;l++){let c=e.charAt(l);if(c==="`"){if(a+="`",a==="```")if(s)o+="</code></pre></div>",s=!1,a="";else{let h=r(l+1);o+='<div class="code-block '+h+'"><pre><code>',l+=h.length,s=!0,a="";}continue;}a.length&&(a="",s=!1),c===i&&!s?o+="<br>":o+=c;}return o;}logHidden(e){let i=e.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t");console.log(i);}strCount(e,i,r=!1){let o=0,a=0;if(i.length<=0)return e.length+1;for(;a=e.indexOf(i,a),a>=0;)o++,a+=r?1:i.length;return o;}escapeHtml(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");}static{this.ɵfac=function(i){return new(i||t)(te(pt),te(Nn),te(Bi),te(ni));};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();function HK(t,n){t&1&&(m(0,"div",3)(1,"span",4)(2,"div",5)(3,"span",6),f(4,"Loading..."),u(),m(5,"span",6),w(6,"mat-spinner",7),u()()()()),t&2&&(d(6),v("diameter",40));}function $K(t,n){if(t&1){let e=K();m(0,"div")(1,"mat-toolbar",9)(2,"span",10)(3,"span",11)(4,"a",12)(5,"span",13),f(6),u()()()(),w(7,"span",14),m(8,"span",15),f(9),u(),m(10,"span")(11,"cb-palette-picker",16),S("selectPaletteEvent",function(r){k(e);let o=y(2);return M(o.selectPalette(r));}),u()(),m(12,"span"),w(13,"language-picker"),u(),m(14,"span")(15,"cb-header-links",17),S("LogoutEvent",function(){k(e);let r=y(2);return M(r.logout());}),u()()()();}if(t&2){let e=y(2);d(6),N(" ",e.title,""),d(3),C(e.userService.user==null?null:e.userService.user.name);}}function UK(t,n){if(t&1&&(m(0,"footer",8),f(1),m(2,"a",18),f(3,"John Turman"),u(),f(4),u()),t&2){let e=y(2);d(),N(" \xA9 ",e.copyTxt," 2023-2025 "),d(3),N(". ",e.copyTxt2,". ");}}function qK(t,n){if(t&1&&(I(0,$K,16,2,"div"),w(1,"router-outlet"),I(2,UK,5,2,"footer",8)),t&2){let e=y();Q(e.demoMode?-1:0),d(2),Q(e.demoMode?-1:2);}}var Q3=(()=>{class t{constructor(e,i,r,o,a,s,l,c){this.router=e,this.navService=i,this.userService=r,this.siteService=o,this.cacheService=a,this.paletteService=s,this.service=l,this.wp=c,this.title="Chatbot",this.copyTxt="Copyright",this.copyTxt2="All Rights Reserved",this.cards=[],this.demoMode=!1,this.loading=!1,this.cards=this.navService.homeCards;}ngOnInit(){let e=this,i=window.self!==window.top;if(this.demoMode=i,this.demoMode){this.doLogin("Demo","Demo"),this.router.events.pipe(Ie(r=>r instanceof Er)).subscribe(()=>{e.openLoginWindow();}),this.loading=!1;return;}if(this.cacheService.get("user")){let r=JSON.parse(this.cacheService.get("user"));this.userService.user=r,e.checkToken(this.userService.user?.wpToken||""),this.loading=!1;}else this.openLoginWindow();this.router.events.pipe(Ie(r=>r instanceof Er)).subscribe(()=>{!this.userService.isLoggedIn()&&!this.dialogRef&&e.openLoginWindow();});}ngAfterViewInit(){}openLoginWindow(){let e=this,i={title:"Login",msg:"",msg2:""};this.dialogRef=this.service.openLoginWindow(i),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(r){console.log("login dialog result",r),e.doLogin(r.data.username,r.data.password);},error(r){console.log("error encountered: ",r);},complete(){e.dialogRef=void 0;}});}checkToken(e){let i=this;if(!e){this.userService.logout(),this.openLoginWindow;return;}this.wp.isLoggedIn(e).pipe(de(1)).subscribe({next(r){r.user?.status===200||(console.log("invalid token"),i.userService.logout(),i.openLoginWindow());},error(r){console.log("Error: "+r),i.openLoginWindow();}});}doLogin(e,i){let r=this;this.userService.doLogin(e,i).pipe(de(1)).subscribe({next(o){if(console.log("token response:",o),!o?.data||!o?.data?.wp_token||!o?.data?.fapi_token){console.warn("invalid response"),r.openLoginWindow();return;}let a=o.data.wp_token,s=o.data.fapi_token;if(a?.data?.status){console.log("token status:",a.data.status),console.warn("login attempt failed."),r.openLoginWindow();return;}let l={fapiToken:s,wpToken:a.token,name:a.user_display_name,email:a.user_email,nicename:a.user_nicename};r.userService.user=l;let c=60*24*365;r.cacheService.set("user",JSON.stringify(l),c),console.log("user:",r.userService.user),r.loading=!1;},error(o){console.log("Error: "+o);}});}logout(){this.cacheService.remove("user"),location.replace("/");}selectPalette(e){this.paletteService.activate(e);}static{this.ɵfac=function(i){return new(i||t)(D(Xe),D(oa),D(Nn),D(pt),D(Bs),D($0),D(fe),D(ra));};}static{this.ɵcmp=E({type:t,selectors:[["cb-root"]],decls:5,vars:1,consts:[[1,"content"],[1,"content-outer"],[1,"content-inner"],[1,"spinner-container","flex-center"],[1,"spinner-text"],[1,"flex-center","flex-column"],[1,"medium-pad"],["mode","indeterminate",3,"diameter"],["id","footer",1,"center"],[1,"cb-header-toolbar"],[1,"logo-wrapper"],[1,"logo"],["routerLink","/",1,"logo-link"],[1,"logo-title"],[1,"flex-spacer"],[1,"cms-role"],[3,"selectPaletteEvent"],[3,"LogoutEvent"],["href","mailto: jturman87@gmail.com"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"div",1)(2,"div",2),I(3,HK,7,1,"div",3)(4,qK,3,2),u()()()),i&2&&(d(3),Q(r.loading?3:4));},dependencies:[rn,Bt,ke,ce,BR,ZR,Xa,XR,Hi,ji],styles:[".spinner-container[_ngcontent-%COMP%]{height:80%;width:100%}.content[_ngcontent-%COMP%]   .content-outer[_ngcontent-%COMP%]{text-align:center}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]{margin:0 auto;max-width:var(--cb-content-max-width);text-align:left}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]{z-index:999;width:100%;height:64px;background-color:var(--mat-sys-primary-container)}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]{width:125px;text-align:center}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{margin-left:10px;font-weight:700;font-size:larger;border-radius:8px;background-color:var(--mat-sys-on-primary);padding:5px 10px}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:48px}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited, .content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%]   .logo-wrapper[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active{text-decoration:none!important;color:var(--mat-sys-primary)}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cb-header-toolbar[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-right:15px}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   .cms-role[_ngcontent-%COMP%]{padding-top:4px;font-size:16px}@media (min-width: 1200px){.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   footer[_ngcontent-%COMP%]{border-radius:5px}}.content[_ngcontent-%COMP%]   .content-inner[_ngcontent-%COMP%]   footer[_ngcontent-%COMP%]{padding:10px;margin:10px 0;font-size:small;background-color:var(--mat-sys-primary-container)}"]});}}return t;})();var WK=["*"];var GK=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],YK=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle,
      [mat-card-title], [mat-card-subtitle],
      [matCardTitle], [matCardSubtitle]`,"*"],QK=new A("MAT_CARD_CONFIG"),Zd=(()=>{class t{appearance;constructor(){let e=p(QK,{optional:!0});this.appearance=e?.appearance||"raised";}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,r){i&2&&Z("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined");},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:WK,decls:1,vars:0,template:function(i,r){i&1&&(De(),le(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(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mdc-elevated-card-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(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-sys-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-sys-corner-medium));border-width:var(--mdc-outlined-card-outline-width, 1px);border-color:var(--mdc-outlined-card-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.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}
`],encapsulation:2,changeDetection:0});}return t;})(),Xd=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]});}return t;})();var Jd=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]});}return t;})(),eu=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]});}return t;})(),tu=(()=>{class t{align="start";static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(i,r){i&2&&Z("mat-mdc-card-actions-align-end",r.align==="end");},inputs:{align:"align"},exportAs:["matCardActions"]});}return t;})(),iu=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:YK,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(De(GK),le(0),m(1,"div",0),le(2,1),u(),le(3,2));},encapsulation:2,changeDetection:0});}return t;})();var nu=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]});}return t;})();var ru=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,he]});}return t;})();function KK(t,n){if(t&1){let e=K();Ce(0),m(1,"span",2)(2,"button",3),S("click",function(){let r=k(e).$implicit,o=y();return M(o.clickLink(r));}),f(3),u()(),we();}if(t&2){let e=n.$implicit;d(2),G("matTooltip",e.tooltip),d(),N(" ",e.name," ");}}var K3=(()=>{class t{constructor(e,i,r){this.router=e,this.unsavedChanges=i,this.dialog=r,this.links=rt.required();}ngOnInit(){}clickLink(e){if(e.external){console.log("external link clicked"),this.unsavedChanges.hasUnsavedChanges()?this.dialog.open(na,{width:"350px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{destinationUrl:e.href}}):window.open(e.href,"_self");return;}this.router.navigate([e.href]);}static{this.ɵfac=function(i){return new(i||t)(D(Xe),D(Fn),D(ni));};}static{this.ɵcmp=E({type:t,selectors:[["cb-quicklinks"]],inputs:{links:[1,"links"]},decls:2,vars:1,consts:[[1,"quicklinks"],[4,"ngFor","ngForOf"],[1,"quicklink"],["color","accent","mat-raised-button","",3,"click","matTooltip"]],template:function(i,r){i&1&&(m(0,"div",0),I(1,KK,4,2,"ng-container",1),u()),i&2&&(d(),v("ngForOf",r.links()));},dependencies:[j,ei,Je,Ct,Ft,ce,ye],styles:[".quicklinks[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around;flex-wrap:wrap;gap:5px}.quicklinks[_ngcontent-%COMP%]   .quicklink[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:100px}.featured-link[_ngcontent-%COMP%]{margin:10px 0}.featured-link[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-weight:700}"]});}}return t;})();var ZK=["mat-sort-header",""],XK=["*"];function JK(t,n){t&1&&(m(0,"div",2),Zt(),m(1,"svg",3),w(2,"path",4),u()());}var Z3=new A("MAT_SORT_DEFAULT_OPTIONS"),cn=(()=>{class t{_defaultOptions;_initializedStream=new Oa(1);sortables=new Map();_stateChanges=new H();active;start="asc";get direction(){return this._direction;}set direction(e){this._direction=e;}_direction="";disableClear;disabled=!1;sortChange=new V();initialized=this._initializedStream;constructor(e){this._defaultOptions=e;}register(e){this.sortables.set(e.id,e);}deregister(e){this.sortables.delete(e.id);}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction});}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=eZ(e.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o];}ngOnInit(){this._initializedStream.next();}ngOnChanges(){this._stateChanges.next();}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete();}static ɵfac=function(i){return new(i||t)(D(Z3,8));};static ɵdir=z({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",U],disabled:[2,"matSortDisabled","disabled",U]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[He]});}return t;})();function eZ(t,n){let e=["asc","desc"];return t=="desc"&&e.reverse(),n||e.push(""),e;}var K_=(()=>{class t{changes=new H();static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function tZ(t){return t||new K_();}var iZ={provide:K_,deps:[[new _r(),new no(),K_]],useFactory:tZ},Qs=(()=>{class t{_intl=p(K_);_sort=p(cn,{optional:!0});_columnDef=p("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=p(pe);_focusMonitor=p(Mi);_elementRef=p(J);_ariaDescriber=p(rp,{optional:!0});_renderChanges;_animationModule=p(Ne,{optional:!0});_recentlyCleared=Zi(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription;}set sortActionDescription(e){this._updateSortActionDescription(e);}_sortActionDescription="Sort";disableClear;constructor(){p(nt).load(ii);let e=p(Z3,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition);}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=St(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription);}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>this._recentlyCleared.set(null));}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription);}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?i:null);}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction());}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc");}_isDisabled(){return this._sort.disabled||this.disabled;}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none";}_renderArrow(){return!this._isDisabled()||this._isSorted();}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggleOnInteraction();})("keydown",function(a){return r._handleKeydown(a);})("mouseleave",function(){return r._recentlyCleared.set(null);}),i&2&&(ee("aria-sort",r._getAriaSortAttribute()),Z("mat-sort-header-disabled",r._isDisabled()));},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",U],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",U]},exportAs:["matSortHeader"],attrs:ZK,ngContentSelectors:XK,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"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(De(),m(0,"div",0)(1,"div",1),le(2),u(),I(3,JK,3,0,"div",2),u()),i&2&&(Z("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationModule==="NoopAnimations"),ee("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),d(3),Q(r._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{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}
`],encapsulation:2,changeDetection:0});}return t;})(),Ks=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[iZ],imports:[he]});}return t;})();function nZ(t,n){if(t&1&&(m(0,"mat-option",17),f(1),u()),t&2){let e=n.$implicit;v("value",e),d(),N(" ",e," ");}}function rZ(t,n){if(t&1){let e=K();m(0,"mat-form-field",14)(1,"mat-select",16,0),S("selectionChange",function(r){k(e);let o=y(2);return M(o._changePageSize(r.value));}),Ut(3,nZ,2,2,"mat-option",17,Wa),u(),m(5,"div",18),S("click",function(){k(e);let r=We(2);return M(r.open());}),u()();}if(t&2){let e=y(2);v("appearance",e._formFieldAppearance)("color",e.color),d(),v("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),d(2),qt(e._displayedPageSizeOptions);}}function oZ(t,n){if(t&1&&(m(0,"div",15),f(1),u()),t&2){let e=y(2);d(),C(e.pageSize);}}function aZ(t,n){if(t&1&&(m(0,"div",3)(1,"div",13),f(2),u(),I(3,rZ,6,7,"mat-form-field",14)(4,oZ,2,1,"div",15),u()),t&2){let e=y();d(),ee("id",e._pageSizeLabelId),d(),N(" "��,e._intl.itemsPerPageLabel," "),d(),Q(e._displayedPageSizeOptions.length>1?3:-1),d(),Q(e._displayedPageSizeOptions.length<=1?4:-1);}}function sZ(t,n){if(t&1){let e=K();m(0,"button",19),S("click",function(){k(e);let r=y();return M(r._buttonClicked(0,r._previousButtonsDisabled()));}),Zt(),m(1,"svg",8),w(2,"path",20),u()();}if(t&2){let e=y();v("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),ee("aria-label",e._intl.firstPageLabel);}}function lZ(t,n){if(t&1){let e=K();m(0,"button",21),S("click",function(){k(e);let r=y();return M(r._buttonClicked(r.getNumberOfPages()-1,r._nextButtonsDisabled()));}),Zt(),m(1,"svg",8),w(2,"path",22),u()();}if(t&2){let e=y();v("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),ee("aria-label",e._intl.lastPageLabel);}}var X_=(()=>{class t{changes=new H();itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,a=o<r?Math.min(o+i,r):o+i;return`${o+1} \u2013 ${a} of ${r}`;};static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})();function cZ(t){return t||new X_();}var dZ={provide:X_,deps:[[new _r(),new no(),X_]],useFactory:cZ},uZ=50;var mZ=new A("MAT_PAGINATOR_DEFAULT_OPTIONS"),cs=(()=>{class t{_intl=p(X_);_changeDetectorRef=p(pe);_formFieldAppearance;_pageSizeLabelId=p(Ye).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Oa(1);color;get pageIndex(){return this._pageIndex;}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck();}_pageIndex=0;get length(){return this._length;}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck();}_length=0;get pageSize(){return this._pageSize;}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions();}_pageSize;get pageSizeOptions(){return this._pageSizeOptions;}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>ut(i,0)),this._updateDisplayedPageSizeOptions();}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new V();_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,i=p(mZ,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:r,pageSizeOptions:o,hidePageSize:a,showFirstLastButtons:s}=i;r!=null&&(this._pageSize=r),o!=null&&(this._pageSizeOptions=o),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s);}this._formFieldAppearance=i?.formFieldAppearance||"outline";}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next();}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe();}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1);}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1);}firstPage(){this.hasPreviousPage()&&this._navigate(0);}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1);}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0;}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndex<e&&this.pageSize!=0;}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0;}_changePageSize(e){let i=this.pageIndex*this.pageSize,r=this.pageIndex;this.pageIndex=Math.floor(i/e)||0,this.pageSize=e,this._emitPageEvent(r);}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage();}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage();}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:uZ),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,i)=>e-i),this._changeDetectorRef.markForCheck());}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length});}_navigate(e){let i=this.pageIndex;e!==i&&(this.pageIndex=e,this._emitPageEvent(i));}_buttonClicked(e,i){i||this._navigate(e);}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ut],length:[2,"length","length",ut],pageSize:[2,"pageSize","pageSize",ut],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",U],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",U],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",U]},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-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["mat-icon-button","","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"],["mat-icon-button","","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"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[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"],["mat-icon-button","","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"],["mat-icon-button","","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(i,r){i&1&&(m(0,"div",1)(1,"div",2),I(2,aZ,5,4,"div",3),m(3,"div",4)(4,"div",5),f(5),u(),I(6,sZ,3,5,"button",6),m(7,"button",7),S("click",function(){return r._buttonClicked(r.pageIndex-1,r._previousButtonsDisabled());}),Zt(),m(8,"svg",8),w(9,"path",9),u()(),zo(),m(10,"button",10),S("click",function(){return r._buttonClicked(r.pageIndex+1,r._nextButtonsDisabled());}),Zt(),m(11,"svg",8),w(12,"path",11),u()(),I(13,lZ,3,5,"button",12),u()()()),i&2&&(d(2),Q(r.hidePageSize?-1:2),d(3),N(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),d(),Q(r.showFirstLastButtons?6:-1),d(),v("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("disabled",r._previousButtonsDisabled())("tabindex",r._previousButtonsDisabled()?-1:null),ee("aria-label",r._intl.previousPageLabel),d(3),v("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("disabled",r._nextButtonsDisabled())("tabindex",r._nextButtonsDisabled()?-1:null),ee("aria-label",r._intl.nextPageLabel),d(3),Q(r.showFirstLastButtons?13:-1));},dependencies:[Lt,Yl,rs,Si,Ct],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: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:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}
`],encapsulation:2,changeDetection:0});}return t;})(),ou=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[dZ],imports:[ce,_o,Je,cs]});}return t;})();var pZ=t=>({display:t});function hZ(t,n){t&1&&(m(0,"div",10),w(1,"mat-spinner",11),u()),t&2&&(d(),v("diameter",40));}function fZ(t,n){if(t&1&&(m(0,"th",12),f(1),u()),t&2){let e=y();d(),N(" ",e.idText," ");}}function gZ(t,n){if(t&1&&(m(0,"td",13),f(1),u()),t&2){let e=n.$implicit;d(),C(e.id);}}function _Z(t,n){if(t&1&&(m(0,"th",14),f(1),u()),t&2){let e=y();d(),N(" ",e.createdText," ");}}function bZ(t,n){if(t&1&&(m(0,"td",13),f(1),u()),t&2){let e=n.$implicit;d(),C(e.created);}}function vZ(t,n){t&1&&w(0,"tr",15);}function yZ(t,n){t&1&&w(0,"tr",16);}var xZ=[],J3=(()=>{class t{constructor(e,i,r){this.chatService=e,this.service=i,this.cache=r,this.displayedColumns=["id","created"],this.dataSource=new Wr(xZ),this.table=um.required(vn),this.sort=um.required(cn),this.idText="ID",this.createdText="Created",this.loading=!0;}ngOnInit(){}ngAfterViewInit(){this.dataSource.sort=this.sort(),this.dataSource.sortingDataAccessor=(o,a)=>{switch(a){case"created":return o.createdOriginal;default:return o[a];}};let e=this,i={userId:Tt.unknown,endpoint:oe.openaimodels,body:"",bodyOriginal:"",options:{}};i.id=++jt.sNextID;let r=this.cache.get("info-api");if(r){setTimeout(()=>{e.handleResponse(r);});return;}e.chatService.fetchModels().subscribe(o=>{o?(this.cache.set("info-api",o,20),e.handleResponse(o)):console.log("no data received");},o=>{console.log("error: ",o);});}handleResponse(e){this.loading=!1;let i=e.data,r=[];i.forEach(o=>{let a=new Date(o.created*1e3);r.push({id:o.id,created:this.service.formatDateShort(a),createdOriginal:o.created});}),r.sort((o,a)=>o.createdOriginal<a.createdOriginal?1:o.createdOriginal>a.createdOriginal?-1:0),r=r.slice(0,8),this.dataSource.data=r,this.table().renderRows();}static{this.ɵfac=function(i){return new(i||t)(D(Gr),D(fe),D(Bs));};}static{this.ɵcmp=E({type:t,selectors:[["api-card"]],viewQuery:function(i,r){i&1&&(fm(r.table,vn,5),fm(r.sort,cn,5)),i&2&&ad(2);},decls:11,vars:7,consts:[["class","spinner-container",4,"ngIf"],[1,"well"],["mat-table","","matSort","","matSortActive","created","matSortDirection","desc","matSortDisableClear","",1,"mat-elevation-z8",3,"ngStyle","dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by id",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by created",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"spinner-container"],["mode","indeterminate",3,"diameter"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by id"],["mat-cell",""],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by created"],["mat-header-row",""],["mat-row",""]],template:function(i,r){i&1&&(I(0,hZ,2,1,"div",0),m(1,"div",1)(2,"table",2),Ce(3,3),I(4,fZ,2,1,"th",4)(5,gZ,2,1,"td",5),we(),Ce(6,6),I(7,_Z,2,1,"th",7)(8,bZ,2,1,"td",5),we(),I(9,vZ,1,0,"tr",8)(10,yZ,1,0,"tr",9),u()()),i&2&&(v("ngIf",r.loading),d(2),v("ngStyle",Ue(5,pZ,r.loading?"none":"table"))("dataSource",r.dataSource),d(7),v("matHeaderRowDef",r.displayedColumns),d(),v("matRowDefColumns",r.displayedColumns));},dependencies:[j,Pt,gn,va,vn,ua,fa,ma,da,ga,pa,ha,_a,ba,Ks,cn,Qs,Hi,ji,ou],styles:["table[_ngcontent-%COMP%]{width:100%;margin-left:-5px;margin-right:-5px}th.mat-sort-header-sorted[_ngcontent-%COMP%]{color:#000}.spinner-container[_ngcontent-%COMP%]{padding:30px 0;display:flex;align-items:center;justify-content:center}.spinner-container[_ngcontent-%COMP%]   mat-spinner[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:30px}"]});}}return t;})();var CZ=t=>({"border-radius":t});function wZ(t,n){if(t&1&&(m(0,"span",1),w(1,"img",2),u()),t&2){let e=y();d(),v("ngClass",Ue(2,CZ,e.borderRadius()))("src",e.gravatarUrl,Fr);}}function DZ(t,n){if(t&1&&(m(0,"mat-icon"),f(1),u()),t&2){let e=y();d(),C(e.altIcon());}}var Ea=(()=>{class t{constructor(){this.email=rt("test@example.com"),this.altIcon=rt("person"),this.size=rt("100"),this.borderRadius=rt(!1),this.character=rt(void 0),this.gravatarUrl="";}ngOnInit(){this.useGravatars()&&this.getGravatarUrl(this.email());}useGravatars(){return window.location.hostname==="localhost"?!0:window.location.protocol==="https:";}getGravatarUrl(e){if(!this.useGravatars()){console.log("gravatars not supported");return;}let i=this;function r(o){return Iu(this,null,function*(){let a=new TextEncoder().encode(o),s=yield window.crypto.subtle.digest("SHA-256",a);return Array.from(new Uint8Array(s)).map(h=>h.toString(16).padStart(2,"0")).join("");});}r(e).then(o=>{if(i.character()){let a=i.character()?.name;i.gravatarUrl=`https://www.gravatar.com/avatar/${o}?s=${i.size()}&name=${a}&d=initials`;}else i.gravatarUrl=`https://www.gravatar.com/avatar/${o}?s=${i.size()}`;});}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-gravatar"]],inputs:{email:[1,"email"],altIcon:[1,"altIcon"],size:[1,"size"],borderRadius:[1,"borderRadius"],character:[1,"character"]},decls:3,vars:1,consts:[[1,"cb-gravatar"],[1,"gravatar-container"],["alt","Gravatar Image",3,"ngClass","src"]],template:function(i,r){i&1&&(m(0,"span",0),I(1,wZ,2,4,"span",1)(2,DZ,2,1,"mat-icon"),u()),i&2&&(d(),Q(r.useGravatars()?1:2));},dependencies:[j,yr,ke,Oe],encapsulation:2});}}return t;})();function EZ(t,n){if(t&1){let e=K();m(0,"button",3),S("click",function(){k(e);let r=y().$implicit,o=y(2);return M(o.click(r));}),m(1,"mat-icon"),f(2),u(),m(3,"span"),f(4),u()();}if(t&2){let e=y().$implicit;d(2),C(e.icon),d(2),C(e.title);}}function kZ(t,n){if(t&1&&I(0,EZ,5,2,"button",2),t&2){let e=n.$implicit;Q(e.enabled&&!e.hidden?0:-1);}}function MZ(t,n){if(t&1&&(m(0,"button",1)(1,"mat-icon"),f(2,"menu"),u()(),m(3,"mat-menu",null,0),Ut(5,kZ,1,1,null,null,ir),u()),t&2){let e=We(4),i=y();v("matMenuTriggerFor",e),d(5),qt(i.cards);}}var mD=(()=>{class t{constructor(e){this.router=e,this.cards=[];}click(e){this.router.navigate([e.link.href]);}static{this.ɵfac=function(i){return new(i||t)(D(Xe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-page-header-menu"]],decls:1,vars:1,consts:[["menu","matMenu"],["mat-icon-button","","aria-label","Example icon-button with a menu",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"]],template:function(i,r){i&1&&I(0,MZ,7,1),i&2&&Q(r.cards&&r.cards.length>0?0:-1);},dependencies:[ce,Si,ia,cr,kr,ta,ke,Oe,Ft],encapsulation:2});}}return t;})();function SZ(t,n){if(t&1&&(m(0,"mat-icon",15),f(1),u()),t&2){let e=y(2).$implicit;d(),C(e.icon);}}function IZ(t,n){if(t&1&&(m(0,"a",13),I(1,SZ,2,1,"mat-icon",14),m(2,"span"),f(3),u()()),t&2){let e=y().$implicit;G("routerLink",e.href),d(),v("ngIf",e.icon),d(2),C(e.name);}}function TZ(t,n){if(t&1&&(m(0,"mat-icon",15),f(1),u()),t&2){let e=y(2).$implicit;d(),C(e.icon);}}function AZ(t,n){if(t&1&&(m(0,"a",13),I(1,TZ,2,1,"mat-icon",14),f(2),u()),t&2){let e=y().$implicit;G("routerLink",e.href),d(),v("ngIf",e.icon),d(),N(" ",e.name,"");}}function RZ(t,n){t&1&&(m(0,"span"),f(1," \xA0/\xA0 "),u());}function OZ(t,n){if(t&1&&(m(0,"span",11),I(1,IZ,4,3,"a",12)(2,AZ,3,3,"ng-template",null,0,Vr)(4,RZ,2,0,"span",8),u()),t&2){let e=n.index,i=We(3),r=y(2);d(),v("ngIf",r.breadcrumbs.length===1)("ngIfElse",i),d(3),v("ngIf",e<r.breadcrumbs.length-1);}}function PZ(t,n){if(t&1&&(m(0,"span",2),I(1,OZ,5,3,"span",10),u()),t&2){let e=y();d(),v("ngForOf",e.breadcrumbs);}}function FZ(t,n){t&1&&(m(0,"span",2),f(1,"\xA0"),u());}function NZ(t,n){if(t&1&&I(0,FZ,2,0,"span",16),t&2){let e=y();v("ngIf",!e.breadcrumbs);}}function LZ(t,n){if(t&1&&(m(0,"span",4),w(1,"cb-gravatar",17),u()),t&2){let e=y();d(),v("character",e.character())("size","150")("email",e.gravatarEmail);}}function VZ(t,n){if(t&1&&(m(0,"span")(1,"mat-icon",15),f(2),u(),f(3,"\xA0"),u()),t&2){let e=y(2);d(2),C(e.icon.toLowerCase());}}function zZ(t,n){if(t&1&&I(0,VZ,4,1,"span",8),t&2){let e=y();v("ngIf",e.icon);}}function BZ(t,n){if(t&1&&(m(0,"mat-icon",18),f(1,"help"),u()),t&2){let e=y();G("matTooltip",e.help);}}function jZ(t,n){t&1&&(m(0,"span"),f(1,"\xA0"),u());}var _i=(()=>{class t{constructor(e,i,r){this.router=e,this.changeDetector=i,this.site=r,this.gravatarEmail="",this.help="",this.character=rt(void 0),this.allowNavigation=!1;}ngOnInit(){this.allowNavigation=this.site.allowNavigation();}static{this.ɵfac=function(i){return new(i||t)(D(Xe),D(pe),D(pt));};}static{this.ɵcmp=E({type:t,selectors:[["cb-page-header"]],viewQuery:function(i,r){if(i&1&&$(mD,5),i&2){let o;R(o=O())&&(r.menu=o.first);}},inputs:{breadcrumbs:"breadcrumbs",gravatarEmail:"gravatarEmail",icon:"icon",title:"title",help:"help",character:[1,"character"]},decls:13,vars:5,consts:[["nothome",""],[1,"page-header"],[1,"breadcrumbs"],[1,"header-title"],[1,"gravatar"],[1,"right-side"],[1,"help-icon"],[3,"matTooltip",4,"ngIf"],[4,"ngIf"],[1,"nav-menu"],["class","crumb",4,"ngFor","ngForOf"],[1,"crumb"],[3,"routerLink",4,"ngIf","ngIfElse"],[3,"routerLink"],["class","hide-on-small",4,"ngIf"],[1,"hide-on-small"],["class","breadcrumbs",4,"ngIf"],[3,"character","size","email"],[3,"matTooltip"]],template:function(i,r){i&1&&(m(0,"div",1),I(1,PZ,2,1,"span",2)(2,NZ,1,1,"span",2),m(3,"span",3),I(4,LZ,2,3,"span",4)(5,zZ,1,1,"span"),f(6),u(),m(7,"span",5)(8,"span",6),I(9,BZ,2,1,"mat-icon",7)(10,jZ,2,0,"span",8),u(),m(11,"span",9),w(12,"cb-page-header-menu"),u()()()),i&2&&(d(),Q(r.breadcrumbs&&r.allowNavigation?1:2),d(3),Q(r.gravatarEmail?4:r.icon?5:-1),d(2),N(" ",r.title,""),d(3),v("ngIf",r.help),d(),v("ngIf",!r.help));},dependencies:[j,ei,Pt,ke,Oe,Je,Ct,Ft,Bt,Ea,mD],styles:["@media (min-width: 1200px){.page-header[_ngcontent-%COMP%]{border-radius:0 0 10px 10px}}.page-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:16px 0;margin-bottom:10px;background-color:var(--mat-sys-on-primary)}.page-header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link, .page-header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited, .page-header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active, .page-header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none}.page-header[_ngcontent-%COMP%]   .breadcrumbs[_ngcontent-%COMP%]{font-size:small;margin-left:20px;width:150px}.page-header[_ngcontent-%COMP%]   .breadcrumbs[_ngcontent-%COMP%]   .crumb[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:2px;margin-left:2px;vertical-align:bottom;width:16px;height:16px;font-size:16px}.page-header[_ngcontent-%COMP%]   .gravatar[_ngcontent-%COMP%]{width:150px;text-align:center}.page-header[_ngcontent-%COMP%]   .header-title[_ngcontent-%COMP%]{text-align:center;font-size:large;font-weight:700}.page-header[_ngcontent-%COMP%]   .header-title[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}.page-header[_ngcontent-%COMP%]   .right-side[_ngcontent-%COMP%]{width:150px;margin-right:10px;text-align:right}.page-header[_ngcontent-%COMP%]   .right-side[_ngcontent-%COMP%]   .nav-menu[_ngcontent-%COMP%]{margin-right:15px}.page-header[_ngcontent-%COMP%]   .right-side[_ngcontent-%COMP%]   .help-icon[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:5px;width:24px;height:24px;font-size:24px}"]});}}return t;})();var HZ=t=>({width:t});function $Z(t,n){if(t&1&&(m(0,"span"),f(1),u()),t&2){let e=y(2).$implicit;d(),C(e.name);}}function UZ(t,n){if(t&1&&(m(0,"a",6)(1,"mat-icon"),f(2),u(),I(3,$Z,2,1,"span",7),u()),t&2){let e=y().$implicit,i=y();G("matTooltip",e.tooltip),G("href",i.fullUrl(),Fr),d(2),C(e.icon),d(),v("ngIf",!i.miniSize);}}function qZ(t,n){if(t&1&&(m(0,"span"),f(1),u()),t&2){let e=y(2).$implicit;d(),C(e.name);}}function WZ(t,n){if(t&1){let e=K();m(0,"button",8),S("click",function(){k(e);let r=y().$implicit,o=y();return M(o.performAction(r.id));}),m(1,"mat-icon"),f(2),u(),I(3,qZ,2,1,"span",7),u();}if(t&2){let e=y().$implicit,i=y();G("matTooltip",e.tooltip),d(2),C(e.icon),d(),v("ngIf",!i.miniSize);}}function GZ(t,n){if(t&1&&(Ce(0),I(1,UZ,4,4,"a",4)(2,WZ,4,3,"button",5),we()),t&2){let e=n.$implicit;d(),v("ngIf",e.id===3),d(),v("ngIf",e.enabled&&e.id!==3);}}var au=(()=>{class t{constructor(e){this.router=e,this.url=rt.required(),this.fullUrl=rt.required(),this.altText=rt(""),this.disabledActions=rt([]),this.saveToLibraryEvent=new V(),this.createVariationsEvent=new V(),this.createEditsEvent=new V(),this.miniSize=!1,this.actions=[];}ngOnInit(){this.width&&this.width<250&&(this.miniSize=!0);let e=[];e.push({id:0,name:"Save",href:"#",icon:"save",tooltip:"Save image to Media Library"}),e.push({id:1,name:"Variations",href:"#",icon:"burst_mode",tooltip:"Set options and generate variations of this image."}),e.push({id:2,name:"Edit",href:"#",icon:"edit",tooltip:"Selectively regenerate areas of this image based on a prompt."}),e.push({id:3,name:"New Tab",href:"#",icon:"open_in_new",tooltip:"Open image in new tab."}),e.forEach(i=>{this.disabledActions()?.indexOf(i.id)===-1?i.enabled=!0:i.enabled=!1,this.actions.push(i);});}ngAfterViewInit(){}performAction(e){let i=this.actions[e];switch(i.href=this.url(),console.log("perform action",i),e){case 0:this.saveToLibraryEvent.emit(i);break;case 1:this.createVariationsEvent.emit(i);break;case 2:this.createEditsEvent.emit(i);break;case 3:break;case 4:break;default:console.log("invalid action id");}}static{this.ɵfac=function(i){return new(i||t)(D(Xe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-enhancer"]],inputs:{url:[1,"url"],fullUrl:[1,"fullUrl"],altText:[1,"altText"],width:"width",disabledActions:[1,"disabledActions"]},outputs:{saveToLibraryEvent:"saveToLibraryEvent",createVariationsEvent:"createVariationsEvent",createEditsEvent:"createEditsEvent"},decls:4,vars:7,consts:[[1,"image-container",3,"ngStyle","ngClass"],[3,"src","alt"],[1,"image-overlay"],[4,"ngFor","ngForOf"],["color","accent","class","action","mat-raised-button","","target","_blank",3,"matTooltip","href",4,"ngIf"],["class","action","mat-raised-button","","color","accent",3,"matTooltip","click",4,"ngIf"],["color","accent","mat-raised-button","","target","_blank",1,"action",3,"matTooltip","href"],[4,"ngIf"],["mat-raised-button","","color","accent",1,"action",3,"click","matTooltip"]],template:function(i,r){i&1&&(m(0,"div",0),w(1,"img",1),m(2,"div",2),I(3,GZ,3,2,"ng-container",3),u()()),i&2&&(v("ngStyle",Ue(5,HZ,r.width?r.width+"px":"auto"))("ngClass",r.miniSize?"mini":"large"),d(),G("src",r.url(),Fr),G("alt",r.altText()),d(2),v("ngForOf",r.actions));},dependencies:[j,yr,ei,Pt,gn,ce,Rn,ye,ke,Oe,Je,Ct],styles:["[_nghost-%COMP%]:hover   .image-overlay[_ngcontent-%COMP%]{display:flex}.image-container[_ngcontent-%COMP%]{position:relative;text-align:center;display:inline-block}.image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:auto;display:block}.image-container.mini[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:0;margin-left:0}.image-container.mini[_ngcontent-%COMP%]   .image-overlay[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]{padding:0;height:32px;width:32px;min-width:32px}.image-overlay[_ngcontent-%COMP%]{padding-top:5px;display:none;position:absolute;top:0;left:0;width:100%;justify-content:center;align-items:left;flex-wrap:wrap;background-color:#fff0}.image-overlay[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]{height:30px;margin:2px}"]});}}return t;})();var J_=(()=>{class t{get vertical(){return this._vertical;}set vertical(e){this._vertical=Ji(e);}_vertical=!1;get inset(){return this._inset;}set inset(e){this._inset=Ji(e);}_inset=!1;static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(ee("aria-orientation",r.vertical?"vertical":"horizontal"),Z("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset));},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));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));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}
`],encapsulation:2,changeDetection:0});}return t;})(),Wi=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,he]});}return t;})();var YZ=()=>[0];function QZ(t,n){if(t&1){let e=K();m(0,"cb-image-enhancer",9),S("createEditsEvent",function(){k(e);let r=y().$implicit,o=y();return M(o.createEdits(r.fullImageUrl));})("createVariationsEvent",function(){k(e);let r=y().$implicit,o=y();return M(o.createVariations(r.fullImageUrl));}),u();}if(t&2){let e=y().$implicit;v("disabledActions",Sn(4,YZ))("width",100)("url",e.imageUrl)("fullUrl",e.fullImageUrl);}}function KZ(t,n){if(t&1){let e=K();m(0,"div",2),I(1,QZ,1,5,"cb-image-enhancer",3),m(2,"div")(3,"a",4),S("click",function(){let r=k(e).$implicit,o=y();return M(o.goToCms(r));}),f(4),u(),w(5,"br"),m(6,"span",5),f(7),u(),f(8),m(9,"span",6),f(10),u(),w(11,"br")(12,"span",7),u(),w(13,"div",8)(14,"mat-divider"),u();}if(t&2){let e=n.$implicit,i=y();d(),v("ngIf",e.imageUrl),d(3),C(e.title),d(3),C(e.date),d(),N(" ",i.byTxt," "),d(2),C(e.author),d(2),v("innerHTML",i.sanitizer.bypassSecurityTrustHtml(e.excerpt),id);}}var tN=(()=>{class t{constructor(e,i,r,o,a,s){this.service=e,this.sanitizer=i,this.unsavedChanges=r,this.dialog=o,this.router=a,this.wp=s,this.posts=[],this.byTxt="by";}ngOnInit(){let e=this;this.wp.fetchNews("").pipe(de(1)).subscribe({next(i){e.posts=e.wp.convertWpPosts(i);},error(i){console.log("error encountered: ",i);},complete(){}});}createVariations(e){let i=this,r=encodeURI(e);this.service.openImageSizeAndCountDialog({title:"Create Variations",msg:"Submit your options for variations.",msg2:""}).pipe(de(1)).subscribe({next(o){console.log("dialog result is ",o),i.router.navigate(["/image/variations",{img:r,count:o.count,size:o.size}]);},error(o){console.log("error encountered: ",o);},complete(){}});}createEdits(e){let i=encodeURI(e);this.router.navigate(["/image/edit",{editImg:i}]);}goToCms(e){this.unsavedChanges.hasUnsavedChanges()?this.dialog.open(na,{width:"350px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{destinationUrl:e.url}}):window.open(e.url,"_self");}static{this.ɵfac=function(i){return new(i||t)(D(fe),D(xr),D(Fn),D(ni),D(Xe),D(ra));};}static{this.ɵcmp=E({type:t,selectors:[["cb-news-card"]],decls:2,vars:1,consts:[[1,"news"],["class","article news-article",4,"ngFor","ngForOf"],[1,"article","news-article"],[3,"disabledActions","width","url","fullUrl","createEditsEvent","createVariationsEvent",4,"ngIf"],[3,"click","routerLink"],[1,"date"],[1,"author"],[1,"excerpt",3,"innerHTML"],[1,"clear"],[3,"createEditsEvent","createVariationsEvent","disabledActions","width","url","fullUrl"]],template:function(i,r){i&1&&(m(0,"div",0),I(1,KZ,15,6,"div",1),u()),i&2&&(d(),v("ngForOf",r.posts));},dependencies:[j,ei,Pt,au,Ft,Bt,Wi,J_],encapsulation:2});}}return t;})();var ZZ=()=>[0];function XZ(t,n){if(t&1){let e=K();m(0,"li",5)(1,"a",6),S("click",function(){let r=k(e).$implicit,o=y();return M(o.goToCms(r));}),f(2),u()();}if(t&2){let e=n.$implicit;d(2),C(e.title);}}function JZ(t,n){if(t&1){let e=K();m(0,"div",7)(1,"cb-image-enhancer",8),S("createEditsEvent",function(r){let o=k(e).$implicit,a=y();return M(a.createEdits(o,r));})("createVariationsEvent",function(){let r=k(e).$implicit,o=y();return M(o.createVariations(r.fullUrl));}),u()();}if(t&2){let e=n.$implicit;d(),v("disabledActions",Sn(4,ZZ))("width",100)("url",e.url)("fullUrl",e.fullUrl);}}var iN=(()=>{class t{constructor(e,i,r,o,a){this.service=e,this.sanitizer=i,this.unsavedChanges=r,this.dialog=o,this.wp=a,this.router=p(Xe),this.createVariationsEvent=new V(),this.posts=[],this.images=[];}ngOnInit(){let e=this;this.wp.fetchRecentContent("").pipe(de(1)).subscribe({next(i){e.posts=e.wp.convertWpPosts(i);},error(i){console.log("error encountered: ",i);},complete(){}}),this.wp.fetchFeaturedImages("").pipe(de(1)).subscribe({next(i){i.forEach(r=>{let o=r.media_details.sizes.thumbnail.source_url;e.images.push({url:o,fullUrl:r.source_url,meta:r.media_details});});},error(i){console.log("error encountered: ",i);},complete(){}});}createVariations(e){let i=this,r=encodeURI(e);this.service.openImageSizeAndCountDialog({title:"Create Variations",msg:"Submit your options for variations.",msg2:""}).pipe(de(1)).subscribe({next(o){console.log("dialog result is ",o),i.router.navigate(["/image/variations",{img:r,count:o.count,size:o.size}]);},error(o){console.log("error encountered: ",o);},complete(){}});}createEdits(e,i){let r=encodeURI(e.meta.sizes.full.source_url);console.log("create edit",i),this.router.navigate(["/image/edit",{editImg:r}]);}goToCms(e){this.unsavedChanges.hasUnsavedChanges()?this.dialog.open(na,{width:"350px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{destinationUrl:e.url}}):window.open(e.url,"_self");}static{this.ɵfac=function(i){return new(i||t)(D(fe),D(xr),D(Fn),D(ni),D(ra));};}static{this.ɵcmp=E({type:t,selectors:[["cb-recent-card"]],outputs:{createVariationsEvent:"createVariationsEvent"},decls:5,vars:2,consts:[[1,"recent"],[1,"articles"],["class","article recent-article",4,"ngFor","ngForOf"],[1,"image-container"],["class","image",4,"ngFo��r","ngForOf"],[1,"article","recent-article"],[3,"click","routerLink"],[1,"image"],[3,"createEditsEvent","createVariationsEvent","disabledActions","width","url","fullUrl"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"ul",1),I(2,XZ,3,1,"li",2),u(),m(3,"div",3),I(4,JZ,2,5,"div",4),u()()),i&2&&(d(2),v("ngForOf",r.posts),d(2),v("ngForOf",r.images));},dependencies:[j,ei,au,Ft,Bt],encapsulation:2});}}return t;})();var nN=(()=>{class t{constructor(e){this.service=e,this.router=p(Xe),this.dialog=p(ni),this._snackBar=p(_n),this.unsavedChanges=p(Fn),this.site=p(pt),this.hint="Enter your question here.",this.msg="",this.directions="Chatbot can answer all kinds of questions (science, history,\n    art, math, etc) and perform many tasks (writing code, poetry, translating text).  \n    Chatbot has only been trained up until roughly one year ago.",this.directions2="Instructions:",this.directions3="Type your question or instructions below. If you're\n  not sure how to get started, use the Prompts button and select from the available prompts. Then click the send button to continue.",this.promptsTip="Find a prompt to get you started",this.promptsMsg="Prompts",this.clearTip="Clear your message.",this.clearMsg="Clear",this.sendTip="Send Message",this.sendMsg="Send";}showPrompts(){let e=this;this.service.openPromptsDialog(!1).afterClosed().subscribe(r=>{if(!r)return;let o=r.prompt;this.msg=o.Message,this._snackBar.open("Selected prompt has been inserted.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});});}clear(){this.msg="";}send(){let e=encodeURIComponent(this.msg),i=window.location.protocol+"//"+window.location.host+"/chat/ask-me-anything?msg="+e;this.unsavedChanges.hasUnsavedChanges()?this.dialog.open(na,{width:"350px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{navigation:["/chat/ask-me-anything",{msg:this.msg}],destinationUrl:i}}):this.router.navigate(["/chat/ask-me-anything",{msg:this.msg}]);}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-chat-card"]],decls:28,vars:13,consts:[["chatinput","","autosize","cdkTextareaAutosize"],[1,"directions2"],[1,"input-wrapper"],[1,"input","mat-form-field-no-padding"],[1,"large-label"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","10",3,"ngModelChange","ngModel"],[1,"example-spacer"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip","disabled"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip"]],template:function(i,r){if(i&1){let o=K();m(0,"p"),f(1),u(),m(2,"p")(3,"span",1),f(4),u(),f(5),u(),m(6,"div",2)(7,"mat-form-field",3)(8,"mat-label",4),f(9),u(),m(10,"textarea",5,0),pi("ngModelChange",function(s){return k(o),Ci(r.msg,s)||(r.msg=s),M(s);}),u()()(),m(13,"mat-toolbar"),w(14,"span",6),m(15,"button",7),S("click",function(){return k(o),M(r.send());}),m(16,"mat-icon"),f(17,"send"),u(),f(18),u(),m(19,"button",7),S("click",function(){return k(o),M(r.clear());}),m(20,"mat-icon"),f(21,"clear"),u(),f(22),u(),m(23,"button",8),S("click",function(){return k(o),M(r.showPrompts());}),m(24,"mat-icon"),f(25,"text_snippet"),u(),f(26),u(),w(27,"span",6),u();}i&2&&(d(),C(r.directions),d(3),N("",r.directions2," "),d(),N("",r.directions3,`
`),d(4),C(r.hint),d(),mi("ngModel",r.msg),d(5),G("matTooltip",r.sendTip),v("disabled",!r.msg.length),d(3),N(" ",r.sendMsg," "),d(),G("matTooltip",r.clearTip),v("disabled",!r.msg.length),d(3),N(" ",r.clearMsg," "),d(),G("matTooltip",r.promptsTip),d(3),N(" ",r.promptsMsg," "));},dependencies:[j,Rt,Lt,Nt,kt,Ai,ya,gi,fi,Ti,fo,on,rn,Je,Ct,ke,Oe,ce,ye,vt,js,Wi],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.directions2[_ngcontent-%COMP%]{font-weight:700}"]});}}return t;})();var rN=(()=>{class t{constructor(){this.service=p(fe),this.router=p(Xe),this.dialog=p(ni),this._snackBar=p(_n),this.hint="Describe the image here.",this.msg="",this.directions="Chatbot can create images from a text description.  Keep your description simple (puppy, car),\n    or give as much detail as you like.  You can include art type, colors, background descriptions, etc. (e.g. A water\n    color drawing of a lake with mountains in the background.).",this.directions2="Instructions:",this.directions3="Type the image description below. If you're not sure how to get started, use the \n    Prompts button and select from the available prompts. Then click the send button to continue.",this.promptsTip="Find a prompt to get you started",this.promptsMsg="Prompts",this.clearTip="Clear your message.",this.clearMsg="Clear",this.sendTip="Send Message",this.sendMsg="Send";}showPrompts(){let e=this;this.service.openPromptsDialog(!0).afterClosed().subscribe(r=>{if(!r)return;let o=r.prompt;this.msg=o.Message,this._snackBar.open("Selected prompt has been inserted.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});});}clear(){this.msg="";}send(){let e=this,i={title:"Create Image(s)",msg:"Set image options",msg2:"Note: Dalle-3 produces a single image."};this.service.openImageCreateDialog(i).afterClosed().subscribe(o=>{if(!o){console.log("dialog closed with no data.");return;}if(o.quality){let a=encodeURI(this.msg);this.router.navigate(["/image/generate",{prompt:a,count:o.count,size:o.size,quality:o.quality,style:o.style}]);}else{let a=encodeURI(this.msg);this.router.navigate(["/image/generate",{msg:a,count:o.count,size:o.size}]);}console.log("results: ",o);});}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-images-card"]],decls:28,vars:13,consts:[["chatinput","","autosize","cdkTextareaAutosize"],[1,"directions2"],[1,"input-wrapper"],[1,"input","mat-form-field-no-padding"],[1,"large-label"],["type","text","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","10",3,"ngModelChange","ngModel"],[1,"example-spacer"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip","disabled"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip"]],template:function(i,r){if(i&1){let o=K();m(0,"p"),f(1),u(),m(2,"p")(3,"span",1),f(4),u(),f(5),u(),m(6,"div",2)(7,"mat-form-field",3)(8,"mat-label",4),f(9),u(),m(10,"textarea",5,0),pi("ngModelChange",function(s){return k(o),Ci(r.msg,s)||(r.msg=s),M(s);}),u()()(),m(13,"mat-toolbar"),w(14,"span",6),m(15,"button",7),S("click",function(){return k(o),M(r.send());}),m(16,"mat-icon"),f(17,"send"),u(),f(18),u(),m(19,"button",7),S("click",function(){return k(o),M(r.clear());}),m(20,"mat-icon"),f(21,"clear"),u(),f(22),u(),m(23,"button",8),S("click",function(){return k(o),M(r.showPrompts());}),m(24,"mat-icon"),f(25,"text_snippet"),u(),f(26),u(),w(27,"span",6),u();}i&2&&(d(),C(r.directions),d(3),N("",r.directions2," "),d(),N("",r.directions3,`
`),d(4),C(r.hint),d(),mi("ngModel",r.msg),d(5),G("matTooltip",r.sendTip),v("disabled",!r.msg.length),d(3),N(" ",r.sendMsg," "),d(),G("matTooltip",r.clearTip),v("disabled",!r.msg.length),d(3),N(" ",r.clearMsg," "),d(),G("matTooltip",r.promptsTip),d(3),N(" ",r.promptsMsg," "));},dependencies:[j,gi,fi,Ti,fo,Rt,Lt,Nt,kt,Ai,ya,on,rn,Je,Ct,ke,Oe,ce,ye,vt,js,Wi],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.directions2[_ngcontent-%COMP%]{font-weight:700}"]});}}return t;})();var eX=t=>[t];function tX(t,n){t&1&&(m(0,"div",1),w(1,"mat-spinner",4),u()),t&2&&(d(),v("diameter",40));}function iX(t,n){if(t&1&&(m(0,"div",2),f(1),u()),t&2){let e=y();d(),C(e.noCharacters);}}function nX(t,n){if(t&1&&(m(0,"span",5)(1,"span",6)(2,"span")(3,"span",7),w(4,"cb-gravatar",8),u()()(),m(5,"div")(6,"mat-toolbar"),w(7,"span",9),m(8,"span")(9,"a",10),f(10),m(11,"mat-icon",11),f(12,"question_answer"),u()()(),w(13,"span",9),u()()()),t&2){let e=n.$implicit,i=y(2);d(3),v("matTooltip",i.descriptionTxt+i.service.truncateString(e.description,250))("matTooltipPosition","below"),d(),v("character",e)("size","100")("email",e.email),d(5),v("routerLink",Ue(7,eX,"/chat/character/"+e.slug)),d(),N(" ",e.name," ");}}function rX(t,n){if(t&1&&(m(0,"div",3),Ut(1,nX,14,9,"span",5,ir),u()),t&2){let e=y();d(),qt(e.characters);}}var oN=(()=>{class t{constructor(e,i,r){this.service=e,this.sanitizer=i,this.charactersService=r,this.directions="Characters can perform various tasks, such as commenting and \n  replying to articles. Characters, have names, avatars, a description, a list of hobbies, an email, etc., \n  most of which you can configure.",this.noCharacters="No characters enabled:",this.descriptionTxt="Description: ",this.hobbiesTxt="Hobbies: ",this.perDayTxt="Comments per day: ",this.enabledTxt="Enabled: ",this.settingsTxt="Configure character",this.characters=[],this.loading=!0;}ngOnInit(){let e=this;this.charactersService.fetchModifiedFilteredAndSortedCharacters().subscribe(i=>{e.characters=i.slice(0,12),e.loading=!1;});}static{this.ɵfac=function(i){return new(i||t)(D(fe),D(xr),D(Da));};}static{this.ɵcmp=E({type:t,selectors:[["cb-characters-card"]],decls:6,vars:2,consts:[[1,"characters"],[1,"spinner-container"],[1,"character-list-label"],[1,"character-container"],["mode","indeterminate",3,"diameter"],[1,"character"],[1,"character-box"],[3,"matTooltip","matTooltipPosition"],[3,"character","size","email"],[1,"flex-spacer"],["mat-raised-button","",1,"character-link",3,"routerLink"],[1,"info-icon"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"p"),f(2),u()(),I(3,tX,2,1,"div",1)(4,iX,2,1,"div",2)(5,rX,3,0,"div",3)),i&2&&(d(2),C(r.directions),d(),Q(r.loading?3:r.characters.length?5:4));},dependencies:[j,Ft,Bt,Hi,ji,Ea,Je,Ct,ke,Oe,Wi,ce,Rn,on,rn],styles:[".character-list-label[_ngcontent-%COMP%]{font-weight:700}.character-container[_ngcontent-%COMP%]{text-align:center;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-around;gap:2px}.character-container[_ngcontent-%COMP%]   .character[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-outline);margin:8px 1px}.character-container[_ngcontent-%COMP%]   .character[_ngcontent-%COMP%]   .character-box[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around}.character-container[_ngcontent-%COMP%]   .character[_ngcontent-%COMP%]   .character-box[_ngcontent-%COMP%]   .character-link[_ngcontent-%COMP%]{margin:0 0 5px}.character-container[_ngcontent-%COMP%]   .character[_ngcontent-%COMP%]   mat-toolbar[_ngcontent-%COMP%]{height:48px;background-color:var(--mat-sys-surface-variant);padding:0}"]});}}return t;})();var aN=(()=>{class t{constructor(){this.description="This app should run fine in most browsers, but this is a beta product and not\n  all browsers have been tested.  Find tips, advice, and contact information here.  Comments and suggestions\n  are encouraged.",this.description2="For further assistance, you can contact a member of our AI support team.";}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-support-card"]],decls:16,vars:5,consts:[[1,"banner","center","cb-outline"],[1,"intro","flex-center"],[1,"intro-inner"],[1,"bold"],[3,"borderRadius","size","email"],["mat-raised-button","","target","_blank","href","https://turmansolutions.ai/ai-team/roberto"]],template:function(i,r){i&1&&(m(0,"div")(1,"p"),f(2),u(),m(3,"section",0)(4,"div",1)(5,"div",2),f(6),u()(),m(7,"h3",3),f(8,"Roberto"),u(),w(9,"cb-gravatar",4),m(10,"h5"),f(11,"AI Support Engineer"),u(),m(12,"a",5),f(13,"Chat Now "),m(14,"mat-icon"),f(15,"open_in_new"),u()()()()),i&2&&(d(2),C(r.description),d(4),C(r.description2),d(3),v("borderRadius",!0)("size","256")("email","roberto@turmansolutions.ai"));},dependencies:[Ea,Je,ce,Rn,ke,Oe],styles:[".banner[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]{margin:20px 0}.banner[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]   .intro-inner[_ngcontent-%COMP%]{width:250px}"]});}}return t;})();var sN=(()=>{class t{constructor(){this.description="Chatbot is a web application that allows users to chat with  AI APIs,\n  and can be used to research history, write code or poetry, answer math and science questions, translate text, \n  create and edit images, and much more!",this.description2="Find out more about our product by chatting with a member of our AI sales team.";}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-about-card"]],decls:16,vars:5,consts:[[1,"banner","center","cb-outline"],[1,"intro","flex-center"],[1,"intro-inner"],[1,"bold"],[3,"borderRadius","size","email"],["mat-raised-button","","target","_blank","href","https://turmansolutions.ai/ai-team/alma"]],template:function(i,r){i&1&&(m(0,"div")(1,"p"),f(2),u(),m(3,"section",0)(4,"div",1)(5,"div",2),f(6),u()(),m(7,"h3",3),f(8,"Alma"),u(),w(9,"cb-gravatar",4),m(10,"h5"),f(11,"AI Sales Rep"),u(),m(12,"a",5),f(13,"Chat Now "),m(14,"mat-icon"),f(15,"open_in_new"),u()()()()),i&2&&(d(2),C(r.description),d(4),C(r.description2),d(3),v("borderRadius",!0)("size","256")("email","alma@turmansolutions.ai"));},dependencies:[Ea,Je,ce,Rn,ke,Oe],styles:[".banner[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]{margin:20px 0}.banner[_ngcontent-%COMP%]   .intro[_ngcontent-%COMP%]   .intro-inner[_ngcontent-%COMP%]{width:250px}"]});}}return t;})();function oX(t,n){t&1&&(Ce(0),w(1,"cb-chat-card"),we());}function aX(t,n){t&1&&(Ce(0),w(1,"cb-images-card"),we());}function sX(t,n){t&1&&(Ce(0),w(1,"cb-characters-card"),we());}function lX(t,n){t&1&&(Ce(0),w(1,"api-card"),we());}function cX(t,n){t&1&&(Ce(0),w(1,"cb-recent-card"),we());}function dX(t,n){t&1&&(Ce(0),w(1,"cb-news-card"),we());}function uX(t,n){t&1&&(Ce(0),w(1,"cb-about-card"),we());}function mX(t,n){t&1&&(Ce(0),w(1,"cb-support-card"),we());}function pX(t,n){if(t&1&&(m(0,"p"),f(1),u()),t&2){let e=y(2).$implicit;d(),N(" ",e.description," ");}}function hX(t,n){if(t&1&&w(0,"cb-quicklinks",10),t&2){let e=y(2).$implicit;v("links",e.quickLinks);}}function fX(t,n){if(t&1&&(m(0,"a",11,0),f(2),u()),t&2){let e=y(2).$implicit;v("routerLink",e.link.href),d(2),C(e.link.name);}}function gX(t,n){if(t&1&&(m(0,"mat-card",5)(1,"mat-card-header")(2,"mat-icon",6),f(3),u(),m(4,"mat-card-title"),f(5),u(),m(6,"mat-card-subtitle"),f(7),u()(),m(8,"mat-card-content"),I(9,oX,2,0,"ng-container",7)(10,aX,2,0,"ng-container",7)(11,sX,2,0,"ng-container",7)(12,lX,2,0,"ng-container",7)(13,cX,2,0,"ng-container",7)(14,dX,2,0,"ng-container",7)(15,uX,2,0,"ng-container",7)(16,mX,2,0,"ng-container",7)(17,pX,2,1,"p",7),u(),m(18,"mat-card-actions"),I(19,hX,1,1,"cb-quicklinks",8)(20,fX,3,2,"a",9),u()()),t&2){let e=y().$implicit;d(2),Nr("chat-icon-",e.link.href,""),d(),C(e.icon),d(2),C(e.title),d(2),C(e.subtitle),d(2),v("ngIf",e.id==="chat"),d(),v("ngIf",e.id==="images"),d(),v("ngIf",e.id==="characters"),d(),v("ngIf",e.id==="api"),d(),v("ngIf",e.id==="recent"),d(),v("ngIf",e.id==="news"),d(),v("ngIf",e.id==="about"),d(),v("ngIf",e.id==="support"),d(),v("ngIf",!e.dynamic),d(2),v("ngIf",e.quickLinks&&e.quickLinks.length),d(),v("ngIf",!e.quickLinks);}}function _X(t,n){if(t&1&&(Ce(0),I(1,gX,21,17,"mat-card",4),we()),t&2){let e=n.$implicit;d(),v("ngIf",e.enabled);}}var lN=(()=>{class t{constructor(e,i){this.navService=e,this.titleService=i,this.home="Home",this.cards=[],this.titleService.setTitle("Chatbot - "+this.home),this.cards=this.navService.homeCards;}static{this.ɵfac=function(i){return new(i||t)(D(oa),D(Tn));};}static{this.ɵcmp=E({type:t,selectors:[["cb-home"]],decls:3,vars:2,consts:[["rla","routerLinkActive"],[3,"title"],[1,"dash-cards"],[4,"ngFor","ngForOf"],["class","dash-card",4,"ngIf"],[1,"dash-card"],["mat-card-avatar","",2,"width","32px","height","32px","font-size","32px"],[4,"ngIf"],[3,"links",4,"ngIf"],["mat-raised-button","","routerLinkActive","",3,"routerLink",4,"ngIf"],[3,"links"],["mat-raised-button","","routerLinkActive","",3,"routerLink"]],template:function(i,r){i&1&&(w(0,"cb-page-header",1),m(1,"div",2),I(2,_X,2,1,"ng-container",3),u()),i&2&&(v("title",r.home),d(2),v("ngForOf",r.cards));},dependencies:[j,ei,Pt,ru,Zd,tu,nu,Jd,iu,eu,Xd,ce,Rn,Wi,ke,Oe,Ft,Bt,Pl,K3,J3,_i,tN,iN,nN,rN,oN,aN,sN],encapsulation:2});}}return t;})();var bX=["autosize"],vX=["prompterinput"];function yX(t,n){if(t&1){let e=K();m(0,"div",2)(1,"mat-form-field",11)(2,"mat-label"),f(3),u(),m(4,"textarea",12,1),pi("ngModelChange",function(r){k(e);let o=y();return Ci(o.config.message,r)||(o.config.message=r),M(r);}),u()()();}if(t&2){let e=y();d(3),C(e.config.messageHint),d(),mi("ngModel",e.config.message);}}function xX(t,n){if(t&1){let e=K();m(0,"button",13),S("click",function(){k(e);let r=y();return M(r.send());}),m(1,"mat-icon"),f(2,"send"),u(),f(3),u();}if(t&2){let e=y();G("matTooltip",e.sendTip),v("disabled",!e.sendEnabled()),d(3),N(" ",e.sendMsg," ");}}function CX(t,n){if(t&1){let e=K();m(0,"button",13),S("click",function(){k(e);let r=y();return M(r.share());}),m(1,"mat-icon"),f(2,"ios_share"),u(),f(3),u();}if(t&2){let e=y();G("matTooltip",e.shareTip),v("disabled",!e.shareEnabled()),d(3),N(" ",e.shareMsg," ");}}function wX(t,n){if(t&1){let e=K();m(0,"button",13),S("click",function(){k(e);let r=y();return M(r.clear());}),m(1,"mat-icon"),f(2,"clear"),u(),f(3),u();}if(t&2){let e=y();G("matTooltip",e.clearTip),v("disabled",!e.config.message),d(3),N(" ",e.clearMsg," ");}}function DX(t,n){if(t&1){let e=K();m(0,"button",14),S("click",function(){k(e);let r=y();return M(r.refresh());}),m(1,"mat-icon"),f(2,"refresh"),u(),f(3),u();}if(t&2){let e=y();G("matTooltip",e.refreshTip),v("disabled",!e.refreshEnabled()),d(3),N(" ",e.refreshTxt," ");}}function EX(t,n){if(t&1){let e=K();m(0,"button",15),S("click",function(){k(e);let r=y();return M(r.hit());}),m(1,"mat-icon"),f(2,"swipe_down"),u(),f(3),u();}if(t&2){let e=y();G("matTooltip",e.hitTip),d(3),N(" ",e.hitMsg," ");}}function kX(t,n){if(t&1){let e=K();m(0,"button",15),S("click",function(){k(e);let r=y();return M(r.stick());}),m(1,"mat-icon"),f(2,"back_hand"),u(),f(3),u();}if(t&2){let e=y();G("matTooltip",e.stickTip),d(3),N(" ",e.stickMsg," ");}}function MX(t,n){if(t&1){let e=K();m(0,"button",16),S("click",function(){k(e);let r=y();return M(r.newConversation());}),m(1,"mat-icon"),f(2,"create"),u(),f(3),u();}if(t&2){let e=y();G("matTooltip",e.newTip),v("disabled",!e.newEnabled()),d(3),N(" ",e.newTxt," ");}}function SX(t,n){if(t&1){let e=K();m(0,"button",17),S("click",function(){k(e);let r=y();return M(r.save());}),m(1,"mat-icon"),f(2,"cloud_upload"),u(),f(3),u();}if(t&2){let e=y();G("matTooltip",e.saveTip),v("disabled",!e.saveEnabled()),d(3),N(" ",e.saveTxt," ");}}function IX(t,n){if(t&1){let e=K();m(0,"button",15),S("click",function(){k(e);let r=y();return M(r.showPrompts());}),m(1,"mat-icon"),f(2,"text_snippet"),u(),f(3),u();}if(t&2){let e=y();G("matTooltip",e.promptsTip),d(3),N(" ",e.promptsMsg," ");}}function TX(t,n){if(t&1){let e=K();Ce(0),m(1,"button",13),S("click",function(){k(e),y();let r=We(15);return r.value="",M(r.click());}),m(2,"mat-icon"),f(3,"upload_file"),u(),f(4),u(),we();}if(t&2){let e=y();d(),G("matTooltip",e.uploadTip),v("disabled",!1),d(3),N(" ",e.uploadMsg," ");}}function AX(t,n){if(t&1){let e=K();m(0,"button",15),S("click",function(){k(e);let r=y();return M(r.showSimilarContent());}),m(1,"mat-icon"),f(2,"thumb_up"),u(),f(3),u();}if(t&2){let e=y();G("matTooltip",e.similarTip),d(3),N(" ",e.similarMsg," ");}}function RX(t,n){if(t&1){let e=K();m(0,"button",15),S("click",function(){k(e);let r=y();return M(r.showDifferentContent());}),m(1,"mat-icon"),f(2,"refresh"),u(),f(3),u();}if(t&2){let e=y();G("matTooltip",e.differentTip),d(3),N(" ",e.differentMsg," ");}}var su=(()=>{class t{triggerResize(){li(()=>{this.autosize.resizeToFitContent(!0);},{injector:this._injector});}constructor(e,i,r,o){this.service=e,this.dialog=i,this.site=r,this.imageService=o,this.shareEnabled=rt(!1),this.saveEnabled=rt(!1),this.newEnabled=rt(!1),this.refreshEnabled=rt(!1),this._injector=p(Se),this.inProgress=!1,this.sendMessageEvent=new V(),this.saveEvent=new V(),this.shareEvent=new V(),this.newEvent=new V(),this.refreshEvent=new V(),this.uploadEvent=new V(),this.showPromptsEvent=new V(),this.refreshTip="Clear the current conversation and start another.",this.refreshTxt="Restart",this.newTip="Clear the current conversation and start another.",this.newTxt="Clear All",this.saveTip="Save the current conversation",this.saveTxt="Save",this.clearTip="Clear your message",this.clearMsg="Clear",this.promptsTip="Find a prompt to get you started",this.promptsMsg="Prompts",this.uploadTip="Upload an image from your device.",this.uploadMsg="Upload",this.shareTip="Share this content with others.",this.shareMsg="Share,,,",this.sendTip="Send your message to Chatbot.",this.sendMsg="Send",this.similarTip="See another quote like this",this.similarMsg="Similar",this.differentTip="Switch to a different philosophical topic",this.differentMsg="Different",this.hitTip="Take another card",this.hitMsg="Hit",this.stickTip="Do not take a card",this.stickMsg="Stick",this.uploadFileType="image/png,image/jpeg,image/gif",this.uploadFileName="",this.uploadFileSent=!1,this.uploadCompleteEvent=new V(),this.fileSentEvent=new V(),this.config=e.createDefaultWidgetConfig();}ngOnInit(){}ngAfterViewInit(){}clear(){this.config.message="";}save(){this.saveEvent.emit(!0);}share(){this.shareEvent.emit(!0);}refresh(){this.refreshEvent.emit(!0),this.config.message="";}newConversation(){this.newEvent.emit(!0),this.config.message="";}showPrompts(){this.showPromptsEvent.emit(!0);}onFileSelected(e){let i=e.target.files[0];if(!i){console.log("file not selected");return;}this.fileSentEvent.emit(!0),this.uploadFileSent=!0,this.uploadFileName=i.name,this.uploadSub=this.imageService.sendFile(i).subscribe(r=>{this.uploadCompleteEvent.emit(r);},r=>{console.log("error: ",r);});}sendEnabled(){return this.config.features.prompt?this.config.message.length>0:!1;}send(){if(this.config.features.imageCount){this.config.endpoint===oe.imageGenerate?this.sendD3Image():this.sendImage();return;}let e={userId:Tt.human,endpoint:this.config.endpoint,body:this.config.message,bodyOriginal:this.config.message,imageCount:0,imageSize:""};e.id=++jt.sNextID,this.sendMessageEvent.emit(e),this.config.message="";}sendD3Image(){let e=this,i={title:"Create Image(s)",msg:"Set image options",msg2:"Note: Dalle-3 produces a single image."};this.service.openImageCreateDialog(i).afterClosed().subscribe(o=>{if(!o)return;console.log("Dialog result: ",o);let a={userId:Tt.human,endpoint:e.config.endpoint,body:e.config.message,bodyOriginal:e.config.message,imageCount:parseInt(o.count,10),imageSize:o.size};a.id=++jt.sNextID,o.quality&&(a.d3RequestData={prompt:e.config.message,count:o.count,size:o.size,quality:o.quality,style:o.style,user:"demo user"}),this.sendMessageEvent.emit(a),this.config.message="";});}sendImage(){let e=this;this.dialog.open(Ws,{width:"516px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{title:"Create Image",msg:"",msg2:""}}).afterClosed().subscribe(a=>{if(!a)return;console.log("Dialog result: ",a);let s={userId:Tt.human,endpoint:e.config.endpoint,body:e.config.message,bodyOriginal:e.config.message,imageCount:parseInt(a.count,10),imageSize:a.size};s.id=++jt.sNextID,this.sendMessageEvent.emit(s),this.config.message="";});}showSimilarContent(){let e=this.config.message;e+=" Make this quote similar to the last one.";let i={userId:Tt.human,endpoint:this.config.endpoint,body:e,bodyOriginal:e,addToViewer:!1,progressMessage:"Researching similar quotes. Please wait..."};i.id=++jt.sNextID,this.sendMessageEvent.emit(i);}showDifferentContent(){let e=this.config.message;e+=" Make this quote different than the last one.";let i={userId:Tt.human,endpoint:this.config.endpoint,body:e,bodyOriginal:e,addToViewer:!1,progressMessage:"Researching philosophical quotes. Please wait..."};i.id=++jt.sNextID,this.sendMessageEvent.emit(i);}hit(){let e="hit",i={userId:Tt.human,endpoint:this.config.endpoint,body:e,bodyOriginal:e,addToViewer:!0,progressMessage:"Take a card. Please wait..."};i.id=++jt.sNextID,this.sendMessageEvent.emit(i);}stick(){let e="stick",i={userId:Tt.human,endpoint:this.config.endpoint,body:e,bodyOriginal:e,addToViewer:!0,progressMessage:"Sticking. Please wait..."};i.id=++jt.sNextID,this.sendMessageEvent.emit(i);}static{this.ɵfac=function(i){return new(i||t)(D(fe),D(ni),D(pt),D(ns));};}static{this.ɵcmp=E({type:t,selectors:[["cb-prompter"]],viewQuery:function(i,r){if(i&1&&($(bX,5),$(vX,5)),i&2){let o;R(o=O())&&(r.autosize=o.first),R(o=O())&&(r.prompterinput=o.first);}},inputs:{config:"config",shareEnabled:[1,"shareEnabled"],saveEnabled:[1,"saveEnabled"],newEnabled:[1,"newEnabled"],refreshEnabled:[1,"refreshEnabled"]},outputs:{sendMessageEvent:"sendMessageEvent",saveEvent:"saveEvent",shareEvent:"shareEvent",newEvent:"newEvent",refreshEvent:"refreshEvent",uploadEvent:"uploadEvent",showPromptsEvent:"showPromptsEvent",uploadCompleteEvent:"uploadCompleteEvent",fileSentEvent:"fileSentEvent"},decls:16,vars:14,consts:[["fileUpload",""],["autosize","cdkTextareaAutosize"],[1,"prompter-input-wrapper"],[1,"custom-toolbar"],["mat-raised-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["class","clear-all","mat-raised-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["mat-raised-button","","matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["class","new","mat-raised-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["mat-raised-button","","aria-label","Save","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],[4,"ngIf"],["type","file","name","fileToUpload","id","fileToUpload",1,"file-input",3,"change","accept"],[1,"prompter-input"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","75",3,"ngModelChange","ngModel"],["mat-raised-button","","matTooltipPosition","above",3,"click","disabled","matTooltip"],["mat-raised-button","","matTooltipPosition","above",1,"clear-all",3,"click","disabled","matTooltip"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip"],["mat-raised-button","","matTooltipPosition","above",1,"new",3,"click","disabled","matTooltip"],["mat-raised-button","","aria-label","Save","matTooltipPosition","above",3,"click","disabled","matTooltip"]],template:function(i,r){if(i&1){let o=K();I(0,yX,6,2,"div",2),m(1,"div",3),I(2,xX,4,3,"button",4)(3,CX,4,3,"button",4)(4,wX,4,3,"button",4)(5,DX,4,3,"button",5)(6,EX,4,2,"button",6)(7,kX,4,2,"button",6)(8,MX,4,3,"button",7)(9,SX,4,3,"button",8)(10,IX,4,2,"button",6)(11,TX,5,3,"ng-container",9)(12,AX,4,2,"button",6)(13,RX,4,2,"button",6),u(),m(14,"input",10,0),S("change",function(s){return k(o),M(r.onFileSelected(s));}),u();}i&2&&(Q(r.config.features.prompt?0:-1),d(2),v("ngIf",r.config.features.send),d(),v("ngIf",r.config.features.share),d(),v("ngIf",r.config.features.clear),d(),v("ngIf",r.config.features.refresh),d(),v("ngIf",r.config.endpoint==="blackjack"),d(),v("ngIf",r.config.endpoint==="blackjack"),d(),v("ngIf",r.config.features.new),d(),v("ngIf",r.config.features.save),d(),v("ngIf",r.config.features.prompts.enabled),d(),v("ngIf",r.config.features.uploadImages),d(),v("ngIf",r.config.endpoint==="ancientPhilosophy"),d(),v("ngIf",r.config.endpoint==="ancientPhilosophy"),d(),v("accept",r.uploadFileType));},dependencies:[j,Pt,kt,Ai,Lt,Nt,ya,Rt,gi,fi,Ti,fo,ke,Oe,on,ce,ye,aa,_o,Je,Ct],styles:["@media (max-width: var(--cb-break-point-small)){.custom-toolbar[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{display:none}}@media (max-width: var(--cb-break-point-xsmall)){.custom-toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:70px!important}}.custom-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:5px}.custom-toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:5px 4px;height:50px!important;min-width:90px;border-radius:7px}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}#image-count[_ngcontent-%COMP%], #image-size[_ngcontent-%COMP%]{width:150px;margin-top:20px;margin-left:15px}.file-input[_ngcontent-%COMP%]{display:none}"]});}}return t;})();var OX=["*"],PX=`.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(--mdc-list-list-item-container-color, transparent);border-radius:var(--mdc-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-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(--mdc-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(--mdc-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(--mdc-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(--mdc-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-leading-icon-size, 24px);height:var(--mdc-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(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size, 40px);height:var(--mdc-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(--mdc-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mdc-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mdc-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(--mdc-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-trailing-icon-size, 24px);height:var(--mdc-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-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(--mdc-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(--mdc-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mdc-list-list-item-label-text-font, var(--mat-sys-body-large-font)��);line-height:var(--mdc-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mdc-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-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(--mdc-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mdc-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mdc-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mdc-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mdc-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(--mdc-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(--mdc-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-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(--mdc-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-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(--mdc-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-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(--mdc-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-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(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mdc-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mdc-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))}
`,FX=["unscopedContent"],NX=["text"],LX=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],VX=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var zX=new A("ListOption"),Gp=(()=>{class t{_elementRef=p(J);constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]});}return t;})(),BX=(()=>{class t{_elementRef=p(J);constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]});}return t;})(),jX=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]});}return t;})(),cN=(()=>{class t{_listOption=p(zX,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after";}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,hostVars:4,hostBindings:function(i,r){i&2&&Z("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart());}});}return t;})(),HX=(()=>{class t extends cN{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[W]});}return t;})(),$X=(()=>{class t extends cN{static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[W]});}return t;})(),UX=new A("MAT_LIST_CONFIG"),pD=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple;}set disableRipple(e){this._disableRipple=Ji(e);}_disableRipple=!1;get disabled(){return this._disabled;}set disabled(e){this._disabled=Ji(e);}_disabled=!1;_defaultOptions=p(UX,{optional:!0});static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,hostVars:1,hostBindings:function(i,r){i&2&&ee("aria-disabled",r.disabled);},inputs:{disableRipple:"disableRipple",disabled:"disabled"}});}return t;})(),qX=(()=>{class t{_elementRef=p(J);_ngZone=p(ae);_listBase=p(pD,{optional:!0});_platform=p(Ae);_hostElement;_isButtonElement;_noopAnimations;_avatars;_icons;set lines(e){this._explicitLines=$n(e,null),this._updateItemLines(!1);}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple;}set disableRipple(e){this._disableRipple=Ji(e);}_disableRipple=!1;get disabled(){return this._disabled||!!this._listBase?.disabled;}set disabled(e){this._disabled=Ji(e);}_disabled=!1;_subscriptions=new ve();_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled;}constructor(){p(nt).load(ii);let e=p(Ls,{optional:!0}),i=p(Ne,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._noopAnimations=i==="NoopAnimations",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button");}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0);}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents();}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length);}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Bl(this,this._ngZone,this._hostElement,this._platform,p(Se)),this._rippleRenderer.setupTriggerEvents(this._hostElement);}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(St(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)));});}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o);}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text");}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e;}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()));}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,contentQueries:function(i,r,o){if(i&1&&(Ee(o,HX,4),Ee(o,$X,4)),i&2){let a;R(a=O())&&(r._avatars=a),R(a=O())&&(r._icons=a);}},hostVars:4,hostBindings:function(i,r){i&2&&(ee("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),Z("mdc-list-item--disabled",r.disabled));},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}});}return t;})();var eb=(()=>{class t extends qX{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated;}set activated(e){this._activated=Ji(e);}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null;}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0);}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(i&1&&(Ee(o,BX,5),Ee(o,Gp,5),Ee(o,jX,5)),i&2){let a;R(a=O())&&(r._lines=a),R(a=O())&&(r._titles=a),R(a=O())&&(r._meta=a);}},viewQuery:function(i,r){if(i&1&&($(FX,5),$(NX,5)),i&2){let o;R(o=O())&&(r._unscopedContent=o.first),R(o=O())&&(r._itemText=o.first);}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,r){i&2&&(ee("aria-current",r._getAriaCurrent()),Z("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",r._avatars.length!==0)("mdc-list-item--with-leading-icon",r._icons.length!==0)("mdc-list-item--with-trailing-meta",r._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",r._hasBothLeadingAndTrailing())("_mat-animation-noopable",r._noopAnimations));},inputs:{activated:"activated"},exportAs:["matListItem"],features:[W],ngContentSelectors:VX,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(i,r){if(i&1){let o=K();De(LX),le(0),m(1,"span",1),le(2,1),le(3,2),m(4,"span",2,0),S("cdkObserveContent",function(){return k(o),M(r._updateItemLines(!0));}),le(6,3),u()(),le(7,4),le(8,5),w(9,"div",3);}},dependencies:[g0],encapsulation:2,changeDetection:0});}return t;})();var tb=(()=>{class t extends pD{_isNonInteractive=!1;static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵcmp=E({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[be([{provide:pD,useExisting:t}]),W],ngContentSelectors:OX,decls:1,vars:0,template:function(i,r){i&1&&(De(),le(0));},styles:[PX],encapsulation:2,changeDetection:0});}return t;})();var lu=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[Ed,he,sr,d_,Wi]});}return t;})();var WX=["knob"],GX=["valueIndicatorContainer"];function YX(t,n){if(t&1&&(m(0,"div",2,1)(2,"div",5)(3,"span",6),f(4),u()()()),t&2){let e=y();d(4),C(e.valueIndicatorText);}}var QX=["trackActive"],KX=["*"];function ZX(t,n){if(t&1&&w(0,"div"),t&2){let e=n.$implicit,i=n.$index,r=y(3);bt(e===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),xi("transform",r._calcTickMarkTransform(i));}}function XX(t,n){if(t&1&&Ut(0,ZX,1,4,"div",8,ir),t&2){let e=y(2);qt(e._tickMarks);}}function JX(t,n){if(t&1&&(m(0,"div",6,1),I(2,XX,2,0),u()),t&2){let e=y();d(2),Q(e._cachedWidth?2:-1);}}function eJ(t,n){if(t&1&&w(0,"mat-slider-visual-thumb",7),t&2){let e=y();v("discrete",e.discrete)("thumbPosition",1)("valueIndicatorText",e.startValueIndicatorText);}}var Ge=function(t){return t[t.START=1]="START",t[t.END=2]="END",t;}(Ge||{}),cu=function(t){return t[t.ACTIVE=0]="ACTIVE",t[t.INACTIVE=1]="INACTIVE",t;}(cu||{}),hD=new A("_MatSlider"),uN=new A("_MatSliderThumb"),tJ=new A("_MatSliderRangeThumb"),mN=new A("_MatSliderVisualThumb");var iJ=(()=>{class t{_cdr=p(pe);_ngZone=p(ae);_slider=p(hD);_renderer=p(tt);_listenerCleanups;discrete;thumbPosition;valueIndicatorText;_ripple;_knob;_valueIndicatorContainer;_sliderInput;_sliderInputEl;_hoverRippleRef;_focusRippleRef;_activeRippleRef;_isHovered=!1;_isActive=!1;_isValueIndicatorVisible=!1;_hostElement=p(J).nativeElement;_platform=p(Ae);constructor(){}ngAfterViewInit(){let e=this._slider._getInput(this.thumbPosition);e&&(this._ripple.radius=24,this._sliderInput=e,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(()=>{let i=this._sliderInputEl,r=this._renderer;this._listenerCleanups=[r.listen(i,"pointermove",this._onPointerMove),r.listen(i,"pointerdown",this._onDragStart),r.listen(i,"pointerup",this._onDragEnd),r.listen(i,"pointerleave",this._onMouseLeave),r.listen(i,"focus",this._onFocus),r.listen(i,"blur",this._onBlur)];}));}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e());}_onPointerMove=e=>{if(this._sliderInput._isFocused)return;let i=this._hostElement.getBoundingClientRect(),r=this._slider._isCursorOnSliderThumb(e,i);this._isHovered=r,r?this._showHoverRipple():this._hideRipple(this._hoverRippleRef);};_onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef);};_onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused");};_onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused");};_onDragStart=e=>{e.button===0&&(this._isActive=!0,this._showActiveRipple());};_onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple();};_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"));}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"));}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"));}_isShowingRipple(e){return e?.state===qn.FADING_IN||e?.state===qn.VISIBLE;}_showRipple(e,i){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===Ge.START?Ge.END:Ge.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!i)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:e,centered:!0,persistent:!0});}_hideRipple(e){if(e?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let i=this._getSibling();i._isShowingAnyRipple()||(this._hideValueIndicator(),i._hideValueIndicator());}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator");}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator");}_getSibling(){return this._slider._getThumb(this.thumbPosition===Ge.START?Ge.END:Ge.START);}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement;}_getKnob(){return this._knob.nativeElement;}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef);}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(i,r){if(i&1&&($(an,5),$(WX,5),$(GX,5)),i&2){let o;R(o=O())&&(r._ripple=o.first),R(o=O())&&(r._knob=o.first),R(o=O())&&(r._valueIndicatorContainer=o.first);}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[be([{provide:mN,useExisting:t}])],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(i,r){i&1&&(I(0,YX,5,1,"div",2),w(1,"div",3,0)(3,"div",4)),i&2&&(Q(r.discrete?0:-1),d(3),v("matRippleDisabled",!0));},dependencies:[an],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}
`],encapsulation:2,changeDetection:0});}return t;})(),ib=(()=>{class t{_ngZone=p(ae);_cdr=p(pe);_elementRef=p(J);_dir=p(Et,{optional:!0});_globalRippleOptions=p(Ls,{optional:!0});_trackActive;_thumbs;_input;_inputs;get disabled(){return this._disabled;}set disabled(e){this._disabled=e;let i=this._getInput(Ge.END),r=this._getInput(Ge.START);i&&(i.disabled=this._disabled),r&&(r.disabled=this._disabled);}_disabled=!1;get discrete(){return this._discrete;}set discrete(e){this._discrete=e,this._updateValueIndicatorUIs();}_discrete=!1;showTickMarks=!1;get min(){return this._min;}set min(e){let i=isNaN(e)?this._min:e;this._min!==i&&this._updateMin(i);}_min=0;color;disableRipple=!1;_updateMin(e){let i=this._min;this._min=e,this._isRange?this._updateMinRange({old:i,new:e}):this._updateMinNonRange(e),this._onMinMaxOrStepChange();}_updateMinRange(e){let i=this._getInput(Ge.END),r=this._getInput(Ge.START),o=i.value,a=r.value;r.min=e.new,i.min=Math.max(e.new,r.value),r.max=Math.min(i.max,i.value),r._updateWidthInactive(),i._updateWidthInactive(),e.new<e.old?this._onTranslateXChangeBySideEffect(i,r):this._onTranslateXChangeBySideEffect(r,i),o!==i.value&&this._onValueChange(i),a!==r.value&&this._onValueChange(r);}_updateMinNonRange(e){let i=this._getInput(Ge.END);if(i){let r=i.value;i.min=e,i._updateThumbUIByValue(),this._updateTrackUI(i),r!==i.value&&this._onValueChange(i);}}get max(){return this._max;}set max(e){let i=isNaN(e)?this._max:e;this._max!==i&&this._updateMax(i);}_max=100;_updateMax(e){let i=this._max;this._max=e,this._isRange?this._updateMaxRange({old:i,new:e}):this._updateMaxNonRange(e),this._onMinMaxOrStepChange();}_updateMaxRange(e){let i=this._getInput(Ge.END),r=this._getInput(Ge.START),o=i.value,a=r.value;i.max=e.new,r.max=Math.min(e.new,i.value),i.min=r.value,i._updateWidthInactive(),r._updateWidthInactive(),e.new>e.old?this._onTranslateXChangeBySideEffect(r,i):this._onTranslateXChangeBySideEffect(i,r),o!==i.value&&this._onValueChange(i),a!==r.value&&this._onValueChange(r);}_updateMaxNonRange(e){let i=this._getInput(Ge.END);if(i){let r=i.value;i.max=e,i._updateThumbUIByValue(),this._updateTrackUI(i),r!==i.value&&this._onValueChange(i);}}get step(){return this._step;}set step(e){let i=isNaN(e)?this._step:e;this._step!==i&&this._updateStep(i);}_step=1;_updateStep(e){this._step=e,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange();}_updateStepRange(){let e=this._getInput(Ge.END),i=this._getInput(Ge.START),r=e.value,o=i.value,a=i.value;e.min=this._min,i.max=this._max,e.step=this._step,i.step=this._step,this._platform.SAFARI&&(e.value=e.value,i.value=i.value),e.min=Math.max(this._min,i.value),i.max=Math.min(this._max,e.value),i._updateWidthInactive(),e._updateWidthInactive(),e.value<a?this._onTranslateXChangeBySideEffect(i,e):this._onTranslateXChangeBySideEffect(e,i),r!==e.value&&this._onValueChange(e),o!==i.value&&this._onValueChange(i);}_updateStepNonRange(){let e=this._getInput(Ge.END);if(e){let i=e.value;e.step=this._step,this._platform.SAFARI&&(e.value=e.value),e._updateThumbUIByValue(),i!==e.value&&this._onValueChange(e);}}displayWith=e=>`${e}`;_tickMarks;_noopAnimations;_dirChangeSubscription;_resizeObserver;_cachedWidth;_cachedLeft;_rippleRadius=24;startValueIndicatorText="";endValueIndicatorText="";_endThumbTransform;_startThumbTransform;_isRange=!1;_isRtl=!1;_hasViewInitialized=!1;_tickMarkTrackWidth=0;_hasAnimation=!1;_resizeTimer=null;_platform=p(Ae);constructor(){p(nt).load(ii);let e=p(Ne,{optional:!0});this._noopAnimations=e==="NoopAnimations",this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl");}_knobRadius=8;_inputPadding;ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let e=this._getInput(Ge.END),i=this._getInput(Ge.START);this._isRange=!!e&&!!i,this._cdr.detectChanges();let r=this._getThumb(Ge.END);this._rippleRadius=r._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(e,i):this._initUINonRange(e),this._updateTrackUI(e),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges();}_initUINonRange(e){e.initProps(),e.initUI(),this._updateValueIndicatorUI(e),this._hasViewInitialized=!0,e._updateThumbUIByValue();}_initUIRange(e,i){e.initProps(),e.initUI(),i.initProps(),i.initUI(),e._updateMinMax(),i._updateMinMax(),e._updateStaticStyles(),i._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,e._updateThumbUIByValue(),i._updateThumbUIByValue();}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null;}_onDirChange(){this._isRtl=this._dir?.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI();}_onDirChangeRange(){let e=this._getInput(Ge.END),i=this._getInput(Ge.START);e._setIsLeftThumb(),i._setIsLeftThumb(),e.translateX=e._calcTranslateXByValue(),i.translateX=i._calcTranslateXByValue(),e._updateStaticStyles(),i._update��StaticStyles(),e._updateWidthInactive(),i._updateWidthInactive(),e._updateThumbUIByValue(),i._updateThumbUIByValue();}_onDirChangeNonRange(){this._getInput(Ge.END)._updateThumbUIByValue();}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize());}),this._resizeObserver.observe(this._elementRef.nativeElement);});}_isActive(){return this._getThumb(Ge.START)._isActive||this._getThumb(Ge.END)._isActive;}_getValue(e=Ge.END){let i=this._getInput(e);return i?i.value:this.min;}_skipUpdate(){return!!(this._getInput(Ge.START)?._skipUIUpdate||this._getInput(Ge.END)?._skipUIUpdate);}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left;}_setTrackActiveStyles(e){let i=this._trackActive.nativeElement.style;i.left=e.left,i.right=e.right,i.transformOrigin=e.transformOrigin,i.transform=e.transform;}_calcTickMarkTransform(e){let i=e*(this._tickMarkTrackWidth/(this._tickMarks.length-1));return`translateX(${this._isRtl?this._cachedWidth-6-i:i}px`;}_onTranslateXChange(e){this._hasViewInitialized&&(this._updateThumbUI(e),this._updateTrackUI(e),this._updateOverlappingThumbUI(e));}_onTranslateXChangeBySideEffect(e,i){this._hasViewInitialized&&(e._updateThumbUIByValue(),i._updateThumbUIByValue());}_onValueChange(e){this._hasViewInitialized&&(this._updateValueIndicatorUI(e),this._updateTickMarkUI(),this._cdr.detectChanges());}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck());}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let e=this._getInput(Ge.END),i=this._getInput(Ge.START);e._updateThumbUIByValue(),i._updateThumbUIByValue(),e._updateStaticStyles(),i._updateStaticStyles(),e._updateMinMax(),i._updateMinMax(),e._updateWidthInactive(),i._updateWidthInactive();}else{let e=this._getInput(Ge.END);e&&e._updateThumbUIByValue();}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges();}}_thumbsOverlap=!1;_areThumbsOverlapping(){let e=this._getInput(Ge.START),i=this._getInput(Ge.END);return!e||!i?!1:i.translateX-e.translateX<20;}_updateOverlappingThumbClassNames(e){let i=e.getSibling(),r=this._getThumb(e.thumbPosition);this._getThumb(i.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),r._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap);}_updateOverlappingThumbUI(e){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(e));}_updateThumbUI(e){if(this._skipUpdate())return;let i=this._getThumb(e.thumbPosition===Ge.END?Ge.END:Ge.START);i._hostElement.style.transform=`translateX(${e.translateX}px)`;}_updateValueIndicatorUI(e){if(this._skipUpdate())return;let i=this.displayWith(e.value);if(this._hasViewInitialized?e._valuetext.set(i):e._hostElement.setAttribute("aria-valuetext",i),this.discrete){e.thumbPosition===Ge.START?this.startValueIndicatorText=i:this.endValueIndicatorText=i;let r=this._getThumb(e.thumbPosition);i.length<3?r._hostElement.classList.add("mdc-slider__thumb--short-value"):r._hostElement.classList.remove("mdc-slider__thumb--short-value");}}_updateValueIndicatorUIs(){let e=this._getInput(Ge.END),i=this._getInput(Ge.START);e&&this._updateValueIndicatorUI(e),i&&this._updateValueIndicatorUI(i);}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let e=this._step&&this._step>0?this._step:1,r=(Math.floor(this.max/e)*e-this.min)/(this.max-this.min);this._tickMarkTrackWidth=(this._cachedWidth-6)*r;}_updateTrackUI(e){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(e):this._updateTrackUINonRange(e));}_updateTrackUIRange(e){let i=e.getSibling();if(!i||!this._cachedWidth)return;let r=Math.abs(i.translateX-e.translateX)/this._cachedWidth;e._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-i.translateX}px`,transformOrigin:"right",transform:`scaleX(${r})`}):this._setTrackActiveStyles({left:`${i.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${r})`});}_updateTrackUINonRange(e){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-e.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${e.fillPercentage})`});}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let e=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(e):this._updateTickMarkUINonRange(e);}_updateTickMarkUINonRange(e){let i=this._getValue(),r=Math.max(Math.round((i-this.min)/e),0)+1,o=Math.max(Math.round((this.max-i)/e),0)-1;this._isRtl?r++:o++,this._tickMarks=Array(r).fill(cu.ACTIVE).concat(Array(o).fill(cu.INACTIVE));}_updateTickMarkUIRange(e){let i=this._getValue(),r=this._getValue(Ge.START),o=Math.max(Math.round((r-this.min)/e),0),a=Math.max(Math.round((i-r)/e)+1,0),s=Math.max(Math.round((this.max-i)/e),0);this._tickMarks=Array(o).fill(cu.INACTIVE).concat(Array(a).fill(cu.ACTIVE),Array(s).fill(cu.INACTIVE));}_getInput(e){if(e===Ge.END&&this._input)return this._input;if(this._inputs?.length)return e===Ge.START?this._inputs.first:this._inputs.last;}_getThumb(e){return e===Ge.END?this._thumbs?.last:this._thumbs?.first;}_setTransition(e){this._hasAnimation=!this._platform.IOS&&e&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation);}_isCursorOnSliderThumb(e,i){let r=i.width/2,o=i.x+r,a=i.y+r,s=e.clientX-o,l=e.clientY-a;return Math.pow(s,2)+Math.pow(l,2)<Math.pow(r,2);}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-slider"]],contentQueries:function(i,r,o){if(i&1&&(Ee(o,uN,5),Ee(o,tJ,4)),i&2){let a;R(a=O())&&(r._input=a.first),R(a=O())&&(r._inputs=a);}},viewQuery:function(i,r){if(i&1&&($(QX,5),$(mN,5)),i&2){let o;R(o=O())&&(r._trackActive=o.first),R(o=O())&&(r._thumbs=o);}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(i,r){i&2&&(bt("mat-"+(r.color||"primary")),Z("mdc-slider--range",r._isRange)("mdc-slider--disabled",r.disabled)("mdc-slider--discrete",r.discrete)("mdc-slider--tick-marks",r.showTickMarks)("_mat-animation-noopable",r._noopAnimations));},inputs:{disabled:[2,"disabled","disabled",U],discrete:[2,"discrete","discrete",U],showTickMarks:[2,"showTickMarks","showTickMarks",U],min:[2,"min","min",ut],color:"color",disableRipple:[2,"disableRipple","disableRipple",U],max:[2,"max","max",ut],step:[2,"step","step",ut],displayWith:"displayWith"},exportAs:["matSlider"],features:[be([{provide:hD,useExisting:t}])],ngContentSelectors:KX,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(i,r){i&1&&(De(),le(0),m(1,"div",2),w(2,"div",3),m(3,"div",4),w(4,"div",5,0),u(),I(6,JX,3,1,"div",6),u(),I(7,eJ,1,3,"mat-slider-visual-thumb",7),w(8,"mat-slider-visual-thumb",7)),i&2&&(d(6),Q(r.showTickMarks?6:-1),d(),Q(r._isRange?7:-1),d(),v("discrete",r.discrete)("thumbPosition",2)("valueIndicatorText",r.endValueIndicatorText));},dependencies:[iJ],styles:[`.mdc-slider__track{position:absolute;top:50%;transform:translateY(-50%);width:100%;pointer-events:none;height:var(--mdc-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(--mdc-slider-active-track-shape, var(--mat-sys-corner-full));height:var(--mdc-slider-active-track-height, 4px);top:calc((var(--mdc-slider-inactive-track-height, 4px) - var(--mdc-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(--mdc-slider-active-track-color, var(--mat-sys-primary));border-top-width:var(--mdc-slider-active-track-height, 4px)}.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mdc-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(--mdc-slider-inactive-track-color, var(--mat-sys-surface-variant));height:var(--mdc-slider-inactive-track-height, 4px);border-radius:var(--mdc-slider-inactive-track-shape, var(--mat-sys-corner-full))}.mdc-slider--disabled .mdc-slider__track--inactive{background-color:var(--mdc-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:translateX(-50%);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;border-radius:4px;height:32px;padding:0 12px;transform:scale(0);transform-origin:bottom;opacity:1;transition:transform 100ms cubic-bezier(0.4, 0, 1, 1);word-break:normal;background-color:var(--mdc-slider-label-container-color, var(--mat-sys-primary));color:var(--mdc-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(--mdc-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(--mdc-slider-label-label-text-font, var(--mat-sys-label-medium-font));font-size:var(--mdc-slider-label-label-text-size, var(--mat-sys-label-medium-size));font-weight:var(--mdc-slider-label-label-text-weight, var(--mat-sys-label-medium-weight));line-height:var(--mdc-slider-label-label-text-line-height, var(--mat-sys-label-medium-line-height));letter-spacing:var(--mdc-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(--mdc-slider-handle-width, 20px);height:var(--mdc-slider-handle-height, 20px);border-width:calc(var(--mdc-slider-handle-height, 20px)/2) calc(var(--mdc-slider-handle-width, 20px)/2);box-shadow:var(--mdc-slider-handle-elevation, var(--mat-sys-level1));background-color:var(--mdc-slider-handle-color, var(--mat-sys-primary));border-color:var(--mdc-slider-handle-color, var(--mat-sys-primary));border-radius:var(--mdc-slider-handle-shape, var(--mat-sys-corner-full))}.mdc-slider__thumb:hover .mdc-slider__thumb-knob{background-color:var(--mdc-slider-hover-handle-color, var(--mat-sys-primary));border-color:var(--mdc-slider-hover-handle-color, var(--mat-sys-primary))}.mdc-slider__thumb--focused .mdc-slider__thumb-knob{background-color:var(--mdc-slider-focus-handle-color, var(--mat-sys-primary));border-color:var(--mdc-slider-focus-handle-color, var(--mat-sys-primary))}.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mdc-slider-disabled-handle-color, var(--mat-sys-on-surface));border-color:var(--mdc-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(--mdc-slider-with-overlap-handle-outline-color, var(--mat-sys-on-primary));border-width:var(--mdc-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(--mdc-slider-with-tick-marks-container-size, 2px);height:var(--mdc-slider-with-tick-marks-container-size, 2px);border-radius:var(--mdc-slider-with-tick-marks-container-shape, var(--mat-sys-corner-full))}.mdc-slider__tick-mark--inactive{opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mdc-slider-with-tick-marks-inactive-container-color, var(--mat-sys-on-surface-variant))}.mdc-slider--disabled .mdc-slider__tick-mark--inactive{opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mdc-slider-with-tick-marks-disabled-container-color, var(--mat-sys-on-surface))}.mdc-slider__tick-mark--active{opacity:var(--mdc-slider-with-tick-marks-active-container-opacity, 0.38);background-color:var(--mdc-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__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:""}
`],encapsulation:2,changeDetection:0});}return t;})();var nJ={provide:Sr,useExisting:yi(()=>Yp),multi:!0};var Yp=(()=>{class t{_ngZone=p(ae);_elementRef=p(J);_cdr=p(pe);_slider=p(hD);_platform=p(Ae);_listenerCleanups;get value(){return ut(this._hostElement.value,0);}set value(e){e=isNaN(e)?0:e;let i=e+"";if(!this._hasSetInitialValue){this._initialValue=i;return;}this._isActive||this._setValue(i);}_setValue(e){this._hostElement.value=e,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck();}valueChange=new V();dragStart=new V();dragEnd=new V();get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX);}set translateX(e){this._translateX=e;}_translateX;thumbPosition=Ge.END;get min(){return ut(this._hostElement.min,0);}set min(e){this._hostElement.min=e+"",this._cdr.detectChanges();}get max(){return ut(this._hostElement.max,0);}set max(e){this._hostElement.max=e+"",this._cdr.detectChanges();}get step(){return ut(this._hostElement.step,0);}set step(e){this._hostElement.step=e+"",this._cdr.detectChanges();}get disabled(){return U(this._hostElement.disabled);}set disabled(e){this._hostElement.disabled=e,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled);}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min);}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0;}_hostElement=this._elementRef.nativeElement;_valuetext=Zi("");_knobRadius=8;_tickMarkOffset=3;_isActive=!1;_isFocused=!1;_setIsFocused(e){this._isFocused=e;}_hasSetInitialValue=!1;_initialValue;_formControl;_destroyed=new H();_skipUIUpdate=!1;_onChangeFn;_onTouchedFn=()=>{};_isControlInitialized=!1;constructor(){let e=p(tt);this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[e.listen(this._hostElement,"pointerdown",this._onPointerDown.bind(this)),e.listen(this._hostElement,"pointermove",this._onPointerMove.bind(this)),e.listen(this._hostElement,"pointerup",this._onPointerUp.bind(this))];});}ngOnDestroy(){this._listenerCleanups.forEach(e=>e()),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete();}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue();}initUI(){this._updateThumbUIByValue();}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges());}_getDefaultValue(){return this.min;}_onBlur(){this._setIsFocused(!1),this._onTouchedFn();}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0);}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0});}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this);}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled;}_onPointerDown(e){if(!(this.disabled||e.button!==0)){if(this._platform.IOS){let i=this._slider._isCursorOnSliderThumb(e,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=i,this._updateWidthActive(),this._slider._updateDimensions();return;}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(e,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(e),this.dragStart.emit({source:this,parent:this._slider,value:this.value}));}}_handleValueCorrection(e){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(e);},0);}_fixValue(e){let i=e.clientX-this._slider._cachedLeft,r=this._slider._cachedWidth,o=this._slider.step===0?1:this._slider.step,a=Math.floor((this._slider.max-this._slider.min)/o),s=this._slider._isRtl?1-i/r:i/r,c=Math.round(s*a)/a*(this._slider.max-this._slider.min)+this._slider.min,h=Math.round(c/o)*o,g=this.value;if(h===g){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});return;}this.value=h,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});}_onPointerMove(e){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(e);}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0));}_clamp(e){let i=this._tickMarkOffset,r=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(e,r),i);}_calcTranslateXByValue(){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;}_calcTranslateXByPointerEvent(e){return e.clientX-this._slider._cachedLeft;}_updateWidthActive(){}_updateWidthInactive(){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`;}_updateThumbUIByValue(e){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(e);}_updateThumbUIByPointerEvent(e,i){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(e)),this._updateThumbUI(i);}_updateThumbUI(e){this._slider._setTransition(!!e?.withAnimation),this._slider._onTranslateXChange(this);}writeValue(e){(this._isControlInitialized||e!==null)&&(this.value=e);}registerOnChange(e){this._onChangeFn=e,this._isControlInitialized=!0;}registerOnTouched(e){this._onTouchedFn=e;}setDisabledState(e){this.disabled=e;}focus(){this._hostElement.focus();}blur(){this._hostElement.blur();}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(i,r){i&1&&S("change",function(){return r._onChange();})("input",function(){return r._onInput();})("blur",function(){return r._onBlur();})("focus",function(){return r._onFocus();}),i&2&&ee("aria-valuetext",r._valuetext());},inputs:{value:[2,"value","value",ut]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[be([nJ,{provide:uN,useExisting:t}])]});}return t;})();var nb=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,sr]});}return t;})();var rJ=["myCanvas"],hN=t=>({display:t});function oJ(t,n){if(t&1){let e=K();m(0,"button",10),S("click",function(){k(e);let r=y();return M(r.editLockedImage());}),m(1,"mat-icon"),f(2,"edit"),u(),f(3),u();}if(t&2){let e=y();d(3),N(" ",e.editTxt," ");}}function aJ(t,n){if(t&1){let e=K();m(0,"button",10),S("click",function(){k(e);let r=y();return M(r.clearMask());}),m(1,"mat-icon"),f(2,"clear"),u(),f(3),u();}if(t&2){let e=y();d(3),N(" ",e.clearTxt," ");}}var fD=(()=>{class t{static{this.SId=0;}onScroll(){this.loaded&&(this.resizeCanvas(),setTimeout(()=>{this.drawImage();}));}constructor(e){this.service=e,this.url=rt.required(),this.createEditsEvent=new V(),this.editTxt="Edit",this.clearTxt="Clear mask",this.positionX=0,this.positionY=0,this.startX=0,this.startY=0,this.locked=!1,this.loaded=!1,this.penSize=45,this.paths=[],this.isDrawing=!1,this.id=++t.SId;}ngAfterViewInit(){this.context=this.canvas.nativeElement.getContext("2d"),(!this.context||!this.canvas)&&console.log("unable to init canvas",this.canvas,this.context),setTimeout(()=>{this.resizeCanvas(),this.drawImage();},100);}resizeCanvas(){if(!this.loaded)return;let e=window.innerWidth,i=256,r=768,o=100,a=this.image.width/this.image.height;this.width=e-o*2,this.width<i?this.width=i:this.width>r&&(this.width=r),this.height=this.width/a;}lock(){this.locked=!0,console.log("image masker locked - "+this.id);}editLockedImage(){this.createEditsEvent.emit(!0);}drawImage(){let e=this;function i(){e.context?.clearRect(0,0,e.canvas.nativeElement.width,e.canvas.nativeElement.height),e.context?.drawImage(e.image,0,0,e.image.width,e.image.height,0,0,e.canvas.nativeElement.width,e.canvas.nativeElement.height),e.paths.length&&e.paths.forEach(r=>{e.drawCircle(r);});}if(this.image){i();return;}this.image=new Image(),this.image.crossOrigin="Anonymous",this.image.onload=function(){console.log("myImg width, height",e.image.width,e.image.height),console.log("image load"),e.loaded=!0,e.resizeCanvas(),setTimeout(()=>{i();});},this.image.src=this.url();}formatLabel(e){return e>=1e3?Math.round(e/1e3)+" px":`${e}`;}clearMask(){this.context.clearRect(0,0,this.canvas.nativeElement.width,this.canvas.nativeElement.height),this.paths.length=0,this.drawImage();}toBase64(){var e=document.createElement("canvas"),i=e.getContext("2d");e.width=this.image.width,e.height=this.image.height,console.log("new canvas",e),console.log("new canvas width",e.width),console.log("new canvas height",e.height),i.drawImage(this.canvas.nativeElement,0,0,this.width,this.height,0,0,this.image.width,this.image.height);let r=e.toDataURL();return r=r.replace(/^data:image\/(png|jpg);base64,/,""),r;}getMousePosition(e){if(e.offsetX){let r=e.offsetX,o=e.offsetY;return{x:r,y:o};}else{var i=this.canvas.nativeElement.getBoundingClientRect();let r=e.touches[0].clientX-i.left,o=e.touches[0].clientY-i.top;return{x:r,y:o};}}mousedown(e){let i=this.getMousePosition(e);console.log("mouse position: ",i),this.positionX=i.x,this.positionY=i.y,this.isDrawing=!0;}mouseup(e){this.isDrawing=!1;}mouseleave(e){this.isDrawing=!1;}mousemove(e){if(!this.isDrawing)return;let i=this.getMousePosition(e);this.positionX=i.x,this.positionY=i.y;let r={x:this.positionX,y:this.positionY,size:this.penSize,width:this.canvas.nativeElement.width};this.paths.push(r),this.drawCircle(r),e.preventDefault(),e.stopImmediatePropagation();}drawCircle(e){let i=this.context,r=0;r=e.width/this.canvas.nativeElement.width;let o={x:e.x,y:e.y,size:e.size,width:e.width};o.x/=r,o.y/=r,o.size/=r,i?.save(),i?.beginPath(),i.lineWidth=5,i.lineCap="round",i.strokeStyle="#c0392b",i.arc(o.x,o.y,o.size,0,2*Math.PI,!0),i.clip(),i.clearRect(0,0,this.canvas.nativeElement.width,this.canvas.nativeElement.height),i.closePath(),i?.restore();}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["image-masker"]],viewQuery:function(i,r){if(i&1&&$(rJ,5),i&2){let o;R(o=O())&&(r.canvas=o.first);}},hostBindings:function(i,r){i&1&&S("resize",function(){return r.onScroll();},!1,nd);},inputs:{url:[1,"url"]},outputs:{createEditsEvent:"createEditsEvent"},decls:15,vars:14,consts:[["mySlider",""],["myCanvas",""],[1,"loader",3,"ngStyle"],[1,"edit-container",3,"ngStyle"],[1,"toolbar-container"],["mat-raised-button","","class","example-icon favorite-icon",3,"click",4,"ngIf"],[1,"example-spacer"],["min","5","max","50","step","5","showTickMarks","","discrete","",3,"displayWith"],["matSliderThumb","",3,"ngModelChange","ngModel"],[3,"mousedown","touchstart","mouseup","touchend","mouseleave","mousemove","touchmove","id","height","width"],["mat-raised-button","",1,"example-icon","favorite-icon",3,"click"]],template:function(i,r){if(i&1){let o=K();m(0,"div",2),w(1,"mat-spinner"),u(),m(2,"div",3)(3,"div",4)(4,"mat-toolbar"),I(5,oJ,4,1,"button",5)(6,aJ,4,1,"button",5),w(7,"span",6),m(8,"mat-slider",7,0)(10,"input",8,0),pi("ngModelChange",function(s){return k(o),Ci(r.penSize,s)||(r.penSize=s),M(s);}),u()(),w(12,"span",6),u()(),m(13,"canvas",9,1),S("mousedown",function(s){return k(o),M(r.mousedown(s));})("touchstart",function(s){return k(o),M(r.mousedown(s));})("mouseup",function(s){return k(o),M(r.mouseup(s));})("touchend",function(s){return k(o),M(r.mouseup(s));})("mouseleave",function(s){return k(o),M(r.mouseleave(s));})("mousemove",function(s){return k(o),M(r.mousemove(s));})("touchmove",function(s){return k(o),M(r.mousemove(s));}),u()();}i&2&&(v("ngStyle",Ue(10,hN,r.loaded?"none":"block")),d(2),v("ngStyle",Ue(12,hN,r.loaded?"block":"none")),d(3),v("ngIf",r.locked),d(),v("ngIf",!r.locked),d(2),v("displayWith",r.formatLabel),d(2),mi("ngModel",r.penSize),d(3),nr("id","mask-canvas-",r.id,""),G("height",r.height),G("width",r.width));},dependencies:[j,Pt,gn,on,rn,ce,ye,ke,Oe,nb,ib,Yp,gi,fi,Ti,fo,Hi,ji],styles:[".loader[_ngcontent-%COMP%]{text-align:center}.loader[_ngcontent-%COMP%]   mat-spinner[_ngcontent-%COMP%]{margin:0 auto}.edit-container[_ngcontent-%COMP%]{text-align:center;margin:30px auto 0}.edit-container[_ngcontent-%COMP%]   .toolbar-container[_ngcontent-%COMP%]{width:256px;margin:0 auto}.edit-container[_ngcontent-%COMP%]   .toolbar-container[_ngcontent-%COMP%]   mat-slider[_ngcontent-%COMP%]{width:150px}.edit-container[_ngcontent-%COMP%]   canvas[_ngcontent-%COMP%]{border:1px solid gray}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]});}}return t;})();var DD={};mh(DD,{arrayReplaceAt:()=>wD,assign:()=>mu,escapeHtml:()=>ms,escapeRE:()=>$J,fromCodePoint:()=>Zp,has:()=>RJ,isMdAsciiPunct:()=>cc,isPunctChar:()=>lc,isSpace:()=>gt,isString:()=>fb,isValidEntityCode:()=>gb,isWhiteSpace:()=>sc,lib:()=>UJ,normalizeReference:()=>dc,unescapeAll:()=>us,unescapeMd:()=>LJ});var lb={};mh(lb,{decode:()=>Qp,encode:()=>ab,format:()=>du,parse:()=>Kp});var fN={};function sJ(t){let n=fN[t];if(n)return n;n=fN[t]=[];for(let e=0;e<128;e++){let i=String.fromCharCode(e);n.push(i);}for(let e=0;e<t.length;e++){let i=t.charCodeAt(e);n[i]="%"+("0"+i.toString(16).toUpperCase()).slice(-2);}return n;}function rb(t,n){typeof n!="string"&&(n=rb.defaultChars);let e=sJ(n);return t.replace(/(%[a-f0-9]{2})+/gi,function(i){let r="";for(let o=0,a=i.length;o<a;o+=3){let s=parseInt(i.slice(o+1,o+3),16);if(s<128){r+=e[s];continue;}if((s&224)===192&&o+3<a){let l=parseInt(i.slice(o+4,o+6),16);if((l&192)===128){let c=s<<6&1984|l&63;c<128?r+="\uFFFD\uFFFD":r+=String.fromCharCode(c),o+=3;continue;}}if((s&240)===224&&o+6<a){let l=parseInt(i.slice(o+4,o+6),16),c=parseInt(i.slice(o+7,o+9),16);if((l&192)===128&&(c&192)===128){let h=s<<12&61440|l<<6&4032|c&63;h<2048||h>=55296&&h<=57343?r+="\uFFFD\uFFFD\uFFFD":r+=String.fromCharCode(h),o+=6;continue;}}if((s&248)===240&&o+9<a){let l=parseInt(i.slice(o+4,o+6),16),c=parseInt(i.slice(o+7,o+9),16),h=parseInt(i.slice(o+10,o+12),16);if((l&192)===128&&(c&192)===128&&(h&192)===128){let g=s<<18&1835008|l<<12&258048|c<<6&4032|h&63;g<65536||g>1114111?r+="\uFFFD\uFFFD\uFFFD\uFFFD":(g-=65536,r+=String.fromCharCode(55296+(g>>10),56320+(g&1023))),o+=9;continue;}}r+="\uFFFD";}return r;});}rb.defaultChars=";/?:@&=+$,#";rb.componentChars="";var Qp=rb;var gN={};function lJ(t){let n=gN[t];if(n)return n;n=gN[t]=[];for(let e=0;e<128;e++){let i=String.fromCharCode(e);/^[0-9a-z]$/i.test(i)?n.push(i):n.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));}for(let e=0;e<t.length;��e++)n[t.charCodeAt(e)]=t[e];return n;}function ob(t,n,e){typeof n!="string"&&(e=n,n=ob.defaultChars),typeof e>"u"&&(e=!0);let i=lJ(n),r="";for(let o=0,a=t.length;o<a;o++){let s=t.charCodeAt(o);if(e&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){r+=t.slice(o,o+3),o+=2;continue;}if(s<128){r+=i[s];continue;}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){let l=t.charCodeAt(o+1);if(l>=56320&&l<=57343){r+=encodeURIComponent(t[o]+t[o+1]),o++;continue;}}r+="%EF%BF%BD";continue;}r+=encodeURIComponent(t[o]);}return r;}ob.defaultChars=";/?:@&=+$,-_.!~*'()#";ob.componentChars="-_.!~*'()";var ab=ob;function du(t){let n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n;}function sb(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null;}var cJ=/^([a-z0-9.+-]+:)/i,dJ=/:[0-9]*$/,uJ=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,mJ=["<",">",'"',"`"," ","\r",`
`,"	"],pJ=["{","}","|","\\","^","`"].concat(mJ),hJ=["'"].concat(pJ),_N=["%","/","?",";","#"].concat(hJ),bN=["/","?","#"],fJ=255,vN=/^[+a-z0-9A-Z_-]{0,63}$/,gJ=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,yN={javascript:!0,"javascript:":!0},xN={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function _J(t,n){if(t&&t instanceof sb)return t;let e=new sb();return e.parse(t,n),e;}sb.prototype.parse=function(t,n){let e,i,r,o=t;if(o=o.trim(),!n&&t.split("#").length===1){let c=uJ.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this;}let a=cJ.exec(o);if(a&&(a=a[0],e=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(n||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=o.substr(0,2)==="//",r&&!(a&&yN[a])&&(o=o.substr(2),this.slashes=!0)),!yN[a]&&(r||a&&!xN[a])){let c=-1;for(let x=0;x<bN.length;x++)i=o.indexOf(bN[x]),i!==-1&&(c===-1||i<c)&&(c=i);let h,g;c===-1?g=o.lastIndexOf("@"):g=o.lastIndexOf("@",c),g!==-1&&(h=o.slice(0,g),o=o.slice(g+1),this.auth=h),c=-1;for(let x=0;x<_N.length;x++)i=o.indexOf(_N[x]),i!==-1&&(c===-1||i<c)&&(c=i);c===-1&&(c=o.length),o[c-1]===":"&&c--;let b=o.slice(0,c);o=o.slice(c),this.parseHost(b),this.hostname=this.hostname||"";let _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_){let x=this.hostname.split(/\./);for(let T=0,L=x.length;T<L;T++){let q=x[T];if(q&&!q.match(vN)){let ie="";for(let Y=0,me=q.length;Y<me;Y++)q.charCodeAt(Y)>127?ie+="x":ie+=q[Y];if(!ie.match(vN)){let Y=x.slice(0,T),me=x.slice(T+1),xe=q.match(gJ);xe&&(Y.push(xe[1]),me.unshift(xe[2])),me.length&&(o=me.join(".")+o),this.hostname=Y.join(".");break;}}}}this.hostname.length>fJ&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2));}let s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));let l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),xN[e]&&this.hostname&&!this.pathname&&(this.pathname=""),this;};sb.prototype.parseHost=function(t){let n=dJ.exec(t);n&&(n=n[0],n!==":"&&(this.port=n.substr(1)),t=t.substr(0,t.length-n.length)),t&&(this.hostname=t);};var Kp=_J;var gD={};mh(gD,{Any:()=>cb,Cc:()=>db,Cf:()=>CN,P:()=>uu,S:()=>ub,Z:()=>mb});var cb=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var db=/[\0-\x1F\x7F-\x9F]/;var CN=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;var uu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;var ub=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/;var mb=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var wN=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u��411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(t=>t.charCodeAt(0)));var DN=new Uint16Array("\u0200aglq	\x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(t=>t.charCodeAt(0)));var _D,bJ=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),bD=(_D=String.fromCodePoint)!==null&&_D!==void 0?_D:function(t){let n="";return t>65535&&(t-=65536,n+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),n+=String.fromCharCode(t),n;};function vD(t){var n;return t>=55296&&t<=57343||t>1114111?65533:(n=bJ.get(t))!==null&&n!==void 0?n:t;}var xn=function(t){return t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z",t;}(xn||{}),vJ=32,ac=function(t){return t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE",t;}(ac||{});function yD(t){return t>=xn.ZERO&&t<=xn.NINE;}function yJ(t){return t>=xn.UPPER_A&&t<=xn.UPPER_F||t>=xn.LOWER_A&&t<=xn.LOWER_F;}function xJ(t){return t>=xn.UPPER_A&&t<=xn.UPPER_Z||t>=xn.LOWER_A&&t<=xn.LOWER_Z||yD(t);}function CJ(t){return t===xn.EQUALS||xJ(t);}var yn=function(t){return t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity",t;}(yn||{}),ds=function(t){return t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute",t;}(ds||{}),pb=class{constructor(n,e,i){this.decodeTree=n,this.emitCodePoint=e,this.errors=i,this.state=yn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ds.Strict;}startEntity(n){this.decodeMode=n,this.state=yn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1;}write(n,e){switch(this.state){case yn.EntityStart:return n.charCodeAt(e)===xn.NUM?(this.state=yn.NumericStart,this.consumed+=1,this.stateNumericStart(n,e+1)):(this.state=yn.NamedEntity,this.stateNamedEntity(n,e));case yn.NumericStart:return this.stateNumericStart(n,e);case yn.NumericDecimal:return this.stateNumericDecimal(n,e);case yn.NumericHex:return this.stateNumericHex(n,e);case yn.NamedEntity:return this.stateNamedEntity(n,e);}}stateNumericStart(n,e){return e>=n.length?-1:(n.charCodeAt(e)|vJ)===xn.LOWER_X?(this.state=yn.NumericHex,this.consumed+=1,this.stateNumericHex(n,e+1)):(this.state=yn.NumericDecimal,this.stateNumericDecimal(n,e));}addToNumericResult(n,e,i,r){if(e!==i){let o=i-e;this.result=this.result*Math.pow(r,o)+parseInt(n.substr(e,o),r),this.consumed+=o;}}stateNumericHex(n,e){let i=e;for(;e<n.length;){let r=n.charCodeAt(e);if(yD(r)||yJ(r))e+=1;else return this.addToNumericResult(n,i,e,16),this.emitNumericEntity(r,3);}return this.addToNumericResult(n,i,e,16),-1;}stateNumericDecimal(n,e){let i=e;for(;e<n.length;){let r=n.charCodeAt(e);if(yD(r))e+=1;else return this.addToNumericResult(n,i,e,10),this.emitNumericEntity(r,2);}return this.addToNumericResult(n,i,e,10),-1;}emitNumericEntity(n,e){var i;if(this.consumed<=e)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(n===xn.SEMI)this.consumed+=1;else if(this.decodeMode===ds.Strict)return 0;return this.emitCodePoint(vD(this.result),this.consumed),this.errors&&(n!==xn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed;}stateNamedEntity(n,e){let{decodeTree:i}=this,r=i[this.treeIndex],o=(r&ac.VALUE_LENGTH)>>14;for(;e<n.length;e++,this.excess++){let a=n.charCodeAt(e);if(this.treeIndex=wJ(i,r,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===ds.Attribute&&(o===0||CJ(a))?0:this.emitNotTerminatedNamedEntity();if(r=i[this.treeIndex],o=(r&ac.VALUE_LENGTH)>>14,o!==0){if(a===xn.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==ds.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0);}}return-1;}emitNotTerminatedNamedEntity(){var n;let{result:e,decodeTree:i}=this,r=(i[e]&ac.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,r,this.consumed),(n=this.errors)===null||n===void 0||n.missingSemicolonAfterCharacterReference(),this.consumed;}emitNamedEntityData(n,e,i){let{decodeTree:r}=this;return this.emitCodePoint(e===1?r[n]&~ac.VALUE_LENGTH:r[n+1],i),e===3&&this.emitCodePoint(r[n+2],i),i;}end(){var n;switch(this.state){case yn.NamedEntity:return this.result!==0&&(this.decodeMode!==ds.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case yn.NumericDecimal:return this.emitNumericEntity(0,2);case yn.NumericHex:return this.emitNumericEntity(0,3);case yn.NumericStart:return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case yn.EntityStart:return 0;}}};function EN(t){let n="",e=new pb(t,i=>n+=bD(i));return function(r,o){let a=0,s=0;for(;(s=r.indexOf("&",s))>=0;){n+=r.slice(a,s),e.startEntity(o);let c=e.write(r,s+1);if(c<0){a=s+e.end();break;}a=s+c,s=c===0?a+1:a;}let l=n+r.slice(a);return n="",l;};}function wJ(t,n,e,i){let r=(n&ac.BRANCH_LENGTH)>>7,o=n&ac.JUMP_TABLE;if(r===0)return o!==0&&i===o?e:-1;if(o){let l=i-o;return l<0||l>=r?-1:t[e+l]-1;}let a=e,s=a+r-1;for(;a<=s;){let l=a+s>>>1,c=t[l];if(c<i)a=l+1;else if(c>i)s=l-1;else return t[l+r];}return-1;}var DJ=EN(wN),o3e=EN(DN);function Zs(t,n=ds.Legacy){return DJ(t,n);}function hb(t){for(let n=1;n<t.length;n++)t[n][0]+=t[n-1][0]+1;return t;}var EJ=new Map(hb([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"��&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(hb([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(hb([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(hb([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var kJ=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),MJ=String.prototype.codePointAt!=null?(t,n)=>t.codePointAt(n):(t,n)=>(t.charCodeAt(n)&64512)===55296?(t.charCodeAt(n)-55296)*1024+t.charCodeAt(n+1)-56320+65536:t.charCodeAt(n);function xD(t,n){return function(i){let r,o=0,a="";for(;r=t.exec(i);)o!==r.index&&(a+=i.substring(o,r.index)),a+=n.get(r[0].charCodeAt(0)),o=r.index+1;return a+i.substring(o);};}var kN=xD(/[&<>'"]/g,kJ),MN=xD(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),SN=xD(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));function TJ(t){return Object.prototype.toString.call(t);}function fb(t){return TJ(t)==="[object String]";}var AJ=Object.prototype.hasOwnProperty;function RJ(t,n){return AJ.call(t,n);}function mu(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){if(e){if(typeof e!="object")throw new TypeError(e+"must be object");Object.keys(e).forEach(function(i){t[i]=e[i];});}}),t;}function wD(t,n,e){return[].concat(t.slice(0,n),e,t.slice(n+1));}function gb(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111);}function Zp(t){if(t>65535){t-=65536;let n=55296+(t>>10),e=56320+(t&1023);return String.fromCharCode(n,e);}return String.fromCharCode(t);}var AN=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,OJ=/&([a-z#][a-z0-9]{1,31});/gi,PJ=new RegExp(AN.source+"|"+OJ.source,"gi"),FJ=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function NJ(t,n){if(n.charCodeAt(0)===35&&FJ.test(n)){let i=n[1].toLowerCase()==="x"?parseInt(n.slice(2),16):parseInt(n.slice(1),10);return gb(i)?Zp(i):t;}let e=Zs(t);return e!==t?e:t;}function LJ(t){return t.indexOf("\\")<0?t:t.replace(AN,"$1");}function us(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(PJ,function(n,e,i){return e||NJ(n,i);});}var VJ=/[&<>"]/,zJ=/[&<>"]/g,BJ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function jJ(t){return BJ[t];}function ms(t){return VJ.test(t)?t.replace(zJ,jJ):t;}var HJ=/[.?*+^$[\]\\(){}|-]/g;function $J(t){return t.replace(HJ,"\\$&");}function gt(t){switch(t){case 9:case 32:return!0;}return!1;}function sc(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0;}return!1;}function lc(t){return uu.test(t)||ub.test(t);}function cc(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1;}}function dc(t){return t=t.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(t=t.replace(/ẞ/g,"\xDF")),t.toLowerCase().toUpperCase();}var UJ={mdurl:lb,ucmicro:gD};var SD={};mh(SD,{parseLinkDestination:()=>kD,parseLinkLabel:()=>ED,parseLinkTitle:()=>MD});function ED(t,n,e){let i,r,o,a,s=t.posMax,l=t.pos;for(t.pos=n+1,i=1;t.pos<s;){if(o=t.src.charCodeAt(t.pos),o===93&&(i--,i===0)){r=!0;break;}if(a=t.pos,t.md.inline.skipToken(t),o===91){if(a===t.pos-1)i++;else if(e)return t.pos=l,-1;}}let c=-1;return r&&(c=t.pos),t.pos=l,c;}function kD(t,n,e){let i,r=n,o={ok:!1,pos:0,str:""};if(t.charCodeAt(r)===60){for(r++;r<e;){if(i=t.charCodeAt(r),i===10||i===60)return o;if(i===62)return o.pos=r+1,o.str=us(t.slice(n+1,r)),o.ok=!0,o;if(i===92&&r+1<e){r+=2;continue;}r++;}return o;}let a=0;for(;r<e&&(i=t.charCodeAt(r),!(i===32||i<32||i===127));){if(i===92&&r+1<e){if(t.charCodeAt(r+1)===32)break;r+=2;continue;}if(i===40&&(a++,a>32))return o;if(i===41){if(a===0)break;a--;}r++;}return n===r||a!==0||(o.str=us(t.slice(n,r)),o.pos=r,o.ok=!0),o;}function MD(t,n,e,i){let r,o=n,a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)a.str=i.str,a.marker=i.marker;else{if(o>=e)return a;let s=t.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;n++,o++,s===40&&(s=41),a.marker=s;}for(;o<e;){if(r=t.charCodeAt(o),r===a.marker)return a.pos=o+1,a.str+=us(t.slice(n,o)),a.ok=!0,a;if(r===40&&a.marker===41)return a;r===92&&o+1<e&&o++,o++;}return a.can_continue=!0,a.str+=us(t.slice(n,o)),a;}var ka={};ka.code_inline=function(t,n,e,i,r){let o=t[n];return"<code"+r.renderAttrs(o)+">"+ms(o.content)+"</code>";};ka.code_block=function(t,n,e,i,r){let o=t[n];return"<pre"+r.renderAttrs(o)+"><code>"+ms(t[n].content)+`</code></pre>
`;};ka.fence=function(t,n,e,i,r){let o=t[n],a=o.info?us(o.info).trim():"",s="",l="";if(a){let h=a.split(/(\s+)/g);s=h[0],l=h.slice(2).join("");}let c;if(e.highlight?c=e.highlight(o.content,s,l)||ms(o.content):c=ms(o.content),c.indexOf("<pre")===0)return c+`
`;if(a){let h=o.attrIndex("class"),g=o.attrs?o.attrs.slice():[];h<0?g.push(["class",e.langPrefix+s]):(g[h]=g[h].slice(),g[h][1]+=" "+e.langPrefix+s);let b={attrs:g};return`<pre><code${r.renderAttrs(b)}>${c}</code></pre>
`;}return`<pre><code${r.renderAttrs(o)}>${c}</code></pre>
`;};ka.image=function(t,n,e,i,r){let o=t[n];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,e,i),r.renderToken(t,n,e);};ka.hardbreak=function(t,n,e){return e.xhtmlOut?`<br />
`:`<br>
`;};ka.softbreak=function(t,n,e){return e.breaks?e.xhtmlOut?`<br />
`:`<br>
`:`
`;};ka.text=function(t,n){return ms(t[n].content);};ka.html_block=function(t,n){return t[n].content;};ka.html_inline=function(t,n){return t[n].content;};function pu(){this.rules=mu({},ka);}pu.prototype.renderAttrs=function(n){let e,i,r;if(!n.attrs)return"";for(r="",e=0,i=n.attrs.length;e<i;e++)r+=" "+ms(n.attrs[e][0])+'="'+ms(n.attrs[e][1])+'"';return r;};pu.prototype.renderToken=function(n,e,i){let r=n[e],o="";if(r.hidden)return"";r.block&&r.nesting!==-1&&e&&n[e-1].hidden&&(o+=`
`),o+=(r.nesting===-1?"</":"<")+r.tag,o+=this.renderAttrs(r),r.nesting===0&&i.xhtmlOut&&(o+=" /");let a=!1;if(r.block&&(a=!0,r.nesting===1&&e+1<n.length)){let s=n[e+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===r.tag)&&(a=!1);}return o+=a?`>
`:">",o;};pu.prototype.renderInline=function(t,n,e){let i="",r=this.rules;for(let o=0,a=t.length;o<a;o++){let s=t[o].type;typeof r[s]<"u"?i+=r[s](t,o,n,e,this):i+=this.renderToken(t,o,n);}return i;};pu.prototype.renderInlineAsText=function(t,n,e){let i="";for(let r=0,o=t.length;r<o;r++)switch(t[r].type){case"text":i+=t[r].content;break;case"image":i+=this.renderInlineAsText(t[r].children,n,e);break;case"html_inline":case"html_block":i+=t[r].content;break;case"softbreak":case"hardbreak":i+=`
`;break;default:}return i;};pu.prototype.render=function(t,n,e){let i="",r=this.rules;for(let o=0,a=t.length;o<a;o++){let s=t[o].type;s==="inline"?i+=this.renderInline(t[o].children,n,e):typeof r[s]<"u"?i+=r[s](t,o,n,e,this):i+=this.renderToken(t,o,n,e);}return i;};var RN=pu;function yo(){this.__rules__=[],this.__cache__=null;}yo.prototype.__find__=function(t){for(let n=0;n<this.__rules__.length;n++)if(this.__rules__[n].name===t)return n;return-1;};yo.prototype.__compile__=function(){let t=this,n=[""];t.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(i){n.indexOf(i)<0&&n.push(i);});}),t.__cache__={},n.forEach(function(e){t.__cache__[e]=[],t.__rules__.forEach(function(i){i.enabled&&(e&&i.alt.indexOf(e)<0||t.__cache__[e].push(i.fn));});});};yo.prototype.at=function(t,n,e){let i=this.__find__(t),r=e||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__[i].fn=n,this.__rules__[i].alt=r.alt||[],this.__cache__=null;};yo.prototype.before=function(t,n,e,i){let r=this.__find__(t),o=i||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:n,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null;};yo.prototype.after=function(t,n,e,i){let r=this.__find__(t),o=i||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:n,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null;};yo.prototype.push=function(t,n,e){let i=e||{};this.__rules__.push({name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null;};yo.prototype.enable=function(t,n){Array.isArray(t)||(t=[t]);let e=[];return t.forEach(function(i){let r=this.__find__(i);if(r<0){if(n)return;throw new Error("Rules manager: invalid rule name "+i);}this.__rules__[r].enabled=!0,e.push(i);},this),this.__cache__=null,e;};yo.prototype.enableOnly=function(t,n){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(e){e.enabled=!1;}),this.enable(t,n);};yo.prototype.disable=function(t,n){Array.isArray(t)||(t=[t]);let e=[];return t.forEach(function(i){let r=this.__find__(i);if(r<0){if(n)return;throw new Error("Rules manager: invalid rule name "+i);}this.__rules__[r].enabled=!1,e.push(i);},this),this.__cache__=null,e;};yo.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[];};var uc=yo;function hu(t,n,e){this.type=t,this.tag=n,this.attrs=null,this.map=null,this.nesting=e,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1;}hu.prototype.attrIndex=function(n){if(!this.attrs)return-1;let e=this.attrs;for(let i=0,r=e.length;i<r;i++)if(e[i][0]===n)return i;return-1;};hu.prototype.attrPush=function(n){this.attrs?this.attrs.push(n):this.attrs=[n];};hu.prototype.attrSet=function(n,e){let i=this.attrIndex(n),r=[n,e];i<0?this.attrPush(r):this.attrs[i]=r;};hu.prototype.attrGet=function(n){let e=this.attrIndex(n),i=null;return e>=0&&(i=this.attrs[e][1]),i;};hu.prototype.attrJoin=function(n,e){let i=this.attrIndex(n);i<0?this.attrPush([n,e]):this.attrs[i][1]=this.attrs[i][1]+" "+e;};var ps=hu;function ON(t,n,e){this.src=t,this.env=e,this.tokens=[],this.inlineMode=!1,this.md=n;}ON.prototype.Token=ps;var PN=ON;var qJ=/\r\n?|\n/g,WJ=/\0/g;function ID(t){let n;n=t.src.replace(qJ,`
`),n=n.replace(WJ,"\uFFFD"),t.src=n;}function TD(t){let n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens);}function AD(t){let n=t.tokens;for(let e=0,i=n.length;e<i;e++){let r=n[e];r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children);}}function GJ(t){return /^<a[>\s]/i.test(t);}function YJ(t){return /^<\/a\s*>/i.test(t);}function RD(t){let n=t.tokens;if(t.md.options.linkify)for(let e=0,i=n.length;e<i;e++){if(n[e].type!=="inline"||!t.md.linkify.pretest(n[e].content))continue;let r=n[e].children,o=0;for(let a=r.length-1;a>=0;a--){let s=r[a];if(s.type==="link_close"){for(a--;r[a].level!==s.level&&r[a].type!=="link_open";)a--;continue;}if(s.type==="html_inline"&&(GJ(s.content)&&o>0&&o--,YJ(s.content)&&o++),!(o>0)&&s.type==="text"&&t.md.linkify.test(s.content)){let l=s.content,c=t.md.linkify.match(l),h=[],g=s.level,b=0;c.length>0&&c[0].index===0&&a>0&&r[a-1].type==="text_special"&&(c=c.slice(1));for(let _=0;_<c.length;_++){let x=c[_].url,T=t.md.normalizeLink(x);if(!t.md.validateLink(T))continue;let L=c[_].text;c[_].schema?c[_].schema==="mailto:"&&!/^mailto:/i.test(L)?L=t.md.normalizeLinkText("mailto:"+L).replace(/^mailto:/,""):L=t.md.normalizeLinkText(L):L=t.md.normalizeLinkText("http://"+L).replace(/^http:\/\//,"");let q=c[_].index;if(q>b){let xe=new t.Token("text","",0);xe.content=l.slice(b,q),xe.level=g,h.push(xe);}let ie=new t.Token("link_open","a",1);ie.attrs=[["href",T]],ie.level=g++,ie.markup="linkify",ie.info="auto",h.push(ie);let Y=new t.Token("text","",0);Y.content=L,Y.level=g,h.push(Y);let me=new t.Token("link_close","a",-1);me.level=--g,me.markup="linkify",me.info="auto",h.push(me),b=c[_].lastIndex;}if(b<l.length){let _=new t.Token("text","",0);_.content=l.slice(b),_.level=g,h.push(_);}n[e].children=r=wD(r,a,h);}}}}var FN=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,QJ=/\((c|tm|r)\)/i,KJ=/\((c|tm|r)\)/ig,ZJ={c:"\xA9",r:"\xAE",tm:"\u2122"};function XJ(t,n){return ZJ[n.toLowerCase()];}function JJ(t){let n=0;for(let e=t.length-1;e>=0;e--){let i=t[e];i.type==="text"&&!n&&(i.content=i.content.replace(KJ,XJ)),i.type==="link_open"&&i.info==="auto"&&n--,i.type==="link_close"&&i.info==="auto"&&n++;}}function eee(t){let n=0;for(let e=t.length-1;e>=0;e--){let i=t[e];i.type==="text"&&!n&&FN.test(i.content)&&(i.content=i.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),i.type==="link_open"&&i.info==="auto"&&n--,i.type==="link_close"&&i.info==="auto"&&n++;}}function OD(t){let n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(QJ.test(t.tokens[n].content)&&JJ(t.tokens[n].children),FN.test(t.tokens[n].content)&&eee(t.tokens[n].children));}var tee=/['"]/,NN=/['"]/g,LN="\u2019";function _b(t,n,e){return t.slice(0,n)+e+t.slice(n+1);}function iee(t,n){let e,i=[];for(let r=0;r<t.length;r++){let o=t[r],a=t[r].level;for(e=i.length-1;e>=0&&!(i[e].level<=a);e--);if(i.length=e+1,o.type!=="text")continue;let s=o.content,l=0,c=s.length;e:for(;l<c;){NN.lastIndex=l;let h=NN.exec(s);if(!h)break;let g=!0,b=!0;l=h.index+1;let _=h[0]==="'",x=32;if(h.index-1>=0)x=s.charCodeAt(h.index-1);else for(e=r-1;e>=0&&!(t[e].type==="softbreak"||t[e].type==="hardbreak");e--)if(t[e].content){x=t[e].content.charCodeAt(t[e].content.length-1);break;}let T=32;if(l<c)T=s.charCodeAt(l);else for(e=r+1;e<t.length&&!(t[e].type==="softbreak"||t[e].type==="hardbreak");e++)if(t[e].content){T=t[e].content.charCodeAt(0);break;}let L=cc(x)||lc(String.fromCharCode(x)),q=cc(T)��||lc(String.fromCharCode(T)),ie=sc(x),Y=sc(T);if(Y?g=!1:q&&(ie||L||(g=!1)),ie?b=!1:L&&(Y||q||(b=!1)),T===34&&h[0]==='"'&&x>=48&&x<=57&&(b=g=!1),g&&b&&(g=L,b=q),!g&&!b){_&&(o.content=_b(o.content,h.index,LN));continue;}if(b)for(e=i.length-1;e>=0;e--){let me=i[e];if(i[e].level<a)break;if(me.single===_&&i[e].level===a){me=i[e];let xe,Re;_?(xe=n.md.options.quotes[2],Re=n.md.options.quotes[3]):(xe=n.md.options.quotes[0],Re=n.md.options.quotes[1]),o.content=_b(o.content,h.index,Re),t[me.token].content=_b(t[me.token].content,me.pos,xe),l+=Re.length-1,me.token===r&&(l+=xe.length-1),s=o.content,c=s.length,i.length=e;continue e;}}g?i.push({token:r,pos:h.index,single:_,level:a}):b&&_&&(o.content=_b(o.content,h.index,LN));}}}function PD(t){if(t.md.options.typographer)for(let n=t.tokens.length-1;n>=0;n--)t.tokens[n].type!=="inline"||!tee.test(t.tokens[n].content)||iee(t.tokens[n].children,t);}function FD(t){let n,e,i=t.tokens,r=i.length;for(let o=0;o<r;o++){if(i[o].type!=="inline")continue;let a=i[o].children,s=a.length;for(n=0;n<s;n++)a[n].type==="text_special"&&(a[n].type="text");for(n=e=0;n<s;n++)a[n].type==="text"&&n+1<s&&a[n+1].type==="text"?a[n+1].content=a[n].content+a[n+1].content:(n!==e&&(a[e]=a[n]),e++);n!==e&&(a.length=e);}}var ND=[["normalize",ID],["block",TD],["inline",AD],["linkify",RD],["replacements",OD],["smartquotes",PD],["text_join",FD]];function LD(){this.ruler=new uc();for(let t=0;t<ND.length;t++)this.ruler.push(ND[t][0],ND[t][1]);}LD.prototype.process=function(t){let n=this.ruler.getRules("");for(let e=0,i=n.length;e<i;e++)n[e](t);};LD.prototype.State=PN;var VN=LD;function Ma(t,n,e,i){this.src=t,this.md=n,this.env=e,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let r=this.src;for(let o=0,a=0,s=0,l=0,c=r.length,h=!1;a<c;a++){let g=r.charCodeAt(a);if(!h)if(gt(g)){s++,g===9?l+=4-l%4:l++;continue;}else h=!0;(g===10||a===c-1)&&(g!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),h=!1,s=0,l=0,o=a+1);}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1;}Ma.prototype.push=function(t,n,e){let i=new ps(t,n,e);return i.block=!0,e<0&&this.level--,i.level=this.level,e>0&&this.level++,this.tokens.push(i),i;};Ma.prototype.isEmpty=function(n){return this.bMarks[n]+this.tShift[n]>=this.eMarks[n];};Ma.prototype.skipEmptyLines=function(n){for(let e=this.lineMax;n<e&&!(this.bMarks[n]+this.tShift[n]<this.eMarks[n]);n++);return n;};Ma.prototype.skipSpaces=function(n){for(let e=this.src.length;n<e;n++){let i=this.src.charCodeAt(n);if(!gt(i))break;}return n;};Ma.prototype.skipSpacesBack=function(n,e){if(n<=e)return n;for(;n>e;)if(!gt(this.src.charCodeAt(--n)))return n+1;return n;};Ma.prototype.skipChars=function(n,e){for(let i=this.src.length;n<i&&this.src.charCodeAt(n)===e;n++);return n;};Ma.prototype.skipCharsBack=function(n,e,i){if(n<=i)return n;for(;n>i;)if(e!==this.src.charCodeAt(--n))return n+1;return n;};Ma.prototype.getLines=function(n,e,i,r){if(n>=e)return"";let o=new Array(e-n);for(let a=0,s=n;s<e;s++,a++){let l=0,c=this.bMarks[s],h=c,g;for(s+1<e||r?g=this.eMarks[s]+1:g=this.eMarks[s];h<g&&l<i;){let b=this.src.charCodeAt(h);if(gt(b))b===9?l+=4-(l+this.bsCount[s])%4:l++;else if(h-c<this.tShift[s])l++;else break;h++;}l>i?o[a]=new Array(l-i+1).join(" ")+this.src.slice(h,g):o[a]=this.src.slice(h,g);}return o.join("");};Ma.prototype.Token=ps;var zN=Ma;var nee=65536;function VD(t,n){let e=t.bMarks[n]+t.tShift[n],i=t.eMarks[n];return t.src.slice(e,i);}function BN(t){let n=[],e=t.length,i=0,r=t.charCodeAt(i),o=!1,a=0,s="";for(;i<e;)r===124&&(o?(s+=t.substring(a,i-1),a=i):(n.push(s+t.substring(a,i)),s="",a=i+1)),o=r===92,i++,r=t.charCodeAt(i);return n.push(s+t.substring(a)),n;}function zD(t,n,e,i){if(n+2>e)return!1;let r=n+1;if(t.sCount[r]<t.blkIndent||t.sCount[r]-t.blkIndent>=4)return!1;let o=t.bMarks[r]+t.tShift[r];if(o>=t.eMarks[r])return!1;let a=t.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=t.eMarks[r])return!1;let s=t.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!gt(s)||a===45&&gt(s))return!1;for(;o<t.eMarks[r];){let me=t.src.charCodeAt(o);if(me!==124&&me!==45&&me!==58&&!gt(me))return!1;o++;}let l=VD(t,n+1),c=l.split("|"),h=[];for(let me=0;me<c.length;me++){let xe=c[me].trim();if(!xe){if(me===0||me===c.length-1)continue;return!1;}if(!/^:?-+:?$/.test(xe))return!1;xe.charCodeAt(xe.length-1)===58?h.push(xe.charCodeAt(0)===58?"center":"right"):xe.charCodeAt(0)===58?h.push("left"):h.push("");}if(l=VD(t,n).trim(),l.indexOf("|")===-1||t.sCount[n]-t.blkIndent>=4)return!1;c=BN(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();let g=c.length;if(g===0||g!==h.length)return!1;if(i)return!0;let b=t.parentType;t.parentType="table";let _=t.md.block.ruler.getRules("blockquote"),x=t.push("table_open","table",1),T=[n,0];x.map=T;let L=t.push("thead_open","thead",1);L.map=[n,n+1];let q=t.push("tr_open","tr",1);q.map=[n,n+1];for(let me=0;me<c.length;me++){let xe=t.push("th_open","th",1);h[me]&&(xe.attrs=[["style","text-align:"+h[me]]]);let Re=t.push("inline","",0);Re.content=c[me].trim(),Re.children=[],t.push("th_close","th",-1);}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let ie,Y=0;for(r=n+2;r<e&&!(t.sCount[r]<t.blkIndent);r++){let me=!1;for(let Re=0,ot=_.length;Re<ot;Re++)if(_[Re](t,r,e,!0)){me=!0;break;}if(me||(l=VD(t,r).trim(),!l)||t.sCount[r]-t.blkIndent>=4||(c=BN(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),Y+=g-c.length,Y>nee))break;if(r===n+2){let Re=t.push("tbody_open","tbody",1);Re.map=ie=[n+2,0];}let xe=t.push("tr_open","tr",1);xe.map=[r,r+1];for(let Re=0;Re<g;Re++){let ot=t.push("td_open","td",1);h[Re]&&(ot.attrs=[["style","text-align:"+h[Re]]]);let Mt=t.push("inline","",0);Mt.content=c[Re]?c[Re].trim():"",Mt.children=[],t.push("td_close","td",-1);}t.push("tr_close","tr",-1);}return ie&&(t.push("tbody_close","tbody",-1),ie[1]=r),t.push("table_close","table",-1),T[1]=r,t.parentType=b,t.line=r,!0;}function BD(t,n,e){if(t.sCount[n]-t.blkIndent<4)return!1;let i=n+1,r=i;for(;i<e;){if(t.isEmpty(i)){i++;continue;}if(t.sCount[i]-t.blkIndent>=4){i++,r=i;continue;}break;}t.line=r;let o=t.push("code_block","code",0);return o.content=t.getLines(n,r,4+t.blkIndent,!1)+`
`,o.map=[n,t.line],!0;}function jD(t,n,e,i){let r=t.bMarks[n]+t.tShift[n],o=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||r+3>o)return!1;let a=t.src.charCodeAt(r);if(a!==126&&a!==96)return!1;let s=r;r=t.skipChars(r,a);let l=r-s;if(l<3)return!1;let c=t.src.slice(s,r),h=t.src.slice(r,o);if(a===96&&h.indexOf(String.fromCharCode(a))>=0)return!1;if(i)return!0;let g=n,b=!1;for(;g++,!(g>=e||(r=s=t.bMarks[g]+t.tShift[g],o=t.eMarks[g],r<o&&t.sCount[g]<t.blkIndent));)if(t.src.charCodeAt(r)===a&&!(t.sCount[g]-t.blkIndent>=4)&&(r=t.skipChars(r,a),!(r-s<l)&&(r=t.skipSpaces(r),!(r<o)))){b=!0;break;}l=t.sCount[n],t.line=g+(b?1:0);let _=t.push("fence","code",0);return _.info=h,_.content=t.getLines(n+1,g,l,!0),_.markup=c,_.map=[n,t.line],!0;}function HD(t,n,e,i){let r=t.bMarks[n]+t.tShift[n],o=t.eMarks[n],a=t.lineMax;if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(r)!==62)return!1;if(i)return!0;let s=[],l=[],c=[],h=[],g=t.md.block.ruler.getRules("blockquote"),b=t.parentType;t.parentType="blockquote";let _=!1,x;for(x=n;x<e;x++){let Y=t.sCount[x]<t.blkIndent;if(r=t.bMarks[x]+t.tShift[x],o=t.eMarks[x],r>=o)break;if(t.src.charCodeAt(r++)===62&&!Y){let xe=t.sCount[x]+1,Re,ot;t.src.charCodeAt(r)===32?(r++,xe++,ot=!1,Re=!0):t.src.charCodeAt(r)===9?(Re=!0,(t.bsCount[x]+xe)%4===3?(r++,xe++,ot=!1):ot=!0):Re=!1;let Mt=xe;for(s.push(t.bMarks[x]),t.bMarks[x]=r;r<o;){let ui=t.src.charCodeAt(r);if(gt(ui))ui===9?Mt+=4-(Mt+t.bsCount[x]+(ot?1:0))%4:Mt++;else break;r++;}_=r>=o,l.push(t.bsCount[x]),t.bsCount[x]=t.sCount[x]+1+(Re?1:0),c.push(t.sCount[x]),t.sCount[x]=Mt-xe,h.push(t.tShift[x]),t.tShift[x]=r-t.bMarks[x];continue;}if(_)break;let me=!1;for(let xe=0,Re=g.length;xe<Re;xe++)if(g[xe](t,x,e,!0)){me=!0;break;}if(me){t.lineMax=x,t.blkIndent!==0&&(s.push(t.bMarks[x]),l.push(t.bsCount[x]),h.push(t.tShift[x]),c.push(t.sCount[x]),t.sCount[x]-=t.blkIndent);break;}s.push(t.bMarks[x]),l.push(t.bsCount[x]),h.push(t.tShift[x]),c.push(t.sCount[x]),t.sCount[x]=-1;}let T=t.blkIndent;t.blkIndent=0;let L=t.push("blockquote_open","blockquote",1);L.markup=">";let q=[n,0];L.map=q,t.md.block.tokenize(t,n,x);let ie=t.push("blockquote_close","blockquote",-1);ie.markup=">",t.lineMax=a,t.parentType=b,q[1]=t.line;for(let Y=0;Y<h.length;Y++)t.bMarks[Y+n]=s[Y],t.tShift[Y+n]=h[Y],t.sCount[Y+n]=c[Y],t.bsCount[Y+n]=l[Y];return t.blkIndent=T,!0;}function $D(t,n,e,i){let r=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4)return!1;let o=t.bMarks[n]+t.tShift[n],a=t.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<r;){let c=t.src.charCodeAt(o++);if(c!==a&&!gt(c))return!1;c===a&&s++;}if(s<3)return!1;if(i)return!0;t.line=n+1;let l=t.push("hr","hr",0);return l.map=[n,t.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0;}function jN(t,n){let e=t.eMarks[n],i=t.bMarks[n]+t.tShift[n],r=t.src.charCodeAt(i++);if(r!==42&&r!==45&&r!==43)return-1;if(i<e){let o=t.src.charCodeAt(i);if(!gt(o))return-1;}return i;}function HN(t,n){let e=t.bMarks[n]+t.tShift[n],i=t.eMarks[n],r=e;if(r+1>=i)return-1;let o=t.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=i)return-1;if(o=t.src.charCodeAt(r++),o>=48&&o<=57){if(r-e>=10)return-1;continue;}if(o===41||o===46)break;return-1;}return r<i&&(o=t.src.charCodeAt(r),!gt(o))?-1:r;}function ree(t,n){let e=t.level+2;for(let i=n+2,r=t.tokens.length-2;i<r;i++)t.tokens[i].level===e&&t.tokens[i].type==="paragraph_open"&&(t.tokens[i+2].hidden=!0,t.tokens[i].hidden=!0,i+=2);}function UD(t,n,e,i){let r,o,a,s,l=n,c=!0;if(t.sCount[l]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]<t.blkIndent)return!1;let h=!1;i&&t.parentType==="paragraph"&&t.sCount[l]>=t.blkIndent&&(h=!0);let g,b,_;if((_=HN(t,l))>=0){if(g=!0,a=t.bMarks[l]+t.tShift[l],b=Number(t.src.slice(a,_-1)),h&&b!==1)return!1;}else if((_=jN(t,l))>=0)g=!1;else return!1;if(h&&t.skipSpaces(_)>=t.eMarks[l])return!1;if(i)return!0;let x=t.src.charCodeAt(_-1),T=t.tokens.length;g?(s=t.push("ordered_list_open","ol",1),b!==1&&(s.attrs=[["start",b]])):s=t.push("bullet_list_open","ul",1);let L=[l,0];s.map=L,s.markup=String.fromCharCode(x);let q=!1,ie=t.md.block.ruler.getRules("list"),Y=t.parentType;for(t.parentType="list";l<e;){o=_,r=t.eMarks[l];let me=t.sCount[l]+_-(t.bMarks[l]+t.tShift[l]),xe=me;for(;o<r;){let Gi=t.src.charCodeAt(o);if(Gi===9)xe+=4-(xe+t.bsCount[l])%4;else if(Gi===32)xe++;else break;o++;}let Re=o,ot;Re>=r?ot=1:ot=xe-me,ot>4&&(ot=1);let Mt=me+ot;s=t.push("list_item_open","li",1),s.markup=String.fromCharCode(x);let ui=[l,0];s.map=ui,g&&(s.info=t.src.slice(a,_-1));let Oi=t.tight,Zr=t.tShift[l],Cn=t.sCount[l],dn=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=Mt,t.tight=!0,t.tShift[l]=Re-t.bMarks[l],t.sCount[l]=xe,Re>=r&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,e):t.md.block.tokenize(t,l,e,!0),(!t.tight||q)&&(c=!1),q=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=dn,t.tShift[l]=Zr,t.sCount[l]=Cn,t.tight=Oi,s=t.push("list_item_close","li",-1),s.markup=String.fromCharCode(x),l=t.line,ui[1]=l,l>=e||t.sCount[l]<t.blkIndent||t.sCount[l]-t.blkIndent>=4)break;let Yn=!1;for(let Gi=0,ge=ie.length;Gi<ge;Gi++)if(ie[Gi](t,l,e,!0)){Yn=!0;break;}if(Yn)break;if(g){if(_=HN(t,l),_<0)break;a=t.bMarks[l]+t.tShift[l];}else if(_=jN(t,l),_<0)break;if(x!==t.src.charCodeAt(_-1))break;}return g?s=t.push("ordered_list_close","ol",-1):s=t.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(x),L[1]=l,t.line=l,t.parentType=Y,c&&ree(t,T),!0;}function qD(t,n,e,i){let r=t.bMarks[n]+t.tShift[n],o=t.eMarks[n],a=n+1;if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(r)!==91)return!1;function s(ie){let Y=t.lineMax;if(ie>=Y||t.isEmpty(ie))return null;let me=!1;if(t.sCount[ie]-t.blkIndent>3&&(me=!0),t.sCount[ie]<0&&(me=!0),!me){let ot=t.md.block.ruler.getRules("reference"),Mt=t.parentType;t.parentType="reference";let ui=!1;for(let Oi=0,Zr=ot.length;Oi<Zr;Oi++)if(ot[Oi](t,ie,Y,!0)){ui=!0;break;}if(t.parentType=Mt,ui)return null;}let xe=t.bMarks[ie]+t.tShift[ie],Re=t.eMarks[ie];return t.src.slice(xe,Re+1);}let l=t.src.slice(r,o+1);o=l.length;let c=-1;for(r=1;r<o;r++){let ie=l.charCodeAt(r);if(ie===91)return!1;if(ie===93){c=r;break;}else if(ie===10){let Y=s(a);Y!==null&&(l+=Y,o=l.length,a++);}else if(ie===92&&(r++,r<o&&l.charCodeAt(r)===10)){let Y=s(a);Y!==null&&(l+=Y,o=l.length,a++);}}if(c<0||l.charCodeAt(c+1)!==58)return!1;for(r=c+2;r<o;r++){let ie=l.charCodeAt(r);if(ie===10){let Y=s(a);Y!==null&&(l+=Y,o=l.length,a++);}else if(!gt(ie))break;}let h=t.md.helpers.parseLinkDestination(l,r,o);if(!h.ok)return!1;let g=t.md.normalizeLink(h.str);if(!t.md.validateLink(g))return!1;r=h.pos;let b=r,_=a,x=r;for(;r<o;r++){let ie=l.charCodeAt(r);if(ie===10){let Y=s(a);Y!==null&&(l+=Y,o=l.length,a++);}else if(!gt(ie))break;}let T=t.md.helpers.parseLinkTitle(l,r,o);for(;T.can_continue;){let ie=s(a);if(ie===null)break;l+=ie,r=o,o=l.length,a++,T=t.md.helpers.parseLinkTitle(l,r,o,T);}let L;for(r<o&&x!==r&&T.ok?(L=T.str,r=T.pos):(L="",r=b,a=_);r<o;){let ie=l.charCodeAt(r);if(!gt(ie))break;r++;}if(r<o&&l.charCodeAt(r)!==10&&L)for(L="",r=b,a=_;r<o;){let ie=l.charCodeAt(r);if(!gt(ie))break;r++;}if(r<o&&l.charCodeAt(r)!==10)return!1;let q=dc(l.slice(1,c));return q?(i||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[q]>"u"&&(t.env.references[q]={title:L,href:g}),t.line=a),!0):!1;}var $N=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var oee="[a-zA-Z_:][a-zA-Z0-9:._-]*",aee="[^\"'=<>`\\x00-\\x20]+",see="'[^']*'",lee='"[^"]*"',cee="(?:"+aee+"|"+see+"|"+lee+")",dee="(?:\\s+"+oee+"(?:\\s*=\\s*"+cee+")?)",UN="<[A-Za-z][A-Za-z0-9\\-]*"+dee+"*\\s*\\/?>",qN="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",uee="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",mee="<[?][\\s\\S]*?[?]>",pee="<![A-Za-z][^>]*>",hee="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",WN=new RegExp("^(?:"+UN+"|"+qN+"|"+uee+"|"+mee+"|"+pee+"|"+hee+")"),GN=new RegExp("^(?:"+UN+"|"+qN+")");var fu=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+$N.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(GN.source+"\\s*$"),/^$/,!1]];function WD(t,n,e,i){let r=t.bMarks[n]+t.tShift[n],o=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(r)!==60)return!1;let a=t.src.slice(r,o),s=0;for(;s<fu.length&&!fu[s][0].test(a);s++);if(s===fu.length)return!1;if(i)return fu[s][2];let l=n+1;if(!fu[s][1].test(a)){for(;l<e&&!(t.sCount[l]<t.blkIndent);l++)if(r=t.bMarks[l]+t.tShift[l],o=t.eMarks[l],a=t.src.slice(r,o),fu[s][1].test(a)){a.length!==0&&l++;break;}}t.line=l;let c=t.push("html_block","",0);return c.map=[n,l],c.content=t.getLines(n,l,t.blkIndent,!0),!0;}function GD(t,n,e,i){let r=t.bMarks[n]+t.tShift[n],o=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4)return!1;let a=t.src.charCodeAt(r);if(a!==35||r>=o)return!1;let s=1;for(a=t.src.charCodeAt(++r);a===35&&r<o&&s<=6;)s++,a=t.src.charCodeAt(++r);if(s>6||r<o&&!gt(a))return!1;if(i)return!0;o=t.skipSpacesBack(o,r);let l=t.skipCharsBack(o,35,r);l>r&&gt(t.src.charCodeAt(l-1))&&(o=l),t.line=n+1;let c=t.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[n,t.line];let h=t.push("inline","",0);h.content=t.src.slice(r,o).trim(),h.map=[n,t.line],h.children=[];let g=t.push("heading_close","h"+String(s),-1);return g.markup="########".slice(0,s),!0;}function YD(t,n,e){let i=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;let r=t.parentType;t.parentType="paragraph";let o=0,a,s=n+1;for(;s<e&&!t.isEmpty(s);s++){if(t.sCount[s]-t.blkIndent>3)continue;if(t.sCount[s]>=t.blkIndent){let _=t.bMarks[s]+t.tShift[s],x=t.eMarks[s];if(_<x&&(a=t.src.charCodeAt(_),(a===45||a===61)&&(_=t.skipChars(_,a),_=t.skipSpaces(_),_>=x))){o=a===61?1:2;break;}}if(t.sCount[s]<0)continue;let b=!1;for(let _=0,x=i.length;_<x;_++)if(i[_](t,s,e,!0)){b=!0;break;}if(b)break;}if(!o)return!1;let l=t.getLines(n,s,t.blkIndent,!1).trim();t.line=s+1;let c=t.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(a),c.map=[n,t.line];let h=t.push("inline","",0);h.content=l,h.map=[n,t.line-1],h.children=[];let g=t.push("heading_close","h"+String(o),-1);return g.markup=String.fromCharCode(a),t.parentType=r,!0;}function QD(t,n,e){let i=t.md.block.ruler.getRules("paragraph"),r=t.parentType,o=n+1;for(t.parentType="paragraph";o<e&&!t.isEmpty(o);o++){if(t.sCount[o]-t.blkIndent>3||t.sCount[o]<0)continue;let c=!1;for(let h=0,g=i.length;h<g;h++)if(i[h](t,o,e,!0)){c=!0;break;}if(c)break;}let a=t.getLines(n,o,t.blkIndent,!1).trim();t.line=o;let s=t.push("paragraph_open","p",1);s.map=[n,t.line];let l=t.push("inline","",0);return l.content=a,l.map=[n,t.line],l.children=[],t.push("paragraph_close","p",-1),t.parentType=r,!0;}var bb=[["table",zD,["paragraph","reference"]],["code",BD],["fence",jD,["paragraph","reference","blockquote","list"]],["blockquote",HD,["paragraph","reference","blockquote","list"]],["hr",$D,["paragraph","reference","blockquote","list"]],["list",UD,["paragraph","reference","blockquote"]],["reference",qD],["html_block",WD,["paragraph","reference","blockquote"]],["heading",GD,["paragraph","reference","blockquote"]],["lheading",YD],["paragraph",QD]];function vb(){this.ruler=new uc();for(let t=0;t<bb.length;t++)this.ruler.push(bb[t][0],bb[t][1],{alt:(bb[t][2]||[]).slice()});}vb.prototype.tokenize=function(t,n,e){let i=this.ruler.getRules(""),r=i.length,o=t.md.options.maxNesting,a=n,s=!1;for(;a<e&&(t.line=a=t.skipEmptyLines(a),!(a>=e||t.sCount[a]<t.blkIndent));){if(t.level>=o){t.line=e;break;}let l=t.line,c=!1;for(let h=0;h<r;h++)if(c=i[h](t,a,e,!1),c){if(l>=t.line)throw new Error("block rule didn't increment state.line");break;}if(!c)throw new Error("none of the block rules matched");t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),a=t.line,a<e&&t.isEmpty(a)&&(s=!0,a++,t.line=a);}};vb.prototype.parse=function(t,n,e,i){if(!t)return;let r=new this.State(t,n,e,i);this.tokenize(r,r.line,r.lineMax);};vb.prototype.State=zN;var YN=vb;function Xp(t,n,e,i){this.src=t,this.env=e,this.md=n,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0;}Xp.prototype.pushPending=function(){let t=new ps("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t;};Xp.prototype.push=function(t,n,e){this.pending&&this.pushPending();let i=new ps(t,n,e),r=null;return e<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,e>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(r),i;};Xp.prototype.scanDelims=function(t,n){let e=this.posMax,i=this.src.charCodeAt(t),r=t>0?this.src.charCodeAt(t-1):32,o=t;for(;o<e&&this.src.charCodeAt(o)===i;)o++;let a=o-t,s=o<e?this.src.charCodeAt(o):32,l=cc(r)||lc(String.fromCharCode(r)),c=cc(s)||lc(String.fromCharCode(s)),h=sc(r),g=sc(s),b=!g&&(!c||h||l),_=!h&&(!l||g||c);return{can_open:b&&(n||!_||l),can_close:_&&(n||!b||c),length:a};};Xp.prototype.Token=ps;var QN=Xp;function fee(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1;}}function KD(t,n){let e=t.pos;for(;e<t.posMax&&!fee(t.src.charCodeAt(e));)e++;return e===t.pos?!1:(n||(t.pending+=t.src.slice(t.pos,e)),t.pos=e,!0);}var gee=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function ZD(t,n){if(!t.md.options.linkify||t.linkLevel>0)return!1;let e=t.pos,i=t.posMax;if(e+3>i||t.src.charCodeAt(e)!==58||t.src.charCodeAt(e+1)!==47||t.src.charCodeAt(e+2)!==47)return!1;let r=t.pending.match(gee);if(!r)return!1;let o=r[1],a=t.md.linkify.matchAtStart(t.src.slice(e-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");let l=t.md.normalizeLink(s);if(!t.md.validateLink(l))return!1;if(!n){t.pending=t.pending.slice(0,-o.length);let c=t.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";let h=t.push("text","",0);h.content=t.md.normalizeLinkText(s);let g=t.push("link_close","a",-1);g.markup="linkify",g.info="auto";}return t.pos+=s.length-o.length,!0;}function XD(t,n){let e=t.pos;if(t.src.charCodeAt(e)!==10)return!1;let i=t.pending.length-1,r=t.posMax;if(!n)if(i>=0&&t.pending.charCodeAt(i)===32){if(i>=1&&t.pending.charCodeAt(i-1)===32){let o=i-1;for(;o>=1&&t.pending.charCodeAt(o-1)===32;)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0);}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);}else t.push("softbreak","br",0);for(e++;e<r&&gt(t.src.charCodeAt(e));)e++;return t.pos=e,!0;}var JD=[];for(let t=0;t<256;t++)JD.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){JD[t.charCodeAt(0)]=1;});function eE(t,n){let e=t.pos,i=t.posMax;if(t.src.charCodeAt(e)!==92||(e++,e>=i))return!1;let r=t.src.charCodeAt(e);if(r===10){for(n||t.push("hardbreak","br",0),e++;e<i&&(r=t.src.charCodeAt(e),!!gt(r));)e++;return t.pos=e,!0;}let o=t.src[e];if(r>=55296&&r<=56319&&e+1<i){let s=t.src.charCodeAt(e+1);s>=56320&&s<=57343&&(o+=t.src[e+1],e++);}let a="\\"+o;if(!n){let s=t.push("text_special","",0);r<256&&JD[r]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape";}return t.pos=e+1,!0;}function tE(t,n){let e=t.pos;if(t.src.charCodeAt(e)!==96)return!1;let r=e;e++;let o=t.posMax;for(;e<o&&t.src.charCodeAt(e)===96;)e++;let a=t.src.slice(r,e),s=a.length;if(t.backticksScanned&&(t.backticks[s]||0)<=r)return n||(t.pending+=a),t.pos+=s,!0;let l=e,c;for(;(c=t.src.indexOf("`",l))!==-1;){for(l=c+1;l<o&&t.src.charCodeAt(l)===96;)l++;let h=l-c;if(h===s){if(!n){let g=t.push("code_inline","code",0);g.markup=a,g.content=t.src.slice(e,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1");}return t.pos=l,!0;}t.backticks[h]=c;}return t.backticksScanned=!0,n||(t.pending+=a),t.pos+=s,!0;}function _ee(t,n){let e=t.pos,i=t.src.charCodeAt(e);if(n||i!==126)return!1;let r=t.scanDelims(t.pos,!0),o=r.length,a=String.fromCharCode(i);if(o<2)return!1;let s;o%2&&(s=t.push("text","",0),s.content=a,o--);for(let l=0;l<o;l+=2)s=t.push("text","",0),s.content=a+a,t.delimiters.push({marker:i,length:0,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0;}function KN(t,n){let e,i=[],r=n.length;for(let o=0;o<r;o++){let a=n[o];if(a.marker!==126||a.end===-1)continue;let s=n[a.end];e=t.tokens[a.token],e.type="s_open",e.tag="s",e.nesting=1,e.markup="~~",e.content="",e=t.tokens[s.token],e.type="s_close",e.tag="s",e.nesting=-1,e.markup="~~",e.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&i.push(s.token-1);}for(;i.length;){let o=i.pop(),a=o+1;for(;a<t.tokens.length&&t.tokens[a].type==="s_close";)a++;a--,o!==a&&(e=t.tokens[a],t.tokens[a]=t.tokens[o],t.tokens[o]=e);}}function bee(t){let n=t.tokens_meta,e=t.tokens_meta.length;KN(t,t.delimiters);for(let i=0;i<e;i++)n[i]&&n[i].delimiters&&KN(t,n[i].delimiters);}var iE={tokenize:_ee,postProcess:bee};function vee(t,n){let e=t.pos,i=t.src.charCodeAt(e);if(n||i!==95&&i!==42)return!1;let r=t.scanDelims(t.pos,i===42);for(let o=0;o<r.length;o++){let a=t.push("text","",0);a.content=String.fromCharCode(i),t.delimiters.push({marker:i,length:r.length,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});}return t.pos+=r.length,!0;}function ZN(t,n){let e=n.length;for(let i=e-1;i>=0;i--){let r=n[i];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;let o=n[r.end],a=i>0&&n[i-1].end===r.end+1&&n[i-1].marker===r.marker&&n[i-1].token===r.token-1&&n[r.end+1].token===o.token+1,s=String.fromCharCode(r.marker),l=t.tokens[r.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";let c=t.tokens[o.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?s+s:s,c.content="",a&&(t.tokens[n[i-1].token].content="",t.tokens[n[r.end+1].token].content="",i--);}}function yee(t){let n=t.tokens_meta,e=t.tokens_meta.length;ZN(t,t.delimiters);for(let i=0;i<e;i++)n[i]&&n[i].delimiters&&ZN(t,n[i].delimiters);}var nE={tokenize:vee,postProcess:yee};function rE(t,n){let e,i,r,o,a="",s="",l=t.pos,c=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;let h=t.pos,g=t.posMax,b=t.pos+1,_=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(_<0)return!1;let x=_+1;if(x<g&&t.src.charCodeAt(x)===40){for(c=!1,x++;x<g&&(e=t.src.charCodeAt(x),!(!gt(e)&&e!==10));x++);if(x>=g)return!1;if(l=x,r=t.md.helpers.parseLinkDestination(t.src,x,t.posMax),r.ok){for(a=t.md.normalizeLink(r.str),t.md.validateLink(a)?x=r.pos:a="",l=x;x<g&&(e=t.src.charCodeAt(x),!(!gt(e)&&e!==10));x++);if(r=t.md.helpers.parseLinkTitle(t.src,x,t.posMax),x<g&&l!==x&&r.ok)for(s=r.str,x=r.pos;x<g&&(e=t.src.charCodeAt(x),!(!gt(e)&&e!==10));x++);}(x>=g||t.src.charCodeAt(x)!==41)&&(c=!0),x++;}if(c){if(typeof t.env.references>"u")return!1;if(x<g&&t.src.charCodeAt(x)===91?(l=x+1,x=t.md.helpers.parseLinkLabel(t,x),x>=0?i=t.src.slice(l,x++):x=_+1):x=_+1,i||(i=t.src.slice(b,_)),o=t.env.references[dc(i)],!o)return t.pos=h,!1;a=o.href,s=o.title;}if(!n){t.pos=b,t.posMax=_;let T=t.push("link_open","a",1),L=[["href",a]];T.attrs=L,s&&L.push(["title",s]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1);}return t.pos=x,t.posMax=g,!0;}function oE(t,n){let e,i,r,o,a,s,l,c,h="",g=t.pos,b=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;let _=t.pos+2,x=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(x<0)return!1;if(o=x+1,o<b&&t.src.charCodeAt(o)===40){for(o++;o<b&&(e=t.src.charCodeAt(o),!(!gt(e)&&e!==10));o++);if(o>=b)return!1;for(c=o,s=t.md.helpers.parseLinkDestination(t.src,o,t.posMax),s.ok&&(h=t.md.normalizeLink(s.str),t.md.validateLink(h)?o=s.pos:h=""),c=o;o<b&&(e=t.src.charCodeAt(o),!(!gt(e)&&e!==10));o++);if(s=t.md.helpers.parseLinkTitle(t.src,o,t.posMax),o<b&&c!==o&&s.ok)for(l=s.str,o=s.pos;o<b&&(e=t.src.charCodeAt(o),!(!gt(e)&&e!==10));o++);else l="";if(o>=b||t.src.charCodeAt(o)!==41)return t.pos=g,!1;o++;}else{if(typeof t.env.references>"u")return!1;if(o<b&&t.src.charCodeAt(o)===91?(c=o+1,o=t.md.helpers.parseLinkLabel(t,o),o>=0?r=t.src.slice(c,o++):o=x+1):o=x+1,r||(r=t.src.slice(_,x)),a=t.env.references[dc(r)],!a)return t.pos=g,!1;h=a.href,l=a.title;}if(!n){i=t.src.slice(_,x);let T=[];t.md.inline.parse(i,t.md,t.env,T);let L=t.push("image","img",0),q=[["src",h],["alt",""]];L.attrs=q,L.children=T,L.content=i,l&&q.push(["title",l]);}return t.pos=o,t.posMax=b,!0;}var xee=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Cee=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function aE(t,n){let e=t.pos;if(t.src.charCodeAt(e)!==60)return!1;let i=t.pos,r=t.posMax;for(;;){if(++e>=r)return!1;let a=t.src.charCodeAt(e);if(a===60)return!1;if(a===62)break;}let o=t.src.slice(i+1,e);if(Cee.test(o)){let a=t.md.normalizeLink(o);if(!t.md.validateLink(a))return!1;if(!n){let s=t.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";let l=t.push("text","",0);l.content=t.md.normalizeLinkText(o);let c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto";}return t.pos+=o.length+2,!0;}if(xee.test(o)){let a=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(a))return!1;if(!n){let s=t.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";let l=t.push("text","",0);l.content=t.md.normalizeLinkText(o);let c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto";}return t.pos+=o.length+2,!0;}return!1;}function wee(t){return /^<a[>\s]/i.test(t);}function Dee(t){return /^<\/a\s*>/i.test(t);}function Eee(t){let n=t|32;return n>=97&&n<=122;}function sE(t,n){if(!t.md.options.html)return!1;let e=t.posMax,i=t.pos;if(t.src.charCodeAt(i)!==60||i+2>=e)return!1;let r=t.src.charCodeAt(i+1);if(r!==33&&r!==63&&r!==47&&!Eee(r))return!1;let o=t.src.slice(i).match(WN);if(!o)return!1;if(!n){let a=t.push("html_inline","",0);a.content=o[0],wee(a.content)&&t.linkLevel++,Dee(a.content)&&t.linkLevel--;}return t.pos+=o[0].length,!0;}var kee=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Mee=/^&([a-z][a-z0-9]{1,31});/i;function lE(t,n){let e=t.pos,i=t.posMax;if(t.src.charCodeAt(e)!==38||e+1>=i)return!1;if(t.src.charCodeAt(e+1)===35){let o=t.src.slice(e).match(kee);if(o){if(!n){let a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=t.push("text_special","",0);s.content=gb(a)?Zp(a):Zp(65533),s.markup=o[0],s.info="entity";}return t.pos+=o[0].length,!0;}}else{let o=t.src.slice(e).match(Mee);if(o){let a=Zs(o[0]);if(a!==o[0]){if(!n){let s=t.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity";}return t.pos+=o[0].length,!0;}}}return!1;}function XN(t){let n={},e=t.length;if(!e)return;let i=0,r=-2,o=[];for(let a=0;a<e;a++){let s=t[a];if(o.push(0),(t[i].marker!==s.marker||r!==s.token-1)&&(i=a),r=s.token,s.length=s.length||0,!s.close)continue;n.hasOwnProperty(s.marker)||(n[s.marker]=[-1,-1,-1,-1,-1,-1]);let l=n[s.marker][(s.open?3:0)+s.length%3],c=i-o[i]-1,h=c;for(;c>l;c-=o[c]+1){let g=t[c];if(g.marker===s.marker&&g.open&&g.end<0){let b=!1;if((g.close||s.open)&&(g.length+s.length)%3===0&&(g.length%3!==0||s.length%3!==0)&&(b=!0),!b){let _=c>0&&!t[c-1].open?o[c-1]+1:0;o[a]=a-c+_,o[c]=_,s.open=!1,g.end=a,g.close=!1,h=-1,r=-2;break;}}}h!==-1&&(n[s.marker][(s.open?3:0)+(s.length||0)%3]=h);}}function cE(t){let n=t.tokens_meta,e=t.tokens_meta.length;XN(t.delimiters);for(let i=0;i<e;i++)n[i]&&n[i].delimiters&&XN(n[i].delimiters);}function dE(t){let n,e,i=0,r=t.tokens,o=t.tokens.length;for(n=e=0;n<o;n++)r[n].nesting<0&&i--,r[n].level=i,r[n].nesting>0&&i++,r[n].type==="text"&&n+1<o&&r[n+1].type==="text"?r[n+1].content=r[n].content+r[n+1].content:(n!==e&&(r[e]=r[n]),e++);n!==e&&(r.length=e);}var uE=[["text",KD],["linkify",ZD],["newline",XD],["escape",eE],["backticks",tE],["strikethrough",iE.tokenize],["emphasis",nE.tokenize],["link",rE],["image",oE],["autolink",aE],["html_inline",sE],["entity",lE]],mE=[["balance_pairs",cE],["strikethrough",iE.postProcess],["emphasis",nE.postProcess],["fragments_join",dE]];function Jp(){this.ruler=new uc();for(let t=0;t<uE.length;t++)this.ruler.push(uE[t][0],uE[t][1]);this.ruler2=new uc();for(let t=0;t<mE.length;t++)this.ruler2.push(mE[t][0],mE[t][1]);}Jp.prototype.skipToken=function(t){let n=t.pos,e=this.ruler.getRules(""),i=e.length,r=t.md.options.maxNesting,o=t.cache;if(typeof o[n]<"u"){t.pos=o[n];return;}let a=!1;if(t.level<r){for(let s=0;s<i;s++)if(t.level++,a=e[s](t,!0),t.level--,a){if(n>=t.pos)throw new Error("inline rule didn't increment state.pos");break;}}else t.pos=t.posMax;a||t.pos++,o[n]=t.pos;};Jp.prototype.tokenize=function(t){let n=this.ruler.getRules(""),e=n.length,i=t.posMax,r=t.md.options.maxNesting;for(;t.pos<i;){let o=t.pos,a=!1;if(t.level<r){for(let s=0;s<e;s++)if(a=n[s](t,!1),a){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break;}}if(a){if(t.pos>=i)break;continue;}t.pending+=t.src[t.pos++];}t.pending&&t.pushPending();};Jp.prototype.parse=function(t,n,e,i){let r=new this.State(t,n,e,i);this.tokenize(r);let o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](r);};Jp.prototype.State=QN;var JN=Jp;function eL(t){let n={};t=t||{},n.src_Any=cb.source,n.src_Cc=db.source,n.src_Z=mb.source,n.src_P=uu.source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");let e="[><\uFF5C]";return n.src_pseudo_letter="(?:(?!"+e+"|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_ho��st_terminator="(?=$|"+e+"|"+n.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|"+e+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+n.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+n.src_ZCc+"|$)|;(?!"+n.src_ZCc+"|$)|\\!+(?!"+n.src_ZCc+"|[!]|$)|\\?(?!"+n.src_ZCc+"|[?]|$))+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|"+e+'|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+n.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+n.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n;}function pE(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(i){t[i]=e[i];});}),t;}function xb(t){return Object.prototype.toString.call(t);}function See(t){return xb(t)==="[object String]";}function Iee(t){return xb(t)==="[object Object]";}function Tee(t){return xb(t)==="[object RegExp]";}function tL(t){return xb(t)==="[object Function]";}function Aee(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&");}var nL={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ree(t){return Object.keys(t||{}).reduce(function(n,e){return n||nL.hasOwnProperty(e);},!1);}var Oee={"http:":{validate:function(t,n,e){let i=t.slice(n);return e.re.http||(e.re.http=new RegExp("^\\/\\/"+e.re.src_auth+e.re.src_host_port_strict+e.re.src_path,"i")),e.re.http.test(i)?i.match(e.re.http)[0].length:0;}},"https:":"http:","ftp:":"http:","//":{validate:function(t,n,e){let i=t.slice(n);return e.re.no_http||(e.re.no_http=new RegExp("^"+e.re.src_auth+"(?:localhost|(?:(?:"+e.re.src_domain+")\\.)+"+e.re.src_domain_root+")"+e.re.src_port+e.re.src_host_terminator+e.re.src_path,"i")),e.re.no_http.test(i)?n>=3&&t[n-3]===":"||n>=3&&t[n-3]==="/"?0:i.match(e.re.no_http)[0].length:0;}},"mailto:":{validate:function(t,n,e){let i=t.slice(n);return e.re.mailto||(e.re.mailto=new RegExp("^"+e.re.src_email_name+"@"+e.re.src_host_strict,"i")),e.re.mailto.test(i)?i.match(e.re.mailto)[0].length:0;}}},Pee="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Fee="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Nee(t){t.__index__=-1,t.__text_cache__="";}function Lee(t){return function(n,e){let i=n.slice(e);return t.test(i)?i.match(t)[0].length:0;};}function iL(){return function(t,n){n.normalize(t);};}function yb(t){let n=t.re=eL(t.__opts__),e=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||e.push(Pee),e.push(n.src_xn),n.src_tlds=e.join("|");function i(s){return s.replace("%TLDS%",n.src_tlds);}n.email_fuzzy=RegExp(i(n.tpl_email_fuzzy),"i"),n.link_fuzzy=RegExp(i(n.tpl_link_fuzzy),"i"),n.link_no_ip_fuzzy=RegExp(i(n.tpl_link_no_ip_fuzzy),"i"),n.host_fuzzy_test=RegExp(i(n.tpl_host_fuzzy_test),"i");let r=[];t.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l);}Object.keys(t.__schemas__).forEach(function(s){let l=t.__schemas__[s];if(l===null)return;let c={validate:null,link:null};if(t.__compiled__[s]=c,Iee(l)){Tee(l.validate)?c.validate=Lee(l.validate):tL(l.validate)?c.validate=l.validate:o(s,l),tL(l.normalize)?c.normalize=l.normalize:l.normalize?o(s,l):c.normalize=iL();return;}if(See(l)){r.push(s);return;}o(s,l);}),r.forEach(function(s){t.__compiled__[t.__schemas__[s]]&&(t.__compiled__[s].validate=t.__compiled__[t.__schemas__[s]].validate,t.__compiled__[s].normalize=t.__compiled__[t.__schemas__[s]].normalize);}),t.__compiled__[""]={validate:null,normalize:iL()};let a=Object.keys(t.__compiled__).filter(function(s){return s.length>0&&t.__compiled__[s];}).map(Aee).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+n.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+n.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Nee(t);}function Vee(t,n){let e=t.__index__,i=t.__last_index__,r=t.__text_cache__.slice(e,i);this.schema=t.__schema__.toLowerCase(),this.index=e+n,this.lastIndex=i+n,this.raw=r,this.text=r,this.url=r;}function hE(t,n){let e=new Vee(t,n);return t.__compiled__[e.schema].normalize(e,t),e;}function Ar(t,n){if(!(this instanceof Ar))return new Ar(t,n);n||Ree(t)&&(n=t,t={}),this.__opts__=pE({},nL,n),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=pE({},Oee,t),this.__compiled__={},this.__tlds__=Fee,this.__tlds_replaced__=!1,this.re={},yb(this);}Ar.prototype.add=function(n,e){return this.__schemas__[n]=e,yb(this),this;};Ar.prototype.set=function(n){return this.__opts__=pE(this.__opts__,n),this;};Ar.prototype.test=function(n){if(this.__text_cache__=n,this.__index__=-1,!n.length)return!1;let e,i,r,o,a,s,l,c,h;if(this.re.schema_test.test(n)){for(l=this.re.schema_search,l.lastIndex=0;(e=l.exec(n))!==null;)if(o=this.testSchemaAt(n,e[2],l.lastIndex),o){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+o;break;}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=n.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(i=n.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=i.index+i[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=i.index+i[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(h=n.indexOf("@"),h>=0&&(r=n.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0;};Ar.prototype.pretest=function(n){return this.re.pretest.test(n);};Ar.prototype.testSchemaAt=function(n,e,i){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(n,i,this):0;};Ar.prototype.match=function(n){let e=[],i=0;this.__index__>=0&&this.__text_cache__===n&&(e.push(hE(this,i)),i=this.__last_index__);let r=i?n.slice(i):n;for(;this.test(r);)e.push(hE(this,i)),r=r.slice(this.__last_index__),i+=this.__last_index__;return e.length?e:null;};Ar.prototype.matchAtStart=function(n){if(this.__text_cache__=n,this.__index__=-1,!n.length)return null;let e=this.re.schema_at_start.exec(n);if(!e)return null;let i=this.testSchemaAt(n,e[2],e[0].length);return i?(this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+i,hE(this,0)):null;};Ar.prototype.tlds=function(n,e){return n=Array.isArray(n)?n:[n],e?(this.__tlds__=this.__tlds__.concat(n).sort().filter(function(i,r,o){return i!==o[r-1];}).reverse(),yb(this),this):(this.__tlds__=n.slice(),this.__tlds_replaced__=!0,yb(this),this);};Ar.prototype.normalize=function(n){n.schema||(n.url="http://"+n.url),n.schema==="mailto:"&&!/^mailto:/i.test(n.url)&&(n.url="mailto:"+n.url);};Ar.prototype.onCompile=function(){};var rL=Ar;var aL="-",zee=/^xn--/,Bee=/[^\0-\x7F]/,jee=/[\x2E\u3002\uFF0E\uFF61]/g,Hee={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fE=35,Sa=Math.floor,gE=String.fromCharCode;function Xs(t){throw new RangeError(Hee[t]);}function $ee(t,n){let e=[],i=t.length;for(;i--;)e[i]=n(t[i]);return e;}function sL(t,n){let e=t.split("@"),i="";e.length>1&&(i=e[0]+"@",t=e[1]),t=t.replace(jee,".");let r=t.split("."),o=$ee(r,n).join(".");return i+o;}function lL(t){let n=[],e=0,i=t.length;for(;e<i;){let r=t.charCodeAt(e++);if(r>=55296&&r<=56319&&e<i){let o=t.charCodeAt(e++);(o&64512)==56320?n.push(((r&1023)<<10)+(o&1023)+65536):(n.push(r),e--);}else n.push(r);}return n;}var Uee=t=>String.fromCodePoint(...t),qee=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:36;},oL=function(t,n){return t+22+75*(t<26)-((n!=0)<<5);},cL=function(t,n,e){let i=0;for(t=e?Sa(t/700):t>>1,t+=Sa(t/n);t>fE*26>>1;i+=36)t=Sa(t/fE);return Sa(i+(fE+1)*t/(t+38));},dL=function(t){let n=[],e=t.length,i=0,r=128,o=72,a=t.lastIndexOf(aL);a<0&&(a=0);for(let s=0;s<a;++s)t.charCodeAt(s)>=128&&Xs("not-basic"),n.push(t.charCodeAt(s));for(let s=a>0?a+1:0;s<e;){let l=i;for(let h=1,g=36;;g+=36){s>=e&&Xs("invalid-input");let b=qee(t.charCodeAt(s++));b>=36&&Xs("invalid-input"),b>Sa((2147483647-i)/h)&&Xs("overflow"),i+=b*h;let _=g<=o?1:g>=o+26?26:g-o;if(b<_)break;let x=36-_;h>Sa(2147483647/x)&&Xs("overflow"),h*=x;}let c=n.length+1;o=cL(i-l,c,l==0),Sa(i/c)>2147483647-r&&Xs("overflow"),r+=Sa(i/c),i%=c,n.splice(i++,0,r);}return String.fromCodePoint(...n);},uL=function(t){let n=[];t=lL(t);let e=t.length,i=128,r=0,o=72;for(let l of t)l<128&&n.push(gE(l));let a=n.length,s=a;for(a&&n.push(aL);s<e;){let l=2147483647;for(let h of t)h>=i&&h<l&&(l=h);let c=s+1;l-i>Sa((2147483647-r)/c)&&Xs("overflow"),r+=(l-i)*c,i=l;for(let h of t)if(h<i&&++r>2147483647&&Xs("overflow"),h===i){let g=r;for(let b=36;;b+=36){let _=b<=o?1:b>=o+26?26:b-o;if(g<_)break;let x=g-_,T=36-_;n.push(gE(oL(_+x%T,0))),g=Sa(x/T);}n.push(gE(oL(g,0))),o=cL(r,c,s===a),r=0,++s;}++r,++i;}return n.join("");},Wee=function(t){return sL(t,function(n){return zee.test(n)?dL(n.slice(4).toLowerCase()):n;});},Gee=function(t){return sL(t,function(n){return Bee.test(n)?"xn--"+uL(n):n;});},Yee={version:"2.3.1",ucs2:{decode:lL,encode:Uee},decode:dL,encode:uL,toASCII:Gee,toUnicode:Wee};var _E=Yee;var mL={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}};var pL={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};var hL={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}};var Qee={default:mL,zero:pL,commonmark:hL},Kee=/^(vbscript|javascript|file|data):/,Zee=/^data:image\/(gif|png|jpeg|webp);/;function Xee(t){let n=t.trim().toLowerCase();return Kee.test(n)?Zee.test(n):!0;}var fL=["http:","https:","mailto:"];function Jee(t){let n=Kp(t,!0);if(n.hostname&&(!n.protocol||fL.indexOf(n.protocol)>=0))try{n.hostname=_E.toASCII(n.hostname);}catch{}return ab(du(n));}function ete(t){let n=Kp(t,!0);if(n.hostname&&(!n.protocol||fL.indexOf(n.protocol)>=0))try{n.hostname=_E.toUnicode(n.hostname);}catch{}return Qp(du(n),Qp.defaultChars+"%");}function Yr(t,n){if(!(this instanceof Yr))return new Yr(t,n);n||fb(t)||(n=t||{},t="default"),this.inline=new JN(),this.block=new YN(),this.core=new VN(),this.renderer=new RN(),this.linkify=new rL(),this.validateLink=Xee,this.normalizeLink=Jee,this.normalizeLinkText=ete,this.utils=DD,this.helpers=mu({},SD),this.options={},this.configure(t),n&&this.set(n);}Yr.prototype.set=function(t){return mu(this.options,t),this;};Yr.prototype.configure=function(t){let n=this;if(fb(t)){let e=t;if(t=Qee[e],!t)throw new Error('Wrong `markdown-it` preset "'+e+'", check name');}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&n.set(t.options),t.components&&Object.keys(t.components).forEach(function(e){t.components[e].rules&&n[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&n[e].ruler2.enableOnly(t.components[e].rules2);}),this;};Yr.prototype.enable=function(t,n){let e=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){e=e.concat(this[r].ruler.enable(t,!0));},this),e=e.concat(this.inline.ruler2.enable(t,!0));let i=t.filter(function(r){return e.indexOf(r)<0;});if(i.length&&!n)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this;};Yr.prototype.disable=function(t,n){let e=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){e=e.concat(this[r].ruler.disable(t,!0));},this),e=e.concat(this.inline.ruler2.disable(t,!0));let i=t.filter(function(r){return e.indexOf(r)<0;});if(i.length&&!n)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this;};Yr.prototype.use=function(t){let n=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,n),this;};Yr.prototype.parse=function(t,n){if(typeof t!="string")throw new Error("Input data should be a String");let e=new this.core.State(t,this,n);return this.core.process(e),e.tokens;};Yr.prototype.render=function(t,n){return n=n||{},this.renderer.render(this.parse(t,n),this.options,n);};Yr.prototype.parseInline=function(t,n){let e=new this.core.State(t,this,n);return e.inlineMode=!0,this.core.process(e),e.tokens;};Yr.prototype.renderInline=function(t,n){return n=n||{},this.renderer.render(this.parseInline(t,n),this.options,n);};var bE=Yr;var vE=(()=>{class t{constructor(e){this.sanitizer=e,this.id=rt(),this.markdown="",this.htmlString="";}ngAfterViewInit(){this.md=new bE();}addToken(e){this.markdown+=e,this.htmlString=this.md.render(this.markdown);}static{this.ɵfac=function(i){return new(i||t)(D(xr));};}static{this.ɵcmp=E({type:t,selectors:[["streamed-message"]],inputs:{id:[1,"id"]},decls:1,vars:1,consts:[[1,"streamed-message",3,"innerHTML"]],template:function(i,r){i&1&&w(0,"span",0),i&2&&v("innerHTML",r.sanitizer.bypassSecurityTrustHtml(r.htmlString),id);},dependencies:[j],encapsulation:2});}}return t;})();var tte=(t,n,e)=>({"human-message":t,"ai-message":n,"auto-send":e}),gL=t=>({display:t});function ite(t,n){if(t&1&&(Ce(0),m(1,"div",5)(2,"mat-icon"),f(3,"not_interested"),u(),m(4,"span"),f(5),u()(),we()),t&2){let e=y();d(5),C(e.txt1);}}function nte(t,n){if(t&1&&(m(0,"span",7),f(1),u()),t&2){let e=y(2);d(),N("",e.youTxt,": ");}}function rte(t,n){if(t&1&&(m(0,"span",7),f(1),u()),t&2){let e=y(3);d(),N("",e.config==null||e.config.character==null?null:e.config.character.name,": ");}}function ote(t,n){if(t&1&&(m(0,"span",7),f(1),u()),t&2){let e=y(3);d(),N("",e.chatbotTxt,": ");}}function ate(t,n){if(t&1&&I(0,rte,2,1,"span",7)(1,ote,2,1,"span",7),t&2){let e=y(2);Q(e.config!=null&&e.config.character?0:1);}}function ste(t,n){if(t&1){let e=K();Ce(0),m(1,"image-masker",12),S("createEditsEvent",function(){k(e);let r=y().$implicit,o=y(2).$implicit,a=y();return M(a.createEdits(r,o.imageSize));}),u(),we();}if(t&2){let e=y(3).$implicit;d(),v("url",e.images[0]);}}function lte(t,n){if(t&1){let e=K();m(0,"div",13)(1,"div",14)(2,"button",15),S("click",function(){k(e);let r=y().index,o=y(2).$implicit,a=y();return M(a.saveImage(o,r));}),m(3,"mat-icon"),f(4,"save"),u(),f(5),u(),m(6,"button",15),S("click",function(){k(e);let r=y().index,o=y(2).$implicit,a=y();return M(a.createVariations(o.images[r]));}),m(7,"mat-icon"),f(8,"burst_mode"),u(),f(9),u(),m(10,"button",15),S("click",function(){k(e);let r=y().index,o=y(2).$implicit,a=y();return M(a.createEdits(o.images[r],o.imageSize));}),m(11,"mat-icon"),f(12,"edit"),u(),f(13),u(),m(14,"a",16)(15,"mat-icon"),f(16,"open_in_new"),u(),f(17),u()(),m(18,"span",17),f(19),u()(),w(20,"br"),m(21,"a",18),w(22,"img",19),u();}if(t&2){let e=y(),i=e.$implicit,r=e.index,o=y(2).$implicit,a=y();d(2),G("matTooltip",a.saveTip),d(3),N(" ",a.saveTxt," "),d(),G("matTooltip",a.variationsTip),d(3),N(" ",a.variationsTxt," "),d(),G("matTooltip",a.editTip),d(3),N(" ",a.editTxt," "),d(),G("matTooltip",a.tabTip),G("href",i,Fr),d(3),C(a.tabTxt),d(2),C(a.dlTxt),d(2),G("href",i,Fr),d(),iC("id","gi-img-",o.id,"-",r,""),G("src",i,Fr);}}function cte(t,n){if(t&1&&(m(0,"div",10)(1,"span",11),I(2,ste,2,1,"ng-container",8)(3,lte,23,15,"ng-template",null,1,Vr),u()()),t&2){let e=We(4),i=y(2).$implicit;v("ngClass",i.userId===0?"user-image":"ai-image"),d(2),v("ngIf",i.responseIsEditable)("ngIfElse",e);}}function dte(t,n){if(t&1&&(m(0,"span"),I(1,cte,5,3,"div",9),u()),t&2){let e=y().$implicit;d(),v("ngForOf",e.images);}}function ute(t,n){if(t&1&&w(0,"streamed-message",24),t&2){let e=y(2).$implicit;v("id",e==null?null:e.id);}}function mte(t,n){if(t&1&&w(0,"span",25),t&2){let e=y(2).$implicit,i=y();v("innerHTML",i.sanitizer.bypassSecurityTrustHtml(e.body),id);}}function pte(t,n){if(t&1){let e=K();m(0,"span",26)(1,"button",27),S("click",function(){k(e);let r=y(2).$implicit,o=y();return M(o.copyToClipboard(r));}),m(2,"mat-icon"),f(3,"content_copy"),u()()();}if(t&2){let e=y(3);v("ngStyle",Ue(2,gL,e.inProgress?"none":"inline")),d(),G("matTooltip",e.clipboardCopyTip);}}function hte(t,n){if(t&1){let e=K();m(0,"span",26)(1,"button",28),S("click",function(){k(e);let r=y(2).$implicit,o=y();return M(o.copyToPrompt(r));}),m(2,"mat-icon"),f(3,"save_alt"),u()()();}if(t&2){let e=y(3);v("ngStyle",Ue(2,gL,e.inProgress?"none":"inline")),d(),G("matTooltip",e.promptCopyTip);}}function fte(t,n){if(t&1){let e=K();m(0,"span",29)(1,"button",30),S("click",function(){k(e);let r=y(2).$implicit,o=y();return M(o.saveImagePrompt(r));}),m(2,"mat-icon"),f(3,"cloud_upload"),u()()();}if(t&2){let e=y(3);d(),G("matTooltip",e.saveImageTip);}}function gte(t,n){if(t&1){let e=K();m(0,"span",29)(1,"button",30),S("click",function(){k(e);let r=y(2).$implicit,o=y();return M(o.createImageFromText(r.body));}),m(2,"mat-icon"),f(3,"image"),u()()();}if(t&2){let e=y(3);d(),G("matTooltip",e.createImageTip);}}function _te(t,n){if(t&1&&I(0,ute,1,1,"streamed-message",20)(1,mte,1,1,"span",21)(2,pte,4,4,"span",22)(3,hte,4,4,"span",22)(4,fte,4,1,"span",23)(5,gte,4,1,"span",23),t&2){let e=y().$implicit,i=y();v("ngIf",(i.config==null||i.config.features==null?null:i.config.features.streamedResponses)&&e.userId===1),d(),v("ngIf",e.userId===0||!(!(i.config==null||i.config.features==null)&&i.config.features.streamedResponses)),d(),v("ngIf",i.config==null||i.config.features==null?null:i.config.features.copyToClipboard),d(),v("ngIf",i.config==null||i.config.features==null?null:i.config.features.copyToPrompt),d(),v("ngIf",i.config==null||i.config.features==null?null:i.config.features.saveImagePrompt),d(),v("ngIf",i.config==null||i.config.features==null?null:i.config.features.createImageFromText);}}function bte(t,n){if(t&1&&(m(0,"div",6),I(1,nte,2,1,"span",7)(2,ate,2,1)(3,dte,2,1,"span",8)(4,_te,6,6,"ng-template",null,0,Vr),u()),t&2){let e=n.$implicit,i=We(5),r=y();nr("id","message-",e.id,""),v("ngClass",IT(6,tte,e.userId===0,e.userId===1,r.config==null||r.config.features==null||r.config.features.autoSend==null?null:r.config.features.autoSend.enabled)),d(),Q(e.userId===0?1:2),d(2),v("ngIf",e.images==null?null:e.images.length)("ngIfElse",i);}}var gu=(()=>{class t{constructor(e,i,r,o){this.dialog=e,this.sanitizer=i,this.changeDetector=r,this.service=o,this.config=void 0,this.messages=rt([]),this.inProgress=!1,this.saveImageEvent=new V(),this.createVariationsEvent=new V(),this.createEditsEvent=new V(),this.copyToClipboardEvent=new V(),this.copyToPromptEvent=new V(),this.saveImagePromptEvent=new V(),this.createImageFromTextEvent=new V(),this.txt1="Tip: You can enhance any images you see in chatbot by hovering over the\n  image and accessing the image toolbar. You can also upload an image from\n  your device using the button below.",this.youTxt="You",this.chatbotTxt="Chatbot",this.saveTxt="Save",this.saveTip="Save image to Media Library",this.variationsTip="Set options and generate variations of this image.",this.variationsTxt="Variations",this.editTip="Selectively regenerate areas of this image based on a prompt.",this.editTxt="Edit",this.tabTip="Open image in new tab.",this.tabTxt="New Tab",this.dlTxt="Click Image to Download",this.clipboardCopyTip="Copy to clipboard",this.promptCopyTip="Copy to prompt",this.saveImageTip="Save image prompt",this.createImageTip="Create image from this text",this.imageTxt="Image",this.messageTxt="Message",this.messagesTxt="Messages";}ngAfterViewInit(){}createEdits(e,i){console.log("create edits",e,i);let r={userId:Tt.human,endpoint:this.config.endpoint,body:"",bodyOriginal:"",imageSize:i,images:[e]};r.id=++jt.sNextID,this.createEditsEvent.emit(r);}lockImageMaskers(){console.log("lock image maskers",this.imageMaskers),this.imageMaskers.forEach(function(e){e.lock();});}findLastImageMasker(){let e=null;return this.imageMaskers.forEach(function(i){e?i.id>e.id&&(e=i):e=i;}),e;}findStreamedMessage(e){let i=this.streamedMessages.toArray();return i.length?i.find(o=>e===o.id()):void 0;}copyToClipboard(e){console.log("copy to clipboard:",e),this.copyToClipboardEvent.emit(e.body);}copyToPrompt(e){console.log("copy to prompot:",e),this.copyToPromptEvent.emit(e.body);}saveImagePrompt(e){console.log("save image prompot:",e),this.saveImagePromptEvent.emit(e.body);}createImageFromText(e){let i={title:"Create Image(s)",msg:"Set image options",msg2:"Note: Dalle-3 produces a single image."};this.service.openImageCreateDialog(i).afterClosed().subscribe(o=>{if(!o)return;let a={userId:Tt.human,endpoint:this.config.endpoint,body:e,bodyOriginal:e,imageCount:o.count,imageSize:o.size};a.id=++jt.sNextID,o.quality&&(a.d3RequestData={prompt:e,count:o.count,size:o.size,quality:o.quality,style:o.style,user:"demo user"}),this.createImageFromTextEvent.emit(a);});}saveImage(e,i){if(console.log("save image",e,i),e.images){let r=e.images[i];this.saveImageEvent.emit({url:r,msg:e});}else console.log("image not found");}createVariations(e){this.dialog.open(Ws,{width:"516px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!1,data:{title:"Create Variations",msg:"Submit your options for variations.",msg2:""}}).afterClosed().subscribe(a=>{if(!a)return;let s={userId:Tt.human,endpoint:this.config.endpoint,body:"",bodyOriginal:"",images:[e],imageCount:a.count,imageSize:a.size};s.id=++jt.sNextID,this.createVariationsEvent.emit(s);});}static{this.ɵfac=function(i){return new(i||t)(D(ni),D(xr),D(pe),D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-viewer"]],viewQuery:function(i,r){if(i&1&&($(fD,5),$(vE,5)),i&2){let o;R(o=O())&&(r.imageMaskers=o),R(o=O())&&(r.streamedMessages=o);}},inputs:{messages:[1,"messages"]},outputs:{saveImageEvent:"saveImageEvent",createVariationsEvent:"createVariationsEvent",createEditsEvent:"createEditsEvent",copyToClipboardEvent:"copyToClipboardEvent",copyToPromptEvent:"copyToPromptEvent",saveImagePromptEvent:"saveImagePromptEvent",createImageFromTextEvent:"createImageFromTextEvent"},decls:4,vars:4,consts:[["elseBlock",""],["imgElse",""],[1,"msg-count"],[4,"ngIf"],["class","message",3,"id","ngClass",4,"ngFor","ngForOf"],[1,"no-image"],[1,"message",3,"id","ngClass"],[1,"user-label"],[4,"ngIf","ngIfElse"],["class","image-outer",3,"ngClass",4,"ngFor","ngForOf"],[1,"image-outer",3,"ngClass"],[1,"image-container"],[3,"createEditsEvent","url"],[1,"hidden-actions"],[1,"action-container"],["mat-raised-button","",1,"action",3,"click","matTooltip"],["mat-raised-button","","target","_blank",1,"action",3,"matTooltip","href"],[1,"click-to-download"],["download","",3,"href"],[3,"id","src"],[3,"id",4,"ngIf"],["class","message-body",3,"innerHTML",4,"ngIf"],["class","text-tool",3,"ngStyle",4,"ngIf"],["class","text-tool",4,"ngIf"],[3,"id"],[1,"message-body",3,"innerHTML"],[1,"text-tool",3,"ngStyle"],["mat-flat-button","",1,"copy-to-clipboard",3,"click","matTooltip"],["mat-flat-button","",1,"copy-to-prompt",3,"click","matTooltip"],[1,"text-tool"],["mat-flat-button","",1,"save-image-prompt",3,"click","matTooltip"]],template:function(i,r){i&1&&(m(0,"div",2),f(1),u(),I(2,ite,6,1,"ng-container",3)(3,bte,6,10,"div",4)),i&2&&(d(),br(" ",r.messages().length," ",r.messages().length===1?r.messageTxt:r.messagesTxt,`
`),d(),v("ngIf",r.messages().length===0&&(r.config==null||r.config.features==null?null:r.config.features.uploadImages)),d(),v("ngForOf",r.messages()));},dependencies:[j,yr,ei,Pt,gn,lu,Wi,ce,Rn,ye,Je,Ct,ke,Oe,on,fD,vE],styles:[".msg-count[_ngcontent-%COMP%]{text-align:center;margin:0 auto;padding:12px 0;font-size:small}.no-image[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;height:175px}.no-image[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;font-size:48px}.no-image[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:300px;margin:20px 0;font-size:small}.message[_ngcontent-%COMP%]{padding:10px 15px}.message[_ngcontent-%COMP%]   .text-tool[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:34px;min-width:24px;margin-left:5px;padding:0;height:24px}.message[_ngcontent-%COMP%]   .text-tool[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:8px}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]{text-align:center;position:relative;margin-bottom:5px;z-index:400}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:hover   .hidden-actions[_ngcontent-%COMP%]{display:block!important}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{text-align:center}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .hidden-actions[_ngcontent-%COMP%]{height:125px;margin:0 auto -125px;display:none}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .hidden-actions[_ngcontent-%COMP%]   .action-container[_ngcontent-%COMP%]{padding-top:22px}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .hidden-actions[_ngcontent-%COMP%]   .action-container[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]{height:45px;margin:3px 2px}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .hidden-actions[_ngcontent-%COMP%]   .click-to-download[_ngcontent-%COMP%]{pointer-events:none;font-size:smaller;margin:0 auto;padding:5px;z-index:500;position:relative;color:#fff}.message[_ngcontent-%COMP%]   .image-outer[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;border:3px solid transparent}.human-message[_ngcontent-%COMP%]   .user-label[_ngcontent-%COMP%]{font-weight:700;margin-right:4px;color:var(--mat-sys-tertiary)}.human-message[_ngcontent-%COMP%]   .hidden-actions[_ngcontent-%COMP%]{background-color:transparent;text-align:center}.ai-message[_ngcontent-%COMP%]   .user-label[_ngcontent-%COMP%]{font-weight:700;margin-right:4px;color:var(--mat-sys-tertiary)}.ai-message[_ngcontent-%COMP%]   .hidden-actions[_ngcontent-%COMP%]{background-color:transparent;text-align:center}"]});}}return t;})();var Cb=class{constructor(){}};var vte=["button"],yte=["*"];function xte(t,n){if(t&1&&(m(0,"div",2),w(1,"mat-pseudo-checkbox",6),u()),t&2){let e=y();d(),v("disabled",e.disabled);}}var _L=new A("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Cte});function Cte(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1};}var bL=new A("MatButtonToggleGroup"),wte={provide:Sr,useExisting:yi(()=>mc),multi:!0},wb=class{source;value;constructor(n,e){this.source=n,this.value=e;}},mc=(()=>{class t{_changeDetector=p(pe);_dir=p(Et,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name;}set name(e){this._name=e,this._markButtonsForCheck();}_name=p(Ye).getId("mat-button-toggle-group-");vertical;get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(i=>i.value):e[0]?e[0].value:void 0;}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value);}valueChange=new V();get selected(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null;}get multiple(){return this._multiple;}set multiple(e){this._multiple=e,this._markButtonsForCheck();}get disabled(){return this._disabled;}set disabled(e){this._disabled=e,this._markButtonsForCheck();}get disabledInteractive(){return this._disabledInteractive;}set disabledInteractive(e){this._disabledInteractive=e,this._markButtonsForCheck();}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr";}change=new V();get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator;}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._markButtonsForCheck();}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator;}set hideMultipleSelectionIndicator(e){this._hideMultipleSelectionIndicator=e,this._markButtonsForCheck();}_hideMultipleSelectionIndicator;constructor(){let e=p(_L,{optional:!0});this.appearance=e&&e.appearance?e.appearance:"standard",this.hideSingleSelectionIndicator=e?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=e?.hideMultipleSelectionIndicator??!1;}ngOnInit(){this._selectionModel=new Wl(this.multiple,void 0,!1);}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked)),this.multiple||this._initializeTabIndex();}writeValue(e){this.value=e,this._changeDetector.markForCheck();}registerOnChange(e){this._controlValueAccessorChangeFn=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e;}_keydown(e){if(this.multiple||this.disabled)return;let r=e.target.id,o=this._buttonToggles.toArray().findIndex(s=>s.buttonId===r),a=null;switch(e.keyCode){case 32:case 13:a=this._buttonToggles.get(o)||null;break;case 38:a=this._getNextButton(o,-1);break;case 37:a=this._getNextButton(o,this.dir==="ltr"?-1:1);break;case 40:a=this._getNextButton(o,1);break;case 39:a=this._getNextButton(o,this.dir==="ltr"?1:-1);break;default:return;}a&&(e.preventDefault(),a._onButtonClick(),a.focus());}_emitChangeEvent(e){let i=new wb(e,this.value);this._rawValue=i.value,this._controlValueAccessorChangeFn(i.value),this.change.emit(i);}_syncButtonToggle(e,i,r=!1,o=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?i?this._selectionModel.select(e):this._selectionModel.deselect(e):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(e,r)):this._updateModelValue(e,r);}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e);}_isPrechecked(e){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(i=>e.value!=null&&i===e.value):e.value===this._rawValue;}_initializeTabIndex(){if(this._buttonToggles.forEach(e=>{e.tabIndex=-1;}),this.selected)this.selected.tabIndex=0;else for(let e=0;e<this._buttonToggles.length;e++){let i=this._buttonToggles.get(e);if(!i.disabled){i.tabIndex=0;break;}}this._markButtonsForCheck();}_getNextButton(e,i){let r=this._buttonToggles;for(let o=1;o<=r.length;o++){let a=(e+i*o+r.length)%r.length,s=r.get(a);if(s&&!s.dis��abled)return s;}return null;}_setSelectionByValue(e){if(this._rawValue=e,!this._buttonToggles)return;let i=this._buttonToggles.toArray();if(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(r=>this._selectValue(r,i))):(this._clearSelection(),this._selectValue(e,i)),!this.multiple&&i.every(r=>r.tabIndex===-1)){for(let r of i)if(!r.disabled){r.tabIndex=0;break;}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>{e.checked=!1,this.multiple||(e.tabIndex=-1);});}_selectValue(e,i){for(let r of i)if(r.value===e){r.checked=!0,this._selectionModel.select(r),this.multiple||(r.tabIndex=0);break;}}_updateModelValue(e,i){i&&this._emitChangeEvent(e),this.valueChange.emit(this.value);}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck());}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(i,r,o){if(i&1&&Ee(o,_u,5),i&2){let a;R(a=O())&&(r._buttonToggles=a);}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(i,r){i&1&&S("keydown",function(a){return r._keydown(a);}),i&2&&(ee("role",r.multiple?"group":"radiogroup")("aria-disabled",r.disabled),Z("mat-button-toggle-vertical",r.vertical)("mat-button-toggle-group-appearance-standard",r.appearance==="standard"));},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",U],value:"value",multiple:[2,"multiple","multiple",U],disabled:[2,"disabled","disabled",U],disabledInteractive:[2,"disabledInteractive","disabledInteractive",U],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",U],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",U]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[be([wte,{provide:bL,useExisting:t}])]});}return t;})(),_u=(()=>{class t{_changeDetectorRef=p(pe);_elementRef=p(J);_focusMonitor=p(Mi);_idGenerator=p(Ye);_animationMode=p(Ne,{optional:!0});_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`;}id;name;value;get tabIndex(){return this._tabIndex;}set tabIndex(e){e!==this._tabIndex&&(this._tabIndex=e,this._markForCheck());}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance;}set appearance(e){this._appearance=e;}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked;}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck());}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled;}set disabled(e){this._disabled=e;}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive;}set disabledInteractive(e){this._disabledInteractive=e;}_disabledInteractive;change=new V();constructor(){p(nt).load(ii);let e=p(bL,{optional:!0}),i=p(new Ki("tabindex"),{optional:!0})||"",r=p(_L,{optional:!0});this._tabIndex=parseInt(i)||0,this.buttonToggleGroup=e,this.appearance=r&&r.appearance?r.appearance:"standard",this.disabledInteractive=r?.disabledInteractive??!1;}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked));}ngAfterViewInit(){this._animationMode!=="NoopAnimations"&&this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0);}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0);}focus(e){this._buttonElement.nativeElement.focus(e);}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let i=this.buttonToggleGroup._buttonToggles.find(r=>r.tabIndex===0);i&&(i.tabIndex=-1),this.tabIndex=0;}this.change.emit(new wb(this,this.value));}_markForCheck(){this._changeDetectorRef.markForCheck();}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null;}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(i,r){if(i&1&&$(vte,5),i&2){let o;R(o=O())&&(r._buttonElement=o.first);}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(i,r){i&1&&S("focus",function(){return r.focus();}),i&2&&(ee("aria-label",null)("aria-labelledby",null)("id",r.id)("name",null),Z("mat-button-toggle-standalone",!r.buttonToggleGroup)("mat-button-toggle-checked",r.checked)("mat-button-toggle-disabled",r.disabled)("mat-button-toggle-disabled-interactive",r.disabledInteractive)("mat-button-toggle-appearance-standard",r.appearance==="standard"));},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",U],appearance:"appearance",checked:[2,"checked","checked",U],disabled:[2,"disabled","disabled",U],disabledInteractive:[2,"disabledInteractive","disabledInteractive",U]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:yte,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(i,r){if(i&1){let o=K();De(),m(0,"button",1,0),S("click",function(){return k(o),M(r._onButtonClick());}),I(2,xte,2,1,"div",2),m(3,"span",3),le(4),u()(),w(5,"span",4)(6,"span",5);}if(i&2){let o=We(1);v("id",r.buttonId)("disabled",r.disabled&&!r.disabledInteractive||null),ee("role",r.isSingleSelector()?"radio":"button")("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-pressed",r.isSingleSelector()?null:r.checked)("aria-checked",r.isSingleSelector()?r.checked:null)("name",r._getButtonName())("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),d(2),Q(r.buttonToggleGroup&&(!r.buttonToggleGroup.multiple&&!r.buttonToggleGroup.hideSingleSelectionIndicator||r.buttonToggleGroup.multiple&&!r.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),d(4),v("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled);}},dependencies:[an,Q0],styles:[`.mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-legacy-button-toggle-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-legacy-button-toggle-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-standard-button-toggle-background-color, transparent);font-family:var(--mat-standard-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-standard-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-standard-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-standard-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-standard-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-standard-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-standard-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-standard-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full));border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-full))}
`],encapsulation:2,changeDetection:0});}return t;})(),Db=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,sr,_u,he]});}return t;})();var yE=new A("CdkAccordion"),yL=(()=>{class t{_stateChanges=new H();_openCloseAllActions=new H();id=p(Ye).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0);}closeAll(){this._openCloseAllActions.next(!1);}ngOnChanges(e){this._stateChanges.next(e);}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete();}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",U]},exportAs:["cdkAccordion"],features:[be([{provide:yE,useExisting:t}]),He]});}return t;})(),xL=(()=>{class t{accordion=p(yE,{optional:!0,skipSelf:!0});_changeDetectorRef=p(pe);_expansionDispatcher=p(Cp);_openCloseAllSubscription=ve.EMPTY;closed=new V();opened=new V();destroyed=new V();expandedChange=new V();id=p(Ye).getId("cdk-accordion-child-");get expanded(){return this._expanded;}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i);}else this.closed.emit();this._changeDetectorRef.markForCheck();}}_expanded=!1;disabled=!1;_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,i)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===i&&this.id!==e&&(this.expanded=!1);}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions());}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe();}toggle(){this.disabled||(this.expanded=!this.expanded);}close(){this.disabled||(this.expanded=!1);}open(){this.disabled||(this.expanded=!0);}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e);});}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",U],disabled:[2,"disabled","disabled",U]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[be([{provide:yE,useValue:void 0}])]});}return t;})(),CL=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({});}return t;})();var Dte=["body"],Ete=["bodyWrapper"],kte=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Mte=["mat-expansion-panel-header","*","mat-action-row"];function Ste(t,n){}var Ite=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Tte=["mat-panel-title","mat-panel-description","*"];function Ate(t,n){t&1&&(m(0,"span",1),Zt(),m(1,"svg",2),w(2,"path",3),u()());}var xE=new A("MAT_ACCORDION"),wL=new A("MAT_EXPANSION_PANEL"),Rte=(()=>{class t{_template=p(st);_expansionPanel=p(wL,{optional:!0});constructor(){}static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]});}return t;})(),DL=new A("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),pc=(()=>{class t extends xL{_viewContainerRef=p(Dt);_animationsDisabled=p(Ne,{optional:!0})==="NoopAnimations";_document=p(_e);_ngZone=p(ae);_elementRef=p(J);_renderer=p(tt);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle;}set hideToggle(e){this._hideToggle=e;}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition;}set togglePosition(e){this._togglePosition=e;}_togglePosition;afterExpand=new V();afterCollapse=new V();_inputChanges=new H();accordion=p(xE,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=p(Ye).getId("mat-expansion-panel-header-");constructor(){super();let e=p(DL,{optional:!0});this._expansionDispatcher=p(Cp),e&&(this.hideToggle=e.hideToggle);}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1;}_getExpandedState(){return this.expanded?"expanded":"collapsed";}toggle(){this.expanded=!this.expanded;}close(){this.expanded=!1;}open(){this.expanded=!0;}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(ht(null),Ie(()=>this.expanded&&!this._portal),de(1)).subscribe(()=>{this._portal=new $i(this._lazyContent._template,this._viewContainerRef);}),this._setupAnimationEvents();}ngOnChanges(e){this._inputChanges.next(e);}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete();}_containsFocus(){if(this._body){let e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e);}return!1;}_transitionEndListener=({target:e,propertyName:i})=>{e===this._bodyWrapper?.nativeElement&&i==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit();});};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled");},200);});}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(i&1&&Ee(o,Rte,5),i&2){let a;R(a=O())&&(r._lazyContent=a.first);}},viewQuery:function(i,r){if(i&1&&($(Dte,5),$(Ete,5)),i&2){let o;R(o=O())&&(r._body=o.first),R(o=O())&&(r._bodyWrapper=o.first);}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(i,r){i&2&&Z("mat-expanded",r.expanded)("mat-expansion-panel-spacing",r._hasSpacing());},inputs:{hideToggle:[2,"hideToggle","hideToggle",U],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[be([{provide:xE,useValue:void 0},{provide:wL,useExisting:t}]),W,He],ngContentSelectors:Mte,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(i,r){i&1&&(De(kte),le(0),m(1,"div",2,0)(3,"div",3,1)(5,"div",4),le(6,1),I(7,Ste,0,0,"ng-template",5),u(),le(8,2),u()()),i&2&&(d(),ee("inert",r.expanded?null:""),d(2),v("id",r.id),ee("aria-labelledby",r._headerId),d(4),v("cdkPortalOutlet",r._portal));},dependencies:[en],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: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}
`],encapsulation:2,changeDetection:0});}return t;})();var hc=(()=>{class t{panel=p(pc,{host:!0});_element=p(J);_focusMonitor=p(Mi);_changeDetectorRef=p(pe);_parentChangeSubscription=ve.EMPTY;constructor(){p(nt).load(ii);let e=this.panel,i=p(DL,{optional:!0}),r=p(new Ki("tabindex"),{optional:!0}),o=e.accordion?e.accordion._stateChanges.pipe(Ie(a=>!!(a.hideToggle||a.togglePosition))):Di;this.tabIndex=parseInt(r||"")||0,this._parentChangeSubscription=St(e.opened,e.closed,o,e._inputChanges.pipe(Ie(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Ie(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),i&&(this.expandedHeight=i.expandedHeight,this.collapsedHeight=i.collapsedHeight);}expandedHeight;collapsedHeight;tabIndex=0;get disabled(){return this.panel.disabled;}_toggle(){this.disabled||this.panel.toggle();}_isExpanded(){return this.panel.expanded;}_getExpandedState(){return this.panel._getExpandedState();}_getPanelId(){return this.panel.id;}_getTogglePosition(){return this.panel.togglePosition;}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled;}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null;}_keydown(e){switch(e.keyCode){case 32:case 13:ti(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return;}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i);}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this);});}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element);}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(i,r){i&1&&S("click",function(){return r._toggle();})("keydown",function(a){return r._keydown(a);}),i&2&&(ee("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),xi("height",r._getHeaderHeight()),Z("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before"));},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)]},ngContentSelectors:Tte,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"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(i,r){i&1&&(De(Ite),m(0,"span",0),le(1),le(2,1),le(3,2),u(),I(4,Ate,3,0,"span",1)),i&2&&(Z("mat-content-hide-toggle",!r._showToggle()),d(4),Q(r._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-surf��ace))}}.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:"";display:inline-block;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}}
`],encapsulation:2,changeDetection:0});}return t;})();var bu=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});}return t;})(),fc=(()=>{class t extends yL{_keyManager;_ownHeaders=new pn();_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe(ht(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(i=>i.panel.accordion===this)),this._ownHeaders.notifyOnChanges();}),this._keyManager=new uo(this._ownHeaders).withWrap().withHomeAndEnd();}_handleHeaderKeydown(e){this._keyManager.onKeydown(e);}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e);}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy();}static ɵfac=(()=>{let e;return function(r){return(e||(e=Fe(t)))(r||t);};})();static ɵdir=z({type:t,selectors:[["mat-accordion"]],contentQueries:function(i,r,o){if(i&1&&Ee(o,hc,5),i&2){let a;R(a=O())&&(r._headers=a);}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(i,r){i&2&&Z("mat-accordion-multi",r.multi);},inputs:{hideToggle:[2,"hideToggle","hideToggle",U],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[be([{provide:xE,useExisting:t}]),W]});}return t;})(),vu=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[he,CL,On]});}return t;})();function Ote(t,n){if(t&1){let e=K();m(0,"button",18),S("click",function(){let r=k(e).$implicit,o=y();return M(o.followLink(r));}),m(1,"span",19)(2,"span"),f(3),u()()();}if(t&2){let e=n.$implicit;d(3),C(e.name);}}function Pte(t,n){if(t&1&&(m(0,"span",11),f(1),u()),t&2){let e=y();d(),C(e.titlePrefixTxt+e.title);}}function Fte(t,n){t&1&&(m(0,"span",11),f(1,"\xA0"),u());}function Nte(t,n){t&1&&f(0,"...");}var yu=(()=>{class t{constructor(e,i,r,o,a,s){this.router=e,this.changeDetector=i,this.site=r,this.service=o,this.drupal=a,this.charactersService=s,this.descriptionTxt="Personal Description: ",this.professionalTxt="Professional Description: ",this.assistantTxt="Helpful Assistant: ",this.assistantTxt2="Generic Assistant",this.helpfulAssistantTxt="You are a helfpful assistant.",this.switchCharacterTxt="Switch Character",this.editTxt="Edit",this.editTipTxt="Edit Character",this.newArticleTxt="New",this.newArticleTipTxt="Create a new post/article.",this.replyTxt="Reply",this.replyTipTxt="Reply to a post/article",this.titlePrefixTxt="Chatting with ",this.title="",this._snackBar=p(_n),this.descriptionValue="description",this.descriptionTitle="",this.descriptionDisplay="",this.character=this.service.createDefaultCharacter(),this.allowNavigation=!1,this.characters=[],this.links=[];}ngOnInit(){let e=this;this.allowNavigation=this.site.allowNavigation(),this.changeDescription(this.descriptionValue),this.charactersService.fetchModifiedFilteredAndSortedCharacters().subscribe(i=>{console.log(i),e.characters=i;});}ngAfterViewInit(){}followLink(e){this.router.navigate(["/chat/character",e.slug]);}changeDescription(e){switch(console.log("change description",e),e){case"description":this.descriptionTitle=this.descriptionTxt,this.descriptionDisplay=this.character.description;break;case"professional":this.descriptionTitle=this.descriptionTxt,this.descriptionDisplay=this.character.professionalDescription;break;default:this.descriptionTitle=this.helpfulAssistantTxt,this.descriptionDisplay=this.helpfulAssistantTxt;break;}}edit(){console.log("edit");let e=this,r={title:"Edit AI Character",msg:"",msg2:"",editCharacterData:this.character};this.dialogRef=this.service.openCharacterCreateDialog(r),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(o){if(console.log("edit character dialog results",o),!o){console.log("no results from dialog");return;}let a=o.data?.storageId;if(console.log("storage id is ",a),!a){console.log("no storage id");return;}let s=o.data;e.patchCharacter(s),console.log("character patched");},error(o){console.log("error encountered: ",o);},complete(){e.dialogRef=void 0,console.log("dialogref cleared");}});}patchCharacter(e){let i=this;this.charactersService.patchCharacter(e).pipe(de(1)).subscribe({next(r){console.log("patch character response: ",r);let o=i.charactersService.loadCharacter(r.data);console.log("character: ",o),i.character=o,i._snackBar.open("Character has been modified.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(r){console.log("error encountered patching character: ",r);},complete(){}});}newArticle(){console.log("new article");let e=this;console.log(this.character.name+"is writing an article");let i=" ("+this.character.name+")",r={title:"Create an Article"+i,msg:"",msg2:"",characterData:this.character};this.dialogRef=this.service.openNewArticleDialog(r),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(o){if(!o){console.log("no results from dialog");return;}console.log("new article dialog results",o),e._snackBar.open(o.data.msg,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(o){console.log("error encountered: ",o);},complete(){e.dialogRef=void 0,console.log("dialogref cleared");}});}reply(){console.log("reply");let e=this;console.log(this.character.name+"is repling");let i=" ("+this.character.name+")",r={title:"Reply To Article/Comment"+i,msg:"",msg2:"",characterData:this.character};this.dialogRef=this.service.openReplyDialog(r),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(o){if(!o){console.log("no results from dialog");return;}console.log("reply dialog results",o),e._snackBar.open(o.data.msg,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(o){console.log("error encountered: ",o);},complete(){e.dialogRef=void 0,console.log("dialogref cleared");}});}static{this.ɵfac=function(i){return new(i||t)(D(Xe),D(pe),D(pt),D(fe),D(qs),D(Da));};}static{this.ɵcmp=E({type:t,selectors:[["cb-character-header"]],viewQuery:function(i,r){if(i&1&&$(mc,5),i&2){let o;R(o=O())&&(r.toggleGroup=o.first);}},inputs:{character:"character"},decls:47,vars:16,consts:[["menu","matMenu"],[1,"character-header","large-pad"],[1,"left"],["mat-icon-button","","aria-label","Example icon-button with a menu",3,"matMenuTriggerFor","matTooltip"],["mat-menu-item",""],["name","fontStyle","aria-label","Font Style",3,"change","value"],["value","description"],[3,"matTooltip"],["value","professional"],["value","assistant"],[1,"center"],[1,"header-title"],[1,"right"],["mat-raised-button","","matTooltipPosition","above",1,"edit-button",3,"click","matTooltip"],[1,"hide-on-small"],[1,""],["mat-raised-button","","matTooltipPosition","above",1,"new-article-button",3,"click","matTooltip"],["mat-raised-button","","matTooltipPosition","above",1,"reply-button",3,"click","matTooltip"],["mat-menu-item","",3,"click"],[1,"name-container"]],template:function(i,r){if(i&1){let o=K();m(0,"div",1)(1,"div",2)(2,"span")(3,"button",3)(4,"mat-icon"),f(5,"view_list"),u()(),m(6,"mat-menu",null,0),Ut(8,Ote,4,1,"button",4,ir),u()(),m(10,"span")(11,"mat-button-toggle-group",5),S("change",function(s){return k(o),M(r.changeDescription(s.value));}),m(12,"mat-button-toggle",6)(13,"mat-icon",7),f(14,"skateboarding"),u()(),m(15,"mat-button-toggle",8)(16,"mat-icon",7),f(17,"work"),u()(),m(18,"mat-button-toggle",9)(19,"mat-icon",7),f(20,"person"),u()()()()(),m(21,"div",10),I(22,Pte,2,1,"span",11)(23,Fte,2,0,"span",11),u(),m(24,"div",12)(25,"button",13),S("click",function(s){return k(o),r.edit(),M(s.stopPropagation());}),m(26,"mat-icon",14),f(27,"edit"),u(),m(28,"span",15),f(29),u()(),m(30,"button",16),S("click",function(s){return k(o),r.newArticle(),M(s.stopPropagation());}),m(31,"mat-icon",14),f(32,"article"),u(),m(33,"span",15),f(34),u()(),m(35,"button",17),S("click",function(s){return k(o),r.reply(),M(s.stopPropagation());}),m(36,"mat-icon",14),f(37,"reply"),u(),m(38,"span",15),f(39),u()()()(),m(40,"mat-expansion-panel")(41,"mat-expansion-panel-header")(42,"mat-panel-title"),f(43),I(44,Nte,1,0),u()(),f(45),u(),w(46,"mat-divider");}if(i&2){let o=We(7);d(3),G("matTooltip",r.switchCharacterTxt),v("matMenuTriggerFor",o),d(5),qt(r.characters),d(3),v("value",r.descriptionValue),d(2),G("matTooltip",r.descriptionTxt+(r.character.description||"")),d(3),G("matTooltip",r.professionalTxt+(r.character.professionalDescription||"")),d(3),G("matTooltip",r.assistantTxt2),d(3),Q(r.title.length>0?22:23),d(3),G("matTooltip",r.editTipTxt),d(4),C(r.editTxt),d(),G("matTooltip",r.newArticleTipTxt),d(4),C(r.newArticleTxt),d(),G("matTooltip",r.replyTipTxt),d(4),C(r.replyTxt),d(4),N(" ",r.descriptionDisplay.substring(0,100)," "),d(),Q(r.descriptionDisplay.length>100?44:-1),d(),N(" ",r.descriptionDisplay,`
`);}},dependencies:[j,ke,Oe,Je,Ct,Ft,ce,ye,Si,on,Wi,J_,Db,mc,_u,vu,pc,hc,bu,ia,cr,kr,ta],styles:[".character-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.character-header[_ngcontent-%COMP%]   .read-only-tool[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.character-header[_ngcontent-%COMP%]   .name-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-start;width:100%}.character-header[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%], .character-header[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{width:350px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.character-header[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{justify-content:flex-end}.character-header[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:5px}.character-header[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{justify-content:flex-start;margin-left:10px}"]});}}return t;})();var Eb=(()=>{class t extends Cb{static{this.Sid=0;}onWindowScroll(e){let i=this;function r(o){let a=o.getBoundingClientRect(),s=window.innerHeight||document.documentElement.clientHeight,l=window.innerWidth||document.documentElement.clientWidth,c=a.top<=s&&a.bottom>=0,h=a.left<=l&&a.right>=0;return c&&h;}i.prompterContainer||(i.prompterContainer=document.getElementById("prompter-container-"+i.id)),i.prompterContainer&&(r(i.prompterContainer)?i.showJumpToButton=!1:i.showJumpToButton=!0);}get messages(){return this._messages;}set messages(e){this._messages=e;}constructor(e){super(),this.changeDetector=e,this.prompterContainer=null,this.dynamicConfig=rt(!1),this.inProgress=!1,this.allowNavigation=!1,this.jumpToTxt="Jump to Bottom",this._messages=[],this.newEnabled=!1,this.refreshEnabled=!1,this.shareEnabled=!1,this.saveEnabled=!1,this.showJumpToButton=!1,this.router=p(Xe),this.route=p(An),this.dialog=p(ni),this.service=p(fe),this.wp=p(ra),this.navService=p(oa),this._snackBar=p(_n),this.site=p(pt),this.user=p(Nn),this.drupal=p(qs),this.unsavedChanges=p(Fn),this.titleService=p(Tn),this.characterService=p(Da),this.chatService=p(Gr),this.cache=p(Bs),this.id=++t.Sid;}ngOnInit(){this.allowNavigation=this.site.allowNavigation();}ngAfterViewInit(){let e="/chat/",i="/image/";this.router.events.pipe(Ie(r=>r instanceof jn)).subscribe(r=>{let o=this.router.url;(o.startsWith(e)||o.startsWith(i))&&this.activate();}),this.router.events.pipe(Ie(r=>r instanceof Er)).subscribe(()=>{let r=this.router.url;(r.startsWith(e)||r.startsWith(i))&&this.deactivate();}),this.activate();}activate(){this.showJumpToButton=!1;}deactivate(){console.log("deactivated",this.config.endpoint.toString());}setConfig(e,i=!1){console.log("config is ",e,"dynamic",i);let r=this;this.config=e;let o=[];i||(this.config.card=this.navService.imageCards.find(a=>a.routeKey===this.config.endpoint),this.config.card?o=this.navService.imageCards:(this.config.card=this.navService.textCards.find(a=>a.routeKey===this.config.endpoint),this.config.card?o=this.navService.textCards:console.log("card not found"))),this.changeDetector.detectChanges(),this.pageHeader&&(this.pageHeader.title=this.config.card?.title,this.pageHeader.icon=this.config.card?.icon,this.pageHeader.breadcrumbs=[{name:"Home",icon:"home",href:"/"},{name:this.router.url.indexOf("image/")>0?"Images":"Chat",href:this.router.url.indexOf("image/")>0?"/image":"/chat",icon:this.router.url.indexOf("image/")>0?"image":"question_answer"}],this.pageHeader.menu.cards=o,this.pageHeader.help=this.config.card?.description||"",this.pageHeader.changeDetector.detectChanges()),this.viewer.config=e,this.titleService.setTitle("Chatbot - "+this.config.card?.title),this.config.features.autoSend.enabled&&setTimeout(()=>{r.autoSendMessage();}),setTimeout(()=>{console.log("handle params"),this.handleParams();});}autoSendMessage(){this.setInProgress(!0);let e=this.config.message;if(this.config.features.autoSend.addUserName){let r=this.service.user.user;if(console.log("user is ",r),r){e=this.config.features.autoSend.intro||"";let o=" "+"My name is ";e+=o+r.name+".";}}let i={userId:Tt.human,endpoint:this.config.endpoint,body:e,bodyOriginal:e,imageCount:0,imageSize:"",addToViewer:this.config.features.autoSend.addToViewer,progressMessage:"Please wait."};i.id=++jt.sNextID,this.config.message="",this.sendMessage(i);}setInProgress(e){this.inProgress=e,this.viewer.inProgress=e,this.prompter.inProgress=e,this.changeDetector.detectChanges(),this.viewer.changeDetector.detectChanges();}getInProgress(){return this.inProgress;}handleParams(){}uploadEvent(e){}saveImage(e){}copyToClipboard(e){navigator.clipboard.writeText(e),this._snackBar.open("Text copied to clipboard.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});}copyToPrompt(e){this.prompter.config.message=e,this._snackBar.open("Text copied to prompt.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});}saveImagePrompt(e){let i=this;function r(){let a="Saving prompt...";return i.dialog.open(Hd,{width:"250px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{msg:a,msg2:""}});}let o=r();this.drupal.getCsrfToken().subscribe(a=>{i.drupal.postPrompt(a,e).subscribe(s=>{o.close(),this._snackBar.open("Prompt saved!","",{duration:3e3,panelClass:["custom-snack","custom-snack-success"]});},s=>{o.close(),console.log("error in posting:",s);});},a=>{console.log("csrf err is ",a),o.close(),this._snackBar.open("Error encountered: ",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]});}),this._snackBar.open("Image prompt saved.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});}createImageFromText(e){let i=encodeURI(e.body);e.d3RequestData?this.router.navigate(["/image/generate",e.d3RequestData]):this.router.navigate(["/image/generate",{msg:i,count:e.imageCount,size:e.imageSize}]);}ngOnDestroy(){}convertConversation(){let e=this.user.user.nicename||this.user.user.name,i=[];return this.messages.forEach(r=>{let o='<div class="human-label" style="font-weight:bold">'+e+":</div> ";r.userId==1&&(o='<div class="ai-label" style="font-weight:bold">'+"Chatbot"+":</div> ");let a=this.viewer.findStreamedMessage(r.id);console.log("streamed message:",a),a?o+=a?.htmlString:o+=r.body,i.push(o);}),i;}openProgressDialog(e){let i=e;this.dialog.open(Hd,{width:"250px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{msg:i,msg2:""}});}share(){let e=this;console.log("share");let i={msg:"",msg2:""};this.service.openShareDialog(i).afterClosed().subscribe(o=>{if(!o){console.log("dialog closed with no data.");return;}console.log("dialog result is ",o),this.openProgressDialog("Sharing conversation...");let a=this.user.user.wpToken,s=this.convertConversation();s.push("This conversation is from: "+o.data.email),s.push("The comment is: "+o.data.comment);let l="Message from "+o.data.email;e.wp.createPost(a,l,s,"").pipe(de(1)).subscribe({next(c){console.log("share success: ",c),e.dialog.closeAll(),e._snackBar.open("Conversation shared!","",{duration:3e3,panelClass:["custom-snack","custom-snack-success"]});},error(c){console.log("error encountered: ",c),e.dialog.closeAll(),e._snackBar.open("Error encountered: ",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]});},complete(){console.log("share complete");}});});}save(){let e=this,i=this.cache.get("autoSave")||"off",r=!0;i!=="off"&&(r=!1),r&&this.openProgressDialog("Saving conversation...");let o=this.user.user.wpToken,a=this.convertConversation(),s=this.service.truncateString(e.messages[0].body,128),l="pending";i==="publish"&&(l="publish"),e.wp.createPost(o,s,a,this.config.updateId,l).pipe(de(1)).subscribe({next(c){console.log("save success: ",c),e.config.updateId=c.id,console.log("save id: ",e.config.updateId),e.config.updateId=c.id.toString(),e.saveEnabled=!1,e.dialog.closeAll(),console.log("auto save: ",i);let h="Conversation saved!";i==="on"?h="Conversation saved as pending!":i==="publish"&&(h="Conversation published!"),e._snackBar.open(h,"",{duration:3e3,panelClass:["custom-snack","custom-snack-success"]});},error(c){console.log("error encountered: ",c),e.dialog.closeAll(),e._snackBar.open("Error encountered: ",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-error"]});},complete(){console.log("save complete");}});}refresh(){this.messages=[],this.refreshEnabled=!1,this.shareEnabled=!1,this.saveEnabled=!1,this.unsavedChanges.unset(this.config.endpoint.toString()),this.titleService.setTitle("Chatbot - "+this.config.card?.title),this.autoSendMessage();}newConversation(){this.messages=[],this.newEnabled=!1,this.shareEnabled=!1,this.saveEnabled=!1,this.unsavedChanges.unset(this.config.endpoint.toString()),this.titleService.setTitle("Chatbot - "+this.config.card?.title);}showPrompts(){let e=this;document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this.service.openPromptsDialog(e.config.features.prompts.imagePrompt,this.config?.character).afterClosed().subscribe(r=>{if(!r)return;let o=r.prompt;this.prompter.config.message=o.Message,this._snackBar.open("Selected prompt has been inserted.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});});}scrollToBottom(){this.navService.scrollToBottom();}delayedScrollToBottom(e=1e3){setTimeout(()=>{this.navService.scrollToBottom();},e);}createVariations(e){if(!e.images){console.warn("image not found");return;}let i=encodeURI(e.images[0]);console.log("create variations",e),this.router.navigate(["/image/variations",{img:i,count:e.imageCount,size:e.imageSize}]);}createEdits(e){if(!e.images){console.warn("image not found");return;}let i=encodeURI(e.images[0]);console.log("create edits",e),this.router.navigate(["/image/edit",{editImg:i,imageSize:e.imageSize}]);}sendMessage(e,i=Tt.ai){let r=this;e.addToViewer!==!1&&this.messages.push(e),this.setInProgress(!0);let o={path:this.router.url,description:"Widget changed"};this.unsavedChanges.set(this.config.endpoint.toString(),o);let a=r.messages.slice(0,r.messages.length-1),s="";if(r.site.demoMode())s=this.characterService.makeCharacterDemoInstructions(this.config);else if(this.config.instructions)s=this.config.instructions;else if(this.config?.character)switch(s="Your name is "+this.config.character.name+". ",r.characterHeader.toggleGroup.value){case"description":s+=this.config.character.description;break;case"professional":s+=this.config.character.professionalDescription;break;default:s="You are a helpful assistant.";}console.log("instructions: ",s);let l="Chat: ",c="";if(a.length?c=a[0].body:c=e.body,l+=this.service.truncateString(c,128),this.titleService.setTitle(l),this.config.features.streamedResponses){r.sendStreamedMessage(e,a,s);return;}console.error("invalid response type");}sendStreamedMessage(e,i,r){let o=this;console.log("send streamed message: ",e);let a={userId:Tt.ai,endpoint:this.config.endpoint,body:"",bodyOriginal:""};a.id=++jt.sNextID,this.messages.push(a),this.viewer.changeDetector.detectChanges();let s=this.viewer.findStreamedMessage(a.id);if(!s){console.log("Unable to find streamed message");return;}let l={userId:e.userId,body:e.bodyOriginal,instructions:r||"",conversation:i},c=!1;this.chatService.storeData(l).subscribe({next(h){let g=h.message,b=o.site.site.apiHost+"/stream/"+g;o.evtSource&&(o.evtSource?.close(),delete o.evtSource),o.evtSource=new EventSource(b),o.evtSource.onmessage=function(_){let x=new RegExp("__chatbot_br__","g"),T=_.data,L=T.replace(x,`
`),q=T.replace(x,`
`);!L&&!c?(console.log("stream initialized"),c=!0):L==="__chatbot_end__"?setTimeout(()=>{console.log("close"),o.evtSource.close(),o.newEnabled=!0,o.refreshEnabled=!0,o.shareEnabled=!0,o.saveEnabled=!0,o.setInProgress(!1),o.scrollToBottom(),o.prompter.prompterinput&&o.prompter.prompterinput.nativeElement.focus(),o.changeDetector.detectChanges(),(o.cache.get("autoSave")||"off")!=="off"&&o.save();},500):(s?.addToken(q),a.body+=L,a.bodyOriginal+=L,o.viewer.changeDetector.detectChanges(),o.scrollToBottom());};},error(h){console.error("An error occurred:",h);},complete(){console.log("Done.");}});}static{this.ɵfac=function(i){return new(i||t)(D(pe));};}static{this.ɵdir=z({type:t,selectors:[["cb-messenger"]],viewQuery:function(i,r){if(i&1&&($(su,5),$(gu,5),$(_i,5),$(yu,5)),i&2){let o;R(o=O())&&(r.prompter=o.first),R(o=O())&&(r.viewer=o.first),R(o=O())&&(r.pageHeader=o.first),R(o=O())&&(r.characterHeader=o.first);}},hostBindings:function(i,r){i&1&&S("scroll",function(a){return r.onWindowScroll(a);},!1,nd);},inputs:{dynamicConfig:[1,"dynamicConfig"]},features:[W]});}}return t;})();var Lte=t=>({display:t});function Vte(t,n){t&1&&(m(0,"div",1),w(1,"mat-spinner",2),u()),t&2&&(d(),v("diameter",40));}function zte(t,n){if(t&1&&w(0,"cb-character-header",5),t&2){let e=y(2);v("character",e.config.character);}}function Bte(t,n){if(t&1){let e=K();m(0,"div",3)(1,"button",4),S("click",function(){k(e);let r=y();return M(r.scrollToBottom());}),m(2,"mat-icon"),f(3,"arrow_downward"),u()()(),w(4,"cb-page-header",5),I(5,zte,1,1,"cb-character-header",5),m(6,"div",6)(7,"cb-viewer",7),S("createVariationsEvent",function(r){k(e);let o=y();return M(o.createVariations(r));})("createEditsEvent",function(r){k(e);let o=y();return M(o.createEdits(r));})("copyToClipboardEvent",function(r){k(e);let o=y();return M(o.copyToClipboard(r));})("copyToPromptEvent",function(r){k(e);let o=y();return M(o.copyToPrompt(r));})("saveImageEvent",function(r){k(e);let o=y();return M(o.saveImage(r));})("saveImagePromptEvent",function(r){k(e);let o=y();return M(o.saveImagePrompt(r));})("createImageFromTextEvent",function(r){k(e);let o=y();return M(o.createImageFromText(r));}),u(),m(8,"div",8)(9,"cb-prompter",9),S("sendMessageEvent",function(r){k(e);let o=y();return M(o.sendMessage(r));})("saveEvent",function(){k(e);let r=y();return M(r.save());})("shareEvent",function(){k(e);let r=y();return M(r.share());})("newEvent",function(){k(e);let r=y();return M(r.newConversation());})("refreshEvent",function(){k(e);let r=y();return M(r.refresh());})("showPromptsEvent",function(){k(e);let r=y();return M(r.showPrompts());})("uploadCompleteEvent",function(r){k(e);let o=y();return M(o.uploadEvent(r));}),u()()();}if(t&2){let e=y();v("ngStyle",Ue(12,Lte,e.showJumpToButton?"block":"none")),d(),ee("aria-label",e.jumpToTxt),d(3),v("character",e.config.character),d(),Q(e.config.character?5:-1),d(2),v("messages",e.messages),d(),nr("id","prompter-container-",e.id,""),d(),v("config",e.config)("newEnabled",e.newEnabled)("refreshEnabled",e.refreshEnabled)("shareEnabled",e.shareEnabled)("saveEnabled",e.saveEnabled);}}var xt=(()=>{class t extends Eb{constructor(e){super(e),this.changeDetector=e;}setConfig(e,i=!1){super.setConfig(e,i);}ngOnInit(){super.ngOnInit();}ngAfterViewInit(){super.ngAfterViewInit();let e=this.route.snapshot.paramMap.get("id");e&&this.readCharacter(e);}readCharacter(e){let i=this;this.characterService.fetchCharacterBySlug(e).pipe(de(1)).subscribe({next(r){console.log("character result",r);let o=i.characterService.loadCharacter(r.data[0]);i.config.character=o,i.changeDetector.detectChanges(),i.config?.character?(i.pageHeader.gravatarEmail=i.config.character.email,i.pageHeader.title="",i.characterHeader.title=i.config.character.name):console.log("character not found");},error(r){console.log("error encountered: ",r);},complete(){console.log("complete");}});}handleParams(){let e=this.route.snapshot.params;if(console.log("chat handle params snapshot",e),e.id){console.log("reading character from params"),this.readCharacter(e.id);return;}if(e.msg){this.handleCreateChatParams(e.msg);return;}}handleCreateChatParams(e){this._snackBar.open("Creating chat conversation from message.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});let i={userId:Tt.human,endpoint:this.config.endpoint,body:decodeURI(e),bodyOriginal:decodeURI(e)};i.id=++jt.sNextID,this.sendMessage(i),this.router.navigate(["/chat/ask-me-anything"],{replaceUrl:!0});}static{this.ɵfac=function(i){return new(i||t)(D(pe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-chat-messenger"]],features:[W],decls:3,vars:3,consts:[[1,"messenger",3,"id"],[1,"spinner-container"],["mode","indeterminate",3,"diameter"],[1,"jump-to-bottom",3,"ngStyle"],["color","primary","mat-mini-fab","",3,"click"],[3,"character"],[1,"messenger-container"],[3,"createVariationsEvent","createEditsEvent","copyToClipboardEvent","copyToPromptEvent","saveImageEvent","saveImagePromptEvent","createImageFromTextEvent","messages"],[1,"prompter-container",3,"id"],[3,"sendMessageEvent","saveEvent","shareEvent","newEvent","refreshEvent","showPromptsEvent","uploadCompleteEvent","config","newEnabled","refreshEnabled","shareEnabled","saveEnabled"]],template:function(i,r){i&1&&(m(0,"div",0),I(1,Vte,2,1,"div",1)(2,Bte,10,14),u()),i&2&&(nr("id","messenger-",r.id,""),d(),Q(r.config?2:1));},dependencies:[j,gn,su,gu,Wi,vt,aa,ce,A0,Je,js,ke,Oe,_i,yu,Hi,ji],styles:[".widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}"]});}}return t;})();var jte=["myCanvas"],Hte=["myOutputCanvas"],$te=["cropTool"],Ute=["imageContainer"],qte=["cropContainer"],wE=(()=>{class t{onScroll(){this.resizeCanvas(),setTimeout(()=>{this.drawImage();});}static{this.SId=0;}constructor(e){this.service=e,this.cropEvent=new V(),this.MIN_WIDTH=512,this.url=rt.required(),this.imageHeight=rt.required(),this.imageWidth=rt.required(),this.width=0,this.height=0,this.sourceBox=null,this.moving=!1,this.resizing=!1,this.loaded=!1,this.img=new Image(),this.startPosition={x:0,y:0},this.origin_corner=0,this.cornerStartPosition={x:0,y:0},this.id=++t.SId;}ngOnInit(){}ngAfterViewInit(){let e=this;this.cropToolElement=this.cropTool.nativeElement,this.imageContainerElement=this.imageContainer.nativeElement,this.cropContainerElement=this.cropContainer.nativeElement,this.context=this.canvas.nativeElement.getContext("2d"),(!this.context||!this.canvas)&&console.log("unable to init canvas",this.canvas,this.context),this.outputContext=this.outputCanvas.nativeElement.getContext("2d"),(!this.outputContext||!this.outputCanvas)&&console.log("unable to init output canvas",this.outputCanvas,this.outputContext),window.addEventListener("mousemove",this.cornerMousemove.bind(this)),window.addEventListener("touchmove",this.cornerMousemove.bind(this)),window.addEventListener("mouseup",this.cornerMouseup.bind(this)),window.addEventListener("touchend",this.cornerMouseup.bind(this)),this.img.crossOrigin="Anonymous",this.img.onload=function(){e.context?.drawImage(e.img,0,0,e.imageWidth(),e.imageHeight(),0,0,e.width,e.height),e.loaded=!0,e.resizeCanvas(),e.centerCropTool(),setTimeout(()=>{e.drawImage(),e.checkSize();},100);},this.img.src=this.url();}resizeCanvas(){let e=window.innerWidth,i=256,r=768,a=e-200*2;a<i?a=i:a>r&&(a=r),this.width=a,this.height=this.width/this.aspectRatio;}drawImage(){this.context?.clearRect(0,0,this.width,this.height),this.sourceBox?this.context?.drawImage(this.img,this.sourceBox.left,this.sourceBox.top,this.sourceBox.sideLength,this.sourceBox.sideLength,0,0,this.width,this.height):this.context?.drawImage(this.img,0,0,this.imageWidth(),this.imageHeight(),0,0,this.width,this.height);}centerCropTool(){let e=this.cropToolElement.style;e.top=this.service.numToPx(this.height*.25),e.left=this.service.numToPx(this.width*.25),this.width>=this.height?(e.width=this.service.numToPx(this.height/2),e.height=this.service.numToPx(this.height/2)):(e.width=this.service.numToPx(this.width/2),e.height=this.service.numToPx(this.width/2));}getCropToolCropSquare(){let e=this.cropToolElement.style;return{top:this.service.pxToNum(e.top),left:this.service.pxToNum(e.left),sideLength:this.service.pxToNum(e.height)};}imageIsSquare(){return this.imageHeight()===this.imageWidth();}getScale(){return this.width/this.imageWidth();}isCropped(){return!!this.sourceBox;}crop(){if(this.isCropped()){this.cropAgain(),this.checkSize();return;}let e=this.getCropToolCropSquare(),i=this.getScale();this.sourceBox={top:e.top/i,left:e.left/i,sideLength:e.sideLength/i},this.aspectRatio=1,this.resizeCanvas(),setTimeout(()=>{this.drawImage(),this.checkSize();});}cropAgain(){let e={left:this.sourceBox.left,top:this.sourceBox.top,sideLength:this.sourceBox.sideLength},i=this.getCropToolCropSquare(),r=this.getScale(),o=e.sideLength/this.imageWidth();o/=r,this.sourceBox={left:e.left+i.left*o,top:e.top+i.top*o,sideLength:e.sideLength*(i.sideLength/this.width)},this.aspectRatio=1,this.resizeCanvas(),setTimeout(()=>{this.drawImage();});}undoCrop(){this.sourceBox=null,this.aspectRatio=this.imageWidth()/this.imageHeight(),this.resizeCanvas(),this.centerCropTool(),setTimeout(()=>{this.drawImage(),this.checkSize();});}getPoint(e){return{x:e.of��fsetX,y:e.offsetY};}checkSize(){let e=this.toBase64(),a=atob(e).length/1024/1024;this.cropEvent.emit({sourceBox:this.sourceBox,size:a});}toBase64(){let e=this.outputCanvas.nativeElement;if(this.sourceBox){let r=this.sourceBox.sideLength;e.setAttribute("height",this.service.numToPx(r)),e.setAttribute("width",this.service.numToPx(r)),this.outputContext?.clearRect(0,0,r,r),this.outputContext?.drawImage(this.img,this.sourceBox.left,this.sourceBox.top,r,r,0,0,r,r);}else{let r=this.imageWidth();e.setAttribute("width",this.service.numToPx(r));let o=this.imageHeight();e.setAttribute("height",this.service.numToPx(o)),this.outputContext?.clearRect(0,0,r,o),this.outputContext?.drawImage(this.img,0,0,r,o,0,0,r,o);}let i=this.outputCanvas.nativeElement.toDataURL();return i=i.replace(/^data:image\/(png|jpg);base64,/,""),i;}mousedown(e){this.moving=!0,this.resizing=!1,e.stopImmediatePropagation(),e.preventDefault(),this.startPosition=this.getTouchPosition(e),console.log("touchstart position:",this.startPosition);}mouseup(e){this.moving=!1,this.resizing=!1;}mouseleave(e){this.moving=!1,this.resizing=!1;}getTouchPosition(e){if(e.type!=="touchstart"&&e.type!=="touchmove")return{x:0,y:0};var i=this.canvas.nativeElement.getBoundingClientRect();let r=e.touches[0].clientX-i.left,o=e.touches[0].clientY-i.top;return{x:r,y:o};}mousemove(e){if(!this.moving)return;let i=0,r=0;if(e.type==="touchmove"){let c=this.getTouchPosition(e);i=c.x-this.startPosition.x,r=c.y-this.startPosition.y;}else i=e.movementX,r=e.movementY;this.startPosition=this.getTouchPosition(e);let o=this.getCropToolCropSquare(),a=this.cropToolElement.style,s=a.top,l=a.left;s.endsWith("px")&&(s=s.substring(0,s.length-2)),l.endsWith("px")&&(l=l.substring(0,l.length-2)),s=parseInt(s,10),r&&(s+=r,s>this.height-o.sideLength&&(s=this.height-o.sideLength),s<0&&(s=0),s===0?s="0":s=s+"px",a.top=s),l=parseInt(l,10),i&&(l+=i,l>this.width-o.sideLength&&(l=this.width-o.sideLength),l<0&&(l=0),l===0?l="0":l=l+"px",a.left=l);}cornerMouseup(e){this.resizing=!1,this.moving=!1;}cornerMouseleave(e){this.resizing=!1,this.moving=!1;}cornerMousedown(e,i){this.resizing=!0,this.moving=!1,e.stopImmediatePropagation(),e.preventDefault(),this.origin_corner=i,this.cornerStartPosition=this.getCornerTouchPosition(e);}getCornerTouchPosition(e){if(e.type!=="touchstart"&&e.type!=="touchmove")return{x:0,y:0};var i=this.canvas.nativeElement.getBoundingClientRect();let r=e.touches[0].clientX-i.left,o=e.touches[0].clientY-i.top;return{x:r,y:o};}cornerMousemove(e){if(!this.resizing)return;let i=0,r=0;if(e.type==="touchmove"){let l=this.getCornerTouchPosition(e);i=l.x-this.cornerStartPosition.x,r=l.y-this.cornerStartPosition.y;}else i=e.movementX,r=e.movementY;this.cornerStartPosition=this.getCornerTouchPosition(e);let o=this.cropToolElement.style,a=this.getCropToolCropSquare(),s={top:a.top,left:a.left,sideLength:a.sideLength};if(this.origin_corner===1){let l={x:a.left+a.sideLength,y:a.top+a.sideLength};s.top+=r,s.left+=i,s.sideLength=Math.abs(l.x-s.left);}else if(this.origin_corner===2){let l={x:a.left,y:a.top+a.sideLength},c={x:a.left+a.sideLength+i,y:a.top+r};s.top=c.y,s.sideLength=Math.abs(l.x-c.x);}else if(this.origin_corner===3){let l={x:a.left+a.sideLength,y:a.top},c={x:a.left+i,y:a.top+a.sideLength+r};s.top=l.y,s.left=c.x,s.sideLength=Math.abs(l.y-c.y);}else if(this.origin_corner===4){let l={x:a.left+a.sideLength+i,y:a.top+a.sideLength+r};s.sideLength=Math.abs(l.y-a.top);}else console.log("unknown corner");o.top=this.service.numToPx(s.top),o.left=this.service.numToPx(s.left),o.height=this.service.numToPx(s.sideLength),o.width=this.service.numToPx(s.sideLength);}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["image-cropper"]],viewQuery:function(i,r){if(i&1&&($(jte,5),$(Hte,5),$($te,5),$(Ute,5),$(qte,5)),i&2){let o;R(o=O())&&(r.canvas=o.first),R(o=O())&&(r.outputCanvas=o.first),R(o=O())&&(r.cropTool=o.first),R(o=O())&&(r.imageContainer=o.first),R(o=O())&&(r.cropContainer=o.first);}},hostBindings:function(i,r){i&1&&S("resize",function(){return r.onScroll();},!1,nd);},inputs:{url:[1,"url"],imageHeight:[1,"imageHeight"],imageWidth:[1,"imageWidth"],aspectRatio:"aspectRatio"},outputs:{cropEvent:"cropEvent"},decls:15,vars:3,consts:[["cropContainer",""],["imageContainer",""],["cropTool",""],["myCanvas",""],["myOutputCanvas",""],[1,"crop-container"],[1,"image-container"],[1,"crop-tool",2,"top","0px","left","0px","width","100px","height","100px",3,"mousedown","touchstart","mousemove","touchmove","mouseup","touchend"],[1,"circle","corner-top-left",3,"mousedown","touchstart"],[1,"circle","corner-top-right",3,"mousedown","touchstart"],[1,"circle","corner-bottom-left",3,"mousedown","touchstart"],[1,"circle","corner-bottom-right",3,"mousedown","touchstart"],[1,"hidden-image",2,"display","none",3,"src"],[1,"crop-canvas",3,"width","height"],[1,"output-canvas",2,"display","none"]],template:function(i,r){if(i&1){let o=K();m(0,"div",5,0)(2,"div",6,1)(4,"div",7,2),S("mousedown",function(s){return k(o),M(r.mousedown(s));})("touchstart",function(s){return k(o),M(r.mousedown(s));})("mousemove",function(s){return k(o),M(r.mousemove(s));})("touchmove",function(s){return k(o),M(r.mousemove(s));})("mouseup",function(s){return k(o),M(r.mouseup(s));})("touchend",function(s){return k(o),M(r.mouseup(s));}),m(6,"div",8),S("mousedown",function(s){return k(o),M(r.cornerMousedown(s,1));})("touchstart",function(s){return k(o),M(r.cornerMousedown(s,1));}),u(),m(7,"div",9),S("mousedown",function(s){return k(o),M(r.cornerMousedown(s,2));})("touchstart",function(s){return k(o),M(r.cornerMousedown(s,2));}),u(),m(8,"div",10),S("mousedown",function(s){return k(o),M(r.cornerMousedown(s,3));})("touchstart",function(s){return k(o),M(r.cornerMousedown(s,3));}),u(),m(9,"div",11),S("mousedown",function(s){return k(o),M(r.cornerMousedown(s,4));})("touchstart",function(s){return k(o),M(r.cornerMousedown(s,4));}),u()(),w(10,"img",12)(11,"canvas",13,3),u()(),w(13,"canvas",14,4);}i&2&&(d(10),v("src",r.url(),Fr),d(),v("width",r.width)("height",r.height));},dependencies:[j,gi],styles:[".crop-container[_ngcontent-%COMP%]{text-align:center;margin:0 auto;position:relative}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{position:relative;margin:0 auto}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .crop-tool[_ngcontent-%COMP%]{position:absolute;background-color:transparent;cursor:move;border:5px solid var(--mat-sys-on-primary-container)}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .crop-tool[_ngcontent-%COMP%]   .circle[_ngcontent-%COMP%]{position:absolute;width:24px;height:24px;border-radius:50%;z-index:1000;box-sizing:border-box;background-color:var(--mat-sys-on-primary-container)}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .crop-tool[_ngcontent-%COMP%]   .corner-top-left[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .crop-tool[_ngcontent-%COMP%]   .corner-top-right[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize;background-color:var(--mat-sys-on-primary-container)}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .crop-tool[_ngcontent-%COMP%]   .corner-bottom-left[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}.crop-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .crop-tool[_ngcontent-%COMP%]   .corner-bottom-right[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}"]});}}return t;})();var DE=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.cropTxt="Crop",this.squareTxt="Square",this.notSquareTxt="Not Square",this.originalTxt="Original",this.undoCropTxt="Reset",this.closeEnabled=!0,this.directions="Directions: Chatbot needs a square image that's less than 4MB.",this.directions2="Cropping may be required. Current image is ",this.aspectRatio=0,this.initialized=!1,this.imageSize=0;}ngOnInit(){console.log("dialog data",this.data),this.imageWidth=this.data.width,this.imageHeight=this.data.height,this.aspectRatio=this.imageWidth/this.imageHeight,console.log("actual width, actual height, aspect ratio:"),console.log(this.imageWidth,this.imageHeight,this.aspectRatio);}ngAfterViewInit(){setTimeout(()=>{this.initialized=!0;});}cropEvent(e){console.log("crop event",e),this.imageSize=e.size.toFixed(2);}continue(){this.dialogRef.close({base64Img:this.cropper.toBase64()});}crop(){this.cropper.crop();}undoCrop(){this.cropper.undoCrop();}isSquared(){return this.initialized?!this.cropper||this.cropper.isCropped()?!0:this.cropper.imageIsSquare():!1;}static{this.ɵfac=function(i){return new(i||t)(D(At),D(Yt));};}static{this.ɵcmp=E({type:t,selectors:[["crop-dialog"]],viewQuery:function(i,r){if(i&1&&$(wE,5),i&2){let o;R(o=O())&&(r.cropper=o.first);}},decls:34,vars:22,consts:[[1,"modal-content"],["mat-dialog-title",""],["mat-dialog-content","",2,"max-height","90vh"],[1,"crop-outer"],[1,"crop-inner"],[1,"toolbar-container"],[1,"example-spacer"],["mat-raised-button","",3,"click"],[3,"cropEvent","url","imageWidth","imageHeight","aspectRatio"],[1,"directions"],["mat-dialog-actions","",3,"align"],["mat-raised-button","","mat-dialog-close","",3,"disabled"],["mat-raised-button","",3,"click","disabled"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"h1",1),f(2),u(),m(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"mat-toolbar"),w(8,"span",6),m(9,"button",7),S("click",function(){return r.crop();}),m(10,"mat-icon"),f(11,"crop"),u(),f(12),u(),m(13,"button",7),S("click",function(){return r.undoCrop();}),m(14,"mat-icon"),f(15,"undo"),u(),f(16),u(),w(17,"span",6),u()(),m(18,"image-cropper",8),S("cropEvent",function(a){return r.cropEvent(a);}),u()(),m(19,"div",9),f(20),m(21,"span"),f(22),u(),m(23,"span"),f(24),u(),f(25," and is "),m(26,"span"),f(27),u(),f(28,". "),u()()(),m(29,"div",10)(30,"button",11),f(31," Cancel "),u(),m(32,"button",12),S("click",function(){return r.continue();}),f(33," Continue "),u()()()),i&2&&(d(2),gm(" Crop Image (",r.data.width,"x",r.data.height," ",r.originalTxt,") "),d(10),N(" ",r.cropTxt," "),d(4),N(" ",r.undoCropTxt," "),d(2),v("url",r.data.url)("imageWidth",r.imageWidth)("imageHeight",r.imageHeight)("aspectRatio",r.aspectRatio),d(2),N(" ",r.directions," "),d(2),C(r.directions2),d(),bt(r.isSquared()?"success":"warn"),d(),C(r.isSquared()?r.squareTxt:r.notSquareTxt),d(2),bt(r.imageSize<4?"success":"warn"),d(),N("",r.imageSize," MB"),d(2),v("align","center"),d(),v("disabled",!r.closeEnabled),d(2),v("disabled",!r.isSquared()));},dependencies:[vt,Ii,ri,di,oi,ce,ye,aa,j,_o,wE,on,rn,ke,Oe],styles:["mat-dialog-title[_ngcontent-%COMP%]{padding-left:20px}.directions[_ngcontent-%COMP%]{max-width:512px;font-size:small;line-height:12px;margin:0 auto}.crop-outer[_ngcontent-%COMP%]{text-align:center}.crop-outer[_ngcontent-%COMP%]   .crop-inner[_ngcontent-%COMP%], .crop-outer[_ngcontent-%COMP%]   .toolbar-container[_ngcontent-%COMP%]{margin:0 auto}.crop-outer[_ngcontent-%COMP%]   .toolbar-container[_ngcontent-%COMP%]   mat-toolbar[_ngcontent-%COMP%]{font-size:medium}.crop-outer[_ngcontent-%COMP%]   .toolbar-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:10px;width:150px;height:45px}"]});}}return t;})();var kb=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.imageService=p(ns),this.saveTxt="Save Image",this.saveImageTxt="Save",this.closeTxt="Cancel",this.qualityTxt="Quality",this.highestTxt="Highest",this.lowestTxt="Lowest",this.compressionTxt="Set compression level and save.  Smaller images mean your web pages will load faster.",this.sizeTxt="Size",this.disabled=!1,this.max=100,this.min=0,this.showTicks=!1,this.step=1,this.thumbLabel=!0,this.value=50,this.size=Zi(""),this.sizeSuffix=Zi("KB");}ngOnInit(){this.url=this.data.url,console.log("url is ",this.url);}ngAfterViewInit(){this.getSize();}cancelRequest(){this.imageService.cancelRequest();}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe();}formatLabel(e){return`${e}%`;}setSize(e){let i=e/1024;this.size.set(i.toPrecision(4));}getSize(){let e=this;this.subscription=this.imageService.getSize(this.url,this.value).subscribe(i=>{e.setSize(i.image_size);},i=>{console.log("Error:",i);});}submit(){this.dialogRef.close({data:this.value});}valueChange(){this.getSize();}static{this.ɵfac=function(i){return new(i||t)(D(At),D(Yt));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-compression"]],inputs:{url:"url"},decls:21,vars:17,consts:[["slider",""],["mat-dialog-title",""],["mat-dialog-content",""],[1,"example-label-container"],["id","example-name-label",1,"example-name-label"],[1,"example-value-label"],[1,"example-margin",3,"disabled","max","min","step","discrete","showTickMarks","displayWith"],["matSliderThumb","",3,"valueChange","ngModelChange","ngModel"],[1,"size-container"],["mat-dialog-actions","","align","center"],["mat-button","","mat-dialog-close",""],["mat-raised-button","",3,"click"]],template:function(i,r){if(i&1){let o=K();m(0,"h1",1),f(1),u(),m(2,"div",2)(3,"p"),f(4),u(),m(5,"div",3)(6,"label",4),f(7),u(),m(8,"label",5),f(9),u()(),m(10,"mat-slider",6)(11,"input",7,0),S("valueChange",function(){return k(o),M(r.valueChange());}),pi("ngModelChange",function(s){return k(o),Ci(r.value,s)||(r.value=s),M(s);}),u()()(),m(13,"div",8),f(14),u(),m(15,"div",9)(16,"button",10),f(17),u(),m(18,"button",11),S("click",function(){return k(o),M(r.submit());}),f(19),u()(),w(20,"br");}if(i&2){let o=We(12);d(),C(r.saveTxt),d(3),C(r.compressionTxt),d(3),C(r.qualityTxt),d(2),C(o.value),d(),v("disabled",r.disabled)("max",r.max)("min",r.min)("step",r.step)("discrete",r.thumbLabel)("showTickMarks",r.showTicks)("displayWith",r.formatLabel),d(),mi("ngModel",r.value),d(3),gm("",r.sizeTxt,": ",r.size()," ",r.sizeSuffix(),""),d(3),C(r.closeTxt),d(2),C(r.saveTxt);}},dependencies:[vt,Ii,ri,di,oi,ce,ye,j,kt,nb,ib,Yp,gi,fi,Ti,fo],styles:[".example-h2[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.example-section[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-content:center;align-items:center}.example-margin[_ngcontent-%COMP%]{margin:8px}.example-width[_ngcontent-%COMP%]{max-width:180px;width:100%}.mat-mdc-slider[_ngcontent-%COMP%]{max-width:300px;width:100%}.mat-mdc-card[_ngcontent-%COMP%] + .mat-mdc-card[_ngcontent-%COMP%]{margin-top:8px}.example-result-card[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0 8px}.example-label-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:20px 10px 0;max-width:100%}.example-result-card[_ngcontent-%COMP%]   .example-value-label[_ngcontent-%COMP%]{font-weight:600}mat-slider[_ngcontent-%COMP%]{width:100%;max-width:100%!important}.instructions-container[_ngcontent-%COMP%], .size-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}"]});}}return t;})();var Wte=t=>({display:t});function Gte(t,n){t&1&&(m(0,"div",1),w(1,"mat-spinner",2),u()),t&2&&(d(),v("diameter",40));}function Yte(t,n){if(t&1&&w(0,"cb-character-header",5),t&2){let e=y(2);v("character",e.config.character);}}function Qte(t,n){if(t&1){let e=K();m(0,"div",3)(1,"button",4),S("click",function(){k(e);let r=y();return M(r.scrollToBottom());}),m(2,"mat-icon"),f(3,"arrow_downward"),u()()(),w(4,"cb-page-header",5),I(5,Yte,1,1,"cb-character-header",5),m(6,"div",6)(7,"cb-viewer",7),S("createVariationsEvent",function(r){k(e);let o=y();return M(o.createVariations(r));})("createEditsEvent",function(r){k(e);let o=y();return M(o.createEdits(r));})("copyToClipboardEvent",function(r){k(e);let o=y();return M(o.copyToClipboard(r));})("copyToPromptEvent",function(r){k(e);let o=y();return M(o.copyToPrompt(r));})("saveImageEvent",function(r){k(e);let o=y();return M(o.saveImage(r));})("saveImagePromptEvent",function(r){k(e);let o=y();return M(o.saveImagePrompt(r));})("createImageFromTextEvent",function(r){k(e);let o=y();return M(o.createImageFromText(r));}),u(),m(8,"div",8)(9,"cb-prompter",9),S("sendMessageEvent",function(r){k(e);let o=y();return M(o.sendMessage(r));})("saveEvent",function(){k(e);let r=y();return M(r.save());})("shareEvent",function(){k(e);let r=y();return M(r.share());})("newEvent",function(){k(e);let r=y();return M(r.newConversation());})("refreshEvent",function(){k(e);let r=y();return M(r.refresh());})("showPromptsEvent",function(){k(e);let r=y();return M(r.showPrompts());})("uploadCompleteEvent",function(r){k(e);let o=y();return M(o.uploadEvent(r));}),u()()();}if(t&2){let e=y();v("ngStyle",Ue(12,Wte,e.showJumpToButton?"block":"none")),d(),ee("aria-label",e.jumpToTxt),d(3),v("character",e.config.character),d(),Q(e.config.character?5:-1),d(2),v("messages",e.messages),d(),nr("id","prompter-container-",e.id,""),d(),v("config",e.config)("newEnabled",e.newEnabled)("refreshEnabled",e.refreshEnabled)("shareEnabled",e.shareEnabled)("saveEnabled",e.saveEnabled);}}var Js=(()=>{class t extends Eb{constructor(e,i){super(e),this.changeDetector=e,this.imageService=i;}openDialog(e){return this.dialog.open(kb,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}saveImage(e){let i=this,r={title:"Save Image",msg:"",msg2:"",url:e.url};this.openDialog(r).afterClosed().pipe(de(1)).subscribe({next(a){if(console.log("save image dialog results",a),!a){console.log("no results from dialog");return;}let s=a.data;console.log("compression value is",s),i.imageService.saveToMediaLibrary(e.url,s);},error(a){console.log("error encountered: ",a);},complete(){console.log("dialogref cleared");}});}handleParams(){let e=this.route.snapshot.params;e.msg?this.handleCreateImageParams():e.prompt?this.handleCreateD3ImageParams():e.img?this.handleVariationsParams():e.editImg&&this.handleEditParams();}handleCreateD3ImageParams(){let e=this.route.snapshot.params,i=e.prompt,r=parseInt(e.count,10),o=e.size,a=e.style,s=e.quality,c={prompt:decodeURI(i),count:r,size:o,quality:s,style:a,user:"demo user"};console.log("d3 request data",c),this._snackBar.open("Creating image from message.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});let h={userId:Tt.human,endpoint:this.config.endpoint,body:decodeURI(i),bodyOriginal:decodeURI(i),imageCount:r,imageSize:o,d3RequestData:c};h.id=++jt.sNextID,this.sendMessage(h),this.router.navigate(["/image/generate"],{replaceUrl:!0});}handleCreateImageParams(){let e=this.route.snapshot.params;if(e.msg){let i=e.msg,r=parseInt(e.count,10),o=e.size;this._snackBar.open("Creating image from message.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});let a={userId:Tt.human,endpoint:this.config.endpoint,body:decodeURI(i),bodyOriginal:decodeURI(i),imageCount:r,imageSize:o};a.id=++jt.sNextID,this.sendMessage(a),this.router.navigate(["/image/generate"],{replaceUrl:!0});}}handleVariationsParams(){let e=this.route.snapshot.params;if(e.img){let i=e.img,r=parseInt(e.count,10),o=e.size;this._snackBar.open("Submitting image for variations.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]}),this.createVariationsFromImgUrl(i,r,o),this.router.navigate(["/image/variations"],{replaceUrl:!0});}}handleEditParams(){let e=this.route.snapshot.params,i=e.editImg,r=e.imageSize;console.log("handle edit params",i,r),this._snackBar.open("Image prepared for editing.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});let o={userId:Tt.human,endpoint:this.config.endpoint,body:"",bodyOriginal:"",imageSize:r,images:[i],responseIsEditable:!0};o.id=++jt.sNextID,this.messages.push(o),this.viewer.lockImageMaskers(),this.router.navigate(["/image/edit"],{replaceUrl:!0});}createVariationsFromImgUrl(e,i,r){let o=this;console.log("create variations for ",e,i,r);let a={userId:Tt.human,endpoint:this.config.endpoint,body:"",bodyOriginal:"",images:[e],imageCount:i,imageSize:r};a.id=++jt.sNextID,console.log("human variations msg: ",a),this.messages.push(a),this.viewer.changeDetector.detectChanges();function s(c){let h="Variation";c.imageCount!==1&&(h="Variations");let g="Creating "+" ";c.imageCount+"","Image"+"",h+""+c.imageSize;let b="One moment please.";return o.dialog.open(Hd,{width:"250px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{msg:g,msg2:b}});}let l=s(a);setTimeout(()=>{o.imageService.sendFapiMessage(a,o.messages).subscribe(c=>{console.log("res received",c),c.forEach(g=>{let b={userId:Tt.ai,endpoint:this.config.endpoint,body:"",bodyOriginal:"",imageSize:r,images:[g]};b.id=++jt.sNextID,o.messages.push(b);}),l.close();},c=>{l.close(),console.log("error: "),console.log(c);});},100);}uploadEvent(e){let i=this.site.site.drupalHost+e.rel_path;console.log("upload response: ",e),this.config.features.uploadImagesImageSize===!0?this.uploadForVariations(e,i):this.uploadForEdit(e,i);}uploadForEdit(e,i){let r=this;this.dialog.open(DE,{enterAnimationDuration:"500ms",maxWidth:"95vw",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{url:i,width:e.width,height:e.height}}).afterClosed().subscribe(l=>{if(!l)return;console.log("Dialog result: (base64) ",l);let c={userId:Tt.human,endpoint:this.config.endpoint,body:"",bodyOriginal:"",images:[i],imageCount:1,imageSize:"512x512",croppedBase64:l.base64Img,responseIsEditable:!0};c.id=++jt.sNextID,this.sendMessage(c,Tt.human);});}uploadForVariations(e,i){let r=this;console.log("cropping",e),this.dialog.open(DE,{enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{url:i,width:e.width,height:e.height}}).afterClosed().subscribe(l=>{if(!l)return;console.log("Dialog result: (base64) ",l),this.dialog.open(Ws,{width:"516px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{title:"Create Variations",msg:"Submit your options for variations.",msg2:""}}).afterClosed().subscribe(b=>{if(!b)return;console.log("Dialog result: ",b);let _={userId:Tt.human,endpoint:this.config.endpoint,body:"",bodyOriginal:"",images:[i],imageCount:b.count,imageSize:b.size,croppedBase64:l.base64Img};_.id=++jt.sNextID,this.sendMessage(_);});});}sendMessage(e,i=Tt.ai){let r=this;function o(){let c="",h="",g=e.imageCount===1?" image (":" images (";c="Creating "+e.imageCount+g+e.imageSize+"px)";let b=75;return h=e.body.substring(0,b),e.body.length>b&&(h+=" ... "),r.dialog.open(Hd,{width:"250px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:{msg:c,msg2:h}});}let a=o();if(this.config.endpoint===oe.imageEdit&&this.viewer.imageMaskers.length>0){let c=this.viewer.findLastImageMasker();c?(console.log("masker found",c),e.maskBase64=c.toBase64(),e.images=[c.url()]):console.log("masker not found");}if(e.addToViewer!==!1){this.messages.push(e);let c={path:this.router.url,description:"Image widget changed"};this.unsavedChanges.set(this.config.endpoint.toString(),c);}this.inProgress=!0;let s=r.messages.slice(0,r.messages.length-1),l=null;this.config.instructions&&(l=this.config.instructions),this.imageService.sendFapiMessage(e,s,l).subscribe(c=>{if(!c){let b="Network error encountered.";console.log(b),this._snackBar.open(b,void 0,{duration:8e3,panelClass:["custom-snack","custom-snack-error"]}),this.inProgress=!1,a.close();return;}let h={userId:i,endpoint:this.config.endpoint,body:"",bodyOriginal:"",imageCount:e.imageCount,imageSize:e.imageSize,images:[]};h.id=++jt.sNextID,c.forEach(b=>{h.images?.push(b);}),e.responseIsEditable&&(h.responseIsEditable=!0,h.images.length>1&&console.error("multiple images found")),delete e.maskBase64,delete e.croppedBase64,this.messages.push(h),this.scrollToBottom(),this.delayedScrollToBottom(),this.newEnabled=!0,this.saveEnabled=!0,this.inProgress=!1,a.close();},c=>{console.log("error: ",c),this.inProgress=!1,a.close();});}static{this.ɵfac=function(i){return new(i||t)(D(pe),D(ns));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-messenger"]],features:[W],decls:3,vars:3,consts:[[1,"messenger",3,"id"],[1,"spinner-container"],["mode","indeterminate",3,"diameter"],[1,"jump-to-bottom",3,"ngStyle"],["color","primary","mat-mini-fab","",3,"click"],[3,"character"],[1,"messenger-container"],[3,"createVariationsEvent","createEditsEvent","copyToClipboardEvent","copyToPromptEvent","saveImageEvent","saveImagePromptEvent","createImageFromTextEvent","messages"],[1,"prompter-container",3,"id"],[3,"sendMessageEvent","saveEvent","shareEvent","newEvent","refreshEvent","showPromptsEvent","uploadCompleteEvent","config","newEnabled","refreshEnabled","shareEnabled","saveEnabled"]],template:function(i,r){i&1&&(m(0,"div",0),I(1,Gte,2,1,"div",1)(2,Qte,10,14),u()),i&2&&(nr("id","messenger-",r.id,""),d(),Q(r.config?2:1));},dependencies:[j,gn,su,gu,Wi,vt,aa,ce,A0,Je,js,ke,Oe,_i,yu,Hi,ji],styles:[".widget-help[_ngcontent-%COMP%]{font-size:30px;position:absolute;right:25px;top:-4px;cursor:default}.jump-to-bottom[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:230px;right:0;z-index:1000}.spinner-container[_ngcontent-%COMP%]{margin-top:100px;margin-bottom:100px;display:flex;justify-content:center;align-items:center;height:100%}"]});}}return t;})();var ct=(()=>{class t{constructor(e,i=!0){this.aiService=e,i&&(this.config=this.aiService.createDefaultWidgetConfig());}setMessenger(){this.chatMessenger?this.messenger=this.chatMessenger:this.imageMessenger&&(this.messenger=this.imageMessenger);}ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{this.setMessenger(),this.messenger.setConfig(this.config);});}ngAfterContentInit(){}static{this.ɵfac=function(i){od();};}static{this.ɵdir=z({type:t,viewQuery:function(i,r){if(i&1&&($(xt,5),$(Js,5)),i&2){let o;R(o=O())&&(r.chatMessenger=o.first),R(o=O())&&(r.imageMessenger=o.first);}}});}}return t;})();var EL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.chat,this.config.messageHint="Ask your question here (e.g. How far is it to Pluto?)",this.config.message="",this.config.features.prompts.enabled=!0,this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-chat"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var kL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.ancientPhilosophy,this.config.features.prompt=!1,this.config.features.send=!1,this.config.features.new=!1,this.config.features.save=!0,this.config.features.copyToPrompt=!1,this.config.features.autoSend.enabled=!0,this.config.features.streamedResponses=!0,this.config.instructions=`You are a historian of philosophy.  When I ask you for a quote, you need to provide a quote and other information from a particular     philosopher. The quote can be from an ancient Greek or Roman philosopher, or an ancient Eastern philosopher such as Confucius. Also use quotes from the American TV series "Kung Fu", which aired     from 1972-1975, and starred David Carradine as the main character Kwai Chang Caine.  When using quotes from Kung Fu, be sure to provide information about the particular     episode the quote came from such as the episode name, year, the actors involved, etc. Some of the other philosophers you might choose to draw from include Plato, Aristotle, Lucretius, Socrates,     the Roman stoic philosophers, Marcus Aurelius, Seneca, etc. Represent female philosophers as well as male philosophers.  Do not use well known quotes very often. Do not ever repeat a quote you     have already used.

    Do not provide any other words just provide information about the philosophical quote, the author, and other relevant information. Do not address the user in     any way such as saying "Certainly", "of course" or anything like that.

    If you are told to provide a quote different than the last one, make sure the new quote you provide is from a different philosopher and is about a different philosophical     topic.  If you are told to provide a similar quote, provide a different quote from the same philosopher, or a quote about the same philosophical topic.  Remember, do not ever repeat a quote.

    Always format your response the same way.  The quote should be first and should have quotation marks.  After the quote, put a dash and then the name of the philosopher. Immediately following     that put the philosophers birth date and date of death within parentheses.  Then skip a line and then provide a short paragraph with some historical information or other background information.   
    Then skip a line and provide an interpretation of the meaning behind the quote.  
    
    Here is an example response for you to follow:

    "Be not ashamed of mistakes and thus make them crimes." - Confucius (c. 551 - c. 479 BCE)

    Confucius was a Chinese philosopher and politician of the Spring and Autumn period who is traditionally considered the paragon of Chinese sages. His philosophy emphasized     personal and governmental morality, correctness of social relationships, justice, kindness, and sincerity.

    This quote reflects his belief in the importance of recognizing and learning from one's mistakes rather than concealing them, which only leads to greater wrongdoing.
    `,this.config.message="Please provide a philosophical quote.";}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["philosophy"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],styles:[`cb-viewer .message.auto-send{max-width:400px!important;margin:20px auto 25px;padding:10px!important;border-radius:10px}cb-viewer .message.auto-send .user-label{display:none}
`],encapsulation:2});}}return t;})();var ML=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.chatAlt,this.config.messageHint="Ask your question here (e.g. How far is it to Pluto?)",this.config.message="",this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["chat-alt"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var SL=(()=>{class t{constructor(){this.notFound="Oops. Page not found.";}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-page-not-found"]],decls:2,vars:1,template:function(i,r){i&1&&(m(0,"h2"),f(1),u()),i&2&&(d(),C(r.notFound));},dependencies:[j],styles:["h2[_ngcontent-%COMP%]{text-align:center}"]});}}return t;})();var IL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.jokes,this.config.messageHint="",this.config.features.autoSend.enabled=!0,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.streamedResponses=!0,this.config.instructions=`You are a comedian. Do not address my first request. Start your comedy act by insulting your audience (me), but keep it clean.  
    Then tell me a joke and give me a chance to guess the answer. Then keep telling me jokes and keep the conversation interactive and lively.

    Do not repeat the same joke or use commonly heard jokes.  Be creative.
    `,this.config.message="Tell me some jokes!";}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-jokes"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var TL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.topTen,this.config.messageHint="Enter a topic here (e.g. physics)",this.config.message="",this.config.instructions="Provide a top ten list of interesting facts about the topic the user enters.  List in descending order starting from 10.",this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-top-ten"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var AL=(()=>{class t extends ct{constructor(e){super(e),this.serv��ice=e,this.config.endpoint=oe.imageGenerate,this.config.messageHint="Describe the image (e.g. \"fluffy gray cat\").",this.config.message="",this.config.features.uploadImages=!1,this.config.features.downloadImages=!0,this.config.features.prompts={enabled:!0,imagePrompt:!0},this.config.features.clear=!0,this.config.features.send=!0,this.config.features.imageCount=!0,this.config.features.imageSize=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.saveImagePrompt=!0;}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-generate"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-image-messenger");},dependencies:[j,Js],encapsulation:2});}}return t;})();var RL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.imageEdit,this.config.messageHint="Mask out parts that you want redrawn.  Describe what you want the entire image to look like..",this.config.message="",this.config.features.uploadImages=!0,this.config.features.downloadImages=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.imageCount=!0;}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-edit"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-image-messenger");},dependencies:[j,Js],encapsulation:2});}}return t;})();var OL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.imageVariations,this.config.messageHint="Upload an image, set options, then view your image(s).",this.config.message="",this.config.features.prompt=!1,this.config.features.uploadImages=!0,this.config.features.uploadImagesImageSize=!0,this.config.features.downloadImages=!0,this.config.features.clear=!1,this.config.features.imageCount=!0,this.config.features.imageSize=!0;}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-variations"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-image-messenger");},dependencies:[j,Js],encapsulation:2});}}return t;})();var Kte=t=>({name:t,icon:"home",href:"/"}),Zte=t=>[t],Xte=t=>({display:t});function Jte(t,n){t&1&&(m(0,"div",12),w(1,"mat-spinner",13),u());}function eie(t,n){if(t&1&&(m(0,"th",14),f(1),u()),t&2){let e=y();d(),N(" ",e.idText," ");}}function tie(t,n){if(t&1&&(m(0,"td",15),f(1),u()),t&2){let e=n.$implicit;d(),C(e.id);}}function iie(t,n){if(t&1&&(m(0,"th",16),f(1),u()),t&2){let e=y();d(),N(" ",e.createdText," ");}}function nie(t,n){if(t&1&&(m(0,"td",15),f(1),u()),t&2){let e=n.$implicit;d(),C(e.created);}}function rie(t,n){t&1&&(m(0,"th",17),f(1," Owner "),u());}function oie(t,n){if(t&1&&(m(0,"td",15),f(1),u()),t&2){let e=n.$implicit;d(),C(e.ownedBy);}}function aie(t,n){t&1&&w(0,"tr",18);}function sie(t,n){t&1&&w(0,"tr",19);}var PL=(()=>{class t{constructor(e,i,r,o){this.service=e,this._liveAnnouncer=i,this.titleService=r,this.chatService=o,this.displayedColumns=["id","created","ownedBy"],this.dataSource=new Wr(lie),this.statusTxt="API Status",this.idText="ID",this.createdText="Created",this.home="Home",this.loading=!0,this.titleService.setTitle("Chatbot - "+this.statusTxt);}ngOnInit(){}ngAfterViewInit(){this.dataSource.sort=this.sort;let e=this;e.chatService.fetchModels().subscribe(i=>{if(i){this.loading=!1;let r=i.data,o=[];r.forEach(a=>{let s=new Date(a.created*1e3);o.push({id:a.id,created:e.service.formatDate(s),ownedBy:a.owned_by});}),this.dataSource.data=o,this.table.renderRows();}else console.log("no data received");},i=>{console.log("error: ",i);});}static{this.ɵfac=function(i){return new(i||t)(D(fe),D(zl),D(Tn),D(Gr));};}static{this.ɵcmp=E({type:t,selectors:[["oai-models"]],viewQuery:function(i,r){if(i&1&&($(vn,5),$(cn,5)),i&2){let o;R(o=O())&&(r.table=o.first),R(o=O())&&(r.sort=o.first);}},decls:14,vars:14,consts:[[3,"title","icon","breadcrumbs"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","created","matSortDirection","desc","matSortDisableClear","",1,"mat-elevation-z8",3,"ngStyle","dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by id",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by created",4,"matHeaderCellDef"],["matColumnDef","ownedBy"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by owner",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"spinner-container"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by id"],["mat-cell",""],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by created"],["mat-header-cell","","mat-sort-header","","sortActionDescription","Sort by owner"],["mat-header-row",""],["mat-row",""]],template:function(i,r){i&1&&(w(0,"cb-page-header",0),I(1,Jte,2,0,"div",1),m(2,"table",2),Ce(3,3),I(4,eie,2,1,"th",4)(5,tie,2,1,"td",5),we(),Ce(6,6),I(7,iie,2,1,"th",7)(8,nie,2,1,"td",5),we(),Ce(9,8),I(10,rie,2,0,"th",9)(11,oie,2,1,"td",5),we(),I(12,aie,1,0,"tr",10)(13,sie,1,0,"tr",11),u()),i&2&&(v("title",r.statusTxt)("icon","api")("breadcrumbs",Ue(10,Zte,Ue(8,Kte,r.home))),d(),v("ngIf",r.loading),d(),v("ngStyle",Ue(12,Xte,r.loading?"none":"table"))("dataSource",r.dataSource),d(10),v("matHeaderRowDef",r.displayedColumns),d(),v("matRowDefColumns",r.displayedColumns));},dependencies:[j,Pt,gn,va,vn,ua,fa,ma,da,ga,pa,ha,_a,ba,Ks,cn,Qs,Hi,ji,_i],styles:["table[_ngcontent-%COMP%]{margin-top:15px;width:100%}table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{background-color:red}th.mat-sort-header-sorted[_ngcontent-%COMP%]{color:#000}.spinner-container[_ngcontent-%COMP%]{padding:30px 0;display:flex;align-items:center;justify-content:center}"]});}}return t;})(),lie=[];var FL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.imagePrompts,this.config.messageHint="Provide a basic image description. Chatbot will add details.",this.config.message="",this.config.instructions="You are writng a prompt for generating images. Use the user input as a starting point and provide more details. Use less than 150 words.",this.config.features.new=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.saveImagePrompt=!0,this.config.features.createImageFromText=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-prompts"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var cie=t=>({name:t,icon:"home",href:"/"}),die=t=>[t];function uie(t,n){if(t&1&&w(0,"cb-page-header",3),t&2){let e=y();v("title",e.title)("icon","question_answer")("breadcrumbs",Ue(5,die,Ue(3,cie,e.home)));}}function mie(t,n){if(t&1&&(m(0,"mat-card",7)(1,"mat-card-header")(2,"mat-icon",8),f(3),u(),m(4,"mat-card-title"),f(5),u(),m(6,"mat-card-subtitle"),f(7),u()(),m(8,"mat-card-content")(9,"p"),f(10),u()(),m(11,"mat-card-actions")(12,"a",9,0),f(14),u()()()),t&2){let e=y().$implicit;d(2),Nr("chat-icon-",e.link.href,""),d(),C(e.icon),d(2),C(e.title),d(2),C(e.subtitle),d(3),C(e.description),d(2),v("routerLink",e.link.href),d(2),C(e.link.name);}}function pie(t,n){if(t&1&&(Ce(0),I(1,mie,15,9,"mat-card",6),we()),t&2){let e=n.$implicit;d(),v("ngIf",e.enabled&&!e.hidden);}}function hie(t,n){if(t&1&&(m(0,"div",4),I(1,pie,2,1,"ng-container",5),u()),t&2){let e=y();d(),v("ngForOf",e.cards);}}var NL=(()=>{class t{constructor(e,i,r){this.service=e,this.router=i,this.titleService=r,this.cards=[],this.title="Chat",this.home="Home",this.titleService.setTitle("Chatbot - "+this.title),this.cards=this.service.textCards;}static{this.ɵfac=function(i){return new(i||t)(D(oa),D(Xe),D(Tn));};}static{this.ɵcmp=E({type:t,selectors:[["chat-dash"]],decls:3,vars:2,consts:[["rla","routerLinkActive"],[3,"title","icon","breadcrumbs",4,"ngIf"],["class","dash-cards",4,"ngIf"],[3,"title","icon","breadcrumbs"],[1,"dash-cards"],[4,"ngFor","ngForOf"],["class","dash-card",4,"ngIf"],[1,"dash-card"],["mat-card-avatar","",2,"width","32px","height","32px","font-size","32px"],["mat-raised-button","","routerLinkActive","",3,"routerLink"]],template:function(i,r){i&1&&(I(0,uie,1,7,"cb-page-header",1)(1,hie,2,1,"div",2),w(2,"router-outlet")),i&2&&(v("ngIf",r.router.url==="/chat"),d(),v("ngIf",r.router.url==="/chat"));},dependencies:[j,ei,Pt,ru,Zd,tu,nu,Jd,iu,eu,Xd,ce,Rn,ke,Oe,Ft,Xa,Bt,Pl,_i],encapsulation:2});}}return t;})();var fie=t=>({name:t,icon:"home",href:"/"}),gie=t=>[t];function _ie(t,n){if(t&1&&w(0,"cb-page-header",3),t&2){let e=y();v("title",e.title)("icon","photo_library")("breadcrumbs",Ue(5,gie,Ue(3,fie,e.home)));}}function bie(t,n){if(t&1&&(m(0,"mat-card",7)(1,"mat-card-header")(2,"mat-icon",8),f(3),u(),m(4,"mat-card-title"),f(5),u(),m(6,"mat-card-subtitle"),f(7),u()(),m(8,"mat-card-content")(9,"p"),f(10),u()(),m(11,"mat-card-actions")(12,"a",9,0),f(14),u()()()),t&2){let e=y().$implicit;d(2),Nr("chat-icon-",e.link.href,""),d(),C(e.icon),d(2),C(e.title),d(2),C(e.subtitle),d(3),C(e.description),d(2),v("routerLink",e.link.href),d(2),C(e.link.name);}}function vie(t,n){if(t&1&&(Ce(0),I(1,bie,15,9,"mat-card",6),we()),t&2){let e=n.$implicit;d(),v("ngIf",e.enabled);}}function yie(t,n){if(t&1&&(m(0,"div",4),I(1,vie,2,1,"ng-container",5),u()),t&2){let e=y();d(),v("ngForOf",e.cards);}}var LL=(()=>{class t{constructor(e,i,r){this.service=e,this.router=i,this.titleService=r,this.title="Images",this.home="Home",this.titleService.setTitle("Chatbot - "+this.title),this.cards=this.service.imageCards;}static{this.ɵfac=function(i){return new(i||t)(D(oa),D(Xe),D(Tn));};}static{this.ɵcmp=E({type:t,selectors:[["image-dash"]],decls:3,vars:2,consts:[["rla","routerLinkActive"],[3,"title","icon","breadcrumbs",4,"ngIf"],["class","dash-cards",4,"ngIf"],[3,"title","icon","breadcrumbs"],[1,"dash-cards"],[4,"ngFor","ngForOf"],["class","dash-card",4,"ngIf"],[1,"dash-card"],["mat-card-avatar","",2,"width","32px","height","32px","font-size","32px"],["mat-raised-button","","routerLinkActive","",3,"routerLink"]],template:function(i,r){i&1&&(I(0,_ie,1,7,"cb-page-header",1)(1,yie,2,1,"div",2),w(2,"router-outlet")),i&2&&(v("ngIf",r.router.url==="/image"),d(),v("ngIf",r.router.url==="/image"));},dependencies:[j,ei,Pt,ru,Zd,tu,nu,Jd,iu,eu,Xd,ce,Rn,ke,Oe,Ft,Xa,Bt,Pl,_i],encapsulation:2});}}return t;})();var xie=t=>({name:t,icon:"home",href:"/"}),Cie=t=>[t],VL=(()=>{class t{constructor(e,i){this.chatService=e,this.titleService=i,this.about="About",this.homeTxt="Home",this.p1="\n    This Chatbot application is being built using the Angular framework (V18). The app is hosted on an\n    AWS EC2 server (Amazon Linux).  The chatbot communicates with a custom Python API (FastAPI), which\n    primarily serves as a pass-thru layer to AI powered APIs from OpenAI and other providers.",this.p2="\n  Chatbot is also integrated with Wordpress and Drupal in various ways.  Content created with chatbot, \n  including all text conversations and images, can be saved to Wordpress.  Text conversations are saved as\n  drafts in Wordpress and can be further edited, if required, and published as posts of different kinds (categories).\n  Images are saved to the Media Library, and can be added to the posts as featured images, etc, or used \n  in an image gallery.",this.p3="Drupal is used headlessly as a content server, and stores prompts, characters, widgets, etc.",this.features="Other features:",this.f1="User managed NLP (Natural Language Processing) widgets",this.f2="User managed AI Characters",this.f3="Prompt Management",this.f4="Image creation, variations, and editing",this.roadmap="RoadMap",this.l1="Upload images to text conversations (GPT-4o Vision)",this.l2="Improved image browsing",this.l3="More capabilities for AI characters",this.buildInfo="Build Info",this.appName="",this.appDate="",this.titleService.setTitle("Chatbot - "+this.about);}ngAfterViewInit(){this.chatService.fetchBuildInfo().subscribe(e=>{this.appDate=e.date,this.appName=e.name;},e=>{console.log("error fetching build info: ",e);});}static{this.ɵfac=function(i){return new(i||t)(D(Gr),D(Tn));};}static{this.ɵcmp=E({type:t,selectors:[["cb-about"]],decls:36,vars:22,consts:[[3,"title","icon","breadcrumbs"],[1,"outer"],[1,"inner"],[2,"margin-left","25px"]],template:function(i,r){i&1&&(w(0,"cb-page-header",0),m(1,"div",1)(2,"div",2)(3,"p"),f(4),u(),m(5,"p"),f(6),u(),m(7,"p"),f(8),u(),m(9,"p")(10,"b"),f(11),u()(),m(12,"ul")(13,"li"),f(14),u(),m(15,"li"),f(16),u(),m(17,"li"),f(18),u(),m(19,"li"),f(20),u()(),m(21,"p")(22,"b"),f(23),u()(),m(24,"ul")(25,"li"),f(26),u(),m(27,"li"),f(28),u(),m(29,"li"),f(30),u()(),m(31,"p")(32,"b"),f(33),u()(),m(34,"p",3),f(35),u()()()),i&2&&(v("title",r.about)("icon","info")("breadcrumbs",Ue(20,Cie,Ue(18,xie,r.homeTxt))),d(4),C(r.p1),d(2),C(r.p2),d(2),C(r.p3),d(3),C(r.features),d(3),C(r.f1),d(2),C(r.f2),d(2),C(r.f3),d(2),C(r.f4),d(3),C(r.roadmap),d(3),C(r.l1),d(2),C(r.l2),d(2),C(r.l3),d(3),C(r.buildInfo),d(2),br("",r.appName," - ",r.appDate,""));},dependencies:[j,_i],styles:[".outer[_ngcontent-%COMP%]{width:100%;text-align:center}.outer[_ngcontent-%COMP%]   .inner[_ngcontent-%COMP%]{padding:8px;margin:0 auto 55px;text-align:left;max-width:800px}"]});}}return t;})();var wie=t=>({name:t,icon:"home",href:"/"}),Die=t=>[t];function Eie(t,n){if(t&1&&(m(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),f(3),u()(),m(4,"p"),f(5),u()()),t&2){let e=n.$implicit;d(3),N(" ",e.question," "),d(2),C(e.answer);}}var zL=(()=>{class t{constructor(e){this.titleService=e,this.support="Support",this.homeTxt="Home",this.faqs=[{question:"Can I edit images now?",answer:"Yes! Editing of images is supported (256x256, 512x512, and 1024x1024 sizes)."},{question:"Will Chatbot support languages other than English, Spanish, and French?",answer:"Yes, hopefully more languages will be added soon."},{question:"Does Chatbot work with Wordpress?",answer:"Yes, Chatbot is integrated with both Wordpress and Drupal."},{question:"I'm experiencing problems using chatbot.  What do I do?",answer:"Chatbot is a product beta and hasn't been tested in all browsers.  See the chart below."}],this.other="For other questions, contact",this.faqsTxt="Frequently Asked Questions",this.col1="Browser",this.col2="OS",this.col3="Testing",this.browserTesting="Browser Testing",this.currentTxt="current",this.needsTesting="need testing",this.titleService.setTitle("Chatbot - "+this.support);}static{this.ɵfac=function(i){return new(i||t)(D(Tn));};}static{this.ɵcmp=E({type:t,selectors:[["cb-support"]],decls:46,vars:17,consts:[[3,"title","icon","breadcrumbs"],[1,"faqs-title"],[4,"ngFor","ngForOf"],[1,"browser-testing"],[1,"other-questions"],["href","mailto: jturman87@gmail.com",2,"color","white"]],template:function(i,r){i&1&&(w(0,"cb-page-header",0),m(1,"h4",1),f(2),u(),m(3,"mat-accordion"),I(4,Eie,6,2,"mat-expansion-panel",2),u(),w(5,"br"),m(6,"h4",1),f(7),u(),m(8,"table",3)(9,"tr")(10,"th"),f(11),u(),m(12,"th"),f(13),u(),m(14,"th"),f(15),u()(),m(16,"tr")(17,"td"),f(18,"Chrome"),u(),m(19,"td"),f(20,"Mac, IOS"),u(),m(21,"td"),f(22),u()(),m(23,"tr")(24,"td"),f(25,"Safari"),u(),m(26,"td"),f(27,"Mac, IOS"),u(),m(28,"td"),f(29),u()(),m(30,"tr")(31,"td"),f(32,"All Others"),u(),m(33,"td"),f(34,"\xA0"),u(),m(35,"td"),f(36),u()()(),w(37,"br")(38,"br"),m(39,"p",4),f(40),m(41,"a",5),f(42,"John"),u(),f(43,`.
`),u(),w(44,"br")(45,"br")),i&2&&(v("title",r.support)("icon","contact_support")("breadcrumbs",Ue(15,Die,Ue(13,wie,r.homeTxt))),d(2),C(r.faqsTxt),d(2),v("ngForOf",r.faqs),d(3),C(r.browserTesting),d(4),C(r.col1),d(2),C(r.col2),d(2),C(r.col3),d(7),C(r.currentTxt),d(7),C(r.currentTxt),d(7),C(r.needsTesting),d(4),N(" ",r.other," "));},dependencies:[j,ei,vu,fc,pc,hc,bu,_i],styles:[".faqs-title[_ngcontent-%COMP%]{text-align:center}.browser-testing[_ngcontent-%COMP%]{border:1px solid gray;margin:0 auto;min-width:400px}.other-questions[_ngcontent-%COMP%]{text-align:center}.other-questions[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline}"]});}}return t;})();var BL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.toFrench,this.config.messageHint="Enter text below.  Chatbot will convert to French.",this.config.instructions=`You are a translator.  Translate all the text sent to you to french and send back the 
      translated words with nothing else.  For example, if you are sent the text "water", you would respond with "agua".
      `,this.config.message="",this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["to-french"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var jL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.toSpanish,this.config.messageHint="Enter text below.  Chatbot will convert to Spanish.",this.config.message="",this.config.instructions=`You are a translator.  Translate all the text sent to you to spanish and send back the 
      translated words with nothing else.  For example, if you are sent the text "city", you would respond with "ville".
    `,this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["to-spanish"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var HL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.chatStream,this.config.messageHint="Ask your question here (e.g. How far is it to Pluto?)",this.config.message="",this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.streamedResponses=!0;}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["chat-stream"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var $L=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.chemicalElements,this.config.features.autoSend.enabled=!0,this.config.features.save=!0,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.streamedResponses=!0,this.config.instructions=`You are a chemistry teacher. Provide information about a chemical element from the 
    periodic table of elements.  Choose any element you want.  After you have provided the information, ask me a question 
    about the information and then tell me if I'm right or not. Do not provide the answeer.  Let me answer the question.  
    Ask me another question if I get it right.  If I get it wrong, give me some guidance to help me get the right answer 
    before moving on to the next question.  Ask me about 3 or 4 questions, and then ask me if I want to study another 
    element.  Do not just focus on the common elements.  Use elements from throughout the periodic table.
    
    Do not address me first, just present the information.  Format the information starting with the name of the element and it's
    symbol in parentheses, then provide a table that has rows for basic element information such as symbol, atomic weight, 
    atomic number, group, etc.  Then provide 2-3 paragraphs of text with important and interesting facts about the element.
    `,this.config.message="Please provide  information about a chemical element and ask a question about the element.";}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["chemical-elements"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var UL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.socrates,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.save=!0,this.config.features.copyToPrompt=!1,this.config.features.autoSend.enabled=!0,this.config.features.streamedResponses=!0,this.config.instructions=`You are Socrates the great Greek philosopher.  You have a student that wants to talk to you.

    First, introduce yourself andf tell the student that you have heard about their wisdom and scholarly ability, and mention that it is an honor to
    be able to speak with them today.  Use some creativity in how you express this.

    After the introduction, tell the student that you want them to help you understand some things better.  Give them a list of 5 topics to explore.
    Choose topics such as  "The nature of Virtue", or "The concept of Knowledge".

    Ask the user to select a topic out of the 5 topics your provide.  Once they have chosen a topic, ask them if they can tell you what the word or 
    concept means.  If they don't know, help them out and suggest different definitions.  Once you have agreed upon a definition, use the Socratic method
    to break down the definition and show that the definition is inadequate.

    Move on to another definition, or another topic after that.
    `,this.config.message="Do you have a minute to talk, Socrates?";}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["socrates"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],styles:[`cb-viewer .message.auto-send{max-width:400px!important;margin:20px auto 25px;padding:10px!important;border-radius:10px}cb-viewer .message.auto-send .user-label{display:none}
`],encapsulation:2});}}return t;})();var qL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.particlePhysics,this.config.features.autoSend.enabled=!0,this.config.features.save=!0,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.streamedResponses=!0,this.config.instructions=`You are a physics teacher. Provide information about a particle from the periodic table of particles.
    Choose any particle you want.  After you have provided the information, ask me a question about
    the information and then tell me if I'm right or not. Do not provide the answeer.  Let me answer the question.
    Ask me another question if I get it right.  If I get it wrong, give me some guidance to help me get the right answer
    before moving on to the next question.  Ask me about 3 or 4 questions, and then ask me if I want to study another
    particle.  Use elements from throughout the table, not just the common ones.

    Do not address me first, just present the information.  Format the information starting with the name of the particle and it's
    symbol in parentheses, then provide a table that has rows for basic particle information such as symbol, rest mass value,  
    neutron count, etc.  Then provide 2-3 paragraphs of text with important and interesting facts about the particle.
    `,this.config.message="Please provide  information about a particle and then ask a me question about it.";}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["particle-physics"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var WL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.blackjack,this.config.features.save=!0,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.streamedResponses=!0,this.config.features.autoSend.enabled=!0,this.config.features.autoSend.addToViewer=!0,this.config.features.autoSend.addUserName=!0,this.config.features.autoSend.intro="Hi.  I'd like to play some blackjack. I have $100. Can you deal me in?",this.config.instructions=`You are a blackjack dealer and you have one player who is starting with $100. Deal cards to the player and
    display the values of the cards to the player.  Then tell the player how many cards you have and show the values of any cards that are visible
    to the player.  Ask the player to hit or stick and play out the rest of the game.

    Keep the user informed about how much money they have left.  The player will bet $10 each hand, but the player can change their bet.  After
    the first hand, let the user know what their current bet is and that they can change their bet.

    The game is over when the player is out of money.
    `,this.config.message="";}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["blackjack"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var GL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.pythonTutor,this.config.features.save=!0,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.streamedResponses=!0,this.config.features.autoSend.enabled=!0,this.config.features.autoSend.addToViewer=!0,this.config.features.autoSend.addUserName=!0,this.config.features.autoSend.intro="Hi.  I'd like to learn some Python.",this.config.instructions=`You are a Python teacher (the Python programming language).  Pick a topic about Python language itself, or maybe a  
    popular library (especially those related to AI). Do not always start with a beginner topic - choose advanced topics as well.  Present some information
    about the topic in an easy to read format. Keep the information fairly short - limited to 4 or 5 paragraphs or blocks of information.
    
    Then ask me questions one at a time about the information in multiple choice or true/false format.  If I get a question
    wrong, give me some help and let me try to answer again. If I get it right, move on to the next question. If I get 3 or 4 questions right, give me a grade for my answers.  The possible grades you 
    can give are A, B, C, D, and F.  It's okay if you give me an F, or whatever, just make an attempt to give me a fair grade.`,this.config.message="";}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["python-tutor"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var YL=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.mlTutor,this.config.features.save=!0,this.config.features.new=!1,this.config.features.refresh=!0,this.config.features.streamedResponses=!0,this.config.features.autoSend.enabled=!0,this.config.features.autoSend.addToViewer=!0,this.config.features.autoSend.addUserName=!0,this.config.features.autoSend.intro="Hi.  I'm a student and I'm trying to learning about machine learning (ML).  Can you help me?",this.config.instructions=`You are a machine learning (ML) expert and teacher. Pick a topic about ML in general, or about the Pandas library 
    and how that library is used to process data for ML purposes. Sometimes start with a beginner topic, but also choose intermediate and advanced topics.  
    Present some information about the topic in an easy to read format. Keep the information fairly short - limited to 4 or 5 paragraphs or blocks of information.
    
    Then ask me questions one at a time about the information in multiple choice or true/false format.  If I get a question
    wrong, give me some help and let me try to answer again. If I get it right, move on to the next question. If I get 3 or 4 questions right, give me a 
    grade for my answers.  The possible grades you can give are A, B, C, D, and F.  It's okay if you give me an F, or whatever, just make an attempt to 
    give me a fair grade.`,this.config.message="";}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["ml-tutor"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var QL=(()=>{class t extends ct{constructor(e,i,r){super(e,!1),this.service=e,this.route=i,this.dynamicWidgetService=r,this.id=null;}ngOnInit(){}ngAfterViewInit(){let e=this;if(this.id=this.route.snapshot.paramMap.get("id"),console.log("id: ",this.id),!this.id){console.log("no id found in route");return;}setTimeout(()=>{this.dynamicWidgetService.fetchWidget(e.id).pipe(de(1)).subscribe({next(i){console.log("res: ",i);let r=JSON.parse(i.data.attributes.body.value);e.config=r,console.log("new config",e.config),e.setMessenger(),e.messenger.setConfig(e.config,!0);},error(i){console.log("error encountered fetching widget: ",i);},complete(){}});},500);}static{this.ɵfac=function(i){return new(i||t)(D(fe),D(An),D(Kd));};}static{this.ɵcmp=E({type:t,selectors:[["dynamic-config"]],features:[W],decls:1,vars:1,consts:[[3,"dynamicConfig"]],template:function(i,r){i&1&&w(0,"cb-chat-messenger",0),i&2&&v("dynamicConfig",!0);},dependencies:[j,xt],encapsulation:2});}}return t;})();var kie=t=>({name:t,icon:"home",href:"/"}),Mie=()=>({name:"Chat",href:"/chat",icon:"question_answer"}),Sie=(t,n)=>[t,n],Iie=()=>["expandedDetail"],Tie=()=>[10,25,100],KL=t=>["/chat/widget",t];function Aie(t,n){t&1&&(m(0,"th",25),f(1,"ID"),u());}function Rie(t,n){if(t&1){let e=K();m(0,"td",26)(1,"a",27),f(2),u(),m(3,"button",28),S("click",function(){let r=k(e).$implicit,o=y();return M(o.edit(r.storageId));}),m(4,"mat-icon"),f(5,"edit"),u()()();}if(t&2){let e=n.$implicit;d(),v("routerLink",Ue(2,KL,e.storageId)),d(),C(e.storageId);}}function Oie(t,n){t&1&&(m(0,"th",25),f(1,"Name"),u());}function Pie(t,n){if(t&1&&(m(0,"td",26)(1,"span",29)(2,"a",27)(3,"mat-icon"),f(4),u(),f(5),u()()()),t&2){let e=n.$implicit;d(2),v("routerLink",Ue(3,KL,e.storageId)),d(2),C(e.config.card.icon),d(),C(e.name);}}function Fie(t,n){t&1&&(m(0,"th",25),f(1,"Modified"),u());}function Nie(t,n){if(t&1&&(m(0,"td",26)(1,"span",30),f(2),Ss(3,"date"),u()()),t&2){let e=n.$implicit;d(2),C(cg(3,1,e.date,"short"));}}function Lie(t,n){t&1&&(m(0,"th",25),f(1,"Category"),u());}function Vie(t,n){if(t&1&&(m(0,"td",26)(1,"span",31),f(2),u()()),t&2){let e=n.$implicit;d(2),C(e.category);}}function zie(t,n){if(t&1&&(m(0,"th",25),f(1),u()),t&2){let e=y();d(),N(" ",e.enabledTxt," ");}}function Bie(t,n){if(t&1&&(m(0,"td",26),f(1),u()),t&2){let e=n.$implicit;d(),C(e.enabled);}}function jie(t,n){if(t&1&&(m(0,"th",25),f(1),u()),t&2){let e=y();d(),C(e.hiddenTxt);}}function Hie(t,n){if(t&1&&(m(0,"td",26),f(1),u()),t&2){let e=n.$implicit;d(),C(e.hidden);}}function $ie(t,n){if(t&1&&(m(0,"th",32)(1,"span",33),f(2),u()()),t&2){let e=y();d(2),C(e.actionsTxt);}}function Uie(t,n){t&1&&(m(0,"mat-icon"),f(1,"keyboard_arrow_up"),u());}function qie(t,n){t&1&&(m(0,"mat-icon"),f(1,"keyboard_arrow_down"),u());}function Wie(t,n){if(t&1){let e=K();m(0,"td",26)(1,"mat-toolbar",34)(2,"button",35),S("click",function(r){let o=k(e).$implicit,a=y();return a.expandedElement=a.expandedElement===o?null:o,M(r.stopPropagation());}),I(3,Uie,2,0,"mat-icon")(4,qie,2,0,"mat-icon"),u(),m(5,"button",36),S("click",function(r){let o=k(e).$implicit;return y().edit(o),M(r.stopPropagation());}),m(6,"mat-icon"),f(7,"edit"),u()(),m(8,"button",37),S("click",function(r){let o=k(e).$implicit;return y().duplicate(o),M(r.stopPropagation());}),m(9,"mat-icon"),f(10,"content_copy"),u()(),m(11,"button",38),S("click",function(r){let o=k(e).$implicit;return y().remove(o),M(r.stopPropagation());}),m(12,"mat-icon"),f(13,"delete"),u()()()();}if(t&2){let e=n.$implicit,i=y();d(3),Q(i.expandedElement===e?3:4),d(2),G("matTooltip",i.editTxt),d(3),G("matTooltip",i.duplicateTxt),d(3),G("matTooltip",i.deleteTxt);}}function Gie(t,n){if(t&1&&(m(0,"td",26)(1,"div",39)(2,"div",40),f(3,"Appearance"),u(),m(4,"div",41)(5,"span",42)(6,"span",43),f(7,"Title:"),u(),��f(8),u(),m(9,"span",42)(10,"span",43),f(11,"Subtitle:"),u(),f(12),u(),m(13,"span",42)(14,"span",43),f(15,"Description:"),u(),f(16),u(),m(17,"span",42)(18,"span",43),f(19,"Help:"),u(),f(20),u(),m(21,"span",42)(22,"span",43),f(23,"Icon:"),u(),f(24),u(),m(25,"span",42)(26,"span",43),f(27),u(),f(28),u(),m(29,"span",42)(30,"span",43),f(31),u(),f(32),u(),m(33,"span",42)(34,"span",43),f(35),u(),f(36),u(),m(37,"span",42)(38,"span",43),f(39),u(),f(40),u(),m(41,"span",42)(42,"span",43),f(43,"Icon:"),u(),f(44),u()(),m(45,"div",40),f(46,"Features"),u(),m(47,"div",44)(48,"div",45)(49,"span",42)(50,"span",43),f(51,"Prompt:"),u(),f(52),u(),m(53,"span",42)(54,"span",43),f(55,"Prompt:"),u(),f(56),u(),m(57,"span",42)(58,"span",43),f(59,"New:"),u(),f(60),u(),m(61,"span",42)(62,"span",43),f(63,"Save:"),u(),f(64),u(),m(65,"span",42)(66,"span",43),f(67,"Clear:"),u(),f(68),u(),m(69,"span",42)(70,"span",43),f(71,"Send:"),u(),f(72),u(),m(73,"span",42)(74,"span",43),f(75,"Refresh:"),u(),f(76),u(),m(77,"span",42)(78,"span",43),f(79,"Copy to Clipboard:"),u(),f(80),u(),m(81,"span",42)(82,"span",43),f(83,"Copy to Prompt:"),u(),f(84),u(),m(85,"span",42)(86,"span",43),f(87,"Streamed Responses:"),u(),f(88),u(),m(89,"span",42)(90,"span",43),f(91,"Create Image from Text:"),u(),f(92),u(),m(93,"span",42)(94,"span",43),f(95,"Prompt:"),u(),f(96),u(),m(97,"span",42)(98,"span",43),f(99,"Prompt:"),u(),f(100),u()(),m(101,"div",46)(102,"span",47),f(103,"Prompts:"),u(),m(104,"span",42)(105,"span",43),f(106,"Enabled:"),u(),f(107),u(),m(108,"span",42)(109,"span",43),f(110,"Image Prompt:"),u(),f(111),u()(),m(112,"div",48)(113,"span",47),f(114,"AutoSend:"),u(),m(115,"span",42)(116,"span",43),f(117,"Enabled:"),u(),f(118),u(),m(119,"span",42)(120,"span",43),f(121,"Add To Viewer:"),u(),f(122),u(),m(123,"span",42)(124,"span",43),f(125,"Add User Name:"),u(),f(126),u(),m(127,"span",42)(128,"span",43),f(129,"Intro:"),u(),f(130),u()()()()()),t&2){let e=n.$implicit,i=y();ee("colspan",i.columnsToDisplayWithExpand.length),d(),v("@detailExpand",e==i.expandedElement?"expanded":"collapsed"),d(7),N(" ",e.config.card.title,""),d(4),N(" ",e.config.card.subtitle,""),d(4),N(" ",e.config.card.description,""),d(4),N(" ",e.config.card.help,""),d(4),N(" ",e.config.card.icon,""),d(3),N("",i.instructionsTxt,":"),d(),N(" ",e.config.instructions,""),d(3),N("",i.messageTxt,":"),d(),N(" ",e.config.message,""),d(3),N("",i.messageHintTxt,":"),d(),N(" ",e.config.messageHint,""),d(3),N("",i.messageTypeTxt,":"),d(),N(" ",e.config.messageType,""),d(4),N(" ",e.config.card.icon,""),d(8),N(" ",e.config.features.prompt,""),d(4),N(" ",e.config.features.prompt,""),d(4),N(" ",e.config.features.new,""),d(4),N(" ",e.config.features.save,""),d(4),N(" ",e.config.features.clear,""),d(4),N(" ",e.config.features.send,""),d(4),N(" ",e.config.features.refresh,""),d(4),N(" ",e.config.features.copyToClipboard,""),d(4),N(" ",e.config.features.copyToPrompt,""),d(4),N(" ",e.config.features.streamedResponses,""),d(4),N(" ",e.config.features.createImageFromText,""),d(4),N(" ",e.config.features.prompt,""),d(4),N(" ",e.config.features.prompt,""),d(7),N(" ",e.config.features.prompts.enabled,""),d(4),N(" ",e.config.features.prompts.imagePrompt,""),d(7),N(" ",e.config.features.autoSend.enabled,""),d(4),N(" ",e.config.features.autoSend.addToViewer,""),d(4),N(" ",e.config.features.autoSend.addUserName,""),d(4),N(" ",e.config.features.autoSend.intro,"");}}function Yie(t,n){t&1&&w(0,"tr",49);}function Qie(t,n){if(t&1&&w(0,"tr",50),t&2){let e=n.$implicit,i=y();Z("example-expanded-row",i.expandedElement===e);}}function Kie(t,n){t&1&&w(0,"tr",51);}function Zie(t,n){if(t&1&&(m(0,"tr",52)(1,"td",53),f(2),u()()),t&2){y();let e=We(6);d(2),N(' No data matching the filter "',e.value,'" ');}}var ZL=(()=>{class t{constructor(e,i,r){this.service=e,this.dynamicWidgetService=i,this.drupal=r,this.displayedColumns=["name","category","date"],this.columnsToDisplayWithExpand=[...this.displayedColumns,"actions"],this.expandedElement=null,this.newTxt="New",this.editTxt="Edit",this.homeTxt="Home",this.enabledTxt="Enabled",this.hiddenTxt="Hidden",this.duplicateTxt="Duplicate",this.actionsTxt="Actions",this.deleteTxt="Delete",this.instructionsTxt="Instructions",this.messageTxt="Message",this.messageHintTxt="Message Hint",this.messageTypeTxt="Message Type",this.managerTxt="Widget Manager",this.helpTxt="The Widget Manager allows users to create, edit, and delete narrow AI widgets for use in the chatbot.",this.users=new Map(),this._snackBar=p(_n);let o=[];this.dataSource=new Wr(o);}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.getWidgets();}getWidgets(){let e=[];this.dynamicWidgetService.getAllWidgets().subscribe(i=>{console.log("get widgets data",i),i.forEach(o=>{let s=o.included.find(l=>l.type==="user--user");s&&this.users.set(s.id,s.attributes.display_name);}),console.log("get widgets users",this.users);let r=[];i.forEach(o=>{let a=o.data;r.push(...a);}),console.log("get widgets all widgets",r),r.forEach(o=>{let a=this.loadWidget(o);e.push(a);}),this.dataSource.data=e;},i=>console.error("Error fetching articles",i));}loadWidget(e){let i=JSON.parse(e.attributes.body.value);i.storageId=e.id;let r=e.attributes.changed,o=Date.parse(r),s=new Date(o);return{storageId:i.storageId||"",id:i.card?.id||"",name:i.card.title||"",category:i.card.subtitle||"",date:s,enabled:i.card?.enabled?"true":"false",hidden:i.card?.hidden?"true":"false",config:i};}applyFilter(e){let i=e.target.value;this.dataSource.filter=i.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage();}new(){this.openCreateWidgetWindow();}remove(e){let i=this,r={title:"Delete Widget?",msg:e.config.card.title,msg2:""};this.service.openConfirmationDialog(r).afterClosed().pipe(de(1)).subscribe({next(a){if(!a){console.log("no results from dialog");return;}a?.confirm===!0?i.deleteWidget(e.config):console.log("delete cancelled");},error(a){console.log("error encountered: ",a);},complete(){i.dialogRef=void 0,console.log("dialogref cleared");}});}duplicate(e){let i=this,r={title:"Duplicate Widget?",msg:e.config.card.title,msg2:""};this.service.openConfirmationDialog(r).afterClosed().pipe(de(1)).subscribe({next(a){if(!a){console.log("no results from dialog");return;}if(a?.confirm===!0){e.config.storageId=void 0;let s=" (copy)";e.config.card.title?.endsWith(s)||(e.config.card.title+=s),i.postNewWidget(e.config);}else console.log("delete cancelled");},error(a){console.log("error encountered: ",a);},complete(){i.dialogRef=void 0,console.log("dialogref cleared");}});}edit(e){this.openCreateWidgetWindow(e.config);}openCreateWidgetWindow(e){let i=this,r="Create AI Widget",o="Edit AI Widget",a={title:e?o:r,msg:"",msg2:""};e&&(a.editWidgetConfig=e),this.dialogRef=this.service.openWidgetCreateDialog(a),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(s){if(console.log("create widget dialog results",s),!s){console.log("no results from dialog");return;}if(s.data?.storageId){let c=s.data;i.patchWidget(c);}else{let c=s.data;i.postNewWidget(c);}},error(s){console.log("error encountered: ",s);},complete(){i.dialogRef=void 0,console.log("dialogref cleared");}});}patchWidget(e){let i=this;this.drupal.getCsrfToken().pipe(de(1)).subscribe({next:r=>{this.dynamicWidgetService.patchWidget(r,e).pipe(de(1)).subscribe({next(o){i.getWidgets(),i._snackBar.open("Widget has been modified.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(o){console.log("error encountered patching widget: ",o);},complete(){}});},error:r=>{console.log("error encountered fetching csrf token: ",r);}});}postNewWidget(e){let i=this;this.drupal.getCsrfToken().pipe(de(1)).subscribe({next:r=>{this.dynamicWidgetService.postWidgetConfig(r,e).pipe(de(1)).subscribe({next(o){i.getWidgets(),i._snackBar.open("New widget created.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(o){console.log("error encountered creating widget: ",o);},complete(){}});},error:r=>{console.log("error encountered fetching csrf token: ",r);}});}deleteWidget(e){let i=this;console.log("delete widget",e),this.drupal.getCsrfToken().pipe(de(1)).subscribe({next:r=>{this.dynamicWidgetService.deleteWidget(r,e).pipe(de(1)).subscribe({next(o){i.getWidgets(),i._snackBar.open("Widget deleted.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(o){console.log("error encountered deleting widget: ",o);},complete(){}});},error:r=>{console.log("error encountered fetching csrf token: ",r);}});}static{this.ɵfac=function(i){return new(i||t)(D(fe),D(Kd),D(qs));};}static{this.ɵcmp=E({type:t,selectors:[["cb-widget-manager"]],viewQuery:function(i,r){if(i&1&&($(cs,5),$(cn,5)),i&2){let o;R(o=O())&&(r.paginator=o.first),R(o=O())&&(r.sort=o.first);}},decls:40,vars:18,consts:[["input",""],[3,"title","icon","help","breadcrumbs"],[1,"manager-tools"],[1,"tool-filter"],["matInput","","placeholder","Enter search term",3,"keyup"],[1,"example-spacer"],["mat-raised-button","",3,"click"],[1,"mat-elevation-z8"],["mat-table","","multiTemplateDataRows","","matSort","","matSortActive","date","matSortDirection","desc",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","date"],["matColumnDef","category"],["matColumnDef","enabled"],["matColumnDef","hidden"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",3,"example-expanded-row",4,"matRowDef","matRowDefColumns"],["mat-row","","class","example-detail-row",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["id","manager-paginator","aria-label","Select page of users",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"routerLink"],["mat-buttom","",3,"click"],[1,"widget-name"],[1,"widget-modification-date"],[1,"widget-category"],["mat-header-cell",""],[1,"actions-txt"],[1,"actions-tools"],["mat-icon-button","","aria-label","expand row","matTooltip","Show Details",3,"click"],["mat-icon-button","",1,"edit-button",3,"click","matTooltip"],["mat-icon-button","",1,"duplicate-button",3,"click","matTooltip"],["mat-icon-button","",1,"delete-button",3,"click","matTooltip"],[1,"example-element-detail"],[1,"section-header"],[1,"appearance"],[1,"detail-span"],[1,"detail-label"],[1,"features-container"],[1,"features"],[1,"prompts"],[1,"detail-span-header"],[1,"autosend"],["mat-header-row",""],["mat-row","",1,"example-element-row"],["mat-row","",1,"example-detail-row"],[1,"mat-row"],["colspan","4",1,"mat-cell"]],template:function(i,r){if(i&1){let o=K();w(0,"cb-page-header",1),m(1,"mat-toolbar",2)(2,"mat-form-field",3)(3,"mat-label"),f(4,"Filter"),u(),m(5,"input",4,0),S("keyup",function(s){return k(o),M(r.applyFilter(s));}),u()(),w(7,"span",5),m(8,"button",6),S("click",function(){return k(o),M(r.new());}),f(9),u()(),m(10,"div",7)(11,"table",8),Ce(12,9),I(13,Aie,2,0,"th",10)(14,Rie,6,4,"td",11),we(),Ce(15,12),I(16,Oie,2,0,"th",10)(17,Pie,6,5,"td",11),we(),Ce(18,13),I(19,Fie,2,0,"th",10)(20,Nie,4,4,"td",11),we(),Ce(21,14),I(22,Lie,2,0,"th",10)(23,Vie,3,1,"td",11),we(),Ce(24,15),I(25,zie,2,1,"th",10)(26,Bie,2,1,"td",11),we(),Ce(27,16),I(28,jie,2,1,"th",10)(29,Hie,2,1,"td",11),we(),Ce(30,17),I(31,$ie,3,1,"th",18)(32,Wie,14,4,"td",11),we(),Ce(33,19),I(34,Gie,131,35,"td",11),we(),I(35,Yie,1,0,"tr",20)(36,Qie,1,2,"tr",21)(37,Kie,1,0,"tr",22)(38,Zie,3,1,"tr",23),u(),w(39,"mat-paginator",24),u();}i&2&&(v("title",r.managerTxt)("icon","widgets")("help",r.helpTxt)("breadcrumbs",Dl(13,Sie,Ue(10,kie,r.homeTxt),Sn(12,Mie))),d(9),C(r.newTxt),d(2),v("dataSource",r.dataSource),d(24),v("matHeaderRowDef",r.columnsToDisplayWithExpand),d(),v("matRowDefColumns",r.columnsToDisplayWithExpand),d(),v("matRowDefColumns",Sn(16,Iie)),d(2),v("pageSizeOptions",Sn(17,Tie)));},dependencies:[ce,ye,Si,Rt,Lt,Nt,kt,Ai,va,vn,ua,fa,ma,da,ga,pa,ha,_a,ba,x_,Ks,cn,Qs,ou,cs,Ft,Bt,ke,Oe,rn,_i,Je,Ct,Em],styles:[".manager-tools[_ngcontent-%COMP%]{margin-top:10px;height:80px}.manager-tools[_ngcontent-%COMP%]   .tool-filter[_ngcontent-%COMP%]{margin-top:15px;width:200px}.actions-tools[_ngcontent-%COMP%]{padding-left:0}.actions-txt[_ngcontent-%COMP%]{margin-left:20px}.widget-name[_ngcontent-%COMP%]{font-size:larger}.widget-name[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:5px;margin-bottom:-5px}.appearance[_ngcontent-%COMP%], .features[_ngcontent-%COMP%], .prompts[_ngcontent-%COMP%], .autosend[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.section-header[_ngcontent-%COMP%]{font-weight:700;margin:10px 0}.appearance[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]{padding:4px;border-radius:10px}.appearance[_ngcontent-%COMP%]   .detail-label[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]   .detail-label[_ngcontent-%COMP%]{font-weight:700;font-size:smaller}.appearance[_ngcontent-%COMP%]   .detail-span-header[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]   .detail-span-header[_ngcontent-%COMP%]{padding:5px;margin:5px}.appearance[_ngcontent-%COMP%]   .detail-span[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]   .detail-span[_ngcontent-%COMP%]{padding:5px;margin:5px;border-radius:5px}.appearance[_ngcontent-%COMP%]   .autosend[_ngcontent-%COMP%], .appearance[_ngcontent-%COMP%]   .prompts[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]   .autosend[_ngcontent-%COMP%], .features-container[_ngcontent-%COMP%]   .prompts[_ngcontent-%COMP%]{padding:2px;margin:5px;border-radius:5px}table[_ngcontent-%COMP%]{width:100%}tr.example-detail-row[_ngcontent-%COMP%]{height:0}.example-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom-width:0}.example-element-detail[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[Kl("detailExpand",[ca("collapsed,void",Tr({height:"0px",minHeight:"0"})),ca("expanded",Tr({height:"*"})),Xl("expanded <=> collapsed",Zl("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});}}return t;})();var Xie=t=>({name:t,icon:"home",href:"/"}),Jie=()=>({name:"Chat",href:"/chat",icon:"question_answer"}),ene=(t,n)=>[t,n],tne=()=>["expandedDetail"],ine=()=>[10,25,100];function nne(t,n){t&1&&(m(0,"th",25),f(1,"Avatar"),u());}function rne(t,n){if(t&1&&(m(0,"td",26),w(1,"cb-gravatar",27),u()),t&2){let e=n.$implicit;d(),v("character",e)("size","50")("email",e.email);}}function one(t,n){t&1&&(m(0,"th",25),f(1,"Name"),u());}function ane(t,n){if(t&1&&(m(0,"td",26)(1,"span",28)(2,"a",29),f(3),u()()()),t&2){let e=n.$implicit;d(2),nr("routerLink","/chat/character/",e.slug,""),d(),C(e.name);}}function sne(t,n){t&1&&(m(0,"th",25),f(1,"Modified"),u());}function lne(t,n){if(t&1&&(m(0,"td",26)(1,"span",30),f(2),Ss(3,"date"),u()()),t&2){let e=n.$implicit;d(2),C(cg(3,1,e.date,"short"));}}function cne(t,n){t&1&&(m(0,"th",25),f(1,"Category"),u());}function dne(t,n){if(t&1&&(m(0,"td",26)(1,"span",31),f(2),u()()),t&2){let e=n.$implicit;d(2),C(e.category);}}function une(t,n){t&1&&(m(0,"th",25),f(1,"Description"),u());}function mne(t,n){if(t&1&&(m(0,"td",26)(1,"span",32),f(2),u()()),t&2){let e=n.$implicit,i=y();d(2),C(i.service.truncateString(e.description,60));}}function pne(t,n){if(t&1&&(m(0,"th",25),f(1),u()),t&2){let e=y();d(),N(" ",e.enabledTxt," ");}}function hne(t,n){if(t&1&&(m(0,"td",26),f(1),u()),t&2){let e=n.$implicit;d(),C(e.enabled);}}function fne(t,n){if(t&1&&(m(0,"th",33)(1,"span",34),f(2),u()()),t&2){let e=y();d(2),C(e.actionsTxt);}}function gne(t,n){t&1&&(m(0,"mat-icon"),f(1,"keyboard_arrow_up"),u());}function _ne(t,n){t&1&&(m(0,"mat-icon"),f(1,"keyboard_arrow_down"),u());}function bne(t,n){if(t&1){let e=K();m(0,"td",26)(1,"mat-toolbar",35)(2,"button",36),S("click",function(r){let o=k(e).$implicit,a=y();return a.expandedElement=a.expandedElement===o?null:o,M(r.stopPropagation());}),I(3,gne,2,0,"mat-icon")(4,_ne,2,0,"mat-icon"),u(),m(5,"button",37),S("click",function(r){let o=k(e).$implicit;return y().edit(o),M(r.stopPropagation());}),m(6,"mat-icon"),f(7,"edit"),u()(),m(8,"button",38),S("click",function(r){let o=k(e).$implicit;return y().newArticle(o),M(r.stopPropagation());}),m(9,"mat-icon"),f(10,"article"),u()(),m(11,"button",39),S("click",function(r){let o=k(e).$implicit;return y().reply(o),M(r.stopPropagation());}),m(12,"mat-icon"),f(13,"reply"),u()(),m(14,"button",40),S("click",function(r){let o=k(e).$implicit;return y().duplicate(o),M(r.stopPropagation());}),m(15,"mat-icon"),f(16,"content_copy"),u()(),m(17,"button",41),S("click",function(r){let o=k(e).$implicit;return y().remove(o),M(r.stopPropagation());}),m(18,"mat-icon"),f(19,"delete"),u()()()();}if(t&2){let e=n.$implicit,i=y();d(3),Q(i.expandedElement===e?3:4),d(2),G("matTooltip",i.editTxt),d(3),G("matTooltip",i.newArticleTxt),d(3),G("matTooltip",i.replyTxt),d(3),G("matTooltip",i.duplicateTxt),d(3),G("matTooltip",i.deleteTxt);}}function vne(t,n){if(t&1&&(m(0,"td",26)(1,"div",42)(2,"div",43)(3,"div")(4,"b"),f(5),u(),f(6),u(),m(7,"div")(8,"b"),f(9),u(),f(10),u(),m(11,"div")(12,"b"),f(13),u(),f(14),u(),m(15,"div")(16,"b"),f(17),u(),f(18),u()()()()),t&2){let e=n.$implicit,i=y();ee("colspan",i.columnsToDisplayWithExpand.length),d(),v("@detailExpand",e==i.expandedElement?"expanded":"collapsed"),d(4),C(i.descriptionTxt),d(),N(" : ",e.description," "),d(3),C(i.professionalDescriptionTxt),d(),N(" : ",e.professionalDescription," "),d(3),C(i.shortNameTxt),d(),N(" : ",e.slug," "),d(3),C(i.commentsPerDayTxt),d(),N(" : ",e.commentsPerDay," ");}}function yne(t,n){t&1&&w(0,"tr",44);}function xne(t,n){if(t&1&&w(0,"tr",45),t&2){let e=n.$implicit,i=y();Z("example-expanded-row",i.expandedElement===e);}}function Cne(t,n){t&1&&w(0,"tr",46);}function wne(t,n){if(t&1&&(m(0,"tr",47)(1,"td",48),f(2),u()()),t&2){y();let e=We(6);d(2),N(' No data matching the filter "',e.value,'" ');}}var XL=(()=>{class t{constructor(e,i){this.service=e,this.charactersService=i,this.displayedColumns=["icon","name","description","date"],this.columnsToDisplayWithExpand=[...this.displayedColumns,"actions"],this.expandedElement=null,this.newTxt="New",this.editTxt="Edit",this.newArticleTxt="Create Article",this.replyTxt="Reply to Post",this.homeTxt="Home",this.enabledTxt="Enabled",this.hiddenTxt="Hidden",this.duplicateTxt="Duplicate",this.actionsTxt="Actions",this.deleteTxt="Delete",this.descriptionTxt="Description",this.professionalDescriptionTxt="Professional Description",this.shortNameTxt="Short Name",this.emailTxt="Email",this.commentsPerDayTxt="Comments per day",this.managerTxt="Character Manager",this.helpTxt="The Character Manager allows users to create, edit, and delete AI characters.  Characters can \n      perform various actions such as posting comments on articles.",this.checked=!1,this.users=new Map(),this._snackBar=p(_n);let r=[];this.dataSource=new Wr(r);}ngAfterViewInit(){this.paginator.pageSize=25,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.getCharacters();}getCharacters(){this.charactersService.fetchModifiedFilteredAndSortedCharacters().subscribe(e=>{console.log(e),this.dataSource.data=e;});}applyFilter(e){let i=e.target.value;this.dataSource.filter=i.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage();}new(){console.log("new"),this.openCreateCharacterWindow();}edit(e){this.openCreateCharacterWindow(e);}newArticle(e){let i=this;console.log(e.name+"is writing an article");let r=" ("+e.name+")",o={title:"Create an Article"+r,msg:"",msg2:"",characterData:e};this.dialogRef=this.service.openNewArticleDialog(o),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(a){if(!a){console.log("no results from dialog");return;}console.log("new article dialog results",a),i._snackBar.open(a.data.msg,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(a){console.log("error encountered: ",a);},complete(){i.dialogRef=void 0,console.log("dialogref cleared");}});}reply(e){let i=this;console.log(e.name+"is repling");let r=" ("+e.name+")",o={title:"Reply To Article/Comment"+r,msg:"",msg2:"",characterData:e};this.dialogRef=this.service.openReplyDialog(o),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(a){if(!a){console.log("no results from dialog");return;}console.log("reply dialog results",a),i._snackBar.open(a.data.msg,void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(a){console.log("error encountered: ",a);},complete(){i.dialogRef=void 0,console.log("dialogref cleared");}});}openCreateCharacterWindow(e){let i=this,r="Create AI Character",o="Edit AI Character",a={title:e?o:r,msg:"",msg2:""};e&&(a.editCharacterData=e),this.dialogRef=this.service.openCharacterCreateDialog(a),this.dialogRef.afterClosed().pipe(de(1)).subscribe({next(s){if(console.log("create character dialog results",s),!s){console.log("no results from dialog");return;}let l=s.data?.storageId;if(console.log("storage id is ",l),l){let c=s.data;i.patchCharacter(c),console.log("character patched");}else{let c=s.data;i.postNewCharacter(c),console.log("character posted");}},error(s){console.log("error encountered: ",s);},complete(){i.dialogRef=void 0,console.log("dialogref cleared");}});}remove(e){let i=this,r={title:"Delete Character?",msg:e.name,msg2:""};this.service.openConfirmationDialog(r).afterClosed().pipe(de(1)).subscribe({next(a){if(!a){console.log("no results from dialog");return;}a?.confirm===!0?i.deleteCharacter(e):console.log("delete cancelled");},error(a){console.log("error encountered: ",a);},complete(){i.dialogRef=void 0,console.log("dialogref cleared");}});}deleteCharacter(e){let i=this;console.log("delete character",e),this.charactersService.deleteCharacter(e).pipe(de(1)).subscribe({next(r){i.getCharacters(),i._snackBar.open("Widget deleted.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(r){console.log("error encountered deleting widget: ",r);},complete(){}});}duplicate(e){let i=this,r={title:"Duplicate Character?",msg:e.name,msg2:""};this.service.openConfirmationDialog(r).afterClosed().pipe(de(1)).subscribe({next(a){if(!a){console.log("no results from dialog");return;}let s=i.charactersService.clone(e);if(a?.confirm===!0){let l=" (copy)";s.name?.endsWith(l)||(s.name+=l),i.postNewCharacter(s);}else console.log("delete cancelled");},error(a){console.log("error encountered: ",a);},complete(){i.dialogRef=void 0,console.log("dialogref cleared");}});}patchCharacter(e){let i=this;this.charactersService.patchCharacter(e).pipe(de(1)).subscribe({next(r){i.getCharacters(),i._snackBar.open("Character has been modified.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(r){console.log("error encountered patching character: ",r);},complete(){}});}postNewCharacter(e){let i=this;this.charactersService.postCharacter(e).pipe(de(1)).subscribe({next(r){console.log("post new character result",r),i.getCharacters(),i._snackBar.open("New character created.",void 0,{duration:3e3,panelClass:["custom-snack","custom-snack-info"]});},error(r){console.log("error encountered creating character: ",r);},complete(){}});}static{this.ɵfac=function(i){return new(i||t)(D(fe),D(Da));};}static{this.ɵcmp=E({type:t,selectors:[["cb-character-manager"]],viewQuery:function(i,r){if(i&1&&($(cs,5),$(cn,5)),i&2){let o;R(o=O())&&(r.paginator=o.first),R(o=O())&&(r.sort=o.first);}},decls:40,vars:18,consts:[["input",""],[3,"title","icon","help","breadcrumbs"],[1,"manager-tools"],[1,"tool-filter"],["matInput","","placeholder","Enter search term",3,"keyup"],[1,"example-spacer"],["mat-raised-button","",3,"click"],[1,"mat-elevation-z8"],["mat-table","","multiTemplateDataRows","","matSort","","matSortActive","name","matSortDirection","asc",3,"dataSource"],["matColumnDef","icon"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","date"],["matColumnDef","category"],["matColumnDef","description"],["matColumnDef","enabled"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",3,"example-expanded-row",4,"matRowDef","matRowDefColumns"],["mat-row","","class","example-detail-row",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["id","manager-paginator","aria-label","Select page of users",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"character","size","email"],[1,"character-name"],[3,"routerLink"],[1,"character-modification-date"],[1,"character-category"],[1,"character-description"],["mat-header-cell",""],[1,"actions-txt"],[1,"actions-tools"],["mat-icon-button","","aria-label","expand row","matTooltip","Show Details",3,"click"],["mat-icon-button","",1,"edit-button",3,"click","matTooltip"],["mat-icon-button","",1,"new-article-button",3,"click","matTooltip"],["mat-icon-button","",1,"reply-button",3,"click","matTooltip"],["mat-icon-button","",1,"duplicate-button",3,"click","matTooltip"],["mat-icon-button","",1,"delete-button",3,"click","matTooltip"],[1,"example-element-detail"],[1,"details-container"],["mat-header-row",""],["mat-row","",1,"example-element-row"],["mat-row","",1,"example-detail-row"],[1,"mat-row"],["colspan","4",1,"mat-cell"]],template:function(i,r){if(i&1){let o=K();w(0,"cb-page-header",1),m(1,"mat-toolbar",2)(2,"mat-form-field",3)(3,"mat-label"),f(4,"Filter"),u(),m(5,"input",4,0),S("keyup",function(s){return k(o),M(r.applyFilter(s));}),u()(),w(7,"span",5),m(8,"button",6),S("click",function(){return k(o),M(r.new());}),f(9),u()(),m(10,"div",7)(11,"table",8),Ce(12,9),I(13,nne,2,0,"th",10)(14,rne,2,3,"td",11),we(),Ce(15,12),I(16,one,2,0,"th",10)(17,ane,4,3,"td",11),we(),Ce(18,13),I(19,sne,2,0,"th",10)(20,lne,4,4,"td",11),we(),Ce(21,14),I(22,cne,2,0,"th",10)(23,dne,3,1,"td",11),we(),Ce(24,15),I(25,une,2,0,"th",10)(26,mne,3,1,"td",11),we(),Ce(27,16),I(28,pne,2,1,"th",10)(29,hne,2,1,"td",11),we(),Ce(30,17),I(31,fne,3,1,"th",18)(32,bne,20,6,"td",11),we(),Ce(33,19),I(34,vne,19,10,"td",11),we(),I(35,yne,1,0,"tr",20)(36,xne,1,2,"tr",21)(37,Cne,1,0,"tr",22)(38,wne,3,1,"tr",23),u(),w(39,"mat-paginator",24),u();}i&2&&(v("title",r.managerTxt)("icon","people")("help",r.helpTxt)("breadcrumbs",Dl(13,ene,Ue(10,Xie,r.homeTxt),Sn(12,Jie))),d(9),C(r.newTxt),d(2),v("dataSource",r.dataSource),d(24),v("matHeaderRowDef",r.columnsToDisplayWithExpand),d(),v("matRowDefColumns",r.columnsToDisplayWithExpand),d(),v("matRowDefColumns",Sn(16,tne)),d(2),v("pageSizeOptions",Sn(17,ine)));},dependencies:[ce,ye,Si,Rt,Lt,Nt,kt,Ai,va,vn,ua,fa,ma,da,ga,pa,ha,_a,ba,x_,Ks,cn,Qs,ou,cs,Ft,Bt,ke,Oe,rn,_i,Je,Ct,Em,Ea],styles:[".manager-tools[_ngcontent-%COMP%]{margin-top:10px;height:80px}.manager-tools[_ngcontent-%COMP%]   .tool-filter[_ngcontent-%COMP%]{margin-top:15px}.actions-tools[_ngcontent-%COMP%]{padding-left:0}.actions-txt[_ngcontent-%COMP%]{margin-left:20px}.character-name[_ngcontent-%COMP%]{font-size:larger}.details-container[_ngcontent-%COMP%]{width:90%;margin-left:15px}table[_ngcontent-%COMP%]{width:100%}tr.example-detail-row[_ngcontent-%COMP%]{height:0}.example-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom-width:0}.example-element-detail[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[Kl("detailExpand",[ca("collapsed,void",Tr({height:"0px",minHeight:"0"})),ca("expanded",Tr({height:"*"})),Xl("expanded <=> collapsed",Zl("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});}}return t;})();var Dne=()=>[0],JL=(()=>{class t{constructor(e,i,r,o,a){this.router=e,this.route=i,this.site=r,this._snackBar=o,this.imageService=a,this.testImage="http://drupal.local/sites/default/files/cbt/create/2024-08-27.png",this.saveTxt="Save",this.saveTipTxt="Save compressed image To Media Library.",this.url="",this.dialog=p(ni);}ngOnInit(){let e=this;this.testImage=this.site.site.drupalHost+"/sites/default/files/cbt/create/2024-08-27.png",this.route.queryParamMap.subscribe(i=>{e.url=i.get("url")||this.testImage;});}openDialog(e){return this.dialog.open(kb,{width:"600px",enterAnimationDuration:"500ms",exitAnimationDuration:"300ms",hasBackdrop:!0,disableClose:!0,data:e});}save(){let e=this,i={title:"Save Image",msg:"",msg2:"",url:this.url};this.openDialog(i).afterClosed().pipe(de(1)).subscribe({next(o){if(!o){console.log("no results from dialog");return;}let a=o.data;console.log("compression value is",a),e.imageService.saveToMediaLibrary(e.url,a);},error(o){console.log("error encountered: ",o);},complete(){console.log("dialogref cleared");}});}createEdits(){console.log("create edits not implemented here.");}createVariations(){console.log("create edits not implemented here.");}static{this.ɵfac=function(i){return new(i||t)(D(Xe),D(An),D(pt),D(_n),D(ns));};}static{this.ɵcmp=E({type:t,selectors:[["cb-image-detail"]],decls:9,vars:7,consts:[[1,"image-container"],[3,"createEditsEvent","createVariationsEvent","disabledActions","width","url","fullUrl"],[1,"example-spacer"],["mat-raised-button","","matTooltipPosition","above",3,"click","matTooltip"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"cb-image-enhancer",1),S("createEditsEvent",function(){return r.createEdits();})("createVariationsEvent",function(){return r.createVariations();}),u()(),m(2,"mat-toolbar"),w(3,"span",2),m(4,"button",3),S("click",function(){return r.save();}),m(5,"mat-icon"),f(6,"save_alt"),u(),f(7),u(),w(8,"span",2),u()),i&2&&(d(),v("disabledActions",Sn(6,Dne))("width",512)("url",r.url)("fullUrl",r.url),d(3),G("matTooltip",r.saveTipTxt),d(3),N(" ",r.saveTxt," "));},dependencies:[on,rn,Je,Ct,ke,Oe,ce,ye,au],styles:[".image-container[_ngcontent-%COMP%]{margin:60px 0;display:flex;align-items:center;justify-content:center}.image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:50%}"]});}}return t;})();var e4=(()=>{class t extends ct{constructor(e){super(e),this.service=e,this.config.endpoint=oe.character,this.config.messageHint="Enter your chat message here.",this.config.message="",this.config.features.prompts.enabled=!0,this.config.features.new=!0,this.config.features.save=!0,this.config.features.clear=!0,this.config.features.send=!0,this.config.features.copyToClipboard=!0,this.config.features.copyToPrompt=!0,this.config.features.streamedResponses=!0,this.config.features.share=!0;}static{this.ɵfac=function(i){return new(i||t)(D(fe));};}static{this.ɵcmp=E({type:t,selectors:[["cb-character"]],features:[W],decls:1,vars:0,template:function(i,r){i&1&&w(0,"cb-chat-messenger");},dependencies:[j,xt],encapsulation:2});}}return t;})();var EE=new A("MAT_DATE_LOCALE",{providedIn:"root",factory:Ene});function Ene(){return p(Is);}var xu="Method not implemented",ur=class{locale;_localeChanges=new H();localeChanges=this._localeChanges;setTime(n,e,i,r){throw new Error(xu);}getHours(n){throw new Error(xu);}getMinutes(n){throw new Error(xu);}getSeconds(n){throw new Error(xu);}parseTime(n,e){throw new Error(xu);}addSeconds(n,e){throw new Error(xu);}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null;}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid();}setLocale(n){this.locale=n,this._localeChanges.next();}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e);}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e);}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r;}return n==e;}sameTime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareTime(n,e):i==r;}return n==e;}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n;}},gc=new A("mat-date-formats");var kne=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,Mne=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function kE(t,n){let e=Array(t);for(let i=0;i<t;i++)e[i]=n(i);return e;}var Sne=(()=>{class t extends ur{useUtcForDisplay=!1;_matDateLocale=p(EE,{optional:!0});constructor(){super();let e=p(EE,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale);}getYear(e){return e.getFullYear();}getMonth(e){return e.getMonth();}getDate(e){return e.getDate();}getDayOfWeek(e){return e.getDay();}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return kE(12,r=>this._format(i,new Date(2017,r,1)));}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return kE(31,i=>this._format(e,new Date(2017,0,i+1)));}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return kE��(7,r=>this._format(i,new Date(2017,0,r+1)));}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e);}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i;}return 0;}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0));}clone(e){return new Date(e.getTime());}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o;}today(){return new Date();}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null;}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,ze(B({},i),{timeZone:"utc"}));return this._format(r,e);}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12);}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r;}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i);}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-");}deserialize(e){if(typeof e=="string"){if(!e)return null;if(kne.test(e)){let i=new Date(e);if(this.isValid(i))return i;}}return super.deserialize(e);}isDateInstance(e){return e instanceof Date;}isValid(e){return!isNaN(e.getTime());}invalid(){return new Date(NaN);}setTime(e,i,r,o){let a=this.clone(e);return a.setHours(i,r,o,0),a;}getHours(e){return e.getHours();}getMinutes(e){return e.getMinutes();}getSeconds(e){return e.getSeconds();}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let o=this._parseTimeString(r);if(o===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(o=this._parseTimeString(a));}return o||this.invalid();}addSeconds(e,i){return new Date(e.getTime()+i*1e3);}_createDateWithOverflow(e,i,r){let o=new Date();return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o;}_2digit(e){return("00"+e).slice(-2);}_format(e,i){let r=new Date();return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r);}_parseTimeString(e){let i=e.toUpperCase().match(Mne);if(i){let r=parseInt(i[1]),o=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),s=i[4];if(r===12?r=s==="AM"?0:r:s==="PM"&&(r+=12),ME(r,0,23)&&ME(o,0,59)&&(a==null||ME(a,0,59)))return this.setTime(this.today(),r,o,a||0);}return null;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})();function ME(t,n,e){return!isNaN(t)&&t>=n&&t<=e;}var Ine={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};function t4(t=Ine){return[{provide:ur,useClass:Sne},{provide:gc,useValue:t}];}var Tne=["mat-calendar-body",""];function Ane(t,n){return this._trackRow(n);}var l4=(t,n)=>n.id;function Rne(t,n){if(t&1&&(m(0,"tr",0)(1,"td",3),f(2),u()()),t&2){let e=y();d(),xi("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ee("colspan",e.numCols),d(),N(" ",e.label," ");}}function One(t,n){if(t&1&&(m(0,"td",3),f(1),u()),t&2){let e=y(2);xi("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ee("colspan",e._firstRowOffset),d(),N(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ");}}function Pne(t,n){if(t&1){let e=K();m(0,"td",6)(1,"button",7),S("click",function(r){let o=k(e).$implicit,a=y(2);return M(a._cellClicked(o,r));})("focus",function(r){let o=k(e).$implicit,a=y(2);return M(a._emitActiveDateChange(o,r));}),m(2,"span",8),f(3),u(),w(4,"span",9),u()();}if(t&2){let e=n.$implicit,i=n.$index,r=y().$index,o=y();xi("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),ee("data-mat-row",r)("data-mat-col",i),d(),Z("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),v("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),ee("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),d(),Z("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),d(),N(" ",e.displayValue," ");}}function Fne(t,n){if(t&1&&(m(0,"tr",1),I(1,One,2,6,"td",4),Ut(2,Pne,5,48,"td",5,l4),u()),t&2){let e=n.$implicit,i=n.$index,r=y();d(),Q(i===0&&r._firstRowOffset?1:-1),d(),qt(e);}}function Nne(t,n){if(t&1&&(m(0,"th",2)(1,"span",6),f(2),u(),m(3,"span",3),f(4),u()()),t&2){let e=n.$implicit;d(2),C(e.long),d(2),C(e.narrow);}}var Lne=["*"];function Vne(t,n){}function zne(t,n){if(t&1){let e=K();m(0,"mat-month-view",4),pi("activeDateChange",function(r){k(e);let o=y();return Ci(o.activeDate,r)||(o.activeDate=r),M(r);}),S("_userSelection",function(r){k(e);let o=y();return M(o._dateSelected(r));})("dragStarted",function(r){k(e);let o=y();return M(o._dragStarted(r));})("dragEnded",function(r){k(e);let o=y();return M(o._dragEnded(r));}),u();}if(t&2){let e=y();mi("activeDate",e.activeDate),v("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag);}}function Bne(t,n){if(t&1){let e=K();m(0,"mat-year-view",5),pi("activeDateChange",function(r){k(e);let o=y();return Ci(o.activeDate,r)||(o.activeDate=r),M(r);}),S("monthSelected",function(r){k(e);let o=y();return M(o._monthSelectedInYearView(r));})("selectedChange",function(r){k(e);let o=y();return M(o._goToDateInView(r,"month"));}),u();}if(t&2){let e=y();mi("activeDate",e.activeDate),v("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass);}}function jne(t,n){if(t&1){let e=K();m(0,"mat-multi-year-view",6),pi("activeDateChange",function(r){k(e);let o=y();return Ci(o.activeDate,r)||(o.activeDate=r),M(r);}),S("yearSelected",function(r){k(e);let o=y();return M(o._yearSelectedInMultiYearView(r));})("selectedChange",function(r){k(e);let o=y();return M(o._goToDateInView(r,"year"));}),u();}if(t&2){let e=y();mi("activeDate",e.activeDate),v("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass);}}function Hne(t,n){}var $ne=["button"],Une=[[["","matDatepickerToggleIcon",""]]],qne=["[matDatepickerToggleIcon]"];function Wne(t,n){t&1&&(Zt(),m(0,"svg",2),w(1,"path",3),u());}var wu=(()=>{class t{changes=new H();calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`;}formatYearRangeLabel(e,i){return`${e} to ${i}`;}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}return t;})(),Gne=0,th=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Gne++;constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s;}},Yne={passive:!1,capture:!0},Mb={passive:!0,capture:!0},i4={passive:!0},Cu=(()=>{class t{_elementRef=p(J);_ngZone=p(ae);_platform=p(Ae);_intl=p(wu);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1);}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new V();previewChange=new V();activeDateChange=new V();dragStarted=new V();dragEnded=new V();_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Se);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(tt),i=p(Ye);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-end-"),p(nt).load(ii),this._ngZone.runOutsideAngular(()=>{let r=this._elementRef.nativeElement,o=[Wt(e,r,"touchmove",this._touchmoveHandler,Yne),Wt(e,r,"mouseenter",this._enterHandler,Mb),Wt(e,r,"focus",this._enterHandler,Mb),Wt(e,r,"mouseleave",this._leaveHandler,Mb),Wt(e,r,"blur",this._leaveHandler,Mb),Wt(e,r,"mousedown",this._mousedownHandler,i4),Wt(e,r,"touchstart",this._mousedownHandler,i4)];this._platform.isBrowser&&o.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=o;});}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i});}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i});}_isSelected(e){return this.startValue===e||this.endValue===e;}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`);}ngOnDestroy(){this._eventCleanups.forEach(e=>e());}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell;}_focusActiveCell(e=!0){li(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus());});},{injector:this._injector});}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0;}_isRangeStart(e){return TE(e,this.startValue,this.endValue);}_isRangeEnd(e){return AE(e,this.startValue,this.endValue);}_isInRange(e){return RE(e,this.startValue,this.endValue,this.isRange);}_isComparisonStart(e){return TE(e,this.comparisonStart,this.comparisonEnd);}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1];}return o&&!this._isRangeEnd(o.compareValue);}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0];}return o&&!this._isRangeStart(o.compareValue);}_isComparisonEnd(e){return AE(e,this.comparisonStart,this.comparisonEnd);}_isInComparisonRange(e){return RE(e,this.comparisonStart,this.comparisonEnd,this.isRange);}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart;}_isPreviewStart(e){return TE(e,this.previewStart,this.previewEnd);}_isPreviewEnd(e){return AE(e,this.previewStart,this.previewEnd);}_isInPreview(e){return RE(e,this.previewStart,this.previewEnd,this.isRange);}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId;}return null;}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return;}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}));}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=n4(e),r=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),IE(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:r?.enabled?r:null,event:e}));};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})));};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e});});};_mouseupHandler=e=>{if(!this.isRange)return;let i=IE(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e});});return;}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let r=this._getCellFromElement(i);this.dragEnded.emit({value:r?.rawValue??null,event:e});});};_touchendHandler=e=>{let i=n4(e);i&&this._mouseupHandler({target:i});};_getCellFromElement(e){let i=IE(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)][parseInt(o)];}return null;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,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:[He],attrs:Tne,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(i,r){i&1&&(I(0,Rne,3,6,"tr",0),Ut(1,Fne,4,1,"tr",1,Ane,!0),m(3,"span",2),f(4),u(),m(5,"span",2),f(6),u(),m(7,"span",2),f(8),u(),m(9,"span",2),f(10),u()),i&2&&(Q(r._firstRowOffset<r.labelMinRequiredCells?0:-1),d(),qt(r.rows),d(2),v("id",r._startDateLabelId),d(),N(" ",r.startDateAccessibleName,`
`),d(),v("id",r._endDateLabelId),d(),N(" ",r.endDateAccessibleName,`
`),d(),v("id",r._comparisonStartDateLabelId),d(),br(" ",r.comparisonDateAccessibleName," ",r.startDateAccessibleName,`
`),d(),v("id",r._comparisonEndDateLabelId),d(),br(" ",r.comparisonDateAccessibleName," ",r.endDateAccessibleName,`
`));},dependencies:[yr],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;font-family:inherit;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}}
`],encapsulation:2,changeDetection:0});}return t;})();function SE(t){return t?.nodeName==="TD";}function IE(t){let n;return SE(t)?n=t:SE(t.parentNode)?n=t.parentNode:SE(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null;}function TE(t,n,e){return e!==null&&n!==e&&t<e&&t===n;}function AE(t,n,e){return n!==null&&n!==e&&t>=n&&t===e;}function RE(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e;}function n4(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY);}var Qr=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e;}},Sb=(()=>{class t{selection;_adapter;_selectionChanged=new H();selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e;}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r});}ngOnDestroy(){this._selectionChanged.complete();}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e);}static ɵfac=function(i){od();};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})(),Qne=(()=>{class t extends Sb{constructor(e){super(null,e);}add(e){super.updateSelection(e,this);}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection);}isComplete(){return this.selection!=null;}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e;}static ɵfac=function(i){return new(i||t)(te(ur));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})();function Kne(t,n){return t||new Qne(n);}var Zne={provide:Sb,deps:[[new _r(),new no(),Sb],ur],useFactory:Kne};var c4=new A("MAT_DATE_RANGE_SELECTION_STRATEGY");var OE=7,Xne=0,r4=(()=>{class t{_changeDetectorRef=p(pe);_dateFormats=p(gc,{optional:!0});_dateAdapter=p(ur,{optional:!0});_dir=p(Et,{optional:!0});_rangeStrategy=p(c4,{optional:!0});_rerenderSubscription=ve.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate;}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init();}_activeDate;get selected(){return this._selected;}set selected(e){e instanceof Qr?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected);}_selected;get minDate(){return this._minDate;}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_minDate;get maxDate(){return this._maxDate;}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new V();_userSelection=new V();dragStarted=new V();dragEnded=new V();activeDateChange=new V();_matCalendarBody;_monthLabel;_weeks;_firstWeekOffset;_rangeStart;_rangeEnd;_comparisonRangeStart;_comparisonRangeEnd;_previewStart;_previewEnd;_isRange;_todayDate;_weekdays;constructor(){p(nt).load(Br),this._activeDate=this._dateAdapter.today();}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ht(null)).subscribe(()=>this._init());}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview();}ngOnDestroy(){this._rerenderSubscription.unsubscribe();}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof Qr?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck();}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate);}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!ti(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:n��ull,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return;}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault();}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1);}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(OE+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%OE,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck();}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e);}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked();}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end));}this._changeDetectorRef.detectChanges();}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event});}else this.dragEnded.emit({value:null,event:e.event});}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e);}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s],id:Xne++}));this._weekdays=o.slice(e).concat(o.slice(0,e));}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,o=this._firstWeekOffset;r<e;r++,o++){o==OE&&(this._weeks.push([]),o=0);let a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),r+1),s=this._shouldEnableDate(a),l=this._dateAdapter.format(a,this._dateFormats.display.dateA11yLabel),c=this.dateClass?this.dateClass(a,"month"):void 0;this._weeks[this._weeks.length-1].push(new th(r+1,i[r],l,s,c,this._getCellCompareValue(a),a));}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e));}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null;}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i));}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime();}return null;}_isRtl(){return this._dir&&this._dir.value==="rtl";}_setRanges(e){e instanceof Qr?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd);}_canSelect(e){return!this.dateFilter||this.dateFilter(e);}_clearPreview(){this._previewStart=this._previewEnd=null;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&$(Cu,5),i&2){let o;R(o=O())&&(r._matCalendarBody=o.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:[He],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(i,r){i&1&&(m(0,"table",0)(1,"thead",1)(2,"tr"),Ut(3,Nne,5,2,"th",2,l4),u(),m(5,"tr",3),w(6,"th",4),u()(),m(7,"tbody",5),S("selectedValueChange",function(a){return r._dateSelected(a);})("activeDateChange",function(a){return r._updateActiveDate(a);})("previewChange",function(a){return r._previewChanged(a);})("dragStarted",function(a){return r.dragStarted.emit(a);})("dragEnded",function(a){return r._dragEnded(a);})("keyup",function(a){return r._handleCalendarBodyKeyup(a);})("keydown",function(a){return r._handleCalendarBodyKeydown(a);}),u()()),i&2&&(d(3),qt(r._weekdays),d(4),v("label",r._monthLabel)("rows",r._weeks)("todayValue",r._todayDate)("startValue",r._rangeStart)("endValue",r._rangeEnd)("comparisonStart",r._comparisonRangeStart)("comparisonEnd",r._comparisonRangeEnd)("previewStart",r._previewStart)("previewEnd",r._previewEnd)("isRange",r._isRange)("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName));},dependencies:[Cu],encapsulation:2,changeDetection:0});}return t;})(),Ia=24,o4=4,a4=(()=>{class t{_changeDetectorRef=p(pe);_dateAdapter=p(ur,{optional:!0});_dir=p(Et,{optional:!0});_rerenderSubscription=ve.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate;}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),d4(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init();}_activeDate;get selected(){return this._selected;}set selected(e){e instanceof Qr?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e);}_selected;get minDate(){return this._minDate;}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_minDate;get maxDate(){return this._maxDate;}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_maxDate;dateFilter;dateClass;selectedChange=new V();yearSelected=new V();activeDateChange=new V();_matCalendarBody;_years;_todayYear;_selectedYear;constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today();}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ht(null)).subscribe(()=>this._init());}ngOnDestroy(){this._rerenderSubscription.unsubscribe();}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let i=this._dateAdapter.getYear(this._activeDate)-eh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,o=[];r<Ia;r++)o.push(i+r),o.length==o4&&(this._years.push(o.map(a=>this._createCellForYear(a))),o=[]);this._changeDetectorRef.markForCheck();}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o);}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate);}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-eh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ia-eh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-24*10:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Ia*10:Ia);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return;}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault();}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1);}_getActiveCell(){return eh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);}_focusActiveCell(){this._matCalendarBody._focusActiveCell();}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked();}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r));}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new th(e,r,r,this._shouldEnableYear(e),o);}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;let i=this._dateAdapter.createDate(e,0,1);for(let r=i;this._dateAdapter.getYear(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1;}_isRtl(){return this._dir&&this._dir.value==="rtl";}_setSelectedYear(e){if(this._selectedYear=null,e instanceof Qr){let i=e.start||e.end;i&&(this._selectedYear=this._dateAdapter.getYear(i));}else e&&(this._selectedYear=this._dateAdapter.getYear(e));}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-multi-year-view"]],viewQuery:function(i,r){if(i&1&&$(Cu,5),i&2){let o;R(o=O())&&(r._matCalendarBody=o.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(i,r){i&1&&(m(0,"table",0)(1,"thead",1)(2,"tr"),w(3,"th",2),u()(),m(4,"tbody",3),S("selectedValueChange",function(a){return r._yearSelected(a);})("activeDateChange",function(a){return r._updateActiveDate(a);})("keyup",function(a){return r._handleCalendarBodyKeyup(a);})("keydown",function(a){return r._handleCalendarBodyKeydown(a);}),u()()),i&2&&(d(4),v("rows",r._years)("todayValue",r._todayYear)("startValue",r._selectedYear)("endValue",r._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",r._getActiveCell()));},dependencies:[Cu],encapsulation:2,changeDetection:0});}return t;})();function d4(t,n,e,i,r){let o=t.getYear(n),a=t.getYear(e),s=u4(t,i,r);return Math.floor((o-s)/Ia)===Math.floor((a-s)/Ia);}function eh(t,n,e,i){let r=t.getYear(n);return Jne(r-u4(t,e,i),Ia);}function u4(t,n,e){let i=0;return e?i=t.getYear(e)-Ia+1:n&&(i=t.getYear(n)),i;}function Jne(t,n){return(t%n+n)%n;}var s4=(()=>{class t{_changeDetectorRef=p(pe);_dateFormats=p(gc,{optional:!0});_dateAdapter=p(ur,{optional:!0});_dir=p(Et,{optional:!0});_rerenderSubscription=ve.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate;}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init();}_activeDate;get selected(){return this._selected;}set selected(e){e instanceof Qr?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e);}_selected;get minDate(){return this._minDate;}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_minDate;get maxDate(){return this._maxDate;}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_maxDate;dateFilter;dateClass;selectedChange=new V();monthSelected=new V();activeDateChange=new V();_matCalendarBody;_months;_yearLabel;_todayMonth;_selectedMonth;constructor(){this._activeDate=this._dateAdapter.today();}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ht(null)).subscribe(()=>this._init());}ngOnDestroy(){this._rerenderSubscription.unsubscribe();}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o);}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate);}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return;}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault();}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1);}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck();}_focusActiveCell(){this._matCalendarBody._focusActiveCell();}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked();}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null;}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r));}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new th(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a);}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1;}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o;}return!1;}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e<r||e===r&&i<o;}return!1;}_isRtl(){return this._dir&&this._dir.value==="rtl";}_setSelectedMonth(e){e instanceof Qr?this._selectedMonth=this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._selectedMonth=this._getMonthInCurrentYear(e);}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-year-view"]],viewQuery:function(i,r){if(i&1&&$(Cu,5),i&2){let o;R(o=O())&&(r._matCalendarBody=o.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(i,r){i&1&&(m(0,"table",0)(1,"thead",1)(2,"tr"),w(3,"th",2),u()(),m(4,"tbody",3),S("selectedValueChange",function(a){return r._monthSelected(a);})("activeDateChange",function(a){return r._updateActiveDate(a);})("keyup",function(a){return r._handleCalendarBodyKeyup(a);})("keydown",function(a){return r._handleCalendarBodyKeydown(a);}),u()()),i&2&&(d(4),v("label",r._yearLabel)("rows",r._months)("todayValue",r._todayMonth)("startValue",r._selectedMonth)("endValue",r._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",r._dateAdapter.getMonth(r.activeDate)));},dependencies:[Cu],encapsulation:2,changeDetection:0});}return t;})(),m4=(()=>{class t{_intl=p(wu);calendar=p(PE);_dateAdapter=p(ur,{optional:!0});_dateFormats=p(gc,{optional:!0});constructor(){p(nt).load(Br);let e=p(pe);this.calendar.stateChanges.subscribe(()=>e.markForCheck());}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels());}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels());}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel;}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView];}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView];}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month";}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-24);}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Ia);}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0;}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate);}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):d4(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate);}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-eh(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Ia-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a];}_periodButtonLabelId=p(Ye).getId("mat-calendar-period-label-");static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Lne,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","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"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(De(),m(0,"div",0)(1,"div",1)(2,"span",2),f(3),u(),m(4,"button",3),S("click",function(){return r.currentPeriodClicked();}),m(5,"span",4),f(6),u(),Zt(),m(7,"svg",5),w(8,"polygon",6),u()(),zo(),w(9,"div",7),le(10),m(11,"button",8),S("click",function(){return r.previousClicked();}),Zt(),m(12,"svg",9),w(13,"path",10),u()(),zo(),m(14,"button",11),S("click",function(){return r.nextClicked();}),Zt(),m(15,"svg",9),w(16,"path",12),u()()()()),i&2&&(d(2),v("id",r._periodButtonLabelId),d(),C(r.periodButtonDescription),d(),ee("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),d(2),C(r.periodButtonText),d(),Z("mat-calendar-invert",r.calendar.currentView!=="month"),d(4),v("disabled",!r.previousEnabled()),ee("aria-label",r.prevButtonLabel),d(3),v("disabled",!r.nextEnabled()),ee("aria-label",r.nextButtonLabel));},dependencies:[ye,Si],encapsulation:2,changeDetection:0});}return t;})(),PE=(()=>{class t{_dateAdapter=p(ur,{optional:!0});_dateFormats=p(gc,{optional:!0});_changeDetectorRef=p(pe);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt;}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_startAt;startView="month";get selected(){return this._selected;}set selected(e){e instanceof Qr?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_selected;get minDate(){return this._minDate;}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_minDate;get maxDate(){return this._maxDate;}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new V();yearSelected=new V();monthSelected=new V();viewChanged=new V(!0);_userSelection=new V();_userDragDrop=new V();monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate;}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck();}_clampedActiveDate;get currentView(){return this._currentView;}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i);}_currentView;_activeDrag=null;stateChanges=new H();constructor(){this._intlChanges=p(wu).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next();});}ngAfterContentInit(){this._calendarHeaderPortal=new lr(this.headerComponent||m4),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView;}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell());}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete();}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),a._init());}this.stateChanges.next();}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1);}updateTodaysDate(){this._getCurrentViewComponent()._init();}_dateSelected(e){let i=e.value;(this.selected instanceof Qr||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e);}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e);}_monthSelectedInYearView(e){this.monthSelected.emit(e);}_goToDateInView(e,i){this.activeDate=e,this.currentView=i;}_dragStarted(e){this._activeDrag=e;}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null);}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView;}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&($(r4,5),$(s4,5),$(a4,5)),i&2){let o;R(o=O())&&(r.monthView=o.first),R(o=O())&&(r.yearView=o.first),R(o=O())&&(r.multiYearView=o.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:[be([Zne]),He],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(i,r){if(i&1&&(I(0,Vne,0,0,"ng-template",0),m(1,"div",1),I(2,zne,1,11,"mat-month-view",2)(3,Bne,1,6,"mat-year-view",3)(4,jne,1,6,"mat-multi-year-view",3),u()),i&2){let o;v("cdkPortalOutlet",r._calendarHeaderPortal),d(2),Q((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1);}},dependencies:[en,ip,r4,s4,a4],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));--mdc-text-button-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:""}
`],encapsulation:2,changeDetection:0});}return t;})(),ere=new A("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(Gt);return()=>t.scrollStrategies.reposition();}});function tre(t){return()=>t.scrollStrategies.reposition();}var ire={pr��ovide:ere,deps:[Gt],useFactory:tre},nre=(()=>{class t{_elementRef=p(J);_animationsDisabled=p(Ne,{optional:!0})==="NoopAnimations";_changeDetectorRef=p(pe);_globalModel=p(Sb);_dateAdapter=p(ur);_ngZone=p(ae);_rangeSelectionStrategy=p(c4,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new H();_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(p(nt).load(Br),this._closeButtonText=p(wu).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=p(tt);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)]);}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck();}),this._calendar.focusActiveCell();}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete();}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof Qr;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this);}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close();}_handleUserDragDrop(e){this._model.updateSelection(e.value,this);}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next();},200));}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next());};_getSelected(){return this._model.selection;}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this);}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges();}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&$(PE,5),i&2){let o;R(o=O())&&(r._calendar=o.first);}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,r){i&2&&(bt(r.color?"mat-"+r.color:""),Z("mat-datepicker-content-touch",r.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!r._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","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){if(i&1&&(m(0,"div",0)(1,"mat-calendar",1),S("yearSelected",function(a){return r.datepicker._selectYear(a);})("monthSelected",function(a){return r.datepicker._selectMonth(a);})("viewChanged",function(a){return r.datepicker._viewChanged(a);})("_userSelection",function(a){return r._handleUserSelection(a);})("_userDragDrop",function(a){return r._handleUserDragDrop(a);}),u(),I(2,Hne,0,0,"ng-template",2),m(3,"button",3),S("focus",function(){return r._closeButtonFocused=!0;})("blur",function(){return r._closeButtonFocused=!1;})("click",function(){return r.datepicker.close();}),f(4),u()()),i&2){let o;Z("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),ee("aria-modal",!0)("aria-labelledby",(o=r._dialogLabelId)!==null&&o!==void 0?o:void 0),d(),bt(r.datepicker.panelClass),v("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),d(),v("cdkPortalOutlet",r._actionsPortal),d(),Z("cdk-visually-hidden",!r._closeButtonFocused),v("color",r.color||"primary"),d(),C(r._closeButtonText);}},dependencies:[_w,PE,en,ye],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;border-radius:4px;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}}
`],encapsulation:2,changeDetection:0});}return t;})();var rre=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵdir=z({type:t,selectors:[["","matDatepickerToggleIcon",""]]});}return t;})(),ore=(()=>{class t{_intl=p(wu);_changeDetectorRef=p(pe);_stateChanges=ve.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled;}set disabled(e){this._disabled=e;}_disabled;disableRipple;_customIcon;_button;constructor(){let e=p(new Ki("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null;}ngOnChanges(e){e.datepicker&&this._watchStateChanges();}ngOnDestroy(){this._stateChanges.unsubscribe();}ngAfterContentInit(){this._watchStateChanges();}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation());}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:se(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:se(),r=this.datepicker?St(this.datepicker.openedStream,this.datepicker.closedStream):se();this._stateChanges.unsubscribe(),this._stateChanges=St(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck());}static ɵfac=function(i){return new(i||t)();};static ɵcmp=E({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&Ee(o,rre,5),i&2){let a;R(a=O())&&(r._customIcon=a.first);}},viewQuery:function(i,r){if(i&1&&$($ne,5),i&2){let o;R(o=O())&&(r._button=o.first);}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&S("click",function(a){return r._open(a);}),i&2&&(ee("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),Z("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"));},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",U],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[He],ngContentSelectors:qne,decls:4,vars:7,consts:[["button",""],["mat-icon-button","","type","button",3,"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(i,r){i&1&&(De(Une),m(0,"button",1,0),I(2,Wne,2,0,":svg:svg",2),le(3),u()),i&2&&(v("disabled",r.disabled)("disableRipple",r.disableRipple),ee("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("tabindex",r.disabled?-1:r.tabIndex)("aria-expanded",r.datepicker?r.datepicker.opened:null),d(2),Q(r._customIcon?-1:2));},dependencies:[Si],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-on-surface-variant))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}
`],encapsulation:2,changeDetection:0});}return t;})();var p4=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({providers:[wu,ire],imports:[ce,Wn,es,On,he,nre,ore,m4,mo]});}return t;})();var h4=(()=>{class t{static ɵfac=function(i){return new(i||t)();};static ɵmod=re({type:t});static ɵinj=ne({imports:[es,he,he]});}return t;})();function are(t,n){if(t&1&&(m(0,"mat-list-item")(1,"a",0),f(2),u(),f(3),u()),t&2){let e,i,r,o=n.$implicit,a=y();d(),G("routerLink",(e=a.changes.get(o))==null?null:e.path),d(),C((i=a.changes.get(o))==null?null:i.path),d(),N(" ",(r=a.changes.get(o))==null?null:r.description," ");}}function sre(t,n){t&1&&(m(0,"p"),f(1,"No unsaved changes detected."),u());}var f4=(()=>{class t{constructor(){this.service=p(Fn),this.changes=this.service.changes;}ngOnInit(){}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-unsaved-changes"]],decls:4,vars:1,consts:[["matListItemTitle","",3,"routerLink"]],template:function(i,r){i&1&&(m(0,"mat-nav-list"),Ut(1,are,4,3,"mat-list-item",null,ir,!1,sre,2,0,"p"),u()),i&2&&(d(),qt(r.service.changes.keys()));},dependencies:[lu,tb,eb,Gp,Bt],encapsulation:2});}}return t;})();var Du=(()=>{class t{constructor(){this.cachedRoutes=new Map();}set(e,i){this.cachedRoutes.set(e,i);}unset(e){this.cachedRoutes.delete(e);}has(e){return this.cachedRoutes.has(e);}get(e){return this.cachedRoutes.get(e);}clear(){this.cachedRoutes.clear();}hasUnsavedChanges(){return this.cachedRoutes.size>0;}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵprov=P({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();function lre(t,n){if(t&1&&(m(0,"mat-list-item")(1,"a",0),f(2),u()()),t&2){let e,i,r=n.$implicit,o=y();d(),G("routerLink",(e=o.routes.get(r))==null?null:e.path),d(),C((i=o.routes.get(r))==null?null:i.path);}}function cre(t,n){t&1&&(m(0,"p"),f(1,"No cached routes detected."),u());}var g4=(()=>{class t{constructor(){this.crService=p(Du),this.routes=new Map();}ngOnInit(){this.routes=this.crService.cachedRoutes;}ngAfterViewInit(){}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-cached-routes"]],decls:4,vars:1,consts:[["matListItemTitle","",3,"routerLink"]],template:function(i,r){i&1&&(m(0,"mat-nav-list"),Ut(1,lre,3,2,"mat-list-item",null,ir,!1,cre,2,0,"p"),u()),i&2&&(d(),qt(r.routes.keys()));},dependencies:[lu,tb,eb,Gp,Bt],encapsulation:2});}}return t;})();var dre=t=>({name:t,icon:"home",href:"/"}),ure=t=>[t],_4=(()=>{class t{constructor(){this.cache=p(Bs),this.homeTxt="Home",this.settingsTxt="Settings",this.settingsHelpTxt="View and change application settings",this.experimentalTxt="Experimental",this.experimentalDescriptionTxt="Experimental features",this.autoSaveValue="off",this.autoSaveOffTxt="AutoSave Off",this.autoSaveOnTxt="AutoSave On",this.autoSavePublishTxt="AutoSave and Publish",this.unsavedTxt="Unsaved Changes",this.unsavedDescriptionTxt="Review and save unsaved changes",this.cachedTxt="Cached Routes",this.cachedDescriptionTxt="View cached routes",this.accordion=um.required(fc),this.ucService=p(Fn),this.crService=p(Du);}ngOnInit(){this.autoSaveValue=this.cache.get("autoSave")||"off";}ngAfterViewInit(){}changeAutoSave(e){this.autoSaveValue=e.value,console.log("Auto save changed to:",this.autoSaveValue);let i=60*24*365;this.cache.set("autoSave",this.autoSaveValue,i);}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=E({type:t,selectors:[["cb-settings"]],viewQuery:function(i,r){i&1&&fm(r.accordion,fc,5),i&2&&ad();},features:[be([t4()])],decls:28,vars:17,consts:[[3,"title","icon","help","breadcrumbs"],[1,"example-action-buttons"],["mat-button","",3,"click"],["multi","true",1,"example-headers-align"],["name","fontStyle","aria-label","Font Style",3,"change","value"],["value","off"],["value","on"],["value","publish"]],template:function(i,r){i&1&&(w(0,"cb-page-header",0),m(1,"div",1)(2,"button",2),S("click",function(){return r.accordion().openAll();}),f(3,"Expand All"),u(),m(4,"button",2),S("click",function(){return r.accordion().closeAll();}),f(5,"Collapse All"),u()(),m(6,"mat-accordion",3)(7,"mat-expansion-panel")(8,"mat-expansion-panel-header")(9,"mat-panel-title"),f(10),u()(),m(11,"mat-button-toggle-group",4),S("change",function(a){return r.changeAutoSave(a);}),m(12,"mat-button-toggle",5),f(13),u(),m(14,"mat-button-toggle",6),f(15),u(),m(16,"mat-button-toggle",7),f(17),u()()(),m(18,"mat-expansion-panel")(19,"mat-expansion-panel-header")(20,"mat-panel-title"),f(21),u()(),w(22,"cb-unsaved-changes"),u(),m(23,"mat-expansion-panel")(24,"mat-expansion-panel-header")(25,"mat-panel-title"),f(26),u()(),w(27,"cb-cached-routes"),u()()),i&2&&(v("title",r.settingsTxt)("icon","settings")("help",r.settingsHelpTxt)("breadcrumbs",Ue(15,ure,Ue(13,dre,r.homeTxt))),d(10),N(" ",r.experimentalTxt," (1) "),d(),v("value",r.autoSaveValue),d(2),C(r.autoSaveOffTxt),d(2),C(r.autoSaveOnTxt),d(2),C(r.autoSavePublishTxt),d(4),br(" ",r.unsavedTxt," (",r.ucService.changes.size,") "),d(5),br(" ",r.cachedTxt," (",r.crService.cachedRoutes.size,") "));},dependencies:[ce,ye,vu,fc,pc,hc,bu,ke,Rt,kt,p4,f4,g4,_i,h4,Db,mc,_u],styles:[".example-action-buttons[_ngcontent-%COMP%]{padding:20px 0 20px 20px}.example-headers-align[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}.badged-div[_ngcontent-%COMP%]{height:36px!important;min-height:36px!important}"],changeDetection:0});}}return t;})();var b4=[{path:"",component:lN,data:{key:oe.home}},{path:"login",component:Q_,data:{}},{path:"about",component:VL,data:{}},{path:"support",component:zL,data:{}},{path:"models",component:PL,data:{key:oe.openaimodels}},{path:"settings",component:_4,data:{}},{path:"characters",component:XL,data:{key:oe.characters}},{path:"image",component:LL,data:{},children:[{path:"generate",component:AL,data:{key:oe.imageGenerate}},{path:"edit",component:RL,data:{key:oe.imageEdit}},{path:"variations",component:OL,data:{key:oe.imageVariations}},{path:"prompts",component:FL,data:{key:oe.imagePrompts}},{path:"detail",component:JL,data:{}}]},{path:"chat",component:NL,data:{},children:[{path:"widget-manager",component:ZL,data:{}},{path:"ask-me-anything",component:EL,data:{key:oe.chat}},{path:"ask-me-anything-alt",component:ML,data:{key:oe.chatAlt}},{path:"to-french",component:BL,data:{key:oe.toFrench}},{path:"to-spanish",component:jL,data:{key:oe.toSpanish}},{path:"ancient-philosophy",component:kL,data:{key:oe.ancientPhilosophy}},{path:"jokes",component:IL,data:{key:oe.jokes}},{path:"topten",component:TL,data:{key:oe.topTen}},{path:"chat-stream",component:HL,data:{key:oe.chatStream}},{path:"chemical-elements",component:$L,data:{key:oe.chemicalElements}},{path:"socrates",component:UL,data:{key:oe.socrates}},{path:"particle-physics",component:qL,data:{key:oe.particlePhysics}},{path:"blackjack",component:WL,data:{key:oe.blackjack}},{path:"python-tutor",component:GL,data:{key:oe.pythonTutor}},{path:"ml-tutor",component:YL,data:{key:oe.mlTutor}},{path:"character/:id",component:e4,data:{key:oe.character}},{path:"widget/:id",component:QL,data:{key:oe.dynamicWidget}}]},{path:"**",component:SL}];function v4(t){return new X(3e3,!1);}function mre(){return new X(3100,!1);}function pre(){return new X(3101,!1);}function hre(t){return new X(3001,!1);}function fre(t){return new X(3003,!1);}function gre(t){return new X(3004,!1);}function x4(t,n){return new X(3005,!1);}function C4(){return new X(3006,!1);}function w4(){return new X(3007,!1);}function D4(t,n){return new X(3008,!1);}function E4(t){return new X(3002,!1);}function k4(t,n,e,i,r){return new X(3010,!1);}function M4(){return new X(3011,!1);}function S4(){return new X(3012,!1);}function I4(){return new X(3200,!1);}function T4(){return new X(3202,!1);}function A4(){return new X(3013,!1);}function R4(t){return new X(3014,!1);}function O4(t){return new X(3015,!1);}function P4(t){return new X(3016,!1);}function F4(t,n){return new X(3404,!1);}function _re(t){return new X(3502,!1);}function N4(t){return new X(3503,!1);}function L4(){return new X(3300,!1);}function V4(t){return new X(3504,!1);}function z4(t){return new X(3301,!1);}function B4(t,n){return new X(3302,!1);}function j4(t){return new X(3303,!1);}function H4(t,n){return new X(3400,!1);}function $4(t){return new X(3401,!1);}function U4(t){return new X(3402,!1);}function q4(t,n){return new X(3505,!1);}function hs(t){switch(t.length){case 0:return new la();case 1:return t[0];default:return new Ql(t);}}function VE(t,n,e=new Map(),i=new Map()){let r=[],o=[],a=-1,s=null;if(n.forEach(l=>{let c=l.get("offset"),h=c==a,g=h&&s||new Map();l.forEach((b,_)=>{let x=_,T=b;if(_!=="offset")switch(x=t.normalizePropertyName(x,r),T){case Bd:T=e.get(_);break;case qr:T=i.get(_);break;default:T=t.normalizeStyleValue(_,x,T,r);break;}g.set(x,T);}),h||o.push(g),s=g,a=c;}),r.length)throw _re(r);return o;}function Ib(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&FE(e,"start",t)));break;case"done":t.onDone(()=>i(e&&FE(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&FE(e,"destroy",t)));break;}}function FE(t,n,e){let i=e.totalTime,r=!!e.disabled,o=Tb(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,i??t.totalTime,r),a=t._data;return a!=null&&(o._data=a),o;}function Tb(t,n,e,i,r="",o=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!a};}function mr(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i;}function zE(t){let n=t.indexOf(":"),e=t.substring(1,n),i=t.slice(n+1);return[e,i];}var bre=typeof document>"u"?null:document.documentElement;function Ab(t){let n=t.parentNode||t.host||null;return n===bre?null:n;}function vre(t){return t.substring(1,6)=="ebkit";}var _c=null,y4=!1;function W4(t){_c||(_c=yre()||{},y4=_c.style?"WebkitAppearance"in _c.style:!1);let n=!0;return _c.style&&!vre(t)&&(n=t in _c.style,!n&&y4&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in _c.style)),n;}function yre(){return typeof document<"u"?document.body:null;}function BE(t,n){for(;n;){if(n===t)return!0;n=Ab(n);}return!1;}function jE(t,n,e){if(e)return Array.from(t.querySelectorAll(n));let i=t.querySelector(n);return i?[i]:[];}var xre=1e3,HE="{{",Cre="}}",$E="ng-enter",Rb="ng-leave",ih="ng-trigger",nh=".ng-trigger",UE="ng-animating",Ob=".ng-animating";function Ta(t){if(typeof t=="number")return t;let n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:NE(parseFloat(n[1]),n[2]);}function NE(t,n){switch(n){case"s":return t*xre;default:return t;}}function rh(t,n,e){return t.hasOwnProperty("duration")?t:wre(t,n,e);}function wre(t,n,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,a="";if(typeof t=="string"){let s=t.match(i);if(s===null)return n.push(v4(t)),{duration:0,delay:0,easing:""};r=NE(parseFloat(s[1]),s[2]);let l=s[3];l!=null&&(o=NE(parseFloat(l),s[4]));let c=s[5];c&&(a=c);}else r=t;if(!e){let s=!1,l=n.length;r<0&&(n.push(mre()),s=!0),o<0&&(n.push(pre()),s=!0),s&&n.splice(l,0,v4(t));}return{duration:r,delay:o,easing:a};}function G4(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[];}function xo(t,n,e){n.forEach((i,r)=>{let o=Pb(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i;});}function el(t,n){n.forEach((e,i)=>{let r=Pb(i);t.style[r]="";});}function Eu(t){return Array.isArray(t)?t.length==1?t[0]:QO(t):t;}function Y4(t,n,e){let i=n.params||{},r=qE(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(hre(o));});}var LE=new RegExp(`${HE}\\s*(.+?)\\s*${Cre}`,"g");function qE(t){let n=[];if(typeof t=="string"){let e;for(;e=LE.exec(t);)n.push(e[1]);LE.lastIndex=0;}return n;}function ku(t,n,e){let i=`${t}`,r=i.replace(LE,(o,a)=>{let s=n[a];return s==null&&(e.push(fre(a)),s=""),s.toString();});return r==i?t:r;}var Dre=/-+([a-z0-9])/g;function Pb(t){return t.replace(Dre,(...n)=>n[1].toUpperCase());}function Q4(t,n){return t===0||n===0;}function K4(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,a)=>{i.has(a)||r.push(a),i.set(a,o);}),r.length)for(let o=1;o<n.length;o++){let a=n[o];r.forEach(s=>a.set(s,Fb(t,s)));}}return n;}function pr(t,n,e){switch(n.type){case Qe.Trigger:return t.visitTrigger(n,e);case Qe.State:return t.visitState(n,e);case Qe.Transition:return t.visitTransition(n,e);case Qe.Sequence:return t.visitSequence(n,e);case Qe.Group:return t.visitGroup(n,e);case Qe.Animate:return t.visitAnimate(n,e);case Qe.Keyframes:return t.visitKeyframes(n,e);case Qe.Style:return t.visitStyle(n,e);case Qe.Reference:return t.visitReference(n,e);case Qe.AnimateChild:return t.visitAnimateChild(n,e);case Qe.AnimateRef:return t.visitAnimateRef(n,e);case Qe.Query:return t.visitQuery(n,e);case Qe.Stagger:return t.visitStagger(n,e);default:throw gre(n.type);}}function Fb(t,n){return window.getComputedStyle(t)[n];}var lk=(()=>{class t{validateStyleProperty(e){return W4(e);}containsElement(e,i){return BE(e,i);}getParentElement(e){return Ab(e);}query(e,i,r){return jE(e,i,r);}computeStyle(e,i,r){return r||"";}animate(e,i,r,o,a,s=[],l){return new la(r,o);}static ɵfac=function(i){return new(i||t)();};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})(),vc=class{static NOOP=new lk();},yc=class{};var Ere=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"]),Bb=class extends yc{normalizePropertyName(n,e){return Pb(n);}normalizeStyleValue(n,e,i,r){let o="",a=i.toString().trim();if(Ere.has(e)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&r.push(x4(n,i));}return a+o;}};var jb="*";function kre(t,n){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>Mre(i,e,n)):e.push(t),e;}function Mre(t,n,e){if(t[0]==":"){let l=Sre(t,e);if(typeof l=="function"){n.push(l);return;}t=l;}let i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(O4(t)),n;let r=i[1],o=i[2],a=i[3];n.push(Z4(r,a));let s=r==jb&&a==jb;o[0]=="<"&&!s&&n.push(Z4(a,r));}function Sre(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(P4(t)),"* => *";}}var Nb=new Set(["true","1"]),Lb=new Set(["false","0"]);function Z4(t,n){let e=Nb.has(t)||Lb.has(t),i=Nb.has(n)||Lb.has(n);return(r,o)=>{let a=t==jb||t==r,s=n==jb||n==o;return!a&&e&&typeof r=="boolean"&&(a=r?Nb.has(t):Lb.has(t)),!s&&i&&typeof o=="boolean"&&(s=o?Nb.has(n):Lb.has(n)),a&&s;};}var sV=":self",Ire=new RegExp(`s*${sV}s*,?`,"g");function lV(t,n,e,i){return new ZE(t).build(n,e,i);}var X4="",ZE=class{_driver;constructor(n){this._driver=n;}build(n,e,i){let r=new XE(e);return this._resetContextStyleTimingState(r),pr(this,Eu(n),r);}_resetContextStyleTimingState(n){n.currentQuerySelector=X4,n.collectedStyles=new Map(),n.collectedStyles.set(X4,new Map()),n.currentTime=0;}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0,o=[],a=[];return n.name.charAt(0)=="@"&&e.errors.push(C4()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==Qe.State){let l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,o.push(this.visitState(l,e));}),l.name=c;}else if(s.type==Qe.Transition){let l=this.visitTransition(s,e);i+=l.queryCount,r+=l.depCount,a.push(l);}else e.errors.push(w4());}),{type:Qe.Trigger,name:n.name,states:o,transitions:a,queryCount:i,depCount:r,options:null};}visitState(n,e){let i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){let o=new Set(),a=r||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{qE(l).forEach(c=>{a.hasOwnProperty(c)||o.add(c);});});}),o.size&&e.errors.push(D4(n.name,[...o.values()]));}return{type:Qe.State,name:n.name,style:i,options:r?{params:r}:null};}visitTransition(n,e){e.queryCount=0,e.depCount=0;let i=pr(this,Eu(n.animation),e),r=kre(n.expr,e.errors);return{type:Qe.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:bc(n.options)};}visitSequence(n,e){return{type:Qe.Sequence,steps:n.steps.map(i=>pr(this,i,e)),options:bc(n.options)};}visitGroup(n,e){let i=e.currentTime,r=0,o=n.steps.map(a=>{e.currentTime=i;let s=pr(this,a,e);return r=Math.max(r,e.currentTime),s;});return e.currentTime=r,{type:Qe.Group,steps:o,options:bc(n.options)};}visitAnimate(n,e){let i=Ore(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Tr({});if(o.type==Qe.Keyframes)r=this.visitKeyframes(o,e);else{let a=n.styles,s=!1;if(!a){s=!0;let c={};i.easing&&(c.easing=i.easing),a=Tr(c);}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,r=l;}return e.currentAnimateTimings=null,{type:Qe.Animate,timings:i,style:r,options:null};}visitStyle(n,e){let i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i;}_makeStyleAst(n,e){let i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of r)typeof s=="string"?s===qr?i.push(s):e.errors.push(E4(s)):i.push(new Map(Object.entries(s)));let o=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o)){for(let l of s.values())if(l.toString().indexOf(HE)>=0){o=!0;break;}}}),{type:Qe.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:o,options:null};}_validateStyleAst(n,e){let i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),h=c.get(l),g=!0;h&&(o!=r&&o>=h.startTime&&r<=h.endTime&&(e.errors.push(k4(l,h.startTime,h.endTime,o,r)),g=!1),o=h.startTime),g&&c.set(l,{startTime:o,endTime:r}),e.options&&Y4(s,e.options,e.errors);});});}visitKeyframes(n,e){let i={type:Qe.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(M4()),i;let r=1,o=0,a=[],s=!1,l=!1,c=0,h=n.steps.map(q=>{let ie=this._makeStyleAst(q,e),Y=ie.offset!=null?ie.offset:Rre(ie.styles),me=0;return Y!=null&&(o++,me=ie.offset=Y),l=l||me<0||me>1,s=s||me<c,c=me,a.push(me),ie;});l&&e.errors.push(S4()),s&&e.errors.push(I4());let g=n.steps.length,b=0;o>0&&o<g?e.errors.push(T4()):o==0&&(b=r/(g-1));let _=g-1,x=e.currentTime,T=e.currentAnimateTimings,L=T.duration;return h.forEach((q,ie)=>{let Y=b>0?ie==_?1:b*ie:a[ie],me=Y*L;e.currentTime=x+T.delay+me,T.duration=me,this._validateStyleAst(q,e),q.offset=Y,i.styles.push(q);}),i;}visitReference(n,e){return{type:Qe.Reference,animation:pr(this,Eu(n.animation),e),options:bc(n.options)};}visitAnimateChild(n,e){return e.depCount++,{type:Qe.AnimateChild,options:bc(n.options)};}visitAnimateRef(n,e){return{type:Qe.AnimateRef,animation:this.visitReference(n.animation,e),options:bc(n.options)};}visitQuery(n,e){let i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;let[o,a]=Tre(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,mr(e.collectedStyles,e.currentQuerySelector,new Map());let s=pr(this,Eu(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Qe.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:bc(n.options)};}visitStagger(n,e){e.currentQuery||e.errors.push(A4());let i=n.timings==="full"?{duration:0,delay:0,easing:"full"}:rh(n.timings,e.errors,!0);return{type:Qe.Stagger,animation:pr(this,Eu(n.animation),e),timings:i,options:null};}};function Tre(t){let n=!!t.split(/\s*,\s*/).find(e=>e==sV);return n&&(t=t.replace(Ire,"")),t=t.replace(/@\*/g,nh).replace(/@\w+/g,e=>nh+"-"+e.slice(1)).replace(/:animating/g,Ob),[t,n];}function Are(t){return t?B({},t):null;}var XE=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map();options=null;unsupportedCSSPropertiesFound=new Set();constructor(n){this.errors=n;}};function Rre(t){if(typeof t=="string")return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;n=parseFloat(i.get("offset")),i.delete("offset");}});else if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset");}return n;}function Ore(t,n){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=rh(t,n).duration;return WE(o,0,"");}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=WE(0,0,"");return o.dynamic=!0,o.strValue=e,o;}let r=rh(e,n);return WE(r.duration,r.delay,r.easing);}function bc(t){return t?(t=B({},t),t.params&&(t.params=Are(t.params))):t={},t;}function WE(t,n,e){return{duration:t,delay:n,easing:e};}function ck(t,n,e,i,r,o,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s};}var ah=class{_map=new Map();get(n){return this._map.get(n)||[];}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e);}has(n){return this._map.has(n);}clear(){this._map.clear();}},Pre=1,Fre=":enter",Nre=new RegExp(Fre,"g"),Lre=":leave",Vre=new RegExp(Lre,"g");function cV(t,n,e,i,r,o=new Map(),a=new Map(),s,l,c=[]){return new JE().buildKeyframes(t,n,e,i,r,o,a,s,l,c);}var JE=class{buildKeyframes(n,e,i,r,o,a,s,l,c,h=[]){c=c||new ah();let g=new ek(n,e,c,r,o,h,[]);g.options=l;let b=l.delay?Ta(l.delay):0;g.currentTimeline.delayNextStep(b��),g.currentTimeline.setStyles([a],null,g.errors,l),pr(this,i,g);let _=g.timelines.filter(x=>x.containsAnimation());if(_.length&&s.size){let x;for(let T=_.length-1;T>=0;T--){let L=_[T];if(L.element===e){x=L;break;}}x&&!x.allowOnlyTimelineStyles()&&x.setStyles([s],null,g.errors,l);}return _.length?_.map(x=>x.buildKeyframes()):[ck(e,[],[],[],0,b,"",!1)];}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);o!=a&&e.transformIntoNewTimeline(a);}e.previousNode=n;}visitAnimateRef(n,e){let i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n;}_applyAnimationRefDelays(n,e,i){for(let r of n){let o=r?.delay;if(o){let a=typeof o=="number"?o:Ta(ku(o,r?.params??{},e.errors));i.delayNextStep(a);}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime,a=i.duration!=null?Ta(i.duration):null,s=i.delay!=null?Ta(i.delay):null;return a!==0&&n.forEach(l=>{let c=e.appendInstructionToTimeline(l,a,s);o=Math.max(o,c.duration+c.delay);}),o;}visitReference(n,e){e.updateOptions(n.options,!0),pr(this,n.animation,e),e.previousNode=n;}visitSequence(n,e){let i=e.subContextCount,r=e,o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==Qe.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Hb);let a=Ta(o.delay);r.delayNextStep(a);}n.steps.length&&(n.steps.forEach(a=>pr(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n;}visitGroup(n,e){let i=[],r=e.currentTimeline.currentTime,o=n.options&&n.options.delay?Ta(n.options.delay):0;n.steps.forEach(a=>{let s=e.createSubContext(n.options);o&&s.delayNextStep(o),pr(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline);}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=n;}_visitTiming(n,e){if(n.dynamic){let i=n.strValue,r=e.params?ku(i,e.params,e.errors):i;return rh(r,e.errors);}else return{duration:n.duration,delay:n.delay,easing:n.easing};}visitAnimate(n,e){let i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let o=n.style;o.type==Qe.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n;}visitStyle(n,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n;}visitKeyframes(n,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{let c=l.offset||0;s.forwardTime(c*o),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe();}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+o),e.previousNode=n;}visitQuery(n,e){let i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Ta(r.delay):0;o&&(e.previousNode.type===Qe.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Hb);let a=i,s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,h)=>{e.currentQueryIndex=h;let g=e.createSubContext(n.options,c);o&&g.delayNextStep(o),c===e.element&&(l=g.currentTimeline),pr(this,n.animation,g),g.currentTimeline.applyStylesToKeyframe();let b=g.currentTimeline.currentTime;a=Math.max(a,b);}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n;}visitStagger(n,e){let i=e.parentContext,r=e.currentTimeline,o=n.timings,a=Math.abs(o.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime;break;}let h=e.currentTimeline;l&&h.delayNextStep(l);let g=h.currentTime;pr(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-g+(r.startTime-i.currentTimeline.startTime);}},Hb={},ek=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Hb;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,e,i,r,o,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.currentTimeline=l||new $b(this._driver,e,0),s.push(this.currentTimeline);}get params(){return this.options.params;}updateOptions(n,e){if(!n)return;let i=n,r=this.options;i.duration!=null&&(r.duration=Ta(i.duration)),i.delay!=null&&(r.delay=Ta(i.delay));let o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=ku(o[s],a,this.errors));});}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r];});}}return n;}createSubContext(n=null,e,i){let r=e||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o;}transformIntoNewTimeline(n){return this.previousNode=Hb,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline;}appendInstructionToTimeline(n,e,i){let r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new tk(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r;}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n);}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n);}invokeQuery(n,e,i,r,o,a){let s=[];if(r&&s.push(this.element),n.length>0){n=n.replace(Nre,"."+this._enterClassName),n=n.replace(Vre,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,n,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),s.push(...c);}return!o&&s.length==0&&a.push(R4(e)),s;}},$b=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map();_currentKeyframe=new Map();_keyframes=new Map();_styleSummary=new Map();_localTimelineStyles=new Map();_globalTimelineStyles;_pendingStyles=new Map();_backFill=new Map();_currentEmptyStepKeyframe=null;constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map()),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0;}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0;}get currentTime(){return this.startTime+this.duration;}delayNextStep(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n;}fork(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup);}_loadKeyframe(){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));}forwardFrame(){this.duration+=Pre,this._loadKeyframe();}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe();}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe;}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||qr),this._currentKeyframe.set(e,qr);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},a=zre(n,this._globalTimelineStyles);for(let[s,l]of a){let c=ku(l,o,i);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??qr),this._updateStyle(s,c);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n);}));}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e);}getFinalKeyframe(){return this._keyframes.get(this.duration);}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n;}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{let r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value);});}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set(),e=new Set(),i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((s,l)=>{let c=new Map([...this._backFill,...s]);c.forEach((h,g)=>{h===Bd?n.add(g):h===qr&&e.add(g);}),i||c.set("offset",l/this.duration),r.push(c);});let o=[...n.values()],a=[...e.values()];if(i){let s=r[0],l=new Map(s);s.set("offset",0),l.set("offset",1),r=[s,l];}return ck(this.element,r,o,a,this.duration,this.startTime,this.easing,!1);}},tk=class extends $b{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,e,i,r,o,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing};}containsAnimation(){return this.keyframes.length>1;}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),o.push(l);let c=new Map(n[0]);c.set("offset",J4(s)),o.push(c);let h=n.length-1;for(let g=1;g<=h;g++){let b=new Map(n[g]),_=b.get("offset"),x=e+_*i;b.set("offset",J4(x/a)),o.push(b);}i=a,e=0,r="",n=o;}return ck(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0);}};function J4(t,n=3){let e=Math.pow(10,n-1);return Math.round(t*e)/e;}function zre(t,n){let e=new Map(),i;return t.forEach(r=>{if(r==="*"){i??=n.keys();for(let o of i)e.set(o,qr);}else for(let[o,a]of r)e.set(o,a);}),e;}function eV(t,n,e,i,r,o,a,s,l,c,h,g,b){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:g,errors:b};}var GE={},Ub=class{_triggerName;ast;_stateStyles;constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i;}match(n,e,i,r){return Bre(this.ast.matchers,n,e,i,r);}buildStyles(n,e,i){let r=this._stateStyles.get("*");return n!==void 0&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map();}build(n,e,i,r,o,a,s,l,c,h){let g=[],b=this.ast.options&&this.ast.options.params||GE,_=s&&s.params||GE,x=this.buildStyles(i,_,g),T=l&&l.params||GE,L=this.buildStyles(r,T,g),q=new Set(),ie=new Map(),Y=new Map(),me=r==="void",xe={params:dV(T,b),delay:this.ast.options?.delay},Re=h?[]:cV(n,e,this.ast.animation,o,a,x,L,xe,c,g),ot=0;return Re.forEach(Mt=>{ot=Math.max(Mt.duration+Mt.delay,ot);}),g.length?eV(e,this._triggerName,i,r,me,x,L,[],[],ie,Y,ot,g):(Re.forEach(Mt=>{let ui=Mt.element,Oi=mr(ie,ui,new Set());Mt.preStyleProps.forEach(Cn=>Oi.add(Cn));let Zr=mr(Y,ui,new Set());Mt.postStyleProps.forEach(Cn=>Zr.add(Cn)),ui!==e&&q.add(ui);}),eV(e,this._triggerName,i,r,me,x,L,Re,[...q.values()],ie,Y,ot));}};function Bre(t,n,e,i,r){return t.some(o=>o(n,e,i,r));}function dV(t,n){let e=B({},n);return Object.entries(t).forEach(([i,r])=>{r!=null&&(e[i]=r);}),e;}var ik=class{styles;defaultParams;normalizer;constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i;}buildStyles(n,e){let i=new Map(),r=dV(n,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,s)=>{a&&(a=ku(a,r,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a);});}),i;}};function jre(t,n,e){return new nk(t,n,e);}var nk=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map();constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new ik(r.style,o,i));}),tV(this.states,"true","1"),tV(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Ub(n,r,this.states));}),this.fallbackTransition=Hre(n,this.states);}get containsQueries(){return this.ast.queryCount>0;}matchTransition(n,e,i,r){return this.transitionFactories.find(a=>a.match(n,e,i,r))||null;}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i);}};function Hre(t,n,e){let i=[(a,s)=>!0],r={type:Qe.Sequence,steps:[],options:null},o={type:Qe.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Ub(t,o,n);}function tV(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e));}var $re=new ah(),rk=class{bodyNode;_driver;_normalizer;_animations=new Map();_playersById=new Map();players=[];constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i;}register(n,e){let i=[],r=[],o=lV(this._driver,e,i,r);if(i.length)throw N4(i);this._animations.set(n,o);}_buildPlayer(n,e,i){let r=n.element,o=VE(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0);}create(n,e,i={}){let r=[],o=this._animations.get(n),a,s=new Map();if(o?(a=cV(this._driver,e,o,$E,Rb,new Map(),new Map(),i,$re,r),a.forEach(h=>{let g=mr(s,h.element,new Map());h.postStyleProps.forEach(b=>g.set(b,null));})):(r.push(L4()),a=[]),r.length)throw V4(r);s.forEach((h,g)=>{h.forEach((b,_)=>{h.set(_,this._driver.computeStyle(g,_,qr));});});let l=a.map(h=>{let g=s.get(h.element);return this._buildPlayer(h,new Map(),g);}),c=hs(l);return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c;}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1);}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw z4(n);return e;}listen(n,e,i,r){let o=Tb(e,"","","");return Ib(this._getPlayer(n),i,o,r),()=>{};}command(n,e,i,r){if(i=="register"){this.register(n,r[0]);return;}if(i=="create"){let a=r[0]||{};this.create(n,e,a);return;}let o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n);break;}}},iV="ng-animate-queued",Ure=".ng-animate-queued",YE="ng-animate-disabled",qre=".ng-animate-disabled",Wre="ng-star-inserted",Gre=".ng-star-inserted",Yre=[],uV={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Qre={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Co="__ng_removed",sh=class{namespaceId;value;options;get params(){return this.options.params;}constructor(n,e=""){this.namespaceId=e;let i=n&&n.hasOwnProperty("value"),r=i?n.value:n;if(this.value=Zre(r),i){let o=n,{value:a}=o,s=Xb(o,["value"]);this.options=s;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(n){let e=n.params;if(e){let i=this.options.params;Object.keys(e).forEach(r=>{i[r]==null&&(i[r]=e[r]);});}}},oh="void",QE=new sh(oh),ok=class{id;hostElement;_engine;players=[];_triggers=new Map();_queue=[];_elementListeners=new Map();_hostClassName;constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this._hostClassName="ng-tns-"+n,Kr(e,this._hostClassName);}listen(n,e,i,r){if(!this._triggers.has(e))throw B4(i,e);if(i==null||i.length==0)throw j4(e);if(!Xre(i))throw H4(i,e);let o=mr(this._elementListeners,n,[]),a={name:e,phase:i,callback:r};o.push(a);let s=mr(this._engine.statesByElement,n,new Map());return s.has(e)||(Kr(n,ih),Kr(n,ih+"-"+e),s.set(e,QE)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(e)||s.delete(e);});};}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0);}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw $4(n);return e;}trigger(n,e,i,r=!0){let o=this._getTrigger(e),a=new lh(this.id,e,n),s=this._engine.statesByElement.get(n);s||(Kr(n,ih),Kr(n,ih+"-"+e),this._engine.statesByElement.set(n,s=new Map()));let l=s.get(e),c=new sh(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=QE),!(c.value===oh)&&l.value===c.value){if(!toe(l.params,c.params)){let T=[],L=o.matchStyles(l.value,l.params,T),q=o.matchStyles(c.value,c.params,T);T.length?this._engine.reportError(T):this._engine.afterFlush(()=>{el(n,L),xo(n,q);});}return;}let b=mr(this._engine.playersByElement,n,[]);b.forEach(T=>{T.namespaceId==this.id&&T.triggerName==e&&T.queued&&T.destroy();});let _=o.matchTransition(l.value,c.value,n,c.params),x=!1;if(!_){if(!r)return;_=o.fallbackTransition,x=!0;}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:_,fromState:l,toState:c,player:a,isFallbackTransition:x}),x||(Kr(n,iV),a.onStart(()=>{Mu(n,iV);})),a.onDone(()=>{let T=this.players.indexOf(a);T>=0&&this.players.splice(T,1);let L=this._engine.playersByElement.get(n);if(L){let q=L.indexOf(a);q>=0&&L.splice(q,1);}}),this.players.push(a),b.push(a),a;}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n));});}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n));}_signalRemovalForInnerTriggers(n,e){let i=this._engine.driver.query(n,nh,!0);i.forEach(r=>{if(r[Co])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r);}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)));}triggerLeaveAnimation(n,e,i,r){let o=this._engine.statesByElement.get(n),a=new Map();if(o){let s=[];if(o.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let h=this.trigger(n,c,oh,r);h&&s.push(h);}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&hs(s).onDone(()=>this._engine.processLeaveNode(n)),!0;}return!1;}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){let r=new Set();e.forEach(o=>{let a=o.name;if(r.has(a))return;r.add(a);let l=this._triggers.get(a).fallbackTransition,c=i.get(a)||QE,h=new sh(oh),g=new lh(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:c,toState:h,player:g,isFallbackTransition:!0});});}}removeNode(n,e){let i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break;}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{let o=n[Co];(!o||o===uV)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e));}}insertNode(n,e){Kr(n,this._hostClassName);}drainQueuedTransitions(n){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==i.triggerName){let l=Tb(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Ib(i.player,s.phase,l,s.callback);}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy();}):e.push(i);}),this._queue=[],e.sort((i,r)=>{let o=i.transition.ast.depCount,a=r.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(i.element,r.element)?1:-1;});}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n);}},ak=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map();playersByElement=new Map();playersByQueriedElement=new Map();statesByElement=new Map();disabledNodes=new Set();totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map();collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,e)=>{};_onRemovalComplete(n,e){this.onRemovalComplete(n,e);}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i;}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i);});}),n;}createNamespace(n,e){let i=new ok(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i;}_balanceNamespaceList(n,e){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=r.get(s);if(l){let c=i.indexOf(l);i.splice(c+1,0,n),a=!0;break;}s=this.driver.getParentElement(s);}a||i.unshift(n);}else i.push(n);return r.set(e,n),n;}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i;}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++;}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n];}));}_fetchNamespace(n){return this._namespaceLookup[n];}fetchNamespacesByElement(n){let e=new Set(),i=this.statesByElement.get(n);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o);}}return e;}trigger(n,e,i,r){if(Vb(e)){let o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0;}return!1;}insertNode(n,e,i,r){if(!Vb(e))return;let o=e[Co];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1);}if(n){let a=this._fetchNamespace(n);a&&a.insertNode(e,i);}r&&this.collectEnterElement(e);}collectEnterElement(n){this.collectedEnterElements.push(n);}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Kr(n,YE)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Mu(n,YE));}removeNode(n,e,i){if(Vb(e)){let r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);let o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i);}else this._onRemovalComplete(e,i);}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Co]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o};}listen(n,e,i,r,o){return Vb(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{};}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o);}destroyInnerAnimations(n){let e=this.driver.query(n,nh,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,Ob,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)));}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy();});}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish());}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return hs(this.players).onDone(()=>n());n();});}processLeaveNode(n){let e=n[Co];if(e&&e.setForRemoval){if(n[Co]=uV,e.namespaceId){this.destroyInnerAnimations(n);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n);}this._onRemovalComplete(n,e.setForRemoval);}n.classList?.contains(YE)&&this.markElementAsDisabled(n,!1),this.driver.query(n,qre,!0).forEach(i=>{this.markElementAsDisabled(i,!1);});}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];Kr(r,Wre);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{e=this._flushAnimations(i,n);}finally{for(let r=0;r<i.length;r++)i[r]();}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?hs(e).onDone(()=>{i.forEach(r=>r());}):i.forEach(r=>r());}}reportError(n){throw U4(n);}_flushAnimations(n,e){let i=new ah(),r=[],o=new Map(),a=[],s=new Map(),l=new Map(),c=new Map(),h=new Set();this.disabledNodes.forEach(ge=>{h.add(ge);let Me=this.driver.query(ge,Ure,!0);for(let Pe=0;Pe<Me.length;Pe++)h.add(Me[Pe]);});let g=this.bodyNode,b=Array.from(this.statesByElement.keys()),_=oV(b,this.collectedEnterElements),x=new Map(),T=0;_.forEach((ge,Me)=>{let Pe=$E+T++;x.set(Me,Pe),ge.forEach(_t=>Kr(_t,Pe));});let L=[],q=new Set(),ie=new Set();for(let ge=0;ge<this.collectedLeaveElements.length;ge++){let Me=this.collectedLeaveElements[ge],Pe=Me[Co];Pe&&Pe.setForRemoval&&(L.push(Me),q.add(Me),Pe.hasAnimation?this.driver.query(Me,Gre,!0).forEach(_t=>q.add(_t)):ie.add(Me));}let Y=new Map(),me=oV(b,Array.from(q));me.forEach((ge,Me)=>{let Pe=Rb+T++;Y.set(Me,Pe),ge.forEach(_t=>Kr(_t,Pe));}),n.push(()=>{_.forEach((ge,Me)=>{let Pe=x.get(Me);ge.forEach(_t=>Mu(_t,Pe));}),me.forEach((ge,Me)=>{let Pe=Y.get(Me);ge.forEach(_t=>Mu(_t,Pe));}),L.forEach(ge=>{this.processLeaveNode(ge);});});let xe=[],Re=[];for(let ge=this._namespaceList.length-1;ge>=0;ge--)this._namespaceList[ge].drainQueuedTransitions(e).forEach(Pe=>{let _t=Pe.player,wi=Pe.element;if(xe.push(_t),this.collectedEnterElements.length){let wn=wi[Co];if(wn&&wn.setForMove){if(wn.previousTriggersValues&&wn.previousTriggersValues.has(Pe.triggerName)){let tl=wn.previousTriggersValues.get(Pe.triggerName),Rr=this.statesByElement.get(Pe.element);if(Rr&&Rr.has(Pe.triggerName)){let ch=Rr.get(Pe.triggerName);ch.value=tl,Rr.set(Pe.triggerName,ch);}}_t.destroy();return;}}let wo=!g||!this.driver.containsElement(g,wi),hr=Y.get(wi),fs=x.get(wi),bi=this._buildInstruction(Pe,i,fs,hr,wo);if(bi.errors&&bi.errors.length){Re.push(bi);return;}if(wo){_t.onStart(()=>el(wi,bi.fromStyles)),_t.onDestroy(()=>xo(wi,bi.toStyles)),r.push(_t);return;}if(Pe.isFallbackTransition){_t.onStart(()=>el(wi,bi.fromStyles)),_t.onDestroy(()=>xo(wi,bi.toStyles)),r.push(_t);return;}let dk=[];bi.timelines.forEach(wn=>{wn.stretchStartingKeyframe=!0,this.disabledNodes.has(wn.element)||dk.push(wn);}),bi.timelines=dk,i.append(wi,bi.timelines);let _V={instruction:bi,player:_t,element:wi};a.push(_V),bi.queriedElements.forEach(wn=>mr(s,wn,[]).push(_t)),bi.preStyleProps.forEach((wn,tl)=>{if(wn.size){let Rr=l.get(tl);Rr||l.set(tl,Rr=new Set()),wn.forEach((ch,Kb)=>Rr.add(Kb));}}),bi.postStyleProps.forEach((wn,tl)=>{let Rr=c.get(tl);Rr||c.set(tl,Rr=new Set()),wn.forEach((ch,Kb)=>Rr.add(Kb));});});if(Re.length){let ge=[];Re.forEach(Me=>{ge.push(q4(Me.triggerName,Me.errors));}),xe.forEach(Me=>Me.destroy()),this.reportError(ge);}let ot=new Map(),Mt=new Map();a.forEach(ge=>{let Me=ge.element;i.has(Me)&&(Mt.set(Me,Me),this._beforeAnimationBuild(ge.player.namespaceId,ge.instruction,ot));}),r.forEach(ge=>{let Me=ge.element;this._getPreviousPlayers(Me,!1,ge.namespaceId,ge.triggerName,null).forEach(_t=>{mr(ot,Me,[]).push(_t),_t.destroy();});});let ui=L.filter(ge=>aV(ge,l,c)),Oi=new Map();rV(Oi,this.driver,ie,c,qr).forEach(ge=>{aV(ge,l,c)&&ui.push(ge);});let Cn=new Map();_.forEach((ge,Me)=>{rV(Cn,this.driver,new Set(ge),l,Bd);}),ui.forEach(ge=>{let Me=Oi.get(ge),Pe=Cn.get(ge);Oi.set(ge,new Map([...(Me?.entries()??[]),...(Pe?.entries()??[])]));});let dn=[],Yn=[],Gi={};a.forEach(ge=>{let{element:Me,player:Pe,instruction:_t}=ge;if(i.has(Me)){if(h.has(Me)){Pe.onDestroy(()=>xo(Me,_t.toStyles)),Pe.disabled=!0,Pe.overrideTotalTime(_t.totalTime),r.push(Pe);return;}let wi=Gi;if(Mt.size>1){let hr=Me,fs=[];for(;hr=hr.parentNode;){let bi=Mt.get(hr);if(bi){wi=bi;break;}fs.push(hr);}fs.forEach(bi=>Mt.set(bi,wi));}let wo=this._buildAnimation(Pe.namespaceId,_t,ot,o,Cn,Oi);if(Pe.setRealPlayer(wo),wi===Gi)dn.push(Pe);else{let hr=this.playersByElement.get(wi);hr&&hr.length&&(Pe.parentPlayer=hs(hr)),r.push(Pe);}}else el(Me,_t.fromStyles),Pe.onDestroy(()=>xo(Me,_t.toStyles)),Yn.push(Pe),h.has(Me)&&r.push(Pe);}),Yn.forEach(ge=>{let Me=o.get(ge.element);if(Me&&Me.length){let Pe=hs(Me);ge.setRealPlayer(Pe);}}),r.forEach(ge=>{ge.parentPlayer?ge.syncPlayerEvents(ge.parentPlayer):ge.destroy();});for(let ge=0;ge<L.length;ge++){let Me=L[ge],Pe=Me[Co];if(Mu(Me,Rb),Pe&&Pe.hasAnimation)continue;let _t=[];if(s.size){let wo=s.get(Me);wo&&wo.length&&_t.push(...wo);let hr=this.driver.query(Me,Ob,!0);for(let fs=0;fs<hr.length;fs++){let bi=s.get(hr[fs]);bi&&bi.length&&_t.push(...bi);}}let wi=_t.filter(wo=>!wo.destroyed);wi.length?Jre(this,Me,wi):this.processLeaveNode(Me);}return L.length=0,dn.forEach(ge=>{this.players.push(ge),ge.onDone(()=>{ge.destroy();let Me=this.players.indexOf(ge);this.players.splice(Me,1);}),ge.play();}),dn;}afterFlush(n){this._flushFns.push(n);}afterFlushAnimationsDone(n){this._whenQuietFns.push(n);}_getPreviousPlayers(n,e,i,r,o){let a=[];if(e){let s=this.playersByQueriedElement.get(n);s&&(a=s);}else{let s=this.playersByElement.get(n);if(s){let l=!o||o==oh;s.forEach(c=>{c.queued||!l&&c.triggerName!=r||a.push(c);});}}return(i||r)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||r&&r!=s.triggerName))),a;}_beforeAnimationBuild(n,e,i){let r=e.triggerName,o=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let c=l.element,h=c!==o,g=mr(i,c,[]);this._getPreviousPlayers(c,h,a,s,e.toState).forEach(_=>{let x=_.getRealPlayer();x.beforeDestroy&&x.beforeDestroy(),_.destroy(),g.push(_);});}el(o,e.fromStyles);}_buildAnimation(n,e,i,r,o,a){let s=e.triggerName,l=e.element,c=[],h=new Set(),g=new Set(),b=e.timelines.map(x=>{let T=x.element;h.add(T);let L=T[Co];if(L&&L.removedBeforeQueried)return new la(x.duration,x.delay);let q=T!==l,ie=eoe((i.get(T)||Yre).map(ot=>ot.getRealPlayer())).filter(ot=>{let Mt=ot;return Mt.element?Mt.element===T:!1;}),Y=o.get(T),me=a.get(T),xe=VE(this._normalizer,x.keyframes,Y,me),Re=this._buildPlayer(x,xe,ie);if(x.subTimeline&&r&&g.add(T),q){let ot=new lh(n,s,T);ot.setRealPlayer(Re),c.push(ot);}return Re;});c.forEach(x=>{mr(this.playersByQueriedElement,x.element,[]).push(x),x.onDone(()=>Kre(this.playersByQueriedElement,x.element,x));}),h.forEach(x=>Kr(x,UE));let _=hs(b);return _.onDestroy(()=>{h.forEach(x=>Mu(x,UE)),xo(l,e.toStyles);}),g.forEach(x=>{mr(r,x,[�:=�]).push(_);}),_;}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new la(n.duration,n.delay);}},lh=class{namespaceId;triggerName;element;_player=new la();_containsRealPlayer=!1;_queuedCallbacks=new Map();destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i;}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Ib(n,i,void 0,r));}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1);}getRealPlayer(){return this._player;}overrideTotalTime(n){this.totalTime=n;}syncPlayerEvents(n){let e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy());}_queueEvent(n,e){mr(this._queuedCallbacks,n,[]).push(e);}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n);}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n);}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n);}init(){this._player.init();}hasStarted(){return this.queued?!1:this._player.hasStarted();}play(){!this.queued&&this._player.play();}pause(){!this.queued&&this._player.pause();}restart(){!this.queued&&this._player.restart();}finish(){this._player.finish();}destroy(){this.destroyed=!0,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(n){this.queued||this._player.setPosition(n);}getPosition(){return this.queued?0:this._player.getPosition();}triggerCallback(n){let e=this._player;e.triggerCallback&&e.triggerCallback(n);}};function Kre(t,n,e){let i=t.get(n);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1);}i.length==0&&t.delete(n);}return i;}function Zre(t){return t??null;}function Vb(t){return t&&t.nodeType===1;}function Xre(t){return t=="start"||t=="done";}function nV(t,n){let e=t.style.display;return t.style.display=n??"none",e;}function rV(t,n,e,i,r){let o=[];e.forEach(l=>o.push(nV(l)));let a=[];i.forEach((l,c)=>{let h=new Map();l.forEach(g=>{let b=n.computeStyle(c,g,r);h.set(g,b),(!b||b.length==0)&&(c[Co]=Qre,a.push(c));}),t.set(c,h);});let s=0;return e.forEach(l=>nV(l,o[s++])),a;}function oV(t,n){let e=new Map();if(t.forEach(s=>e.set(s,[])),n.length==0)return e;let i=1,r=new Set(n),o=new Map();function a(s){if(!s)return i;let l=o.get(s);if(l)return l;let c=s.parentNode;return e.has(c)?l=c:r.has(c)?l=i:l=a(c),o.set(s,l),l;}return n.forEach(s=>{let l=a(s);l!==i&&e.get(l).push(s);}),e;}function Kr(t,n){t.classList?.add(n);}function Mu(t,n){t.classList?.remove(n);}function Jre(t,n,e){hs(e).onDone(()=>t.processLeaveNode(n));}function eoe(t){let n=[];return mV(t,n),n;}function mV(t,n){for(let e=0;e<t.length;e++){let i=t[e];i instanceof Ql?mV(i.players,n):n.push(i);}}function toe(t,n){let e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!n.hasOwnProperty(o)||t[o]!==n[o])return!1;}return!0;}function aV(t,n,e){let i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(o=>r.add(o)):n.set(t,i),e.delete(t),!0;}var Su=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(n,e)=>{};constructor(n,e,i){this._driver=e,this._normalizer=i,this._transitionEngine=new ak(n.body,e,i),this._timelineEngine=new rk(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o);}registerTrigger(n,e,i,r,o){let a=n+"-"+r,s=this._triggerCache[a];if(!s){let l=[],c=[],h=lV(this._driver,o,l,c);if(l.length)throw F4(r,l);s=jre(r,h,this._normalizer),this._triggerCache[a]=s;}this._transitionEngine.registerTrigger(e,r,s);}register(n,e){this._transitionEngine.register(n,e);}destroy(n,e){this._transitionEngine.destroy(n,e);}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r);}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i);}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e);}process(n,e,i,r){if(i.charAt(0)=="@"){let[o,a]=zE(i),s=r;this._timelineEngine.command(o,e,a,s);}else this._transitionEngine.trigger(n,e,i,r);}listen(n,e,i,r,o){if(i.charAt(0)=="@"){let[a,s]=zE(i);return this._timelineEngine.listen(a,e,s,o);}return this._transitionEngine.listen(n,e,i,r,o);}flush(n=-1){this._transitionEngine.flush(n);}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players];}whenRenderingDone(){return this._transitionEngine.whenRenderingDone();}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n);}};function ioe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=KE(n[0]),n.length>1&&(i=KE(n[n.length-1]))):n instanceof Map&&(e=KE(n)),e||i?new noe(t,e,i):null;}var noe=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap();_state=0;_initialStyles;constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map()),this._initialStyles=o;}start(){this._state<1&&(this._startStyles&&xo(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(xo(this._element,this._initialStyles),this._endStyles&&(xo(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(el(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(el(this._element,this._endStyles),this._endStyles=null),xo(this._element,this._initialStyles),this._state=3);}}return t;})();function KE(t){let n=null;return t.forEach((e,i)=>{roe(i)&&(n=n||new Map(),n.set(i,e));}),n;}function roe(t){return t==="display"||t==="position";}var qb=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map();constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[]);}init(){this._buildPlayer(),this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map();let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e);});}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause();}_convertKeyframesToObject(n){let e=[];return n.forEach(i=>{e.push(Object.fromEntries(i));}),e;}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i);}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n);}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n);}onDestroy(n){this._onDestroyFns.push(n);}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play();}pause(){this.init(),this.domPlayer.pause();}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish();}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started;}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[]);}setPosition(n){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=n*this.time;}getPosition(){return+(this.domPlayer.currentTime??0)/this.time;}get totalTime(){return this._delay+this._duration;}beforeDestroy(){let n=new Map();this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&n.set(r,this._finished?i:Fb(this.element,r));}),this.currentSnapshot=n;}triggerCallback(n){let e=n==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0;}},Wb=class{validateStyleProperty(n){return!0;}validateAnimatableStyleProperty(n){return!0;}containsElement(n,e){return BE(n,e);}getParentElement(n){return Ab(n);}query(n,e,i){return jE(n,e,i);}computeStyle(n,e,i){return Fb(n,e);}animate(n,e,i,r,o,a=[]){let s=r==0?"both":"forwards",l={duration:i,delay:r,fill:s};o&&(l.easing=o);let c=new Map(),h=a.filter(_=>_ instanceof qb);Q4(i,r)&&h.forEach(_=>{_.currentSnapshot.forEach((x,T)=>c.set(T,x));});let g=G4(e).map(_=>new Map(_));g=K4(n,g,c);let b=ioe(n,g);return new qb(n,g,l,b);}};var zb="@",pV="@.disabled",Gb=class{namespaceId;delegate;engine;_onDestroy;ɵtype=0;constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r;}get data(){return this.delegate.data;}destroyNode(n){this.delegate.destroyNode?.(n);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(n,e){return this.delegate.createElement(n,e);}createComment(n){return this.delegate.createComment(n);}createText(n){return this.delegate.createText(n);}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1);}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r);}removeChild(n,e,i){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate);}selectRootElement(n,e){return this.delegate.selectRootElement(n,e);}parentNode(n){return this.delegate.parentNode(n);}nextSibling(n){return this.delegate.nextSibling(n);}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r);}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i);}addClass(n,e){this.delegate.addClass(n,e);}removeClass(n,e){this.delegate.removeClass(n,e);}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r);}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i);}setProperty(n,e,i){e.charAt(0)==zb&&e==pV?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i);}setValue(n,e){this.delegate.setValue(n,e);}listen(n,e,i,r){return this.delegate.listen(n,e,i,r);}disableAnimations(n,e){this.engine.disableAnimations(n,e);}},sk=class extends Gb{factory;constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e;}setProperty(n,e,i){e.charAt(0)==zb?e.charAt(1)=="."&&e==pV?(i=i===void 0?!0:!!i,this.disableAnimations(n,i)):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i);}listen(n,e,i,r){if(e.charAt(0)==zb){let o=ooe(n),a=e.slice(1),s="";return a.charAt(0)!=zb&&([a,s]=aoe(a)),this.engine.listen(this.namespaceId,o,a,s,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,i,l);});}return this.delegate.listen(n,e,i,r);}};function ooe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t;}}function aoe(t){let n=t.indexOf("."),e=t.substring(0,n),i=t.slice(n+1);return[e,i];}var Yb=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map();_cdRecurDepth=0;constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,e.onRemovalComplete=(r,o)=>{o?.removeChild(null,r);};}createRenderer(n,e){let i="",r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){let c=this._rendererCache,h=c.get(r);if(!h){let g=()=>c.delete(r);h=new Gb(i,r,this.engine,g),c.set(r,h);}return h;}let o=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);let s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(o,a,n,c.name,c);};return e.data.animation.forEach(s),new sk(this,a,r,this.engine);}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(n,e,i){if(n>=0&&n<this._microtaskId){this._zone.run(()=>e(i));return;}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[a,s]=o;a(s);}),this._animationCallbacksBuffer=[];});}),r.push([e,i]);}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId);}),this.delegate.end&&this.delegate.end();}whenRenderingDone(){return this.engine.whenRenderingDone();}componentReplaced(n){this.engine.flush(),this.delegate.componentReplaced?.(n);}};var loe=(()=>{class t extends Su{constructor(e,i,r){super(e,i,r);}ngOnDestroy(){this.flush();}static ɵfac=function(i){return new(i||t)(te(_e),te(vc),te(yc));};static ɵprov=P({token:t,factory:t.ɵfac});}return t;})();function coe(){return new Bb();}function doe(t,n,e){return new Yb(t,n,e);}var hV=[{provide:yc,useFactory:coe},{provide:Su,useClass:loe},{provide:Fi,useFactory:doe,deps:[Tm,Su,ae]}],JHe=[{provide:vc,useClass:lk},{provide:Ne,useValue:"NoopAnimations"},...hV],uoe=[{provide:vc,useFactory:()=>new Wb()},{provide:Ne,useFactory:()=>"BrowserAnimations"},...hV];function fV(){return jo("NgEagerAnimations"),[...uoe];}var Qb=class{constructor(){this.crs=p(Du);}getResolvedUrl(n){return n.pathFromRoot.map(e=>e.url.map(i=>i.toString()).join("/")).join("/");}shouldDetach(n){return Object.values(oe).includes(n.data.key);}store(n,e){let i=this.getResolvedUrl(n);this.crs.set(i,{handle:e,path:i});}shouldAttach(n){let e=this.getResolvedUrl(n);return this.crs.has(e);}retrieve(n){let e=this.getResolvedUrl(n);return this.crs.get(e)?.handle||null;}shouldReuseRoute(n,e){let i=this.collectAllMatrixParameters(e);return!!["msg","prompt","img","editImg"].some(a=>!!i.hasOwnProperty(a));}collectAllMatrixParameters(n,e={}){for(let i of n.paramMap.keys)e[i]=n.paramMap.get(i);for(let i of n.children)this.collectAllMatrixParameters(i,e);return e;}};var moe=()=>{let t=p(pt);return new Promise(n=>{t.fetchSite().subscribe(e=>{let i={cbHost:e.cb_host,apiHost:e.api_host,wpHost:e.wp_host,wpDir:e.wp_dir,drupalHost:e.drupal_host,drupalApi:e.drupal_api,drupalUid:e.drupal_uid,slug:e.slug,hash:e.hash,activityLevel:e.activity_level,wpPostCategories:e.wp_post_categories,wpNewsCategories:e.wp_news_categories};t.site=i,n(!0);});});},gV={providers:[ix(kC,Ft),{provide:c0,useClass:Qb},RC(OC()),fV(),sw(b4),hm(moe)]};sd.production&&(window.console.log=function(){},window.console.assert=function(){});sd.production&&(console.log=()=>{});EC(Q3,gV).catch(t=>console.error(t));/**i18n:75d97cd321e75c2cf664c0196fc76babdec00fff7506cd74f34ceeba7c0a3d67*/��Ĝ

Youez - 2016 - github.com/yon3zu
LinuXploit