git-history-ui 1.0.6 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/build/frontend/index.html +13 -10
- package/build/frontend/main-YTFHD36T.js +11 -0
- package/build/frontend/styles-YQ73RJ2V.css +1 -0
- package/dist/backend/dev-server.d.ts +0 -1
- package/dist/backend/dev-server.js +8 -4
- package/dist/backend/dev-server.js.map +1 -1
- package/dist/backend/gitService.d.ts +24 -10
- package/dist/backend/gitService.js +340 -240
- package/dist/backend/gitService.js.map +1 -1
- package/dist/backend/server.d.ts +8 -2
- package/dist/backend/server.js +145 -112
- package/dist/backend/server.js.map +1 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +44 -22
- package/dist/cli.js.map +1 -1
- package/package.json +43 -27
- package/build/frontend/main-44CFNHDH.js +0 -8
- package/build/frontend/main-5GQESVK5.js +0 -8
- package/build/frontend/main-KMFUNYSW.js +0 -8
- package/build/frontend/main-YHO6NCZZ.js +0 -8
- package/build/frontend/styles-26JPPBSI.css +0 -1
- package/build/frontend/styles-J5I4DBTU.css +0 -1
- package/dist/__tests__/gitService.test.d.ts +0 -2
- package/dist/__tests__/gitService.test.d.ts.map +0 -1
- package/dist/__tests__/gitService.test.js +0 -435
- package/dist/__tests__/gitService.test.js.map +0 -1
- package/dist/__tests__/setup.d.ts +0 -2
- package/dist/__tests__/setup.d.ts.map +0 -1
- package/dist/__tests__/setup.js +0 -24
- package/dist/__tests__/setup.js.map +0 -1
- package/dist/backend/dev-server.d.ts.map +0 -1
- package/dist/backend/gitService.d.ts.map +0 -1
- package/dist/backend/server.d.ts.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/config/paths.d.ts +0 -14
- package/dist/config/paths.d.ts.map +0 -1
- package/dist/config/paths.js +0 -35
- package/dist/config/paths.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var Mw=Object.create;var Zu=Object.defineProperty,Nw=Object.defineProperties,xw=Object.getOwnPropertyDescriptor,Aw=Object.getOwnPropertyDescriptors,Rw=Object.getOwnPropertyNames,Wg=Object.getOwnPropertySymbols,Ow=Object.getPrototypeOf,Zg=Object.prototype.hasOwnProperty,kw=Object.prototype.propertyIsEnumerable;var Kg=(e,t,n)=>t in e?Zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C=(e,t)=>{for(var n in t||={})Zg.call(t,n)&&Kg(e,n,t[n]);if(Wg)for(var n of Wg(t))kw.call(t,n)&&Kg(e,n,t[n]);return e},Y=(e,t)=>Nw(e,Aw(t));var ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Pw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Rw(t))!Zg.call(e,i)&&i!==n&&Zu(e,i,{get:()=>t[i],enumerable:!(r=xw(t,i))||r.enumerable});return e};var Fw=(e,t,n)=>(n=e!=null?Mw(Ow(e)):{},Pw(t||!e||!e.__esModule?Zu(n,"default",{value:e,enumerable:!0}):n,e));var Lr=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(l){i(l)}},s=c=>{try{a(n.throw(c))}catch(l){i(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(e,t)).next())});var QE=ne((b5,YE)=>{"use strict";function VE(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&VE(n)}),e}var uu=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function BE(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Pr(e,...t){let n=Object.create(null);for(let r in e)n[r]=e[r];return t.forEach(function(r){for(let i in r)n[i]=r[i]}),n}var IR="</span>",RE=e=>!!e.scope,SR=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`},Cg=class{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=BE(t)}openNode(t){if(!RE(t))return;let n=SR(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){RE(t)&&(this.buffer+=IR)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},OE=(e={})=>{let t={children:[]};return Object.assign(t,e),t},wg=class e{constructor(){this.rootNode=OE(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){let n=OE({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{e._collapse(n)}))}},Ig=class extends wg{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){let r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new Cg(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function ua(e){return e?typeof e=="string"?e:e.source:null}function UE(e){return Ei("(?=",e,")")}function TR(e){return Ei("(?:",e,")*")}function MR(e){return Ei("(?:",e,")?")}function Ei(...e){return e.map(n=>ua(n)).join("")}function NR(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Tg(...e){return"("+(NR(e).capture?"":"?:")+e.map(r=>ua(r)).join("|")+")"}function jE(e){return new RegExp(e.toString()+"|").exec("").length-1}function xR(e,t){let n=e&&e.exec(t);return n&&n.index===0}var AR=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Mg(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;let i=n,o=ua(r),s="";for(;o.length>0;){let a=AR.exec(o);if(!a){s+=o;break}s+=o.substring(0,a.index),o=o.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?s+="\\"+String(Number(a[1])+i):(s+=a[0],a[0]==="("&&n++)}return s}).map(r=>`(${r})`).join(t)}var RR=/\b\B/,$E="[a-zA-Z]\\w*",Ng="[a-zA-Z_]\\w*",HE="\\b\\d+(\\.\\d+)?",zE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",GE="\\b(0b[01]+)",OR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",kR=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=Ei(t,/.*\b/,e.binary,/\b.*/)),Pr({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},da={begin:"\\\\[\\s\\S]",relevance:0},PR={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[da]},FR={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[da]},LR={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},fu=function(e,t,n={}){let r=Pr({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=Tg("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Ei(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},VR=fu("//","$"),BR=fu("/\\*","\\*/"),UR=fu("#","$"),jR={scope:"number",begin:HE,relevance:0},$R={scope:"number",begin:zE,relevance:0},HR={scope:"number",begin:GE,relevance:0},zR={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[da,{begin:/\[/,end:/\]/,relevance:0,contains:[da]}]},GR={scope:"title",begin:$E,relevance:0},qR={scope:"title",begin:Ng,relevance:0},WR={begin:"\\.\\s*"+Ng,relevance:0},KR=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},lu=Object.freeze({__proto__:null,APOS_STRING_MODE:PR,BACKSLASH_ESCAPE:da,BINARY_NUMBER_MODE:HR,BINARY_NUMBER_RE:GE,COMMENT:fu,C_BLOCK_COMMENT_MODE:BR,C_LINE_COMMENT_MODE:VR,C_NUMBER_MODE:$R,C_NUMBER_RE:zE,END_SAME_AS_BEGIN:KR,HASH_COMMENT_MODE:UR,IDENT_RE:$E,MATCH_NOTHING_RE:RR,METHOD_GUARD:WR,NUMBER_MODE:jR,NUMBER_RE:HE,PHRASAL_WORDS_MODE:LR,QUOTE_STRING_MODE:FR,REGEXP_MODE:zR,RE_STARTERS_RE:OR,SHEBANG:kR,TITLE_MODE:GR,UNDERSCORE_IDENT_RE:Ng,UNDERSCORE_TITLE_MODE:qR});function ZR(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function YR(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function QR(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=ZR,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function XR(e,t){Array.isArray(e.illegal)&&(e.illegal=Tg(...e.illegal))}function JR(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function eO(e,t){e.relevance===void 0&&(e.relevance=1)}var tO=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");let n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Ei(n.beforeMatch,UE(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},nO=["of","and","for","in","not","or","if","then","parent","list","value"],rO="keyword";function qE(e,t,n=rO){let r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,qE(e[o],t,o))}),r;function i(o,s){t&&(s=s.map(a=>a.toLowerCase())),s.forEach(function(a){let c=a.split("|");r[c[0]]=[o,iO(c[0],c[1])]})}}function iO(e,t){return t?Number(t):oO(e)?0:1}function oO(e){return nO.includes(e.toLowerCase())}var kE={},bi=e=>{console.error(e)},PE=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ko=(e,t)=>{kE[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),kE[`${e}/${t}`]=!0)},du=new Error;function WE(e,t,{key:n}){let r=0,i=e[n],o={},s={};for(let a=1;a<=t.length;a++)s[a+r]=i[a],o[a+r]=!0,r+=jE(t[a-1]);e[n]=s,e[n]._emit=o,e[n]._multi=!0}function sO(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw bi("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),du;if(typeof e.beginScope!="object"||e.beginScope===null)throw bi("beginScope must be object"),du;WE(e,e.begin,{key:"beginScope"}),e.begin=Mg(e.begin,{joinWith:""})}}function aO(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw bi("skip, excludeEnd, returnEnd not compatible with endScope: {}"),du;if(typeof e.endScope!="object"||e.endScope===null)throw bi("endScope must be object"),du;WE(e,e.end,{key:"endScope"}),e.end=Mg(e.end,{joinWith:""})}}function cO(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function lO(e){cO(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),sO(e),aO(e)}function uO(e){function t(s,a){return new RegExp(ua(s),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,a]),this.matchAt+=jE(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let a=this.regexes.map(c=>c[1]);this.matcherRe=t(Mg(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;let c=this.matcherRe.exec(a);if(!c)return null;let l=c.findIndex((d,p)=>p>0&&d!==void 0),u=this.matchIndexes[l];return c.splice(0,l),Object.assign(c,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];let c=new n;return this.rules.slice(a).forEach(([l,u])=>c.addRule(l,u)),c.compile(),this.multiRegexes[a]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,c){this.rules.push([a,c]),c.type==="begin"&&this.count++}exec(a){let c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let l=c.exec(a);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){let u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,l=u.exec(a)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function i(s){let a=new r;return s.contains.forEach(c=>a.addRule(c.begin,{rule:c,type:"begin"})),s.terminatorEnd&&a.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&a.addRule(s.illegal,{type:"illegal"}),a}function o(s,a){let c=s;if(s.isCompiled)return c;[YR,JR,lO,tO].forEach(u=>u(s,a)),e.compilerExtensions.forEach(u=>u(s,a)),s.__beforeBegin=null,[QR,XR,eO].forEach(u=>u(s,a)),s.isCompiled=!0;let l=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),l=s.keywords.$pattern,delete s.keywords.$pattern),l=l||/\w+/,s.keywords&&(s.keywords=qE(s.keywords,e.case_insensitive)),c.keywordPatternRe=t(l,!0),a&&(s.begin||(s.begin=/\B|\b/),c.beginRe=t(c.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(c.endRe=t(c.end)),c.terminatorEnd=ua(c.end)||"",s.endsWithParent&&a.terminatorEnd&&(c.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(c.illegalRe=t(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(u){return dO(u==="self"?s:u)})),s.contains.forEach(function(u){o(u,c)}),s.starts&&o(s.starts,a),c.matcher=i(c),c}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Pr(e.classNameAliases||{}),o(e)}function KE(e){return e?e.endsWithParent||KE(e.starts):!1}function dO(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Pr(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:KE(e)?Pr(e,{starts:e.starts?Pr(e.starts):null}):Object.isFrozen(e)?Pr(e):e}var fO="11.11.1",Sg=class extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}},Dg=BE,FE=Pr,LE=Symbol("nomatch"),pO=7,ZE=function(e){let t=Object.create(null),n=Object.create(null),r=[],i=!0,o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]},a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ig};function c(D){return a.noHighlightRe.test(D)}function l(D){let A=D.className+" ";A+=D.parentNode?D.parentNode.className:"";let x=a.languageDetectRe.exec(A);if(x){let Z=le(x[1]);return Z||(PE(o.replace("{}",x[1])),PE("Falling back to no-highlight mode for this block.",D)),Z?x[1]:"no-highlight"}return A.split(/\s+/).find(Z=>c(Z)||le(Z))}function u(D,A,x){let Z="",ue="";typeof A=="object"?(Z=D,x=A.ignoreIllegals,ue=A.language):(ko("10.7.0","highlight(lang, code, ...args) has been deprecated."),ko("10.7.0",`Please use highlight(code, options) instead.
|
|
2
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),ue=D,Z=A),x===void 0&&(x=!0);let Ie={code:Z,language:ue};$e("before:highlight",Ie);let Ae=Ie.result?Ie.result:d(Ie.language,Ie.code,x);return Ae.code=Ie.code,$e("after:highlight",Ae),Ae}function d(D,A,x,Z){let ue=Object.create(null);function Ie(S,k){return S.keywords[k]}function Ae(){if(!V.keywords){tt.addText(Se);return}let S=0;V.keywordPatternRe.lastIndex=0;let k=V.keywordPatternRe.exec(Se),te="";for(;k;){te+=Se.substring(S,k.index);let he=$t.case_insensitive?k[0].toLowerCase():k[0],st=Ie(V,he);if(st){let[Pn,Sw]=st;if(tt.addText(te),te="",ue[he]=(ue[he]||0)+1,ue[he]<=pO&&(wa+=Sw),Pn.startsWith("_"))te+=k[0];else{let Tw=$t.classNameAliases[Pn]||Pn;Ot(k[0],Tw)}}else te+=k[0];S=V.keywordPatternRe.lastIndex,k=V.keywordPatternRe.exec(Se)}te+=Se.substring(S),tt.addText(te)}function jt(){if(Se==="")return;let S=null;if(typeof V.subLanguage=="string"){if(!t[V.subLanguage]){tt.addText(Se);return}S=d(V.subLanguage,Se,!0,Ca[V.subLanguage]),Ca[V.subLanguage]=S._top}else S=f(Se,V.subLanguage.length?V.subLanguage:null);V.relevance>0&&(wa+=S.relevance),tt.__addSublanguage(S._emitter,S.language)}function gt(){V.subLanguage!=null?jt():Ae(),Se=""}function Ot(S,k){S!==""&&(tt.startScope(k),tt.addText(S),tt.endScope())}function Ci(S,k){let te=1,he=k.length-1;for(;te<=he;){if(!S._emit[te]){te++;continue}let st=$t.classNameAliases[S[te]]||S[te],Pn=k[te];st?Ot(Pn,st):(Se=Pn,Ae(),Se=""),te++}}function Ea(S,k){return S.scope&&typeof S.scope=="string"&&tt.openNode($t.classNameAliases[S.scope]||S.scope),S.beginScope&&(S.beginScope._wrap?(Ot(Se,$t.classNameAliases[S.beginScope._wrap]||S.beginScope._wrap),Se=""):S.beginScope._multi&&(Ci(S.beginScope,k),Se="")),V=Object.create(S,{parent:{value:V}}),V}function zo(S,k,te){let he=xR(S.endRe,te);if(he){if(S["on:end"]){let st=new uu(S);S["on:end"](k,st),st.isMatchIgnored&&(he=!1)}if(he){for(;S.endsParent&&S.parent;)S=S.parent;return S}}if(S.endsWithParent)return zo(S.parent,k,te)}function Hu(S){return V.matcher.regexIndex===0?(Se+=S[0],1):(Ku=!0,0)}function zu(S){let k=S[0],te=S.rule,he=new uu(te),st=[te.__beforeBegin,te["on:begin"]];for(let Pn of st)if(Pn&&(Pn(S,he),he.isMatchIgnored))return Hu(k);return te.skip?Se+=k:(te.excludeBegin&&(Se+=k),gt(),!te.returnBegin&&!te.excludeBegin&&(Se=k)),Ea(te,S),te.returnBegin?0:k.length}function Gu(S){let k=S[0],te=A.substring(S.index),he=zo(V,S,te);if(!he)return LE;let st=V;V.endScope&&V.endScope._wrap?(gt(),Ot(k,V.endScope._wrap)):V.endScope&&V.endScope._multi?(gt(),Ci(V.endScope,S)):st.skip?Se+=k:(st.returnEnd||st.excludeEnd||(Se+=k),gt(),st.excludeEnd&&(Se=k));do V.scope&&tt.closeNode(),!V.skip&&!V.subLanguage&&(wa+=V.relevance),V=V.parent;while(V!==he.parent);return he.starts&&Ea(he.starts,S),st.returnEnd?0:k.length}function qu(){let S=[];for(let k=V;k!==$t;k=k.parent)k.scope&&S.unshift(k.scope);S.forEach(k=>tt.openNode(k))}let wi={};function Da(S,k){let te=k&&k[0];if(Se+=S,te==null)return gt(),0;if(wi.type==="begin"&&k.type==="end"&&wi.index===k.index&&te===""){if(Se+=A.slice(k.index,k.index+1),!i){let he=new Error(`0 width match regex (${D})`);throw he.languageName=D,he.badRule=wi.rule,he}return 1}if(wi=k,k.type==="begin")return zu(k);if(k.type==="illegal"&&!x){let he=new Error('Illegal lexeme "'+te+'" for mode "'+(V.scope||"<unnamed>")+'"');throw he.mode=V,he}else if(k.type==="end"){let he=Gu(k);if(he!==LE)return he}if(k.type==="illegal"&&te==="")return Se+=`
|
|
3
|
+
`,1;if(Wu>1e5&&Wu>k.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Se+=te,te.length}let $t=le(D);if(!$t)throw bi(o.replace("{}",D)),new Error('Unknown language: "'+D+'"');let me=uO($t),er="",V=Z||me,Ca={},tt=new a.__emitter(a);qu();let Se="",wa=0,Fr=0,Wu=0,Ku=!1;try{if($t.__emitTokens)$t.__emitTokens(A,tt);else{for(V.matcher.considerAll();;){Wu++,Ku?Ku=!1:V.matcher.considerAll(),V.matcher.lastIndex=Fr;let S=V.matcher.exec(A);if(!S)break;let k=A.substring(Fr,S.index),te=Da(k,S);Fr=S.index+te}Da(A.substring(Fr))}return tt.finalize(),er=tt.toHTML(),{language:D,value:er,relevance:wa,illegal:!1,_emitter:tt,_top:V}}catch(S){if(S.message&&S.message.includes("Illegal"))return{language:D,value:Dg(A),illegal:!0,relevance:0,_illegalBy:{message:S.message,index:Fr,context:A.slice(Fr-100,Fr+100),mode:S.mode,resultSoFar:er},_emitter:tt};if(i)return{language:D,value:Dg(A),illegal:!1,relevance:0,errorRaised:S,_emitter:tt,_top:V};throw S}}function p(D){let A={value:Dg(D),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return A._emitter.addText(D),A}function f(D,A){A=A||a.languages||Object.keys(t);let x=p(D),Z=A.filter(le).filter(It).map(gt=>d(gt,D,!1));Z.unshift(x);let ue=Z.sort((gt,Ot)=>{if(gt.relevance!==Ot.relevance)return Ot.relevance-gt.relevance;if(gt.language&&Ot.language){if(le(gt.language).supersetOf===Ot.language)return 1;if(le(Ot.language).supersetOf===gt.language)return-1}return 0}),[Ie,Ae]=ue,jt=Ie;return jt.secondBest=Ae,jt}function g(D,A,x){let Z=A&&n[A]||x;D.classList.add("hljs"),D.classList.add(`language-${Z}`)}function m(D){let A=null,x=l(D);if(c(x))return;if($e("before:highlightElement",{el:D,language:x}),D.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",D);return}if(D.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(D)),a.throwUnescapedHTML))throw new Sg("One of your code blocks includes unescaped HTML.",D.innerHTML);A=D;let Z=A.textContent,ue=x?u(Z,{language:x,ignoreIllegals:!0}):f(Z);D.innerHTML=ue.value,D.dataset.highlighted="yes",g(D,x,ue.language),D.result={language:ue.language,re:ue.relevance,relevance:ue.relevance},ue.secondBest&&(D.secondBest={language:ue.secondBest.language,relevance:ue.secondBest.relevance}),$e("after:highlightElement",{el:D,result:ue,text:Z})}function v(D){a=FE(a,D)}let y=()=>{P(),ko("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function R(){P(),ko("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let U=!1;function P(){function D(){P()}if(document.readyState==="loading"){U||window.addEventListener("DOMContentLoaded",D,!1),U=!0;return}document.querySelectorAll(a.cssSelector).forEach(m)}function K(D,A){let x=null;try{x=A(e)}catch(Z){if(bi("Language definition for '{}' could not be registered.".replace("{}",D)),i)bi(Z);else throw Z;x=s}x.name||(x.name=D),t[D]=x,x.rawDefinition=A.bind(null,e),x.aliases&&_e(x.aliases,{languageName:D})}function $(D){delete t[D];for(let A of Object.keys(n))n[A]===D&&delete n[A]}function we(){return Object.keys(t)}function le(D){return D=(D||"").toLowerCase(),t[D]||t[n[D]]}function _e(D,{languageName:A}){typeof D=="string"&&(D=[D]),D.forEach(x=>{n[x.toLowerCase()]=A})}function It(D){let A=le(D);return A&&!A.disableAutodetect}function vn(D){D["before:highlightBlock"]&&!D["before:highlightElement"]&&(D["before:highlightElement"]=A=>{D["before:highlightBlock"](Object.assign({block:A.el},A))}),D["after:highlightBlock"]&&!D["after:highlightElement"]&&(D["after:highlightElement"]=A=>{D["after:highlightBlock"](Object.assign({block:A.el},A))})}function Ut(D){vn(D),r.push(D)}function en(D){let A=r.indexOf(D);A!==-1&&r.splice(A,1)}function $e(D,A){let x=D;r.forEach(function(Z){Z[x]&&Z[x](A)})}function qe(D){return ko("10.7.0","highlightBlock will be removed entirely in v12.0"),ko("10.7.0","Please use highlightElement now."),m(D)}Object.assign(e,{highlight:u,highlightAuto:f,highlightAll:P,highlightElement:m,highlightBlock:qe,configure:v,initHighlighting:y,initHighlightingOnLoad:R,registerLanguage:K,unregisterLanguage:$,listLanguages:we,getLanguage:le,registerAliases:_e,autoDetection:It,inherit:FE,addPlugin:Ut,removePlugin:en}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=fO,e.regex={concat:Ei,lookahead:UE,either:Tg,optional:MR,anyNumberOfTimes:TR};for(let D in lu)typeof lu[D]=="object"&&VE(lu[D]);return Object.assign(e,lu),e},Po=ZE({});Po.newInstance=()=>ZE({});YE.exports=Po;Po.HighlightJS=Po;Po.default=Po});var JE=ne((E5,XE)=>{"use strict";function hO(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(o,{begin:/\(/,end:/\)/}),a=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,c,a,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,c,a]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}XE.exports=hO});var tD=ne((D5,eD)=>{"use strict";function gO(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});let i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(a);let c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],v=["true","false"],y={match:/(\/[a-z._-]+)+/},R=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],U=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],P=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],K=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:v,built_in:[...R,...U,"set","shopt",...P,...K]},contains:[f,e.SHEBANG(),g,d,o,s,y,a,c,l,u,n]}}eD.exports=gO});var rD=ne((C5,nD)=>{"use strict";function mO(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",a={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},f=t.optional(i)+e.IDENT_RE+"\\s*\\(",v={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},y=[d,a,n,e.C_BLOCK_COMMENT_MODE,u,l],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:v,contains:y.concat([{begin:/\(/,end:/\)/,keywords:v,contains:y.concat(["self"]),relevance:0}]),relevance:0},U={begin:"("+s+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:v,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:v,relevance:0},{begin:f,returnBegin:!0,contains:[e.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,u,a,{begin:/\(/,end:/\)/,keywords:v,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,u,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:v,disableAutodetect:!0,illegal:"</",contains:[].concat(R,U,y,[d,{begin:e.IDENT_RE+"::",keywords:v},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:l,keywords:v}}}nD.exports=mO});var oD=ne((w5,iD)=>{"use strict";function vO(e){let t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},f=t.optional(i)+e.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],v=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],y=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],P={type:m,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:v},K={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},$=[K,d,a,n,e.C_BLOCK_COMMENT_MODE,u,l],we={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:P,contains:$.concat([{begin:/\(/,end:/\)/,keywords:P,contains:$.concat(["self"]),relevance:0}]),relevance:0},le={className:"function",begin:"("+s+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:P,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:P,relevance:0},{begin:f,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:P,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,u,a,{begin:/\(/,end:/\)/,keywords:P,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,u,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:P,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(we,le,K,$,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:P,contains:["self",a]},{begin:e.IDENT_RE+"::",keywords:P},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}iD.exports=vO});var aD=ne((I5,sD)=>{"use strict";function yO(e){let t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],s={keyword:i.concat(o),built_in:t,literal:r},a=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},l={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},u={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},d=e.inherit(u,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:s},f=e.inherit(p,{illegal:/\n/}),g={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},v=e.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});p.contains=[m,g,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,e.C_BLOCK_COMMENT_MODE],f.contains=[v,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let y={variants:[l,m,g,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},R={begin:"<",end:">",contains:[{beginKeywords:"in out"},a]},U=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",P={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:s,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},y,c,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},a,R,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,R,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+U+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:s,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,R],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,relevance:0,contains:[y,c,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},P]}}sD.exports=yO});var lD=ne((S5,cD)=>{"use strict";var _O=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),bO=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],EO=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],DO=[...bO,...EO],CO=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),wO=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),IO=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),SO=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function TO(e){let t=e.regex,n=_O(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+wO.join("|")+")"},{begin:":(:)?("+IO.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+SO.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:CO.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+DO.join("|")+")\\b"}]}}cD.exports=TO});var dD=ne((T5,uD)=>{"use strict";function MO(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},s={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},a=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,a,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(l,{contains:[]}),p=e.inherit(u,{contains:[]});l.contains.push(p),u.contains.push(d);let f=[n,c];return[l,u,d,p].forEach(y=>{y.contains=y.contains.concat(f)}),f=f.concat(l,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:f},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:f}]}]},n,o,l,u,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},i,r,c,s,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}uD.exports=MO});var pD=ne((M5,fD)=>{"use strict";function NO(e){let t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}fD.exports=NO});var gD=ne((N5,hD)=>{"use strict";function xO(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),s={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},a={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[a]}),e.COMMENT("^=begin","^=end",{contains:[a],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],u={className:"subst",begin:/#\{/,end:/\}/,keywords:s},d={className:"string",contains:[e.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},p="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",g={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:s}]},$=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:s},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},g,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:s},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,l),relevance:0}].concat(c,l);u.contains=$,m.contains=$;let It=[{begin:/^\s*=>/,starts:{end:"$",contains:$}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:s,contains:$}}];return l.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:s,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(It).concat(l).concat($)}}hD.exports=xO});var vD=ne((x5,mD)=>{"use strict";function AO(e){let o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}mD.exports=AO});var _D=ne((A5,yD)=>{"use strict";function RO(e){let t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}yD.exports=RO});var ED=ne((R5,bD)=>{"use strict";function OO(e){let t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},a={begin:/\[/,end:/\]/,contains:[r,o,i,s,n,"self"],relevance:0},c=/[A-Za-z0-9_-]+/,l=/"(\\"|[^"])*"/,u=/'[^']*'/,d=t.either(c,l,u),p=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[r,a,o,i,s,n]}}]}}bD.exports=OO});var ID=ne((O5,wD)=>{"use strict";var Fo="[0-9](_*[0-9])*",pu=`\\.(${Fo})`,hu="[0-9a-fA-F](_*[0-9a-fA-F])*",DD={className:"number",variants:[{begin:`(\\b(${Fo})((${pu})|\\.)?|(${pu}))[eE][+-]?(${Fo})[fFdD]?\\b`},{begin:`\\b(${Fo})((${pu})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${pu})[fFdD]?\\b`},{begin:`\\b(${Fo})[fFdD]\\b`},{begin:`\\b0[xX]((${hu})\\.?|(${hu})?\\.(${hu}))[pP][+-]?(${Fo})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${hu})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function CD(e,t,n){return n===-1?"":e.replace(t,r=>CD(e,t,n-1))}function kO(e){let t=e.regex,n="[\xC0-\u02B8a-zA-Z_$][\xC0-\u02B8a-zA-Z_$0-9]*",r=n+CD("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),c={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},l={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},u={className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:c,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:c,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,DD,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},DD,l]}}wD.exports=kO});var AD=ne((k5,xD)=>{"use strict";var SD="[A-Za-z$_][0-9A-Za-z$_]*",PO=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],FO=["true","false","null","undefined","NaN","Infinity"],TD=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],MD=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ND=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],LO=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],VO=[].concat(ND,TD,MD);function BO(e){let t=e.regex,n=(x,{after:Z})=>{let ue="</"+x[0].slice(1);return x.input.indexOf(ue,Z)!==-1},r=SD,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(x,Z)=>{let ue=x[0].length+x.index,Ie=x.input[ue];if(Ie==="<"||Ie===","){Z.ignoreMatch();return}Ie===">"&&(n(x,{after:ue})||Z.ignoreMatch());let Ae,jt=x.input.substring(ue);if(Ae=jt.match(/^\s*=/)){Z.ignoreMatch();return}if((Ae=jt.match(/^\s+extends\s+/))&&Ae.index===0){Z.ignoreMatch();return}}},a={$pattern:SD,keyword:PO,literal:FO,built_in:VO,"variable.language":LO},c="[0-9](_?[0-9])*",l=`\\.(${c})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},v={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},R={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},U=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,m,v,{match:/\$\d+/},d];p.contains=U.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(U)});let P=[].concat(R,p.contains),K=P.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat(P)}]),$={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:K},we={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},le={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...TD,...MD]}},_e={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},It={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},vn={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ut(x){return t.concat("(?!",x.join("|"),")")}let en={match:t.concat(/\b/,Ut([...ND,"super","import"].map(x=>`${x}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},$e={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},qe={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},D="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",A={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(D)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:K,CLASS_REFERENCE:le},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),_e,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,m,v,R,{match:/\$\d+/},d,le,{scope:"attr",match:r+t.lookahead(":"),relevance:0},A,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[R,e.REGEXP_MODE,{className:"function",begin:D,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:K}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},It,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},$e,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},en,vn,we,qe,{match:/\$[(.]/}]}}xD.exports=BO});var OD=ne((P5,RD)=>{"use strict";function UO(e){let t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}RD.exports=UO});var PD=ne((F5,kD)=>{"use strict";var Lo="[0-9](_*[0-9])*",gu=`\\.(${Lo})`,mu="[0-9a-fA-F](_*[0-9a-fA-F])*",jO={className:"number",variants:[{begin:`(\\b(${Lo})((${gu})|\\.)?|(${gu}))[eE][+-]?(${Lo})[fFdD]?\\b`},{begin:`\\b(${Lo})((${gu})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${gu})[fFdD]?\\b`},{begin:`\\b(${Lo})[fFdD]\\b`},{begin:`\\b0[xX]((${mu})\\.?|(${mu})?\\.(${mu}))[pP][+-]?(${Lo})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${mu})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function $O(e){let t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},s={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(s);let a={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:"string"}),"self"]}]},l=jO,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=d;return p.variants[1].contains=[d],d.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,n,r,a,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,a,c,s,e.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},a,c]},s,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
4
|
+
`},l]}}kD.exports=$O});var BD=ne((L5,VD)=>{"use strict";var HO=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),zO=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],GO=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],qO=[...zO,...GO],WO=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),FD=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),LD=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),KO=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),ZO=FD.concat(LD).sort().reverse();function YO(e){let t=HO(e),n=ZO,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",s=[],a=[],c=function(U){return{className:"string",begin:"~?"+U+".*?"+U}},l=function(U,P,K){return{className:U,begin:P,relevance:K}},u={$pattern:/[a-z-]+/,keyword:r,attribute:WO.join(" ")},d={begin:"\\(",end:"\\)",contains:a,keywords:u,relevance:0};a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c("'"),c('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,l("variable","@@?"+i,10),l("variable","@\\{"+i+"\\}"),l("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);let p=a.concat({begin:/\{/,end:/\}/,contains:s}),f={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(a)},g={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+KO.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:a}}]},m={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:a,relevance:0}},v={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:p}},y={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f,l("keyword","all\\b"),l("variable","@\\{"+i+"\\}"),{begin:"\\b("+qO.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,l("selector-tag",o,0),l("selector-id","#"+o),l("selector-class","\\."+o,0),l("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+FD.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+LD.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:p},{begin:"!important"},t.FUNCTION_DISPATCH]},R={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[y]};return s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m,v,R,g,y,f,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:s}}VD.exports=YO});var jD=ne((V5,UD)=>{"use strict";function QO(e){let t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}UD.exports=QO});var HD=ne((B5,$D)=>{"use strict";function XO(e){let t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},s={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,s]}}$D.exports=XO});var GD=ne((U5,zD)=>{"use strict";function JO(e){let t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},s={begin:/->\{/,end:/\}/},a={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},c={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[a]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},u=[e.BACKSLASH_ESCAPE,o,c],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(m,v,y="\\1")=>{let R=y==="\\1"?y:t.concat(y,v);return t.concat(t.concat("(?:",m,")"),v,/(?:\\.|[^\\\/])*?/,R,/(?:\\.|[^\\\/])*?/,y,r)},f=(m,v,y)=>t.concat(t.concat("(?:",m,")"),v,/(?:\\.|[^\\\/])*?/,y,r),g=[c,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),s,{className:"string",contains:u,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:p("s|tr|y",t.either(...d,{capture:!0}))},{begin:p("s|tr|y","\\(","\\)")},{begin:p("s|tr|y","\\[","\\]")},{begin:p("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:f("(?:m|qr)?",/\//,/\//)},{begin:f("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,a]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,a,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=g,s.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:g}}zD.exports=JO});var WD=ne((j5,qD)=>{"use strict";function ek(e){let t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,a={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},c={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:a,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+c.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:c,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}qD.exports=ek});var ZD=ne(($5,KD)=>{"use strict";function tk(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o=t.concat(/[A-Z]+/,n),s={scope:"variable",match:"\\$+"+r},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":($e,qe)=>{qe.data._beginMatch=$e[1]||$e[2]},"on:end":($e,qe)=>{qe.data._beginMatch!==$e[1]&&qe.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[
|
|
5
|
+
]`,g={scope:"string",variants:[u,l,d,p]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},v=["false","null","true"],y=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],R=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],P={keyword:y,literal:($e=>{let qe=[];return $e.forEach(D=>{qe.push(D),D.toLowerCase()===D?qe.push(D.toUpperCase()):qe.push(D.toLowerCase())}),qe})(v),built_in:R},K=$e=>$e.map(qe=>qe.replace(/\|\d+$/,"")),$={variants:[{match:[/new/,t.concat(f,"+"),t.concat("(?!",K(R).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},we=t.concat(r,"\\b(?!\\()"),le={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),we],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),we],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},_e={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},It={relevance:0,begin:/\(/,end:/\)/,keywords:P,contains:[_e,s,le,e.C_BLOCK_COMMENT_MODE,g,m,$]},vn={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",K(y).join("\\b|"),"|",K(R).join("\\b|"),"\\b)"),r,t.concat(f,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[It]};It.contains.push(vn);let Ut=[_e,le,e.C_BLOCK_COMMENT_MODE,g,m,$],en={begin:t.concat(/#\[\s*\\?/,t.either(i,o)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:v,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:v,keyword:["new","array"]},contains:["self",...Ut]},...Ut,{scope:"meta",variants:[{match:i},{match:o}]}]};return{case_insensitive:!1,keywords:P,contains:[en,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},s,vn,le,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},$,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:P,contains:["self",en,s,le,e.C_BLOCK_COMMENT_MODE,g,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},g,m]}}KD.exports=tk});var QD=ne((H5,YD)=>{"use strict";function nk(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}YD.exports=nk});var JD=ne((z5,XD)=>{"use strict";function rk(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}XD.exports=rk});var tC=ne((G5,eC)=>{"use strict";function ik(e){let t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:a,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,u,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,u,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",f=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,g=`\\b|${r.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${f}))[eE][+-]?(${p})[jJ]?(?=${g})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${p})[jJ](?=${g})`}]},v={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:a,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:["self",c,m,d,e.HASH_COMMENT_MODE]}]};return l.contains=[d,m,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,illegal:/(<\/|\?)|=>/,contains:[c,m,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},d,v,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[y]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,y,d]}]}}eC.exports=ik});var rC=ne((q5,nC)=>{"use strict";function ok(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}nC.exports=ok});var oC=ne((W5,iC)=>{"use strict";function sk(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}iC.exports=sk});var aC=ne((K5,sC)=>{"use strict";function ak(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),o={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},s="([ui](8|16|32|64|128|size)|f(32|64))?",a=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],c=["true","false","Some","None","Ok","Err"],l=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],u=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:u,keyword:a,literal:c,built_in:l},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+s},{begin:"\\b0o([0-7_]+)"+s},{begin:"\\b0x([A-Fa-f0-9_]+)"+s},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+s}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:l,type:u}},{className:"punctuation",begin:"->"},o]}}sC.exports=ak});var lC=ne((Z5,cC)=>{"use strict";var ck=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),lk=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],uk=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],dk=[...lk,...uk],fk=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),pk=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),hk=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),gk=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function mk(e){let t=ck(e),n=hk,r=pk,i="@[a-z-]+",o="and or not only",a={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+dk.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},a,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+gk.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,a,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:fk.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},a,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}cC.exports=mk});var dC=ne((Y5,uC)=>{"use strict";function vk(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}uC.exports=vk});var pC=ne((Q5,fC)=>{"use strict";function yk(e){let t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],s=["double precision","large object","with timezone","without timezone"],a=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],p=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],f=u,g=[...l,...c].filter(K=>!u.includes(K)),m={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},v={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={match:t.concat(/\b/,t.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function R(K){return t.concat(/\b/,t.either(...K.map($=>$.replace(/\s+/,"\\s+"))),/\b/)}let U={scope:"keyword",match:R(p),relevance:0};function P(K,{exceptions:$,when:we}={}){let le=we;return $=$||[],K.map(_e=>_e.match(/\|\d+$/)||$.includes(_e)?_e:le(_e)?`${_e}|0`:_e)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:P(g,{when:K=>K.length<3}),literal:o,type:a,built_in:d},contains:[{scope:"type",match:R(s)},U,y,m,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,v]}}fC.exports=yk});var DC=ne((X5,EC)=>{"use strict";function vC(e){return e?typeof e=="string"?e:e.source:null}function fa(e){return ye("(?=",e,")")}function ye(...e){return e.map(n=>vC(n)).join("")}function _k(e){let t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function wt(...e){return"("+(_k(e).capture?"":"?:")+e.map(r=>vC(r)).join("|")+")"}var Rg=e=>ye(/\b/,e,/\w$/.test(e)?/\b/:/\B/),bk=["Protocol","Type"].map(Rg),hC=["init","self"].map(Rg),Ek=["Any","Self"],xg=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],gC=["false","nil","true"],Dk=["assignment","associativity","higherThan","left","lowerThan","none","right"],Ck=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],mC=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],yC=wt(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),_C=wt(yC,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Ag=ye(yC,_C,"*"),bC=wt(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),yu=wt(bC,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),kn=ye(bC,yu,"*"),vu=ye(/[A-Z]/,yu,"*"),wk=["attached","autoclosure",ye(/convention\(/,wt("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",ye(/objc\(/,kn,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Ik=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Sk(e){let t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,wt(...bk,...hC)],className:{2:"keyword"}},o={match:ye(/\./,wt(...xg)),relevance:0},s=xg.filter(me=>typeof me=="string").concat(["_|0"]),a=xg.filter(me=>typeof me!="string").concat(Ek).map(Rg),c={variants:[{className:"keyword",match:wt(...a,...hC)}]},l={$pattern:wt(/\b\w+/,/#\w+/),keyword:s.concat(Ck),literal:gC},u=[i,o,c],d={match:ye(/\./,wt(...mC)),relevance:0},p={className:"built_in",match:ye(/\b/,wt(...mC),/(?=\()/)},f=[d,p],g={match:/->/,relevance:0},m={className:"operator",relevance:0,variants:[{match:Ag},{match:`\\.(\\.|${_C})+`}]},v=[g,m],y="([0-9]_*)+",R="([0-9a-fA-F]_*)+",U={className:"number",relevance:0,variants:[{match:`\\b(${y})(\\.(${y}))?([eE][+-]?(${y}))?\\b`},{match:`\\b0x(${R})(\\.(${R}))?([pP][+-]?(${y}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},P=(me="")=>({className:"subst",variants:[{match:ye(/\\/,me,/[0\\tnr"']/)},{match:ye(/\\/,me,/u\{[0-9a-fA-F]{1,8}\}/)}]}),K=(me="")=>({className:"subst",match:ye(/\\/,me,/[\t ]*(?:[\r\n]|\r\n)/)}),$=(me="")=>({className:"subst",label:"interpol",begin:ye(/\\/,me,/\(/),end:/\)/}),we=(me="")=>({begin:ye(me,/"""/),end:ye(/"""/,me),contains:[P(me),K(me),$(me)]}),le=(me="")=>({begin:ye(me,/"/),end:ye(/"/,me),contains:[P(me),$(me)]}),_e={className:"string",variants:[we(),we("#"),we("##"),we("###"),le(),le("#"),le("##"),le("###")]},It=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],vn={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:It},Ut=me=>{let er=ye(me,/\//),V=ye(/\//,me);return{begin:er,end:V,contains:[...It,{scope:"comment",begin:`#(?!.*${V})`,end:/$/}]}},en={scope:"regexp",variants:[Ut("###"),Ut("##"),Ut("#"),vn]},$e={match:ye(/`/,kn,/`/)},qe={className:"variable",match:/\$\d+/},D={className:"variable",match:`\\$${yu}+`},A=[$e,qe,D],x={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Ik,contains:[...v,U,_e]}]}},Z={scope:"keyword",match:ye(/@/,wt(...wk),fa(wt(/\(/,/\s+/)))},ue={scope:"meta",match:ye(/@/,kn)},Ie=[x,Z,ue],Ae={match:fa(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:ye(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,yu,"+")},{className:"type",match:vu,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:ye(/\s+&\s+/,fa(vu)),relevance:0}]},jt={begin:/</,end:/>/,keywords:l,contains:[...r,...u,...Ie,g,Ae]};Ae.contains.push(jt);let gt={match:ye(kn,/\s*:/),keywords:"_|0",relevance:0},Ot={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",gt,...r,en,...u,...f,...v,U,_e,...A,...Ie,Ae]},Ci={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,Ae]},Ea={begin:wt(fa(ye(kn,/\s*:/)),fa(ye(kn,/\s+/,kn,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:kn}]},zo={begin:/\(/,end:/\)/,keywords:l,contains:[Ea,...r,...u,...v,U,_e,...Ie,Ae,Ot],endsParent:!0,illegal:/["']/},Hu={match:[/(func|macro)/,/\s+/,wt($e.match,kn,Ag)],className:{1:"keyword",3:"title.function"},contains:[Ci,zo,t],illegal:[/\[/,/%/]},zu={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ci,zo,t],illegal:/\[|%/},Gu={match:[/operator/,/\s+/,Ag],className:{1:"keyword",3:"title"}},qu={begin:[/precedencegroup/,/\s+/,vu],className:{1:"keyword",3:"title"},contains:[Ae],keywords:[...Dk,...gC],end:/}/},wi={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Da={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},$t={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,kn,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:l,contains:[Ci,...u,{begin:/:/,end:/\{/,keywords:l,contains:[{scope:"title.class.inherited",match:vu},...u],relevance:0}]};for(let me of _e.variants){let er=me.contains.find(Ca=>Ca.label==="interpol");er.keywords=l;let V=[...u,...f,...v,U,_e,...A];er.contains=[...V,{begin:/\(/,end:/\)/,contains:["self",...V]}]}return{name:"Swift",keywords:l,contains:[...r,Hu,zu,wi,Da,$t,Gu,qu,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},en,...u,...f,...v,U,_e,...A,...Ie,Ae,Ot]}}EC.exports=Sk});var wC=ne((J5,CC)=>{"use strict";function Tk(e){let t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},s={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},a=e.inherit(s,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},g={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},v=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},p,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,m,o,s],y=[...v];return y.pop(),y.push(a),f.contains=y,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}CC.exports=Tk});var OC=ne((eK,RC)=>{"use strict";var _u="[A-Za-z$_][0-9A-Za-z$_]*",IC=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],SC=["true","false","null","undefined","NaN","Infinity"],TC=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],MC=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],NC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],xC=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],AC=[].concat(NC,TC,MC);function Mk(e){let t=e.regex,n=(x,{after:Z})=>{let ue="</"+x[0].slice(1);return x.input.indexOf(ue,Z)!==-1},r=_u,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(x,Z)=>{let ue=x[0].length+x.index,Ie=x.input[ue];if(Ie==="<"||Ie===","){Z.ignoreMatch();return}Ie===">"&&(n(x,{after:ue})||Z.ignoreMatch());let Ae,jt=x.input.substring(ue);if(Ae=jt.match(/^\s*=/)){Z.ignoreMatch();return}if((Ae=jt.match(/^\s+extends\s+/))&&Ae.index===0){Z.ignoreMatch();return}}},a={$pattern:_u,keyword:IC,literal:SC,built_in:AC,"variable.language":xC},c="[0-9](_?[0-9])*",l=`\\.(${c})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},v={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},R={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},U=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,m,v,{match:/\$\d+/},d];p.contains=U.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(U)});let P=[].concat(R,p.contains),K=P.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat(P)}]),$={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:K},we={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},le={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...TC,...MC]}},_e={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},It={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$],illegal:/%/},vn={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ut(x){return t.concat("(?!",x.join("|"),")")}let en={match:t.concat(/\b/,Ut([...NC,"super","import"].map(x=>`${x}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},$e={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},qe={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$]},D="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",A={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(D)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:K,CLASS_REFERENCE:le},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),_e,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,m,v,R,{match:/\$\d+/},d,le,{scope:"attr",match:r+t.lookahead(":"),relevance:0},A,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[R,e.REGEXP_MODE,{className:"function",begin:D,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:K}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},It,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},$e,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$]},en,vn,we,qe,{match:/\$[(.]/}]}}function Nk(e){let t=e.regex,n=Mk(e),r=_u,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},a={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},c=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:_u,keyword:IC.concat(c),literal:SC,built_in:AC.concat(i),"variable.language":xC},u={className:"meta",begin:"@"+r},d=(m,v,y)=>{let R=m.contains.findIndex(U=>U.label===v);if(R===-1)throw new Error("can not find mode to replace");m.contains.splice(R,1,y)};Object.assign(n.keywords,l),n.exports.PARAMS_CONTAINS.push(u);let p=n.contains.find(m=>m.scope==="attr"),f=Object.assign({},p,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,p,f]),n.contains=n.contains.concat([u,o,s,f]),d(n,"shebang",e.SHEBANG()),d(n,"use_strict",a);let g=n.contains.find(m=>m.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}RC.exports=Nk});var PC=ne((tK,kC)=>{"use strict";function xk(e){let t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,s=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,a=/\d{1,2}(:\d{1,2}){1,2}/,c={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(s,a),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,c,l,u,d,p,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[p]}]}}kC.exports=xk});var LC=ne((nK,FC)=>{"use strict";function Ak(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");let n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},s={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},a={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},c={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,s,i,e.QUOTE_STRING_MODE,c,l,a]}}FC.exports=Ak});var BC=ne((rK,VC)=>{"use strict";var ee=QE();ee.registerLanguage("xml",JE());ee.registerLanguage("bash",tD());ee.registerLanguage("c",rD());ee.registerLanguage("cpp",oD());ee.registerLanguage("csharp",aD());ee.registerLanguage("css",lD());ee.registerLanguage("markdown",dD());ee.registerLanguage("diff",pD());ee.registerLanguage("ruby",gD());ee.registerLanguage("go",vD());ee.registerLanguage("graphql",_D());ee.registerLanguage("ini",ED());ee.registerLanguage("java",ID());ee.registerLanguage("javascript",AD());ee.registerLanguage("json",OD());ee.registerLanguage("kotlin",PD());ee.registerLanguage("less",BD());ee.registerLanguage("lua",jD());ee.registerLanguage("makefile",HD());ee.registerLanguage("perl",GD());ee.registerLanguage("objectivec",WD());ee.registerLanguage("php",ZD());ee.registerLanguage("php-template",QD());ee.registerLanguage("plaintext",JD());ee.registerLanguage("python",tC());ee.registerLanguage("python-repl",rC());ee.registerLanguage("r",oC());ee.registerLanguage("rust",aC());ee.registerLanguage("scss",lC());ee.registerLanguage("shell",dC());ee.registerLanguage("sql",pC());ee.registerLanguage("swift",DC());ee.registerLanguage("yaml",wC());ee.registerLanguage("typescript",OC());ee.registerLanguage("vbnet",PC());ee.registerLanguage("wasm",LC());ee.HighlightJS=ee;ee.default=ee;VC.exports=ee});var Yu;function Ia(){return Yu}function yn(e){let t=Yu;return Yu=e,t}var Yg=Symbol("NotFound");function Ii(e){return e===Yg||e?.name==="\u0275NotFound"}function xa(e,t){return Object.is(e,t)}var at=null,Sa=!1,Qu=1,Lw=null,mt=Symbol("SIGNAL");function q(e){let t=at;return at=e,t}function Aa(){return at}var tr={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Si(e){if(Sa)throw new Error("");if(at===null)return;at.consumerOnSignalRead(e);let t=at.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=at.recomputing;if(r&&(n=t!==void 0?t.nextProducer:at.producers,n!==void 0&&n.producer===e)){at.producersTail=n,n.lastReadVersion=e.version;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===at&&(!r||Bw(i,at)))return;let o=Mi(at),s={producer:e,consumer:at,nextProducer:n,prevConsumer:i,lastReadVersion:e.version,nextConsumer:void 0};at.producersTail=s,t!==void 0?t.nextProducer=s:at.producers=s,o&&Xg(e,s)}function Qg(){Qu++}function Ra(e){if(!(Mi(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Qu)){if(!e.producerMustRecompute(e)&&!Ti(e)){Na(e);return}e.producerRecomputeValue(e),Na(e)}}function Xu(e){if(e.consumers===void 0)return;let t=Sa;Sa=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Vw(r)}}finally{Sa=t}}function Ju(){return at?.consumerAllowSignalWrites!==!1}function Vw(e){e.dirty=!0,Xu(e),e.consumerMarkedDirty?.(e)}function Na(e){e.dirty=!1,e.lastCleanEpoch=Qu}function nr(e){return e&&(e.producersTail=void 0,e.recomputing=!0),q(e)}function Vr(e,t){if(q(t),!e)return;e.recomputing=!1;let n=e.producersTail,r=n!==void 0?n.nextProducer:e.producers;if(r!==void 0){if(Mi(e))do r=ed(r);while(r!==void 0);n!==void 0?n.nextProducer=void 0:e.producers=void 0}}function Ti(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Ra(n),r!==n.version))return!0}return!1}function Br(e){if(Mi(e)){let t=e.producers;for(;t!==void 0;)t=ed(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Xg(e,t){let n=e.consumersTail,r=Mi(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let i=e.producers;i!==void 0;i=i.nextProducer)Xg(i.producer,i)}function ed(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,i=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=i:t.consumersTail=i,i!==void 0)i.nextConsumer=r;else if(t.consumers=r,!Mi(t)){let o=t.producers;for(;o!==void 0;)o=ed(o)}return n}function Mi(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Oa(e){Lw?.(e)}function Bw(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function ka(e,t){let n=Object.create(Uw);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Ra(n),Si(n),n.value===Go)throw n.error;return n.value};return r[mt]=n,Oa(n),r}var Ta=Symbol("UNSET"),Ma=Symbol("COMPUTING"),Go=Symbol("ERRORED"),Uw=Y(C({},tr),{value:Ta,dirty:!0,error:null,equal:xa,kind:"computed",producerMustRecompute(e){return e.value===Ta||e.value===Ma},producerRecomputeValue(e){if(e.value===Ma)throw new Error("");let t=e.value;e.value=Ma;let n=nr(e),r,i=!1;try{r=e.computation(),q(null),i=t!==Ta&&t!==Go&&r!==Go&&e.equal(t,r)}catch(o){r=Go,e.error=o}finally{Vr(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});function jw(){throw new Error}var Jg=jw;function em(e){Jg(e)}function td(e){Jg=e}var $w=null;function nd(e,t){let n=Object.create(Pa);n.value=e,t!==void 0&&(n.equal=t);let r=()=>tm(n);return r[mt]=n,Oa(n),[r,s=>Ni(n,s),s=>rd(n,s)]}function tm(e){return Si(e),e.value}function Ni(e,t){Ju()||em(e),e.equal(e.value,t)||(e.value=t,Hw(e))}function rd(e,t){Ju()||em(e),Ni(e,t(e.value))}var Pa=Y(C({},tr),{equal:xa,value:void 0,kind:"signal"});function Hw(e){e.version++,Qg(),Xu(e),$w?.(e)}function W(e){return typeof e=="function"}function xi(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Fa=xi(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
6
|
+
${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
|
|
7
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function Ur(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Te=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(W(r))try{r()}catch(o){t=o instanceof Fa?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{nm(o)}catch(s){t=t??[],s instanceof Fa?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Fa(t)}}add(t){var n;if(t&&t!==this)if(this.closed)nm(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Ur(n,t)}remove(t){let{_finalizers:n}=this;n&&Ur(n,t),t instanceof e&&t._removeParent(this)}};Te.EMPTY=(()=>{let e=new Te;return e.closed=!0,e})();var id=Te.EMPTY;function La(e){return e instanceof Te||e&&"closed"in e&&W(e.remove)&&W(e.add)&&W(e.unsubscribe)}function nm(e){W(e)?e():e.unsubscribe()}var tn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ai={setTimeout(e,t,...n){let{delegate:r}=Ai;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ai;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Va(e){Ai.setTimeout(()=>{let{onUnhandledError:t}=tn;if(t)t(e);else throw e})}function qo(){}var rm=od("C",void 0,void 0);function im(e){return od("E",void 0,e)}function om(e){return od("N",e,void 0)}function od(e,t,n){return{kind:e,value:t,error:n}}var jr=null;function Ri(e){if(tn.useDeprecatedSynchronousErrorHandling){let t=!jr;if(t&&(jr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=jr;if(jr=null,n)throw r}}else e()}function sm(e){tn.useDeprecatedSynchronousErrorHandling&&jr&&(jr.errorThrown=!0,jr.error=e)}var $r=class extends Te{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,La(t)&&t.add(this)):this.destination=qw}static create(t,n,r){return new Fn(t,n,r)}next(t){this.isStopped?ad(om(t),this):this._next(t)}error(t){this.isStopped?ad(im(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ad(rm,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},zw=Function.prototype.bind;function sd(e,t){return zw.call(e,t)}var cd=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ba(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ba(r)}else Ba(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ba(n)}}},Fn=class extends $r{constructor(t,n,r){super();let i;if(W(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&tn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&sd(t.next,o),error:t.error&&sd(t.error,o),complete:t.complete&&sd(t.complete,o)}):i=t}this.destination=new cd(i)}};function Ba(e){tn.useDeprecatedSynchronousErrorHandling?sm(e):Va(e)}function Gw(e){throw e}function ad(e,t){let{onStoppedNotification:n}=tn;n&&Ai.setTimeout(()=>n(e,t))}var qw={closed:!0,next:qo,error:Gw,complete:qo};var Oi=typeof Symbol=="function"&&Symbol.observable||"@@observable";function vt(e){return e}function ld(...e){return ud(e)}function ud(e){return e.length===0?vt:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var z=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=Kw(n)?n:new Fn(n,r,i);return Ri(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=am(r),new r((i,o)=>{let s=new Fn({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Oi](){return this}pipe(...n){return ud(n)(this)}toPromise(n){return n=am(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function am(e){var t;return(t=e??tn.Promise)!==null&&t!==void 0?t:Promise}function Ww(e){return e&&W(e.next)&&W(e.error)&&W(e.complete)}function Kw(e){return e&&e instanceof $r||Ww(e)&&La(e)}function dd(e){return W(e?.lift)}function G(e){return t=>{if(dd(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function H(e,t,n,r,i){return new fd(e,t,n,r,i)}var fd=class extends $r{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function ki(){return G((e,t)=>{let n=null;e._refCount++;let r=H(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var rr=class extends z{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,dd(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Te;let n=this.getSubject();t.add(this.source.subscribe(H(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Te.EMPTY)}return t}refCount(){return ki()(this)}};var Pi={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Pi;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let i=t(o=>{n=void 0,e(o)});return new Te(()=>n?.(i))},requestAnimationFrame(...e){let{delegate:t}=Pi;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=Pi;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var cm=xi(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var se=(()=>{class e extends z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ua(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new cm}next(n){Ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?id:(this.currentObservers=null,o.push(n),new Te(()=>{this.currentObservers=null,Ur(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new z;return n.source=this,n}}return e.create=(t,n)=>new Ua(t,n),e})(),Ua=class extends se{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:id}};var nt=class extends se{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Wo={now(){return(Wo.delegate||Date).now()},delegate:void 0};var Hr=class extends se{constructor(t=1/0,n=1/0,r=Wo){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(t),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;s<o.length&&!t.closed;s+=r?1:2)t.next(o[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var ja=class extends Te{constructor(t,n){super()}schedule(t,n=0){return this}};var Ko={setInterval(e,t,...n){let{delegate:r}=Ko;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Ko;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var ir=class extends ja{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return Ko.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Ko.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,i;try{this.work(t)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Ur(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Zw=1,pd,hd={};function lm(e){return e in hd?(delete hd[e],!0):!1}var um={setImmediate(e){let t=Zw++;return hd[t]=!0,pd||(pd=Promise.resolve()),pd.then(()=>lm(t)&&e()),t},clearImmediate(e){lm(e)}};var{setImmediate:Yw,clearImmediate:Qw}=um,Zo={setImmediate(...e){let{delegate:t}=Zo;return(t?.setImmediate||Yw)(...e)},clearImmediate(e){let{delegate:t}=Zo;return(t?.clearImmediate||Qw)(e)},delegate:void 0};var $a=class extends ir{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Zo.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var i;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:o}=t;n!=null&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==n&&(Zo.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var Fi=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Fi.now=Wo.now;var or=class extends Fi{constructor(t,n=Fi.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Ha=class extends or{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,i;t=t||r.shift();do if(i=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,i){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw i}}};var gd=new Ha($a);var Yo=new or(ir),dm=Yo;var za=class extends ir{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Pi.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var i;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:o}=t;n!=null&&n===t._scheduled&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==n&&(Pi.cancelAnimationFrame(n),t._scheduled=void 0)}};var Ga=class extends or{flush(t){this._active=!0;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,i;t=t||r.shift();do if(i=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,i){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw i}}};var md=new Ga(za);var St=new z(e=>e.complete());function qa(e){return e&&W(e.schedule)}function fm(e){return e[e.length-1]}function Wa(e){return W(fm(e))?e.pop():void 0}function sr(e){return qa(fm(e))?e.pop():void 0}function hm(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?o(u.value):i(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function pm(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function zr(e){return this instanceof zr?(this.v=e,this):new zr(e)}function gm(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(i[f]=function(m){return new Promise(function(v,y){o.push([f,m,v,y])>1||c(f,m)})},g&&(i[f]=g(i[f])))}function c(f,g){try{l(r[f](g))}catch(m){p(o[0][3],m)}}function l(f){f.value instanceof zr?Promise.resolve(f.value.v).then(u,d):p(o[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,g){f(g),o.shift(),o.length&&c(o[0][0],o[0][1])}}function mm(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof pm=="function"?pm(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){s=e[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var Ka=e=>e&&typeof e.length=="number"&&typeof e!="function";function Za(e){return W(e?.then)}function Ya(e){return W(e[Oi])}function Qa(e){return Symbol.asyncIterator&&W(e?.[Symbol.asyncIterator])}function Xa(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Xw(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ja=Xw();function ec(e){return W(e?.[Ja])}function tc(e){return gm(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield zr(n.read());if(i)return yield zr(void 0);yield yield zr(r)}}finally{n.releaseLock()}})}function nc(e){return W(e?.getReader)}function Ne(e){if(e instanceof z)return e;if(e!=null){if(Ya(e))return Jw(e);if(Ka(e))return e0(e);if(Za(e))return t0(e);if(Qa(e))return vm(e);if(ec(e))return n0(e);if(nc(e))return r0(e)}throw Xa(e)}function Jw(e){return new z(t=>{let n=e[Oi]();if(W(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function e0(e){return new z(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function t0(e){return new z(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Va)})}function n0(e){return new z(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function vm(e){return new z(t=>{i0(e,t).catch(n=>t.error(n))})}function r0(e){return vm(tc(e))}function i0(e,t){var n,r,i,o;return hm(this,void 0,void 0,function*(){try{for(n=mm(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function Tt(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function rc(e,t=0){return G((n,r)=>{n.subscribe(H(r,i=>Tt(r,e,()=>r.next(i),t),()=>Tt(r,e,()=>r.complete(),t),i=>Tt(r,e,()=>r.error(i),t)))})}function ic(e,t=0){return G((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ym(e,t){return Ne(e).pipe(ic(t),rc(t))}function _m(e,t){return Ne(e).pipe(ic(t),rc(t))}function bm(e,t){return new z(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Em(e,t){return new z(n=>{let r;return Tt(n,t,()=>{r=e[Ja](),Tt(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>W(r?.return)&&r.return()})}function oc(e,t){if(!e)throw new Error("Iterable cannot be null");return new z(n=>{Tt(n,t,()=>{let r=e[Symbol.asyncIterator]();Tt(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Dm(e,t){return oc(tc(e),t)}function Cm(e,t){if(e!=null){if(Ya(e))return ym(e,t);if(Ka(e))return bm(e,t);if(Za(e))return _m(e,t);if(Qa(e))return oc(e,t);if(ec(e))return Em(e,t);if(nc(e))return Dm(e,t)}throw Xa(e)}function ke(e,t){return t?Cm(e,t):Ne(e)}function O(...e){let t=sr(e);return ke(e,t)}function Li(e,t){let n=W(e)?e:()=>e,r=i=>i.error(n());return new z(t?i=>t.schedule(r,0,i):r)}function Gr(e){return!!e&&(e instanceof z||W(e.lift)&&W(e.subscribe))}var Ln=xi(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function wm(e){return e instanceof Date&&!isNaN(e)}function X(e,t){return G((n,r)=>{let i=0;n.subscribe(H(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:o0}=Array;function s0(e,t){return o0(t)?e(...t):e(t)}function sc(e){return X(t=>s0(e,t))}var{isArray:a0}=Array,{getPrototypeOf:c0,prototype:l0,keys:u0}=Object;function ac(e){if(e.length===1){let t=e[0];if(a0(t))return{args:t,keys:null};if(d0(t)){let n=u0(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function d0(e){return e&&typeof e=="object"&&c0(e)===l0}function cc(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function lc(...e){let t=sr(e),n=Wa(e),{args:r,keys:i}=ac(e);if(r.length===0)return ke([],t);let o=new z(f0(r,t,i?s=>cc(i,s):vt));return n?o.pipe(sc(n)):o}function f0(e,t,n=vt){return r=>{Im(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let c=0;c<i;c++)Im(t,()=>{let l=ke(e[c],t),u=!1;l.subscribe(H(r,d=>{o[c]=d,u||(u=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Im(e,t,n){e?Tt(n,e,t):t()}function Sm(e,t,n,r,i,o,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},f=m=>l<r?g(m):c.push(m),g=m=>{o&&t.next(m),l++;let v=!1;Ne(n(m,u++)).subscribe(H(t,y=>{i?.(y),o?f(y):t.next(y)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&l<r;){let y=c.shift();s?Tt(t,s,()=>g(y)):g(y)}p()}catch(y){t.error(y)}}))};return e.subscribe(H(t,f,()=>{d=!0,p()})),()=>{a?.()}}function We(e,t,n=1/0){return W(t)?We((r,i)=>X((o,s)=>t(r,o,i,s))(Ne(e(r,i))),n):(typeof t=="number"&&(n=t),G((r,i)=>Sm(r,i,e,n)))}function Tm(e=1/0){return We(vt,e)}function Mm(){return Tm(1)}function Vi(...e){return Mm()(ke(e,sr(e)))}function Qo(e){return new z(t=>{Ne(e()).subscribe(t)})}function vd(...e){let t=Wa(e),{args:n,keys:r}=ac(e),i=new z(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;Ne(n[u]).subscribe(H(o,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||o.next(r?cc(r,a):a),o.complete())}))}});return t?i.pipe(sc(t)):i}function Nm(e=0,t,n=dm){let r=-1;return t!=null&&(qa(t)?n=t:r=t),new z(i=>{let o=wm(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function ct(e,t){return G((n,r)=>{let i=0;n.subscribe(H(r,o=>e.call(t,o,i++)&&r.next(o)))})}function xm(e){return G((t,n)=>{let r=!1,i=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,r){r=!1;let l=i;i=null,n.next(l)}s&&n.complete()},c=()=>{o=null,s&&n.complete()};t.subscribe(H(n,l=>{r=!0,i=l,o||Ne(e(l)).subscribe(o=H(n,a,c))},()=>{s=!0,(!r||!o||o.closed)&&n.complete()}))})}function Xo(e,t=Yo){return xm(()=>Nm(e,t))}function kt(e){return G((t,n)=>{let r=null,i=!1,o;r=t.subscribe(H(n,void 0,void 0,s=>{o=Ne(e(s,kt(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function Am(e,t,n,r,i){return(o,s)=>{let a=n,c=t,l=0;o.subscribe(H(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function ar(e,t){return W(t)?We(e,t,1):We(e,1)}function yd(e,t=Yo){return G((n,r)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let l=o;o=null,r.next(l)}};function c(){let l=s+e,u=t.now();if(u<l){i=this.schedule(void 0,l-u),r.add(i);return}a()}n.subscribe(H(r,l=>{o=l,s=t.now(),i||(i=t.schedule(c,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function cr(e){return G((t,n)=>{let r=!1;t.subscribe(H(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function Vn(e){return e<=0?()=>St:G((t,n)=>{let r=0;t.subscribe(H(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function _d(e,t=vt){return e=e??p0,G((n,r)=>{let i,o=!0;n.subscribe(H(r,s=>{let a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function p0(e,t){return e===t}function uc(e=h0){return G((t,n)=>{let r=!1;t.subscribe(H(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function h0(){return new Ln}function qr(e){return G((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Bn(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ct((i,o)=>e(i,o,r)):vt,Vn(1),n?cr(t):uc(()=>new Ln))}function Bi(e){return e<=0?()=>St:G((t,n)=>{let r=[];t.subscribe(H(n,i=>{r.push(i),e<r.length&&r.shift()},()=>{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function bd(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ct((i,o)=>e(i,o,r)):vt,Bi(1),n?cr(t):uc(()=>new Ln))}function Ed(){return G((e,t)=>{let n,r=!1;e.subscribe(H(t,i=>{let o=n;n=i,r&&t.next([o,i]),r=!0}))})}function Dd(e,t){return G(Am(e,t,arguments.length>=2,!0))}function Rm(e={}){let{connector:t=()=>new se,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,l=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,u=d=!1},g=()=>{let m=s;f(),m?.unsubscribe()};return G((m,v)=>{l++,!d&&!u&&p();let y=c=c??t();v.add(()=>{l--,l===0&&!d&&!u&&(a=Cd(g,i))}),y.subscribe(v),!s&&l>0&&(s=new Fn({next:R=>y.next(R),error:R=>{d=!0,p(),a=Cd(f,n,R),y.error(R)},complete:()=>{u=!0,p(),a=Cd(f,r),y.complete()}}),Ne(m).subscribe(s))})(o)}}function Cd(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Fn({next:()=>{r.unsubscribe(),e()}});return Ne(t(...n)).subscribe(r)}function wd(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e??1/0,Rm({connector:()=>new Hr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Ui(...e){let t=sr(e);return G((n,r)=>{(t?Vi(e,n,t):Vi(e,n)).subscribe(r)})}function Re(e,t){return G((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(H(r,c=>{i?.unsubscribe();let l=0,u=o++;Ne(e(c,u)).subscribe(i=H(r,d=>r.next(t?t(c,d,u,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function lr(e){return G((t,n)=>{Ne(e).subscribe(H(n,()=>n.complete(),qo)),!n.closed&&t.subscribe(n)})}function Qe(e,t,n){let r=W(e)||t||n?{next:e,error:t,complete:n}:e;return r?G((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(H(o,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),o.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),o.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):vt}function Om(e){let t=q(null);try{return e()}finally{q(t)}}var gc="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",I=class extends Error{code;constructor(t,n){super(Qr(t,n)),this.code=t}};function g0(e){return`NG0${Math.abs(e)}`}function Qr(e,t){return`${g0(e)}${t?": "+t:""}`}var rn=globalThis;function fe(e){for(let t in e)if(e[t]===fe)return t;throw Error("")}function Fm(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function jn(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(jn).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
8
|
+
`);return r>=0?n.slice(0,r):n}function Fd(e,t){return e?t?`${e} ${t}`:e:t||""}var m0=fe({__forward_ref__:fe});function on(e){return e.__forward_ref__=on,e.toString=function(){return jn(this())},e}function rt(e){return Ld(e)?e():e}function Ld(e){return typeof e=="function"&&e.hasOwnProperty(m0)&&e.__forward_ref__===on}function Lm(e,t){e==null&&Vd(t,e,null,"!=")}function Vd(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function M(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function _t(e){return{providers:e.providers||[],imports:e.imports||[]}}function is(e){return v0(e,mc)}function Bd(e){return is(e)!==null}function v0(e,t){return e.hasOwnProperty(t)&&e[t]||null}function y0(e){let t=e?.[mc]??null;return t||null}function Sd(e){return e&&e.hasOwnProperty(fc)?e[fc]:null}var mc=fe({\u0275prov:fe}),fc=fe({\u0275inj:fe}),T=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=M({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ud(e){return e&&!!e.\u0275providers}var jd=fe({\u0275cmp:fe}),$d=fe({\u0275dir:fe}),Hd=fe({\u0275pipe:fe}),zd=fe({\u0275mod:fe}),ts=fe({\u0275fac:fe}),Xr=fe({__NG_ELEMENT_ID__:fe}),km=fe({__NG_ENV_ID__:fe});function Jr(e){return typeof e=="string"?e:e==null?"":String(e)}function pc(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Jr(e)}var Gd=fe({ngErrorCode:fe}),Vm=fe({ngErrorMessage:fe}),es=fe({ngTokenPath:fe});function qd(e,t){return Bm("",-200,t)}function vc(e,t){throw new I(-201,!1)}function _0(e,t){e[es]??=[];let n=e[es],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(Lm(t.provide,"Token with multi: true should have a provide property"),r=pc(t.provide)):r=pc(t),n[0]!==r&&e[es].unshift(r)}function b0(e,t){let n=e[es],r=e[Gd],i=e[Vm]||e.message;return e.message=D0(i,r,n,t),e}function Bm(e,t,n){let r=new I(t,e);return r[Gd]=t,r[Vm]=e,n&&(r[es]=n),r}function E0(e){return e[Gd]}function D0(e,t,n=[],r=null){let i="";n&&n.length>1&&(i=` Path: ${n.join(" -> ")}.`);let o=r?` Source: ${r}.`:"";return Qr(t,`${e}${o}${i}`)}var Td;function Um(){return Td}function yt(e){let t=Td;return Td=e,t}function Wd(e,t,n){let r=is(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;vc(e,"Injector")}var C0={},Wr=C0,Md="__NG_DI_FLAG__",Nd=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Kr(n)||0;try{return this.injector.get(t,r&8?null:Wr,r)}catch(i){if(Ii(i))return i;throw i}}};function w0(e,t=0){let n=Ia();if(n===void 0)throw new I(-203,!1);if(n===null)return Wd(e,void 0,t);{let r=I0(t),i=n.retrieve(e,r);if(Ii(i)){if(r.optional)return null;throw i}return i}}function F(e,t=0){return(Um()||w0)(rt(e),t)}function h(e,t){return F(e,Kr(t))}function Kr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function I0(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function xd(e){let t=[];for(let n=0;n<e.length;n++){let r=rt(e[n]);if(Array.isArray(r)){if(r.length===0)throw new I(900,!1);let i,o=0;for(let s=0;s<r.length;s++){let a=r[s],c=S0(a);typeof c=="number"?c===-1?i=a.token:o|=c:i=a}t.push(F(i,o))}else t.push(F(r))}return t}function yc(e,t){return e[Md]=t,e.prototype[Md]=t,e}function S0(e){return e[Md]}function ur(e,t){let n=e.hasOwnProperty(ts);return n?e[ts]:null}function jm(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function $m(e){return e.flat(Number.POSITIVE_INFINITY)}function _c(e,t){e.forEach(n=>Array.isArray(n)?_c(n,t):t(n))}function Kd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function os(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Hm(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function zm(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function Gm(e,t,n){let r=$i(e,t);return r>=0?e[r|1]=n:(r=~r,zm(e,r,t,n)),r}function bc(e,t){let n=$i(e,t);if(n>=0)return e[n|1]}function $i(e,t){return T0(e,t,1)}function T0(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var fr={},Pt=[],pr=new T(""),Zd=new T("",-1),Yd=new T(""),ns=class{get(t,n=Wr){if(n===Wr){let i=Bm("",-201);throw i.name="\u0275NotFound",i}return n}};function Qd(e){return e[zd]||null}function hr(e){return e[jd]||null}function Xd(e){return e[$d]||null}function qm(e){return e[Hd]||null}function ei(e){return{\u0275providers:e}}function Wm(...e){return{\u0275providers:Jd(!0,e),\u0275fromNgModule:!0}}function Jd(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return _c(t,s=>{let a=s;hc(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Km(i,o),n}function Km(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];ef(i,o=>{t(o,r)})}}function hc(e,t,n,r){if(e=rt(e),!e)return!1;let i=null,o=Sd(e),s=!o&&hr(e);if(!o&&!s){let c=e.ngModule;if(o=Sd(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)hc(l,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{_c(o.imports,u=>{hc(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Km(l,t)}if(!a){let l=ur(i)||(()=>new i);t({provide:i,useFactory:l,deps:Pt},i),t({provide:Yd,useValue:i,multi:!0},i),t({provide:pr,useValue:()=>F(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let l=e;ef(c,u=>{t(u,l)})}}else return!1;return i!==e&&e.providers!==void 0}function ef(e,t){for(let n of e)Ud(n)&&(n=n.\u0275providers),Array.isArray(n)?ef(n,t):t(n)}var M0=fe({provide:String,useValue:fe});function Zm(e){return e!==null&&typeof e=="object"&&M0 in e}function N0(e){return!!(e&&e.useExisting)}function x0(e){return!!(e&&e.useFactory)}function Zr(e){return typeof e=="function"}function Ym(e){return!!e.useClass}var ss=new T(""),dc={},Pm={},Id;function as(){return Id===void 0&&(Id=new ns),Id}var Ke=class{},Yr=class extends Ke{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,Rd(t,s=>this.processProvider(s)),this.records.set(Zd,ji(void 0,this)),i.has("environment")&&this.records.set(Ke,ji(void 0,this));let o=this.records.get(ss);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Yd,Pt,{self:!0}))}retrieve(t,n){let r=Kr(n)||0;try{return this.get(t,Wr,r)}catch(i){if(Ii(i))return i;throw i}}destroy(){Jo(this),this._destroyed=!0;let t=q(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),q(t)}}onDestroy(t){return Jo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Jo(this);let n=yn(this),r=yt(void 0),i;try{return t()}finally{yn(n),yt(r)}}get(t,n=Wr,r){if(Jo(this),t.hasOwnProperty(km))return t[km](this);let i=Kr(r),o,s=yn(this),a=yt(void 0);try{if(!(i&4)){let l=this.records.get(t);if(l===void 0){let u=P0(t)&&is(t);u&&this.injectableDefInScope(u)?l=ji(Ad(t),dc):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,i)}let c=i&2?as():this.parent;return n=i&8&&n===Wr?null:n,c.get(t,n)}catch(c){let l=E0(c);throw l===-200||l===-201?new I(l,null):c}finally{yt(a),yn(s)}}resolveInjectorInitializers(){let t=q(null),n=yn(this),r=yt(void 0),i;try{let o=this.get(pr,Pt,{self:!0});for(let s of o)s()}finally{yn(n),yt(r),q(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(jn(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=rt(t);let n=Zr(t)?t:rt(t&&t.provide),r=R0(t);if(!Zr(t)&&t.multi===!0){let i=this.records.get(n);i||(i=ji(void 0,dc,!0),i.factory=()=>xd(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let i=q(null);try{if(n.value===Pm)throw qd(jn(t));return n.value===dc&&(n.value=Pm,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&k0(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{q(i)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=rt(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ad(e){let t=is(e),n=t!==null?t.factory:ur(e);if(n!==null)return n;if(e instanceof T)throw new I(204,!1);if(e instanceof Function)return A0(e);throw new I(204,!1)}function A0(e){if(e.length>0)throw new I(204,!1);let n=y0(e);return n!==null?()=>n.factory(e):()=>new e}function R0(e){if(Zm(e))return ji(void 0,e.useValue);{let t=tf(e);return ji(t,dc)}}function tf(e,t,n){let r;if(Zr(e)){let i=rt(e);return ur(i)||Ad(i)}else if(Zm(e))r=()=>rt(e.useValue);else if(x0(e))r=()=>e.useFactory(...xd(e.deps||[]));else if(N0(e))r=(i,o)=>F(rt(e.useExisting),o!==void 0&&o&8?8:void 0);else{let i=rt(e&&(e.useClass||e.provide));if(O0(e))r=()=>new i(...xd(e.deps));else return ur(i)||Ad(i)}return r}function Jo(e){if(e.destroyed)throw new I(205,!1)}function ji(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function O0(e){return!!e.deps}function k0(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function P0(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Rd(e,t){for(let n of e)Array.isArray(n)?Rd(n,t):n&&Ud(n)?Rd(n.\u0275providers,t):t(n)}function it(e,t){let n;e instanceof Yr?(Jo(e),n=e):n=new Nd(e);let r,i=yn(n),o=yt(void 0);try{return t()}finally{yn(i),yt(o)}}function Qm(){return Um()!==void 0||Ia()!=null}var sn=0,B=1,j=2,Xe=3,zt=4,bt=5,Hi=6,zi=7,lt=8,ti=9,_n=10,Pe=11,Gi=12,nf=13,ni=14,Mt=15,gr=16,ri=17,bn=18,cs=19,rf=20,Un=21,Ec=22,$n=23,Ft=24,ii=25,Le=26,Xm=1;var mr=7,ls=8,oi=9,Et=10;function En(e){return Array.isArray(e)&&typeof e[Xm]=="object"}function an(e){return Array.isArray(e)&&e[Xm]===!0}function of(e){return(e.flags&4)!==0}function vr(e){return e.componentOffset>-1}function qi(e){return(e.flags&1)===1}function Dn(e){return!!e.template}function Wi(e){return(e[j]&512)!==0}function si(e){return(e[j]&256)===256}var sf="svg",Jm="math";function Gt(e){for(;Array.isArray(e);)e=e[sn];return e}function af(e,t){return Gt(t[e])}function cn(e,t){return Gt(t[e.index])}function Dc(e,t){return e.data[t]}function cf(e,t){return e[t]}function lf(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function qt(e,t){let n=t[e];return En(n)?n:n[sn]}function ev(e){return(e[j]&4)===4}function Cc(e){return(e[j]&128)===128}function tv(e){return an(e[Xe])}function yr(e,t){return t==null?null:e[t]}function uf(e){e[ri]=0}function df(e){e[j]&1024||(e[j]|=1024,Cc(e)&&_r(e))}function nv(e,t){for(;e>0;)t=t[ni],e--;return t}function us(e){return!!(e[j]&9216||e[Ft]?.dirty)}function wc(e){e[_n].changeDetectionScheduler?.notify(8),e[j]&64&&(e[j]|=1024),us(e)&&_r(e)}function _r(e){e[_n].changeDetectionScheduler?.notify(0);let t=dr(e);for(;t!==null&&!(t[j]&8192||(t[j]|=8192,!Cc(t)));)t=dr(t)}function ff(e,t){if(si(e))throw new I(911,!1);e[Un]===null&&(e[Un]=[]),e[Un].push(t)}function rv(e,t){if(e[Un]===null)return;let n=e[Un].indexOf(t);n!==-1&&e[Un].splice(n,1)}function dr(e){let t=e[Xe];return an(t)?t[Xe]:t}function pf(e){return e[zi]??=[]}function hf(e){return e.cleanup??=[]}function iv(e,t,n,r){let i=pf(t);i.push(n),e.firstCreatePass&&hf(e).push(r,i.length-1)}var Q={lFrame:vv(null),bindingsEnabled:!0,skipHydrationRootTNode:null},ds=(function(e){return e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews",e})(ds||{}),F0=0,Od=!1;function ov(){return Q.lFrame.elementDepthCount}function sv(){Q.lFrame.elementDepthCount++}function gf(){Q.lFrame.elementDepthCount--}function Ic(){return Q.bindingsEnabled}function mf(){return Q.skipHydrationRootTNode!==null}function vf(e){return Q.skipHydrationRootTNode===e}function yf(){Q.skipHydrationRootTNode=null}function ae(){return Q.lFrame.lView}function ut(){return Q.lFrame.tView}function be(e){return Q.lFrame.contextLView=e,e[lt]}function Ee(e){return Q.lFrame.contextLView=null,e}function dt(){let e=_f();for(;e!==null&&e.type===64;)e=e.parent;return e}function _f(){return Q.lFrame.currentTNode}function av(){let e=Q.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ki(e,t){let n=Q.lFrame;n.currentTNode=e,n.isParent=t}function bf(){return Q.lFrame.isParent}function Ef(){Q.lFrame.isParent=!1}function cv(){return Q.lFrame.contextLView}function Df(e){Vd("Must never be called in production mode"),F0=e}function Cf(){return Od}function Zi(e){let t=Od;return Od=e,t}function lv(){let e=Q.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function uv(){return Q.lFrame.bindingIndex}function dv(e){return Q.lFrame.bindingIndex=e}function Sc(){return Q.lFrame.bindingIndex++}function wf(e){let t=Q.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function fv(){return Q.lFrame.inI18n}function pv(e,t){let n=Q.lFrame;n.bindingIndex=n.bindingRootIndex=e,Tc(t)}function hv(){return Q.lFrame.currentDirectiveIndex}function Tc(e){Q.lFrame.currentDirectiveIndex=e}function gv(e){let t=Q.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function If(){return Q.lFrame.currentQueryIndex}function Mc(e){Q.lFrame.currentQueryIndex=e}function L0(e){let t=e[B];return t.type===2?t.declTNode:t.type===1?e[bt]:null}function Sf(e,t,n){if(n&4){let i=t,o=e;for(;i=i.parent,i===null&&!(n&1);)if(i=L0(o),i===null||(o=o[ni],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=Q.lFrame=mv();return r.currentTNode=t,r.lView=e,!0}function Nc(e){let t=mv(),n=e[B];Q.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function mv(){let e=Q.lFrame,t=e===null?null:e.child;return t===null?vv(e):t}function vv(e){let t={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:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function yv(){let e=Q.lFrame;return Q.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Tf=yv;function xc(){let e=yv();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function _v(e){return(Q.lFrame.contextLView=nv(e,Q.lFrame.contextLView))[lt]}function br(){return Q.lFrame.selectedIndex}function Er(e){Q.lFrame.selectedIndex=e}function Mf(){let e=Q.lFrame;return Dc(e.tView,e.selectedIndex)}function Dr(){Q.lFrame.currentNamespace=sf}function Yi(){V0()}function V0(){Q.lFrame.currentNamespace=null}function bv(){return Q.lFrame.currentNamespace}var Ev=!0;function Ac(){return Ev}function fs(e){Ev=e}var B0={elements:void 0};function Rc(){return B0}function kd(e,t=null,n=null,r){let i=Nf(e,t,n,r);return i.resolveInjectorInitializers(),i}function Nf(e,t=null,n=null,r,i=new Set){let o=[n||Pt,Wm(e)];return r=r||(typeof e=="object"?void 0:jn(e)),new Yr(o,t||as(),r||null,i)}var Je=class e{static THROW_IF_NOT_FOUND=Wr;static NULL=new ns;static create(t,n){if(Array.isArray(t))return kd({name:""},n,t,"");{let r=t.name??"";return kd({name:r},t.parent,t.providers,r)}}static \u0275prov=M({token:e,providedIn:"any",factory:()=>F(Zd)});static __NG_ELEMENT_ID__=-1},xe=new T(""),Ze=(()=>{class e{static __NG_ELEMENT_ID__=U0;static __NG_ENV_ID__=n=>n}return e})(),rs=class extends Ze{_lView;constructor(t){super(),this._lView=t}get destroyed(){return si(this._lView)}onDestroy(t){let n=this._lView;return ff(n,t),()=>rv(n,t)}};function U0(){return new rs(ae())}var Ht=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Lt=new T("",{providedIn:"root",factory:()=>{let e=h(Ke),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Ht),t.handleError(n))}}}),Dv={provide:pr,useValue:()=>void h(Ht),multi:!0};function L(e,t){let[n,r,i]=nd(e,t?.equal),o=n,s=o[mt];return o.set=r,o.update=i,o.asReadonly=xf.bind(o),o}function xf(){let e=this[mt];if(e.readonlyFn===void 0){let t=()=>this();t[mt]=e,e.readonlyFn=t}return e.readonlyFn}var nn=class{},ps=new T("",{providedIn:"root",factory:()=>!1});var Af=new T(""),Rf=new T("");var Qi=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=j0}return e})();function j0(){return new Qi(ae(),dt())}var Cn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new nt(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new z(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})(),Xi=(()=>{class e{internalPendingTasks=h(Cn);scheduler=h(nn);errorHandler=h(Lt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})();function ai(...e){}var hs=(()=>{class e{static \u0275prov=M({token:e,providedIn:"root",factory:()=>new Pd})}return e})(),Pd=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}};function so(e){return{toString:e}.toString()}var Oc="__parameters__";function K0(e){return function(...n){if(e){let r=e(...n);for(let i in r)this[i]=r[i]}}}function bp(e,t,n){return so(()=>{let r=K0(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Oc)?c[Oc]:Object.defineProperty(c,Oc,{value:[]})[Oc];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var Ep=yc(bp("Inject",e=>({token:e})),-1),sl=yc(bp("Optional"),8);var ty=yc(bp("SkipSelf"),4);function Z0(e){return typeof e=="function"}var $c=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ny(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var wr=(()=>{let e=()=>ry;return e.ngInherit=!0,e})();function ry(e){return e.type.prototype.ngOnChanges&&(e.setInput=Q0),Y0}function Y0(){let e=oy(this),t=e?.current;if(t){let n=e.previous;if(n===fr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Q0(e,t,n,r,i){let o=this.declaredInputs[r],s=oy(e)||X0(e,{previous:fr,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new $c(l&&l.currentValue,n,c===fr),ny(e,t,i,n)}var iy="__ngSimpleChanges__";function oy(e){return e[iy]||null}function X0(e,t){return e[iy]=t}var Cv=[];var ge=function(e,t=null,n){for(let r=0;r<Cv.length;r++){let i=Cv[r];i(e,t,n)}};function J0(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=ry(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function sy(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let o=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=o;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Vc(e,t,n){ay(e,t,3,n)}function Bc(e,t,n,r){(e[j]&3)===n&&ay(e,t,n,r)}function Of(e,t){let n=e[j];(n&3)===t&&(n&=16383,n+=1,e[j]=n)}function ay(e,t,n,r){let i=r!==void 0?e[ri]&65535:0,o=r??-1,s=t.length-1,a=0;for(let c=i;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[ri]+=65536),(a<o||o==-1)&&(eI(e,n,t,c),e[ri]=(e[ri]&4294901760)+c+2),c++}function wv(e,t){ge(4,e,t);let n=q(null);try{t.call(e)}finally{q(n),ge(5,e,t)}}function eI(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[j]>>14<e[ri]>>16&&(e[j]&3)===t&&(e[j]+=16384,wv(a,o)):wv(a,o)}var eo=-1,ui=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,i){this.factory=t,this.name=i,this.canSeeViewProviders=n,this.injectImpl=r}};function tI(e){return(e.flags&8)!==0}function nI(e){return(e.flags&16)!==0}function rI(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];oI(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function iI(e){return e===3||e===4||e===6}function oI(e){return e.charCodeAt(0)===64}function to(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?Iv(e,n,i,null,t[++r]):Iv(e,n,i,null,null))}}return e}function Iv(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){i!==null&&(e[o+1]=i);return}o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),i!==null&&e.splice(o++,0,i)}function cy(e){return e!==eo}function Hc(e){return e&32767}function sI(e){return e>>16}function zc(e,t){let n=sI(e),r=t;for(;n>0;)r=r[ni],n--;return r}var zf=!0;function Gc(e){let t=zf;return zf=e,t}var aI=256,ly=aI-1,uy=5,cI=0,wn={};function lI(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Xr)&&(r=n[Xr]),r==null&&(r=n[Xr]=cI++);let i=r&ly,o=1<<i;t.data[e+(i>>uy)]|=o}function qc(e,t){let n=dy(e,t);if(n!==-1)return n;let r=t[B];r.firstCreatePass&&(e.injectorIndex=t.length,kf(r.data,e),kf(t,null),kf(r.blueprint,null));let i=Dp(e,t),o=e.injectorIndex;if(cy(i)){let s=Hc(i),a=zc(i,t),c=a[B].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|c[s+l]}return t[o+8]=i,o}function kf(e,t){e.push(0,0,0,0,0,0,0,0,t)}function dy(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Dp(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=my(i),r===null)return eo;if(n++,i=i[ni],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return eo}function Gf(e,t,n){lI(e,t,n)}function fy(e,t,n){if(n&8||e!==void 0)return e;vc(t,"NodeInjector")}function py(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=e[ti],o=yt(void 0);try{return i?i.get(t,r,n&8):Wd(t,r,n&8)}finally{yt(o)}}return fy(r,t,n)}function hy(e,t,n,r=0,i){if(e!==null){if(t[j]&2048&&!(r&2)){let s=pI(e,t,n,r,wn);if(s!==wn)return s}let o=gy(e,t,n,r,wn);if(o!==wn)return o}return py(t,n,r,i)}function gy(e,t,n,r,i){let o=dI(n);if(typeof o=="function"){if(!Sf(t,e,r))return r&1?fy(i,n,r):py(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&8))vc(n);else return s}finally{Tf()}}else if(typeof o=="number"){let s=null,a=dy(e,t),c=eo,l=r&1?t[Mt][bt]:null;for((a===-1||r&4)&&(c=a===-1?Dp(e,t):t[a+8],c===eo||!Tv(r,!1)?a=-1:(s=t[B],a=Hc(c),t=zc(c,t)));a!==-1;){let u=t[B];if(Sv(o,a,u.data)){let d=uI(a,t,n,s,r,l);if(d!==wn)return d}c=t[a+8],c!==eo&&Tv(r,t[B].data[a+8]===l)&&Sv(o,a,t)?(s=u,a=Hc(c),t=zc(c,t)):a=-1}}return i}function uI(e,t,n,r,i,o){let s=t[B],a=s.data[e+8],c=r==null?vr(a)&&zf:r!=s&&(a.type&3)!==0,l=i&1&&o===a,u=Uc(a,s,n,c,l);return u!==null?vs(t,s,u,a,i):wn}function Uc(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,c=e.directiveStart,l=e.directiveEnd,u=o>>20,d=r?a:a+u,p=i?a+u:l;for(let f=d;f<p;f++){let g=s[f];if(f<c&&n===g||f>=c&&g.type===n)return f}if(i){let f=s[c];if(f&&Dn(f)&&f.type===n)return c}return null}function vs(e,t,n,r,i){let o=e[n],s=t.data;if(o instanceof ui){let a=o;if(a.resolving){let f=pc(s[n]);throw qd(f)}let c=Gc(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?yt(a.injectImpl):null,p=Sf(e,r,0);try{o=e[n]=a.factory(void 0,i,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&J0(n,s[n],t)}finally{d!==null&&yt(d),Gc(c),a.resolving=!1,Tf()}}return o}function dI(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Xr)?e[Xr]:void 0;return typeof t=="number"?t>=0?t&ly:fI:t}function Sv(e,t,n){let r=1<<e;return!!(n[t+(e>>uy)]&r)}function Tv(e,t){return!(e&2)&&!(e&1&&t)}var li=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return hy(this._tNode,this._lView,t,Kr(r),n)}};function fI(){return new li(dt(),ae())}function Ir(e){return so(()=>{let t=e.prototype.constructor,n=t[ts]||qf(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[ts]||qf(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function qf(e){return Ld(e)?()=>{let t=qf(rt(e));return t&&t()}:ur(e)}function pI(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[j]&2048&&!Wi(s);){let a=gy(o,s,n,r|2,wn);if(a!==wn)return a;let c=o.parent;if(!c){let l=s[rf];if(l){let u=l.get(n,wn,r);if(u!==wn)return u}c=my(s),s=s[ni]}o=c}return i}function my(e){let t=e[B],n=t.type;return n===2?t.declTNode:n===1?e[bt]:null}function hI(){return ao(dt(),ae())}function ao(e,t){return new ft(cn(e,t))}var ft=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=hI}return e})();function gI(e){return e instanceof ft?e.nativeElement:e}function mI(){return this._results[Symbol.iterator]()}var Wc=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 se}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=$m(t);(this._changesDetected=!jm(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=mI};function vy(e){return(e.flags&128)===128}var Cp=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Cp||{}),yy=new Map,vI=0;function yI(){return vI++}function _I(e){yy.set(e[cs],e)}function Wf(e){yy.delete(e[cs])}var Mv="__ngContext__";function no(e,t){En(t)?(e[Mv]=t[cs],_I(t)):e[Mv]=t}function _y(e){return Ey(e[Gi])}function by(e){return Ey(e[zt])}function Ey(e){for(;e!==null&&!an(e);)e=e[zt];return e}var Kf;function wp(e){Kf=e}function Ip(){if(Kf!==void 0)return Kf;if(typeof document<"u")return document;throw new I(210,!1)}var al=new T("",{providedIn:"root",factory:()=>bI}),bI="ng",cl=new T(""),Sr=new T("",{providedIn:"platform",factory:()=>"unknown"});var ll=new T("",{providedIn:"root",factory:()=>Ip().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var EI="h",DI="b";var Dy=!1,Cy=new T("",{providedIn:"root",factory:()=>Dy});var CI=(e,t,n,r)=>{};function wI(e,t,n,r){CI(e,t,n,r)}function ul(e){return(e.flags&32)===32}var II=()=>null;function wy(e,t,n=!1){return II(e,t,n)}function Iy(e,t){let n=e.contentQueries;if(n!==null){let r=q(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];Mc(o),a.contentQueries(2,t[s],s)}}}finally{q(r)}}}function Zf(e,t,n){Mc(0);let r=q(null);try{t(e,n)}finally{q(r)}}function Sp(e,t,n){if(of(t)){let r=q(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{q(r)}}}var Hn=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(Hn||{}),kc;function SI(){if(kc===void 0&&(kc=null,rn.trustedTypes))try{kc=rn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return kc}function dl(e){return SI()?.createHTML(e)||e}var Pc;function TI(){if(Pc===void 0&&(Pc=null,rn.trustedTypes))try{Pc=rn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Pc}function Nv(e){return TI()?.createHTML(e)||e}var Kc=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${gc})`}};function Tp(e){return e instanceof Kc?e.changingThisBreaksApplicationSecurity:e}function Sy(e,t){let n=Ty(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${gc})`)}return n===t}function Ty(e){return e instanceof Kc&&e.getTypeName()||null}function MI(e){let t=new Qf(e);return NI()?new Yf(t):t}var Yf=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(dl(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Qf=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=dl(t),n}};function NI(){try{return!!new window.DOMParser().parseFromString(dl(""),"text/html")}catch{return!1}}var xI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function My(e){return e=String(e),e.match(xI)?e:"unsafe:"+e}function zn(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Es(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Ny=zn("area,br,col,hr,img,wbr"),xy=zn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ay=zn("rp,rt"),AI=Es(Ay,xy),RI=Es(xy,zn("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")),OI=Es(Ay,zn("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")),xv=Es(Ny,RI,OI,AI),Ry=zn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),kI=zn("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"),PI=zn("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"),FI=Es(Ry,kI,PI),LI=zn("script,style,template"),Xf=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,i=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){i.push(n),n=UI(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=BI(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(t){let n=Av(t).toLowerCase();if(!xv.hasOwnProperty(n))return this.sanitizedSomething=!0,!LI.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let i=0;i<r.length;i++){let o=r.item(i),s=o.name,a=s.toLowerCase();if(!FI.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=o.value;Ry[a]&&(c=My(c)),this.buf.push(" ",s,'="',Rv(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=Av(t).toLowerCase();xv.hasOwnProperty(n)&&!Ny.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Rv(t))}};function VI(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function BI(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Oy(t);return t}function UI(e){let t=e.firstChild;if(t&&VI(e,t))throw Oy(t);return t}function Av(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Oy(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var jI=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$I=/([^\#-~ |!])/g;function Rv(e){return e.replace(/&/g,"&").replace(jI,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace($I,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Fc;function ky(e,t){let n=null;try{Fc=Fc||MI(e);let r=t?String(t):"";n=Fc.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Fc.getInertBodyElement(r)}while(r!==o);let a=new Xf().sanitizeChildren(Ov(n)||n);return dl(a)}finally{if(n){let r=Ov(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Ov(e){return"content"in e&&HI(e)?e.content:null}function HI(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Mp=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})(Mp||{});function Ds(e){let t=zI();return t?Nv(t.sanitize(Mp.HTML,e)||""):Sy(e,"HTML")?Nv(Tp(e)):ky(Ip(),Jr(e))}function zI(){let e=ae();return e&&e[_n].sanitizer}var GI=/^>|^->|<!--|-->|--!>|<!-$/g,qI=/(<|>)/g,WI="\u200B$1\u200B";function KI(e){return e.replace(GI,t=>t.replace(qI,WI))}function pi(e){return e.ownerDocument.defaultView}function Cs(e){return e.ownerDocument}function Py(e){return e instanceof Function?e():e}function ZI(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var Fy="ng-template";function YI(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&ZI(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Np(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function Np(e){return e.type===4&&e.value!==Fy}function QI(e,t,n){let r=e.type===4&&!n?Fy:e.value;return t===r}function XI(e,t,n){let r=4,i=e.attrs,o=i!==null?tS(i):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!ln(r)&&!ln(c))return!1;if(s&&ln(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!QI(e,c,n)||c===""&&t.length===1){if(ln(r))return!1;s=!0}}else if(r&8){if(i===null||!YI(e,i,c,n)){if(ln(r))return!1;s=!0}}else{let l=t[++a],u=JI(c,i,Np(e),n);if(u===-1){if(ln(r))return!1;s=!0;continue}if(l!==""){let d;if(u>o?d="":d=i[u+1].toLowerCase(),r&2&&l!==d){if(ln(r))return!1;s=!0}}}}return ln(r)||s}function ln(e){return(e&1)===0}function JI(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return nS(t,e)}function Ly(e,t,n=!1){for(let r=0;r<t.length;r++)if(XI(e,t[r],n))return!0;return!1}function eS(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function tS(e){for(let t=0;t<e.length;t++){let n=e[t];if(iI(n))return t}return e.length}function nS(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function rS(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function kv(e,t){return e?":not("+t.trim()+")":t}function iS(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!ln(s)&&(t+=kv(o,i),i=""),r=s,o=o||!ln(r);n++}return i!==""&&(t+=kv(o,i)),t}function oS(e){return e.map(iS).join(",")}function sS(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!ln(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var un={};function aS(e,t){return e.createText(t)}function cS(e,t,n){e.setValue(t,n)}function lS(e,t){return e.createComment(KI(t))}function Vy(e,t,n){return e.createElement(t,n)}function Zc(e,t,n,r,i){e.insertBefore(t,n,r,i)}function By(e,t,n){e.appendChild(t,n)}function Pv(e,t,n,r,i){r!==null?Zc(e,t,n,r,i):By(e,t,n)}function uS(e,t,n){e.removeChild(null,t,n)}function dS(e,t,n){e.setAttribute(t,"style",n)}function fS(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Uy(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&rI(e,t,r),i!==null&&fS(e,t,i),o!==null&&dS(e,t,o)}function xp(e,t,n,r,i,o,s,a,c,l,u){let d=Le+r,p=d+i,f=pS(d,p),g=typeof l=="function"?l():l;return f[B]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,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 s=="function"?s():s,firstChild:null,schemas:c,consts:g,incompleteFirstPass:!1,ssrId:u}}function pS(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:un);return n}function hS(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=xp(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ap(e,t,n,r,i,o,s,a,c,l,u){let d=t.blueprint.slice();return d[sn]=i,d[j]=r|4|128|8|64|1024,(l!==null||e&&e[j]&2048)&&(d[j]|=2048),uf(d),d[Xe]=d[ni]=e,d[lt]=n,d[_n]=s||e&&e[_n],d[Pe]=a||e&&e[Pe],d[ti]=c||e&&e[ti]||null,d[bt]=o,d[cs]=yI(),d[Hi]=u,d[rf]=l,d[Mt]=t.type==2?e[Mt]:d,d}function gS(e,t,n){let r=cn(t,e),i=hS(n),o=e[_n].rendererFactory,s=Rp(e,Ap(e,i,null,jy(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function jy(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function $y(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Rp(e,t){return e[Gi]?e[nf][zt]=t:e[Gi]=t,e[nf]=t,t}function E(e=1){Hy(ut(),ae(),br()+e,!1)}function Hy(e,t,n,r){if(!r)if((t[j]&3)===3){let o=e.preOrderCheckHooks;o!==null&&Vc(t,o,n)}else{let o=e.preOrderHooks;o!==null&&Bc(t,o,0,n)}Er(n)}var fl=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(fl||{});function Jf(e,t,n,r){let i=q(null);try{let[o,s,a]=e.inputs[n],c=null;(s&fl.SignalBased)!==0&&(c=t[o][mt]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,o):ny(t,c,o,r)}finally{q(i)}}var In=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(In||{}),mS;function Op(e,t){return mS(e,t)}function Ji(e,t,n,r,i){if(r!=null){let o,s=!1;an(r)?o=r:En(r)&&(s=!0,r=r[sn]);let a=Gt(r);e===0&&n!==null?i==null?By(t,n,a):Zc(t,n,a,i||null,!0):e===1&&n!==null?Zc(t,n,a,i||null,!0):e===2?uS(t,a,s):e===3&&t.destroyNode(a),o!=null&&SS(t,e,o,n,i)}}function vS(e,t){zy(e,t),t[sn]=null,t[bt]=null}function yS(e,t,n,r,i,o){r[sn]=i,r[bt]=t,pl(e,r,n,1,i,o)}function zy(e,t){t[_n].changeDetectionScheduler?.notify(9),pl(e,t,t[Pe],2,null,null)}function _S(e){let t=e[Gi];if(!t)return Pf(e[B],e);for(;t;){let n=null;if(En(t))n=t[Gi];else{let r=t[Et];r&&(n=r)}if(!n){for(;t&&!t[zt]&&t!==e;)En(t)&&Pf(t[B],t),t=t[Xe];t===null&&(t=e),En(t)&&Pf(t[B],t),n=t&&t[zt]}t=n}}function kp(e,t){let n=e[oi],r=n.indexOf(t);n.splice(r,1)}function Gy(e,t){if(si(t))return;let n=t[Pe];n.destroyNode&&pl(e,t,n,3,null,null),_S(t)}function Pf(e,t){if(si(t))return;let n=q(null);try{t[j]&=-129,t[j]|=256,t[Ft]&&Br(t[Ft]),ES(e,t),bS(e,t),t[B].type===1&&t[Pe].destroy();let r=t[gr];if(r!==null&&an(t[Xe])){r!==t[Xe]&&kp(r,t);let i=t[bn];i!==null&&i.detachView(e)}Wf(t)}finally{q(n)}}function bS(e,t){let n=e.cleanup,r=t[zi];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[zi]=null);let i=t[Un];if(i!==null){t[Un]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=t[$n];if(o!==null){t[$n]=null;for(let s of o)s.destroy()}}function ES(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof ui)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],c=o[s+1];ge(4,a,c);try{c.call(a)}finally{ge(5,a,c)}}else{ge(4,i,o);try{o.call(i)}finally{ge(5,i,o)}}}}}function qy(e,t,n){return DS(e,t.parent,n)}function DS(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[sn];if(vr(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===Hn.None||i===Hn.Emulated)return null}return cn(r,n)}function Wy(e,t,n){return wS(e,t,n)}function CS(e,t,n){return e.type&40?cn(e,n):null}var wS=CS,Fv;function Pp(e,t,n,r){let i=qy(e,r,t),o=t[Pe],s=r.parent||t[bt],a=Wy(s,r,t);if(i!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Pv(o,i,n[c],a,!1);else Pv(o,i,n,a,!1);Fv!==void 0&&Fv(o,r,t,n,i)}function gs(e,t){if(t!==null){let n=t.type;if(n&3)return cn(t,e);if(n&4)return ep(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return gs(e,r);{let i=e[t.index];return an(i)?ep(-1,i):Gt(i)}}else{if(n&128)return gs(e,t.next);if(n&32)return Op(t,e)()||Gt(e[t.index]);{let r=Ky(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=dr(e[Mt]);return gs(i,r)}else return gs(e,t.next)}}}return null}function Ky(e,t){if(t!==null){let r=e[Mt][bt],i=t.projection;return r.projection[i]}return null}function ep(e,t){let n=Et+e+1;if(n<t.length){let r=t[n],i=r[B].firstChild;if(i!==null)return gs(r,i)}return t[mr]}function Fp(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&no(Gt(a),r),n.flags|=2),!ul(n))if(c&8)Fp(e,t,n.child,r,i,o,!1),Ji(t,e,i,a,o);else if(c&32){let l=Op(n,r),u;for(;u=l();)Ji(t,e,i,u,o);Ji(t,e,i,a,o)}else c&16?Zy(e,t,r,n,i,o):Ji(t,e,i,a,o);n=s?n.projectionNext:n.next}}function pl(e,t,n,r,i,o){Fp(n,r,e.firstChild,t,i,o,!1)}function IS(e,t,n){let r=t[Pe],i=qy(e,n,t),o=n.parent||t[bt],s=Wy(o,n,t);Zy(r,0,t,n,i,s)}function Zy(e,t,n,r,i,o){let s=n[Mt],c=s[bt].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Ji(t,e,i,u,o)}else{let l=c,u=s[Xe];vy(r)&&(l.flags|=128),Fp(e,t,l,u,i,o,!0)}}function SS(e,t,n,r,i){let o=n[mr],s=Gt(n);o!==s&&Ji(t,e,r,o,i);for(let a=Et;a<n.length;a++){let c=n[a];pl(c[B],c,e,t,r,o)}}function TS(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:In.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=In.Important),e.setStyle(n,r,i,o))}}function Yy(e,t,n,r,i){let o=br(),s=r&2;try{Er(-1),s&&t.length>Le&&Hy(e,t,Le,!1),ge(s?2:0,i,n),n(r,i)}finally{Er(o),ge(s?3:1,i,n)}}function hl(e,t,n){PS(e,t,n),(n.flags&64)===64&&FS(e,t,n)}function ws(e,t,n=cn){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function MS(e,t,n,r){let o=r.get(Cy,Dy)||n===Hn.ShadowDom,s=e.selectRootElement(t,o);return NS(s),s}function NS(e){xS(e)}var xS=()=>null;function AS(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function RS(e,t,n,r,i,o){let s=t[B];if(Up(e,s,t,n,r)){vr(e)&&kS(t,e.index);return}e.type&3&&(n=AS(n)),OS(e,t,n,r,i,o)}function OS(e,t,n,r,i,o){if(e.type&3){let s=cn(e,t);r=o!=null?o(r,e.value||"",n):r,i.setProperty(s,n,r)}else e.type&12}function kS(e,t){let n=qt(t,e);n[j]&16||(n[j]|=64)}function PS(e,t,n){let r=n.directiveStart,i=n.directiveEnd;vr(n)&&gS(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||qc(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let a=e.data[s],c=vs(t,e,s,n);if(no(c,t),o!==null&&US(t,s-r,c,a,n,o),Dn(a)){let l=qt(n.index,t);l[lt]=vs(t,e,s,n)}}}function FS(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=hv();try{Er(o);for(let a=r;a<i;a++){let c=e.data[a],l=t[a];Tc(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&LS(c,l)}}finally{Er(-1),Tc(s)}}function LS(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Lp(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];Ly(t,o.selectors,!1)&&(r??=[],Dn(o)?r.unshift(o):r.push(o))}return r}function VS(e,t,n,r,i,o){let s=cn(e,t);BS(t[Pe],s,o,e.value,n,r,i)}function BS(e,t,n,r,i,o,s){if(o==null)e.removeAttribute(t,i,n);else{let a=s==null?Jr(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function US(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];Jf(r,n,c,l)}}function Vp(e,t,n,r,i){let o=Le+n,s=t[B],a=i(s,t,e,r,n);t[o]=a,Ki(e,!0);let c=e.type===2;return c?(Uy(t[Pe],a,e),(ov()===0||qi(e))&&no(a,t),sv()):no(a,t),Ac()&&(!c||!ul(e))&&Pp(s,t,a,e),e}function Bp(e){let t=e;return bf()?Ef():(t=t.parent,Ki(t,!1)),t}function jS(e,t){let n=e[ti];if(!n)return;n.get(Lt,null)?.(t)}function Up(e,t,n,r,i){let o=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];Jf(d,n[l],u,i),a=!0}if(o)for(let c of o){let l=n[c],u=t.data[c];Jf(u,l,r,i),a=!0}return a}function $S(e,t){let n=qt(t,e),r=n[B];HS(r,n);let i=n[sn];i!==null&&n[Hi]===null&&(n[Hi]=wy(i,n[ti])),ge(18),jp(r,n,n[lt]),ge(19,n[lt])}function HS(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function jp(e,t,n){Nc(t);try{let r=e.viewQuery;r!==null&&Zf(1,r,n);let i=e.template;i!==null&&Yy(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[bn]?.finishViewCreation(e),e.staticContentQueries&&Iy(e,t),e.staticViewQueries&&Zf(2,e.viewQuery,n);let o=e.components;o!==null&&zS(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[j]&=-5,xc()}}function zS(e,t){for(let n=0;n<t.length;n++)$S(e,t[n])}function Qy(e,t,n,r){let i=q(null);try{let o=t.tView,a=e[j]&4096?4096:16,c=Ap(e,o,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[gr]=l;let u=e[bn];return u!==null&&(c[bn]=u.createEmbeddedView(o)),jp(o,c,n),c}finally{q(i)}}function tp(e,t){return!t||t.firstChild===null||vy(e)}var Lv=!1,GS=new T("");function ys(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(Gt(o)),an(o)&&Xy(o,r);let s=n.type;if(s&8)ys(e,t,n.child,r);else if(s&32){let a=Op(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Ky(t,n);if(Array.isArray(a))r.push(...a);else{let c=dr(t[Mt]);ys(c[B],c,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function Xy(e,t){for(let n=Et;n<e.length;n++){let r=e[n],i=r[B].firstChild;i!==null&&ys(r[B],r,i,t)}e[mr]!==e[sn]&&t.push(e[mr])}function Jy(e){if(e[ii]!==null){for(let t of e[ii])t.impl.addSequence(t);e[ii].length=0}}var e_=[];function qS(e){return e[Ft]??WS(e)}function WS(e){let t=e_.pop()??Object.create(ZS);return t.lView=e,t}function KS(e){e.lView[Ft]!==e&&(e.lView=null,e_.push(e))}var ZS=Y(C({},tr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{_r(e.lView)},consumerOnSignalRead(){this.lView[Ft]=this}});function YS(e){let t=e[Ft]??Object.create(QS);return t.lView=e,t}var QS=Y(C({},tr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=dr(e.lView);for(;t&&!t_(t[B]);)t=dr(t);t&&df(t)},consumerOnSignalRead(){this.lView[Ft]=this}});function t_(e){return e.type!==2}function n_(e){if(e[$n]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[$n])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[j]&8192)}}var XS=100;function $p(e,t=0){let r=e[_n].rendererFactory,i=!1;i||r.begin?.();try{JS(e,t)}finally{i||r.end?.()}}function JS(e,t){let n=Cf();try{Zi(!0),np(e,t);let r=0;for(;us(e);){if(r===XS)throw new I(103,!1);r++,np(e,1)}}finally{Zi(n)}}function r_(e,t){Df(t?ds.Exhaustive:ds.OnlyDirtyViews);try{$p(e)}finally{Df(ds.Off)}}function eT(e,t,n,r){if(si(t))return;let i=t[j],o=!1,s=!1;Nc(t);let a=!0,c=null,l=null;o||(t_(e)?(l=qS(t),c=nr(l)):Aa()===null?(a=!1,l=YS(t),c=nr(l)):t[Ft]&&(Br(t[Ft]),t[Ft]=null));try{uf(t),dv(e.bindingStartIndex),n!==null&&Yy(e,t,n,2,r);let u=(i&3)===3;if(!o)if(u){let f=e.preOrderCheckHooks;f!==null&&Vc(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Bc(t,f,0,null),Of(t,0)}if(s||tT(t),n_(t),i_(t,0),e.contentQueries!==null&&Iy(e,t),!o)if(u){let f=e.contentCheckHooks;f!==null&&Vc(t,f)}else{let f=e.contentHooks;f!==null&&Bc(t,f,1),Of(t,1)}rT(e,t);let d=e.components;d!==null&&s_(t,d,0);let p=e.viewQuery;if(p!==null&&Zf(2,p,r),!o)if(u){let f=e.viewCheckHooks;f!==null&&Vc(t,f)}else{let f=e.viewHooks;f!==null&&Bc(t,f,2),Of(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ec]){for(let f of t[Ec])f();t[Ec]=null}o||(Jy(t),t[j]&=-73)}catch(u){throw o||_r(t),u}finally{l!==null&&(Vr(l,c),a&&KS(l)),xc()}}function i_(e,t){for(let n=_y(e);n!==null;n=by(n))for(let r=Et;r<n.length;r++){let i=n[r];o_(i,t)}}function tT(e){for(let t=_y(e);t!==null;t=by(t)){if(!(t[j]&2))continue;let n=t[oi];for(let r=0;r<n.length;r++){let i=n[r];df(i)}}}function nT(e,t,n){ge(18);let r=qt(t,e);o_(r,n),ge(19,r[lt])}function o_(e,t){Cc(e)&&np(e,t)}function np(e,t){let r=e[B],i=e[j],o=e[Ft],s=!!(t===0&&i&16);if(s||=!!(i&64&&t===0),s||=!!(i&1024),s||=!!(o?.dirty&&Ti(o)),s||=!1,o&&(o.dirty=!1),e[j]&=-9217,s)eT(r,e,r.template,e[lt]);else if(i&8192){let a=q(null);try{n_(e),i_(e,1);let c=r.components;c!==null&&s_(e,c,1),Jy(e)}finally{q(a)}}}function s_(e,t,n){for(let r=0;r<t.length;r++)nT(e,t[r],n)}function rT(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)Er(~i);else{let o=i,s=n[++r],a=n[++r];pv(s,o);let c=t[o];ge(24,c),a(2,c),ge(25,c)}}}finally{Er(-1)}}function Hp(e,t){let n=Cf()?64:1088;for(e[_n].changeDetectionScheduler?.notify(t);e;){e[j]|=n;let r=dr(e);if(Wi(e)&&!r)return e;e=r}return null}function a_(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function c_(e,t,n,r=!0){let i=t[B];if(iT(i,t,e,n),r){let s=ep(n,e),a=t[Pe],c=a.parentNode(e[mr]);c!==null&&yS(i,e[bt],a,t,c,s)}let o=t[Hi];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function rp(e,t){if(e.length<=Et)return;let n=Et+t,r=e[n];if(r){let i=r[gr];i!==null&&i!==e&&kp(i,r),t>0&&(e[n-1][zt]=r[zt]);let o=os(e,Et+t);vS(r[B],r);let s=o[bn];s!==null&&s.detachView(o[B]),r[Xe]=null,r[zt]=null,r[j]&=-129}return r}function iT(e,t,n,r){let i=Et+r,o=n.length;r>0&&(n[i-1][zt]=t),r<o-Et?(t[zt]=n[i],Kd(n,Et+r,t)):(n.push(t),t[zt]=null),t[Xe]=n;let s=t[gr];s!==null&&n!==s&&l_(s,t);let a=t[bn];a!==null&&a.insertView(e),wc(t),t[j]|=128}function l_(e,t){let n=e[oi],r=t[Xe];if(En(r))e[j]|=2;else{let i=r[Xe][Mt];t[Mt]!==i&&(e[j]|=2)}n===null?e[oi]=[t]:n.push(t)}var Cr=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[B];return ys(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[lt]}set context(t){this._lView[lt]=t}get destroyed(){return si(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Xe];if(an(t)){let n=t[ls],r=n?n.indexOf(this):-1;r>-1&&(rp(t,r),os(n,r))}this._attachedToViewContainer=!1}Gy(this._lView[B],this._lView)}onDestroy(t){ff(this._lView,t)}markForCheck(){Hp(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[j]&=-129}reattach(){wc(this._lView),this._lView[j]|=128}detectChanges(){this._lView[j]|=1024,$p(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Wi(this._lView),n=this._lView[gr];n!==null&&!t&&kp(n,this._lView),zy(this._lView[B],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=t;let n=Wi(this._lView),r=this._lView[gr];r!==null&&!n&&l_(r,this._lView),wc(this._lView)}};var Sn=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=oT;constructor(n,r,i){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){let o=Qy(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new Cr(o)}}return e})();function oT(){return gl(dt(),ae())}function gl(e,t){return e.type&4?new Sn(t,e,ao(e,t)):null}function co(e,t,n,r,i){let o=e.data[t];if(o===null)o=sT(e,t,n,r,i),fv()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=av();o.injectorIndex=s===null?-1:s.injectorIndex}return Ki(o,!0),o}function sT(e,t,n,r,i){let o=_f(),s=bf(),a=s?o:o&&o.parent,c=e.data[t]=cT(e,a,n,t,r,i);return aT(e,c,o,s),c}function aT(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function cT(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return mf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var cH=new RegExp(`^(\\d+)*(${DI}|${EI})*(.*)`);var lT=()=>null;function ip(e,t){return lT(e,t)}var u_=class{},ml=class{},op=class{resolveComponentFactory(t){throw new I(917,!1)}},Is=class{static NULL=new op},Tn=class{},Gn=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>uT()}return e})();function uT(){let e=ae(),t=dt(),n=qt(t.index,e);return(En(n)?n:e)[Pe]}var d_=(()=>{class e{static \u0275prov=M({token:e,providedIn:"root",factory:()=>null})}return e})();var jc={},sp=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let i=this.injector.get(t,jc,r);return i!==jc||n===jc?i:this.parentInjector.get(t,n,r)}};function Yc(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=Fd(i,a);else if(o==2){let c=a,l=t[++s];r=Fd(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function de(e,t=0){let n=ae();if(n===null)return F(e,t);let r=dt();return hy(r,n,rt(e),t)}function f_(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}pT(e,t,n,a,o,c,l)}o!==null&&r!==null&&dT(n,r,o)}function dT(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new I(-301,!1);r.push(t[i],o)}}function fT(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function pT(e,t,n,r,i,o,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let f=r[p];!c&&Dn(f)&&(c=!0,fT(e,n,p)),Gf(qc(n,t),e,f.type)}_T(n,e.data.length,a);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=$y(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=to(n.mergedAttrs,f.hostAttrs),gT(e,n,t,d,f),yT(d,f,i),s!==null&&s.has(f)){let[m,v]=s.get(f);n.directiveToIndex.set(f.type,[d,m+n.directiveStart,v+n.directiveStart])}else(o===null||!o.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let g=f.type.prototype;!l&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}hT(e,n,o)}function hT(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Vv(0,t,i,r),Vv(1,t,i,r),Uv(t,r,!1);else{let o=n.get(i);Bv(0,t,o,r),Bv(1,t,o,r),Uv(t,r,!0)}}}function Vv(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[o]??=[],s[o].push(r),p_(t,o)}}function Bv(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),p_(t,s)}}function p_(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Uv(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||Np(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&i.hasOwnProperty(c)){let l=i[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&o.hasOwnProperty(c)){let l=o[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function gT(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=ur(i.type,!0)),s=new ui(o,Dn(i),de,null);e.blueprint[r]=s,n[r]=s,mT(e,t,r,$y(e,n,i.hostVars,un),i)}function mT(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;vT(s)!=a&&s.push(a),s.push(n,r,o)}}function vT(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function yT(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Dn(t)&&(n[""]=e)}}function _T(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function zp(e,t,n,r,i,o,s,a){let c=t[B],l=c.consts,u=yr(l,s),d=co(c,e,n,r,u);return o&&f_(c,t,d,yr(l,a),i),d.mergedAttrs=to(d.mergedAttrs,d.attrs),d.attrs!==null&&Yc(d,d.attrs,!1),d.mergedAttrs!==null&&Yc(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Gp(e,t){sy(e,t),of(t)&&e.queries.elementEnd(t)}function bT(e,t,n,r,i,o){let s=t.consts,a=yr(s,i),c=co(t,e,n,r,a);if(c.mergedAttrs=to(c.mergedAttrs,c.attrs),o!=null){let l=yr(s,o);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Yc(c,c.attrs,!1),c.mergedAttrs!==null&&Yc(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function qp(e){return g_(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function h_(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function g_(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function ET(e,t,n){return e[t]=n}function ro(e,t,n){if(n===un)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function m_(e,t,n,r){let i=ro(e,t,n);return ro(e,t+1,r)||i}function Ff(e,t,n){return function r(i){let o=vr(e)?qt(e.index,t):t;Hp(o,5);let s=t[lt],a=jv(t,s,n,i),c=r.__ngNextListenerFn__;for(;c;)a=jv(t,s,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function jv(e,t,n,r){let i=q(null);try{return ge(6,t,n),n(r)!==!1}catch(o){return jS(e,o),!1}finally{ge(7,t,n),q(i)}}function DT(e,t,n,r,i,o,s,a){let c=qi(e),l=!1,u=null;if(!r&&c&&(u=CT(t,n,o,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=cn(e,n),p=r?r(d):d;wI(n,p,o,a);let f=i.listen(p,o,a),g=r?m=>r(Gt(m[e.index])):e.index;v_(g,t,n,o,a,f,!1)}return l}function CT(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=t[zi],c=i[o+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(o+=2)}return null}function v_(e,t,n,r,i,o,s){let a=t.firstCreatePass?hf(t):null,c=pf(n),l=c.length;c.push(i,o),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function $v(e,t,n,r,i,o){let s=t[n],a=t[B],l=a.data[n].outputs[r],d=s[l].subscribe(o);v_(e.index,a,t,i,o,d,!0)}var ap=Symbol("BINDING");var Qc=class extends Is{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=hr(t);return new io(n,this.ngModule)}};function wT(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&fl.SignalBased)!==0};return i&&(o.transform=i),o})}function IT(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function ST(e,t,n){let r=t instanceof Ke?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new sp(n,r):n}function TT(e){let t=e.get(Tn,null);if(t===null)throw new I(407,!1);let n=e.get(d_,null),r=e.get(nn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function MT(e,t){let n=y_(e);return Vy(t,n,n==="svg"?sf:n==="math"?Jm:null)}function y_(e){return(e.selectors[0][0]||"div").toLowerCase()}var io=class extends ml{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=wT(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=IT(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=oS(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,i,o,s){ge(22);let a=q(null);try{let c=this.componentDef,l=NT(r,c,s,o),u=ST(c,i||this.ngModule,t),d=TT(u),p=d.rendererFactory.createRenderer(null,c),f=r?MS(p,r,c.encapsulation,u):MT(c,p),g=s?.some(Hv)||o?.some(y=>typeof y!="function"&&y.bindings.some(Hv)),m=Ap(null,l,null,512|jy(c),null,null,d,p,u,null,wy(f,u,!0));m[Le]=f,Nc(m);let v=null;try{let y=zp(Le,m,2,"#host",()=>l.directiveRegistry,!0,0);f&&(Uy(p,f,y),no(f,m)),hl(l,m,y),Sp(l,y,m),Gp(l,y),n!==void 0&&AT(y,this.ngContentSelectors,n),v=qt(y.index,m),m[lt]=v[lt],jp(l,m,null)}catch(y){throw v!==null&&Wf(v),Wf(m),y}finally{ge(23),xc()}return new Xc(this.componentType,m,!!g)}finally{q(a)}}};function NT(e,t,n,r){let i=e?["ng-version","20.2.1"]:sS(t.selectors[0]),o=null,s=null,a=0;if(n)for(let u of n)a+=u[ap].requiredVars,u.create&&(u.targetIdx=0,(o??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let p of d.bindings){a+=p[ap].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(o??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=Xd(d);c.push(p)}return xp(0,null,xT(o,s),1,a,c,null,null,null,[i],null)}function xT(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function Hv(e){let t=e[ap].kind;return t==="input"||t==="twoWay"}var Xc=class extends u_{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Dc(n[B],Le),this.location=ao(this._tNode,n),this.instance=qt(this._tNode.index,n)[lt],this.hostView=this.changeDetectorRef=new Cr(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let i=this._rootLView,o=Up(r,i[B],i,t,n);this.previousInputValues.set(t,n);let s=qt(r.index,i);Hp(s,1)}get injector(){return new li(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function AT(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var dn=(()=>{class e{static __NG_ELEMENT_ID__=RT}return e})();function RT(){let e=dt();return b_(e,ae())}var OT=dn,__=class extends OT{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ao(this._hostTNode,this._hostLView)}get injector(){return new li(this._hostTNode,this._hostLView)}get parentInjector(){let t=Dp(this._hostTNode,this._hostLView);if(cy(t)){let n=zc(t,this._hostLView),r=Hc(t),i=n[B].data[r+8];return new li(i,n)}else return new li(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=zv(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Et}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=ip(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,tp(this._hostTNode,s)),a}createComponent(t,n,r,i,o,s,a){let c=t&&!Z0(t),l;if(c)l=n;else{let v=n||{};l=v.index,r=v.injector,i=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef,s=v.directives,a=v.bindings}let u=c?t:new io(hr(t)),d=r||this.parentInjector;if(!o&&u.ngModule==null){let y=(c?d:this.parentInjector).get(Ke,null);y&&(o=y)}let p=hr(u.componentType??{}),f=ip(this._lContainer,p?.id??null),g=f?.firstChild??null,m=u.create(d,i,g,o,s,a);return this.insertImpl(m.hostView,l,tp(this._hostTNode,f)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(tv(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=i[Xe],l=new __(c,c[bt],c[Xe]);l.detach(l.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return c_(s,i,o,r),t.attachToViewContainerRef(),Kd(Lf(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=zv(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=rp(this._lContainer,n);r&&(os(Lf(this._lContainer),n),Gy(r[B],r))}detach(t){let n=this._adjustIndex(t,-1),r=rp(this._lContainer,n);return r&&os(Lf(this._lContainer),n)!=null?new Cr(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function zv(e){return e[ls]}function Lf(e){return e[ls]||(e[ls]=[])}function b_(e,t){let n,r=t[e.index];return an(r)?n=r:(n=a_(r,t,null,e),t[e.index]=n,Rp(t,n)),PT(n,t,e,r),new __(n,e,t)}function kT(e,t){let n=e[Pe],r=n.createComment(""),i=cn(t,e),o=n.parentNode(i);return Zc(n,o,r,n.nextSibling(i),!1),r}var PT=VT,FT=()=>!1;function LT(e,t,n){return FT(e,t,n)}function VT(e,t,n,r){if(e[mr])return;let i;n.type&8?i=Gt(r):i=kT(t,n),e[mr]=i}var cp=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},lp=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new e(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Wp(t,n).matches!==null&&this.queries[n].setDirty()}},up=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=qT(t):this.predicate=t}},dp=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},fp=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(t,n,BT(n,o)),this.matchTNodeWithReadOption(t,n,Uc(n,t,o,!1,!1))}else r===Sn?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Uc(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===ft||i===dn||i===Sn&&n.type&4)this.addMatch(n.index,-2);else{let o=Uc(n,t,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function BT(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function UT(e,t){return e.type&11?ao(e,t):e.type&4?gl(e,t):null}function jT(e,t,n,r){return n===-1?UT(t,e):n===-2?$T(e,t,r):vs(e,e[B],n,t)}function $T(e,t,n){if(n===ft)return ao(t,e);if(n===Sn)return gl(t,e);if(n===dn)return b_(t,e)}function E_(e,t,n,r){let i=t[bn].queries[r];if(i.matches===null){let o=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=o[l];a.push(jT(t,u,s[c+1],n.metadata.read))}}i.matches=a}return i.matches}function pp(e,t,n,r){let i=e.queries.getByIndex(n),o=i.matches;if(o!==null){let s=E_(e,t,i,n);for(let a=0;a<o.length;a+=2){let c=o[a];if(c>0)r.push(s[a/2]);else{let l=o[a+1],u=t[-c];for(let d=Et;d<u.length;d++){let p=u[d];p[gr]===p[Xe]&&pp(p[B],p,l,r)}if(u[oi]!==null){let d=u[oi];for(let p=0;p<d.length;p++){let f=d[p];pp(f[B],f,l,r)}}}}}return r}function HT(e,t){return e[bn].queries[t].queryList}function zT(e,t,n){let r=new Wc((n&4)===4);return iv(e,t,r,r.destroy),(t[bn]??=new lp).queries.push(new cp(r))-1}function GT(e,t,n){let r=ut();return r.firstCreatePass&&(WT(r,new up(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),zT(r,ae(),t)}function qT(e){return e.split(",").map(t=>t.trim())}function WT(e,t,n){e.queries===null&&(e.queries=new dp),e.queries.track(new fp(t,n))}function Wp(e,t){return e.queries.getByIndex(t)}function KT(e,t){let n=e[B],r=Wp(n,t);return r.crossesNgTemplate?pp(n,e,t,[]):E_(n,e,r,t)}var Gv=new Set;function Ss(e){Gv.has(e)||(Gv.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var di=class{},vl=class{};var Jc=class extends di{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Qc(this);constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n;let o=Qd(t);this._bootstrapComponents=Py(o.bootstrap),this._r3Injector=Nf(t,n,[{provide:di,useValue:this},{provide:Is,useValue:this.componentFactoryResolver},...r],jn(t),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},el=class extends vl{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Jc(this.moduleType,t,[])}};var _s=class extends di{injector;componentFactoryResolver=new Qc(this);instance=null;constructor(t){super();let n=new Yr([...t.providers,{provide:di,useValue:this},{provide:Is,useValue:this.componentFactoryResolver}],t.parent||as(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ts(e,t,n=null){return new _s({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var ZT=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Jd(!1,n.type),i=r.length>0?Ts([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=M({token:e,providedIn:"environment",factory:()=>new e(F(Ke))})}return e})();function Be(e){return so(()=>{let t=D_(e),n=Y(C({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Cp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(ZT).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Hn.Emulated,styles:e.styles||Pt,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ss("NgStandalone"),C_(n);let r=e.dependencies;return n.directiveDefs=qv(r,YT),n.pipeDefs=qv(r,qm),n.id=JT(n),n})}function YT(e){return hr(e)||Xd(e)}function Nt(e){return so(()=>({type:e.type,bootstrap:e.bootstrap||Pt,declarations:e.declarations||Pt,imports:e.imports||Pt,exports:e.exports||Pt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function QT(e,t){if(e==null)return fr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a,c;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,c=i[3]||null):(o=i,s=i,a=fl.None,c=null),n[o]=[r,a,c],t[o]=s}return n}function XT(e){if(e==null)return fr;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Fe(e){return so(()=>{let t=D_(e);return C_(t),t})}function Kp(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function D_(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||fr,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Pt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:QT(e.inputs,t),outputs:XT(e.outputs),debugInfo:null}}function C_(e){e.features?.forEach(t=>t(e))}function qv(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let i of n){let o=t(i);o!==null&&r.push(o)}return r}:null}function JT(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let o of r.join("|"))t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function eM(e){return Object.getPrototypeOf(e.prototype).constructor}function Wt(e){let t=eM(e.type),n=!0,r=[e];for(;t;){let i;if(Dn(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new I(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Vf(e.inputs),s.declaredInputs=Vf(e.declaredInputs),s.outputs=Vf(e.outputs);let a=i.hostBindings;a&&oM(e,a);let c=i.viewQuery,l=i.contentQueries;if(c&&rM(e,c),l&&iM(e,l),tM(e,i),Fm(e.outputs,i.outputs),Dn(i)&&i.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(e),a===Wt&&(n=!1)}}t=Object.getPrototypeOf(t)}nM(r)}function tM(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function nM(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=to(i.hostAttrs,n=to(n,i.hostAttrs))}}function Vf(e){return e===fr?{}:e===Pt?[]:e}function rM(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function iM(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function oM(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function w_(e,t,n,r,i,o,s,a){if(n.firstCreatePass){e.mergedAttrs=to(e.mergedAttrs,e.attrs);let u=e.tView=xp(2,e,i,o,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Ki(e,!1);let c=cM(n,t,e,r);Ac()&&Pp(n,t,c,e),no(c,t);let l=a_(c,t,c,e);t[r+Le]=l,Rp(t,l),LT(l,e,t)}function sM(e,t,n,r,i,o,s,a,c,l,u){let d=n+Le,p;return t.firstCreatePass?(p=co(t,d,4,s||null,a||null),Ic()&&f_(t,e,p,yr(t.consts,l),Lp),sy(t,p)):p=t.data[d],w_(p,e,t,n,r,i,o,c),qi(p)&&hl(t,e,p),l!=null&&ws(e,p,u),p}function aM(e,t,n,r,i,o,s,a,c,l,u){let d=n+Le,p;if(t.firstCreatePass){if(p=co(t,d,4,s||null,a||null),l!=null){let f=yr(t.consts,l);p.localNames=[];for(let g=0;g<f.length;g+=2)p.localNames.push(f[g],-1)}}else p=t.data[d];return w_(p,e,t,n,r,i,o,c),l!=null&&ws(e,p,u),p}function re(e,t,n,r,i,o,s,a){let c=ae(),l=ut(),u=yr(l.consts,o);return sM(c,l,e,t,n,r,i,u,void 0,s,a),re}var cM=lM;function lM(e,t,n,r){return fs(!0),t[Pe].createComment("")}var yl=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(yl||{}),hi=new T(""),I_=!1,hp=class extends se{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Qm()&&(this.destroyRef=h(Ze,{optional:!0})??void 0,this.pendingTasks=h(Cn,{optional:!0})??void 0)}emit(t){let n=q(null);try{super.next(t)}finally{q(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof Te&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Ve=hp;function S_(e){let t,n;function r(){e=ai;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Wv(e){return queueMicrotask(()=>e()),()=>{e=ai}}var Zp="isAngularZone",tl=Zp+"_ID",uM=0,De=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ve(!1);onMicrotaskEmpty=new Ve(!1);onStable=new Ve(!1);onError=new Ve(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=I_}=t;if(typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,pM(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Zp)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new I(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,dM,ai,ai);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},dM={};function Yp(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function fM(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){S_(()=>{e.callbackScheduled=!1,gp(e),e.isCheckStableRunning=!0,Yp(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),gp(e)}function pM(e){let t=()=>{fM(e)},n=uM++;e._inner=e._inner.fork({name:"angular",properties:{[Zp]:!0,[tl]:n,[tl+n]:!0},onInvokeTask:(r,i,o,s,a,c)=>{if(hM(c))return r.invokeTask(o,s,a,c);try{return Kv(e),r.invokeTask(o,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Zv(e)}},onInvoke:(r,i,o,s,a,c,l)=>{try{return Kv(e),r.invoke(o,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!gM(c)&&t(),Zv(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,gp(e),Yp(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function gp(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Kv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Zv(e){e._nesting--,Yp(e)}var nl=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ve;onMicrotaskEmpty=new Ve;onStable=new Ve;onError=new Ve;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};function hM(e){return T_(e,"__ignore_ng_zone__")}function gM(e){return T_(e,"__scheduler_tick__")}function T_(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Qp=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})(),M_=[0,1,2,3],N_=(()=>{class e{ngZone=h(De);scheduler=h(nn);errorHandler=h(Ht,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){h(hi,{optional:!0})}execute(){let n=this.sequences.size>0;n&&ge(16),this.executing=!0;for(let r of M_)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[r];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&ge(17)}register(n){let{view:r}=n;r!==void 0?((r[ii]??=[]).push(n),_r(r),r[j]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(yl.AFTER_NEXT_RENDER,n):n()}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})(),rl=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,i,o,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=i,this.snapshot=s,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 t=this.view?.[ii];t&&(this.view[ii]=t.filter(n=>n!==this))}};function lo(e,t){let n=t?.injector??h(Je);return Ss("NgAfterNextRender"),vM(e,n,t,!0)}function mM(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function vM(e,t,n,r){let i=t.get(Qp);i.impl??=t.get(N_);let o=t.get(hi,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(Ze):null,a=t.get(Qi,null,{optional:!0}),c=new rl(i.impl,mM(e),a?.view,r,s,o?.snapshot(null));return i.impl.register(c),c}var Xp=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Jp=new T("");function Tr(e){return!!e&&typeof e.then=="function"}function eh(e){return!!e&&typeof e.subscribe=="function"}var x_=new T("");var th=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=h(x_,{optional:!0})??[];injector=h(Je);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=it(this.injector,i);if(Tr(o))n.push(o);else if(eh(o)){let s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_l=new T("");function A_(){td(()=>{let e="";throw new I(600,e)})}function R_(e){return e.isBoundToModule}var yM=10;var fn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=h(Lt);afterRenderManager=h(Qp);zonelessEnabled=h(ps);rootEffectScheduler=h(hs);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new se;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=h(Cn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(X(n=>!n))}constructor(){h(hi,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=h(Ke);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=Je.NULL){return this._injector.get(De).run(()=>{ge(10);let s=n instanceof ml;if(!this._injector.get(th).done){let g="";throw new I(405,g)}let c;s?c=n:c=this._injector.get(Is).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=R_(c)?void 0:this._injector.get(di),u=r||c.selector,d=c.create(i,[],u,l),p=d.location.nativeElement,f=d.injector.get(Jp,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),ms(this.components,d),f?.unregisterApplication(p)}),this._loadComponent(d),ge(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ge(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(yl.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new I(101,!1);let n=q(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,q(n),this.afterTick.next(),ge(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Tn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<yM;)ge(14),this.synchronizeOnce(),ge(15)}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i}of this.allViews){if(!r&&!us(i))continue;let o=r&&!this.zonelessEnabled?0:1;$p(i,o),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>us(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;ms(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(i){this.internalErrorHandler(i)}this.components.push(n),this._injector.get(_l,[]).forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ms(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new I(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ms(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Kt(e,t,n,r){let i=ae(),o=Sc();if(ro(i,o,t)){let s=ut(),a=Mf();VS(a,i,e,t,n,r)}return Kt}var nh=new T("",{providedIn:"root",factory:()=>!1}),rh=new T("",{providedIn:"root",factory:()=>_M}),_M=4e3;var gH=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function N(e,t,n){let r=ae(),i=Sc();if(ro(r,i,t)){let o=ut(),s=Mf();RS(s,r,e,t,r[Pe],n)}return N}function Yv(e,t,n,r,i){Up(t,e,n,i?"class":"style",r)}function b(e,t,n,r){let i=ae(),o=i[B],s=e+Le,a=o.firstCreatePass?zp(s,i,2,t,Lp,Ic(),n,r):o.data[s];if(Vp(a,i,e,t,O_),qi(a)){let c=i[B];hl(c,i,a),Sp(c,a,i)}return r!=null&&ws(i,a),b}function _(){let e=ut(),t=dt(),n=Bp(t);return e.firstCreatePass&&Gp(e,n),vf(n)&&yf(),gf(),n.classesWithoutHost!=null&&tI(n)&&Yv(e,n,ae(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&nI(n)&&Yv(e,n,ae(),n.stylesWithoutHost,!1),_}function Ce(e,t,n,r){return b(e,t,n,r),_(),Ce}function qn(e,t,n,r){let i=ae(),o=i[B],s=e+Le,a=o.firstCreatePass?bT(s,o,2,t,n,r):o.data[s];return Vp(a,i,e,t,O_),r!=null&&ws(i,a),qn}function Wn(){let e=dt(),t=Bp(e);return vf(t)&&yf(),gf(),Wn}function uo(e,t,n,r){return qn(e,t,n,r),Wn(),uo}var O_=(e,t,n,r,i)=>(fs(!0),Vy(t[Pe],r,bv()));function Mr(e,t,n){let r=ae(),i=r[B],o=e+Le,s=i.firstCreatePass?zp(o,r,8,"ng-container",Lp,Ic(),t,n):i.data[o];if(Vp(s,r,e,"ng-container",bM),qi(s)){let a=r[B];hl(a,r,s),Sp(a,s,r)}return n!=null&&ws(r,s),Mr}function Nr(){let e=ut(),t=dt(),n=Bp(t);return e.firstCreatePass&&Gp(e,n),Nr}var bM=(e,t,n,r,i)=>(fs(!0),lS(t[Pe],""));function Dt(){return ae()}var ci=void 0;function EM(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var DM=["en",[["a","p"],["AM","PM"],ci],[["AM","PM"],ci,ci],[["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"]],ci,[["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"]],ci,[["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}",ci,"{1} 'at' {0}",ci],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",EM],Bf={};function Vt(e){let t=CM(e),n=Qv(t);if(n)return n;let r=t.split("-")[0];if(n=Qv(r),n)return n;if(r==="en")return DM;throw new I(701,!1)}function Qv(e){return e in Bf||(Bf[e]=rn.ng&&rn.ng.common&&rn.ng.common.locales&&rn.ng.common.locales[e]),Bf[e]}var Ue=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(Ue||{});function CM(e){return e.toLowerCase().replace(/_/g,"-")}var Ms="en-US";var wM=Ms;function k_(e){typeof e=="string"&&(wM=e.toLowerCase().replace(/_/g,"-"))}function ce(e,t,n){let r=ae(),i=ut(),o=dt();return IM(i,r,r[Pe],o,e,t,n),ce}function IM(e,t,n,r,i,o,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Ff(r,t,o),DT(r,e,t,s,n,i,o,c)&&(a=!1)),a){let l=r.outputs?.[i],u=r.hostDirectiveOutputs?.[i];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=Ff(r,t,o),$v(r,t,p,f,i,c)}if(l&&l.length)for(let d of l)c??=Ff(r,t,o),$v(r,t,d,i,i,c)}}function oe(e=1){return _v(e)}function SM(e,t){let n=null,r=eS(e);for(let i=0;i<t.length;i++){let o=t[i];if(o==="*"){n=i;continue}if(r===null?Ly(e,o,!0):rS(r,o))return i}return n}function ih(e){let t=ae()[Mt][bt];if(!t.projection){let n=e?e.length:1,r=t.projection=Hm(n,null),i=r.slice(),o=t.child;for(;o!==null;){if(o.type!==128){let s=e?SM(o,e):0;s!==null&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o)}o=o.next}}}function oh(e,t=0,n,r,i,o){let s=ae(),a=ut(),c=r?e+1:null;c!==null&&aM(s,a,c,r,i,o,null,n);let l=co(a,Le+e,16,null,n||null);l.projection===null&&(l.projection=t),Ef();let d=!s[Hi]||mf();s[Mt][bt].projection[l.projection]===null&&c!==null?TM(s,a,c):d&&!ul(l)&&IS(a,s,l)}function TM(e,t,n){let r=Le+n,i=t.data[r],o=e[r],s=ip(o,i.tView.ssrId),a=Qy(e,i,void 0,{dehydratedView:s});c_(o,a,0,tp(i,s))}function Mn(e,t,n){GT(e,t,n)}function Nn(e){let t=ae(),n=ut(),r=If();Mc(r+1);let i=Wp(n,r);if(e.dirty&&ev(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=KT(t,r);e.reset(o,gI),e.notifyOnChanges()}return!0}return!1}function xn(){return HT(ae(),If())}function sh(e){let t=cv();return cf(t,Le+e)}function Lc(e,t){return e<<17|t<<2}function fi(e){return e>>17&32767}function MM(e){return(e&2)==2}function NM(e,t){return e&131071|t<<17}function mp(e){return e|2}function oo(e){return(e&131068)>>2}function Uf(e,t){return e&-131069|t<<2}function xM(e){return(e&1)===1}function vp(e){return e|1}function AM(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=fi(s),c=oo(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||$i(d,u)>0)&&(l=!0)}else u=n;if(i)if(c!==0){let p=fi(e[a+1]);e[r+1]=Lc(p,a),p!==0&&(e[p+1]=Uf(e[p+1],r)),e[a+1]=NM(e[a+1],r)}else e[r+1]=Lc(a,0),a!==0&&(e[a+1]=Uf(e[a+1],r)),a=r;else e[r+1]=Lc(c,0),a===0?a=r:e[c+1]=Uf(e[c+1],r),c=r;l&&(e[r+1]=mp(e[r+1])),Xv(e,u,r,!0),Xv(e,u,r,!1),RM(t,u,e,r,o),s=Lc(a,c),o?t.classBindings=s:t.styleBindings=s}function RM(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&$i(o,t)>=0&&(n[r+1]=vp(n[r+1]))}function Xv(e,t,n,r){let i=e[n+1],o=t===null,s=r?fi(i):oo(i),a=!1;for(;s!==0&&(a===!1||o);){let c=e[s],l=e[s+1];OM(c,t)&&(a=!0,e[s+1]=r?vp(l):mp(l)),s=r?fi(l):oo(l)}a&&(e[n+1]=r?mp(i):vp(i))}function OM(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?$i(e,t)>=0:!1}function fo(e,t,n){return P_(e,t,n,!1),fo}function Ye(e,t){return P_(e,t,null,!0),Ye}function P_(e,t,n,r){let i=ae(),o=ut(),s=wf(2);if(o.firstUpdatePass&&PM(o,e,s,r),t!==un&&ro(i,s,t)){let a=o.data[br()];UM(o,a,i,i[Pe],e,i[s+1]=jM(t,n),r,s)}}function kM(e,t){return t>=e.expandoStartIndex}function PM(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[br()],s=kM(e,n);$M(o,r)&&t===null&&!s&&(t=!1),t=FM(i,o,t,r),AM(i,o,t,n,s,r)}}function FM(e,t,n,r){let i=gv(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=jf(null,e,t,n,r),n=bs(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=jf(i,e,t,n,r),o===null){let c=LM(e,t,r);c!==void 0&&Array.isArray(c)&&(c=jf(null,e,t,c[1],r),c=bs(c,t.attrs,r),VM(e,t,r,c))}else o=BM(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function LM(e,t,n){let r=n?t.classBindings:t.styleBindings;if(oo(r)!==0)return e[fi(r)]}function VM(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[fi(i)]=r}function BM(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=bs(r,s,n)}return bs(r,t.attrs,n)}function jf(e,t,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=t[a],r=bs(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function bs(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Gm(e,s,n?!0:t[++o]))}return e===void 0?null:e}function UM(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=xM(l)?Jv(c,t,n,i,oo(l),s):void 0;if(!il(u)){il(o)||MM(l)&&(o=Jv(c,null,n,i,a,s));let d=af(br(),n);TS(r,s,d,i,o)}}function Jv(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let c=e[i],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[i+1];p===un&&(p=d?Pt:void 0);let f=d?bc(p,r):u===r?p:void 0;if(l&&!il(f)&&(f=bc(c,r)),il(f)&&(a=f,s))return a;let g=e[i+1];i=s?fi(g):oo(g)}if(t!==null){let c=o?t.residualClasses:t.residualStyles;c!=null&&(a=bc(c,r))}return a}function il(e){return e!==void 0}function jM(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=jn(Tp(e)))),e}function $M(e,t){return(e.flags&(t?8:16))!==0}function w(e,t=""){let n=ae(),r=ut(),i=e+Le,o=r.firstCreatePass?co(r,i,1,t,null):r.data[i],s=HM(r,n,o,t,e);n[i]=s,Ac()&&Pp(r,n,s,o),Ki(o,!1)}var HM=(e,t,n,r,i)=>(fs(!0),aS(t[Pe],r));function zM(e,t,n,r=""){return ro(e,Sc(),n)?t+Jr(n)+r:un}function GM(e,t,n,r,i,o=""){let s=uv(),a=m_(e,s,n,i);return wf(2),a?t+Jr(n)+r+Jr(i)+o:un}function ie(e){return Zt("",e),ie}function Zt(e,t,n){let r=ae(),i=zM(r,e,t,n);return i!==un&&F_(r,br(),i),Zt}function po(e,t,n,r,i){let o=ae(),s=GM(o,e,t,n,r,i);return s!==un&&F_(o,br(),s),po}function F_(e,t,n){let r=af(t,e);cS(e[Pe],r,n)}function qM(e,t,n){let r=ut();if(r.firstCreatePass){let i=Dn(e);yp(n,r.data,r.blueprint,i,!0),yp(t,r.data,r.blueprint,i,!1)}}function yp(e,t,n,r,i){if(e=rt(e),Array.isArray(e))for(let o=0;o<e.length;o++)yp(e[o],t,n,r,i);else{let o=ut(),s=ae(),a=dt(),c=Zr(e)?e:rt(e.provide),l=tf(e),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Zr(e)||!e.multi){let f=new ui(l,i,de,null),g=Hf(c,t,i?u:u+p,d);g===-1?(Gf(qc(a,s),o,c),$f(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{let f=Hf(c,t,u+p,d),g=Hf(c,t,u,u+p),m=f>=0&&n[f],v=g>=0&&n[g];if(i&&!v||!i&&!m){Gf(qc(a,s),o,c);let y=ZM(i?KM:WM,n.length,i,r,l,e);!i&&v&&(n[g].providerFactory=y),$f(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(y),s.push(y)}else{let y=L_(n[i?g:f],l,!i&&r);$f(o,e,f>-1?f:g,y)}!i&&r&&v&&n[g].componentProviders++}}}function $f(e,t,n,r){let i=Zr(t),o=Ym(t);if(i||o){let c=(o?rt(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function L_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Hf(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function WM(e,t,n,r,i){return _p(this.multi,[])}function KM(e,t,n,r,i){let o=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=vs(r,r[B],this.providerFactory.index,i);s=c.slice(0,a),_p(o,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],_p(o,s);return s}function _p(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function ZM(e,t,n,r,i,o){let s=new ui(e,n,de,null);return s.multi=[],s.index=t,s.componentProviders=0,L_(s,i,r&&!n),s}function pn(e,t=[]){return n=>{n.providersResolver=(r,i)=>qM(r,i?i(e):e,t)}}function YM(e,t){let n=e[t];return n===un?void 0:n}function QM(e,t,n,r,i,o,s){let a=t+n;return m_(e,a,i,o)?ET(e,a+2,s?r.call(s,i,o):r(i,o)):YM(e,a+2)}function Ns(e,t){let n=ut(),r,i=e+Le;n.firstCreatePass?(r=XM(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=ur(r.type,!0)),s,a=yt(de);try{let c=Gc(!1),l=o();return Gc(c),lf(n,ae(),i,l),l}finally{yt(a)}}function XM(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function xs(e,t,n,r){let i=e+Le,o=ae(),s=cf(o,i);return JM(o,i)?QM(o,lv(),t,s.transform,n,r,s):s.transform(n,r)}function JM(e,t){return e[B].data[t].pure}function ah(e,t){return gl(e,t)}var ol=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},ch=(()=>{class e{compileModuleSync(n){return new el(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=Qd(n),o=Py(i.declarations).reduce((s,a)=>{let c=hr(a);return c&&s.push(new io(c)),s},[]);return new ol(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var eN=(()=>{class e{zone=h(De);changeDetectionScheduler=h(nn);applicationRef=h(fn);applicationErrorHandler=h(Lt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),V_=new T("",{factory:()=>!1});function lh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new De(Y(C({},dh()),{scheduleInRootZone:n})),[{provide:De,useFactory:e},{provide:pr,multi:!0,useFactory:()=>{let r=h(eN,{optional:!0});return()=>r.initialize()}},{provide:pr,multi:!0,useFactory:()=>{let r=h(tN);return()=>{r.initialize()}}},t===!0?{provide:Af,useValue:!0}:[],{provide:Rf,useValue:n??I_},{provide:Lt,useFactory:()=>{let r=h(De),i=h(Ke),o;return s=>{r.runOutsideAngular(()=>{i.destroyed&&!o?setTimeout(()=>{throw s}):(o??=i.get(Ht),o.handleError(s))})}}}]}function uh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=lh({ngZoneFactory:()=>{let i=dh(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&Ss("NgZone_CoalesceEvent"),new De(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return ei([{provide:V_,useValue:!0},{provide:ps,useValue:!1},r])}function dh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var tN=(()=>{class e{subscription=new Te;initialized=!1;zone=h(De);pendingTasks=h(Cn);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{De.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{De.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var B_=(()=>{class e{applicationErrorHandler=h(Lt);appRef=h(fn);taskService=h(Cn);ngZone=h(De);zonelessEnabled=h(ps);tracing=h(hi,{optional:!0});disableScheduling=h(Af,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Te;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(tl):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(h(Rf,{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 nl||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){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,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!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(r))return;let i=this.useMicrotaskScheduler?Wv:S_;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(tl+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 n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Wv(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function nN(){return typeof $localize<"u"&&$localize.locale||Ms}var As=new T("",{providedIn:"root",factory:()=>h(As,{optional:!0,skipSelf:!0})||nN()});function je(e){return Om(e)}function He(e,t){return ka(e,t?.equal)}var fh=class{[mt];constructor(t){this[mt]=t}destroy(){this[mt].destroy()}};function ze(e,t){let n=t?.injector??h(Je),r=t?.manualCleanup!==!0?n.get(Ze):null,i,o=n.get(Qi,null,{optional:!0}),s=n.get(nn);return o!==null?(i=oN(o.view,s,e),r instanceof rs&&r._lView===o.view&&(r=null)):i=sN(e,n.get(hs),s),i.injector=n,r!==null&&(i.onDestroyFn=r.onDestroy(()=>i.destroy())),new fh(i)}var U_=Y(C({},tr),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:ai,run(){if(this.dirty=!1,this.hasRun&&!Ti(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=nr(this),n=Zi(!1);try{this.maybeCleanup(),this.fn(e)}finally{Zi(n),Vr(this,t)}},maybeCleanup(){if(!this.cleanupFns?.length)return;let e=q(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],q(e)}}}),rN=Y(C({},U_),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Br(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),iN=Y(C({},U_),{consumerMarkedDirty(){this.view[j]|=8192,_r(this.view),this.notifier.notify(13)},destroy(){Br(this),this.onDestroyFn(),this.maybeCleanup(),this.view[$n]?.delete(this)}});function oN(e,t,n){let r=Object.create(iN);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[$n]??=new Set,e[$n].add(r),r.consumerMarkedDirty(r),r}function sN(e,t,n){let r=Object.create(rN);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}var z_=Symbol("InputSignalNode#UNSET"),CN=Y(C({},Pa),{transformFn:void 0,applyValueToInputSignal(e,t){Ni(e,t)}});function G_(e,t){let n=Object.create(CN);n.value=e,n.transformFn=t?.transform;function r(){if(Si(n),n.value===z_){let i=null;throw new I(-950,i)}return n.value}return r[mt]=n,r}var wN=new T("");wN.__NG_ELEMENT_ID__=e=>{let t=dt();if(t===null)throw new I(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new I(204,!1)};function j_(e,t){return G_(e,t)}function IN(e){return G_(z_,e)}var q_=(j_.required=IN,j_);var ph=new T(""),SN=new T("");function Rs(e){return!e.moduleRef}function TN(e){let t=Rs(e)?e.r3Injector:e.moduleRef.injector,n=t.get(De);return n.run(()=>{Rs(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Lt),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),Rs(e)){let o=()=>t.destroy(),s=e.platformInjector.get(ph);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(ph);s.add(o),e.moduleRef.onDestroy(()=>{ms(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return NN(r,n,()=>{let o=t.get(Cn),s=o.add(),a=t.get(th);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(As,Ms);if(k_(c||Ms),!t.get(SN,!0))return Rs(e)?t.get(fn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Rs(e)){let u=t.get(fn);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return MN?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void o.remove(s))})})}var MN;function NN(e,t,n){try{let r=n();return Tr(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var bl=null;function xN(e=[],t){return Je.create({name:t,providers:[{provide:ss,useValue:"platform"},{provide:ph,useValue:new Set([()=>bl=null])},...e]})}function AN(e=[]){if(bl)return bl;let t=xN(e);return bl=t,A_(),RN(t),t}function RN(e){let t=e.get(cl,null);it(e,()=>{t?.forEach(n=>n())})}var Ar=(()=>{class e{static __NG_ELEMENT_ID__=ON}return e})();function ON(e){return kN(dt(),ae(),(e&16)===16)}function kN(e,t,n){if(vr(e)&&!n){let r=qt(e.index,t);return new Cr(r,r)}else if(e.type&175){let r=t[Mt];return new Cr(r,t)}return null}var hh=class{constructor(){}supports(t){return qp(t)}create(t){return new gh(t)}},PN=(e,t)=>t,gh=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(t){this._trackByFn=t||PN}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){let s=!r||n&&n.currentIndex<$_(r,i,o)?n:r,a=$_(s,i,o),c=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)i++;else{o||(o=[]);let l=a-i,u=c-i;if(l!=u){for(let p=0;p<l;p++){let f=p<o.length?o[p]:o[p]=0,g=f+p;u<=g&&g<l&&(o[p]=f+1)}let d=s.previousIndex;o[d]=u-l}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!qp(t))throw new I(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,i,o,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)o=t[a],s=this._trackByFn(a,o),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,o,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,o,s,a)),Object.is(n.item,o)||this._addIdentityChange(n,o)),n=n._next}else i=0,h_(t,a=>{s=this._trackByFn(i,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,i),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return t===null?o=this._itTail:(o=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,i),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new mh(n,r),o,i)),t}_verifyReinsertion(t,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let i=t._prevRemoved,o=t._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let i=n===null?this._itHead:n._next;return t._next=i,t._prev=n,i===null?this._itTail=t:i._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new El),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new El),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},mh=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(t,n){this.item=t,this.trackById=n}},vh=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},El=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new vh,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,i=this.map.get(r);return i?i.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function $_(e,t,n){let r=e.previousIndex;if(r===null)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}function H_(){return new Os([new hh])}var Os=(()=>{class e{factories;static \u0275prov=M({token:e,providedIn:"root",factory:H_});constructor(n){this.factories=n}static create(n,r){if(r!=null){let i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||H_()),deps:[[e,new ty,new sl]]}}find(n){let r=this.factories.find(i=>i.supports(n));if(r!=null)return r;throw new I(901,!1)}}return e})();function W_(e){ge(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=AN(r),o=[lh({}),{provide:nn,useExisting:B_},Dv,...n||[]],s=new _s({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return TN({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}finally{ge(9)}}function ks(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Y_=null;function Yt(){return Y_}function yh(e){Y_??=e}var Ps=class{},_h=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(Q_),providedIn:"platform"})}return e})();var Q_=(()=>{class e extends _h{_location;_history;_doc=h(xe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Yt().getBaseHref(this._doc)}onPopState(n){let r=Yt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Yt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function X_(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function K_(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Rr(e){return e&&e[0]!=="?"?`?${e}`:e}var Dl=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(eb),providedIn:"root"})}return e})(),J_=new T(""),eb=(()=>{class e extends Dl{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??h(xe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return X_(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Rr(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Rr(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Rr(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(F(_h),F(J_,8))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ho=(()=>{class e{_subject=new se;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=VN(K_(Z_(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Rr(r))}normalize(n){return e.stripTrailingSlash(LN(this._basePath,Z_(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Rr(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Rr(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=Rr;static joinWithSlash=X_;static stripTrailingSlash=K_;static \u0275fac=function(r){return new(r||e)(F(Dl))};static \u0275prov=M({token:e,factory:()=>FN(),providedIn:"root"})}return e})();function FN(){return new ho(F(Dl))}function LN(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Z_(e){return e.replace(/\/index.html$/,"")}function VN(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var pt=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(pt||{}),ve=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(ve||{}),xt=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(xt||{}),Zn={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 ib(e){return Vt(e)[Ue.LocaleId]}function ob(e,t,n){let r=Vt(e),i=[r[Ue.DayPeriodsFormat],r[Ue.DayPeriodsStandalone]],o=Qt(i,t);return Qt(o,n)}function sb(e,t,n){let r=Vt(e),i=[r[Ue.DaysFormat],r[Ue.DaysStandalone]],o=Qt(i,t);return Qt(o,n)}function ab(e,t,n){let r=Vt(e),i=[r[Ue.MonthsFormat],r[Ue.MonthsStandalone]],o=Qt(i,t);return Qt(o,n)}function cb(e,t){let r=Vt(e)[Ue.Eras];return Qt(r,t)}function Fs(e,t){let n=Vt(e);return Qt(n[Ue.DateFormat],t)}function Ls(e,t){let n=Vt(e);return Qt(n[Ue.TimeFormat],t)}function Vs(e,t){let r=Vt(e)[Ue.DateTimeFormat];return Qt(r,t)}function Bs(e,t){let n=Vt(e),r=n[Ue.NumberSymbols][t];if(typeof r>"u"){if(t===Zn.CurrencyDecimal)return n[Ue.NumberSymbols][Zn.Decimal];if(t===Zn.CurrencyGroup)return n[Ue.NumberSymbols][Zn.Group]}return r}function lb(e){if(!e[Ue.ExtraData])throw new I(2303,!1)}function ub(e){let t=Vt(e);return lb(t),(t[Ue.ExtraData][2]||[]).map(r=>typeof r=="string"?bh(r):[bh(r[0]),bh(r[1])])}function db(e,t,n){let r=Vt(e);lb(r);let i=[r[Ue.ExtraData][0],r[Ue.ExtraData][1]],o=Qt(i,t)||[];return Qt(o,n)||[]}function Qt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new I(2304,!1)}function bh(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var BN=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Cl={},UN=/((?:[^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 fb(e,t,n,r){let i=ZN(e);t=Kn(n,t)||t;let s=[],a;for(;t;)if(a=UN.exec(t),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let c=i.getTimezoneOffset();r&&(c=hb(r,c),i=KN(i,r));let l="";return s.forEach(u=>{let d=qN(u);l+=d?d(i,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Ml(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Kn(e,t){let n=ib(e);if(Cl[n]??={},Cl[n][t])return Cl[n][t];let r="";switch(t){case"shortDate":r=Fs(e,xt.Short);break;case"mediumDate":r=Fs(e,xt.Medium);break;case"longDate":r=Fs(e,xt.Long);break;case"fullDate":r=Fs(e,xt.Full);break;case"shortTime":r=Ls(e,xt.Short);break;case"mediumTime":r=Ls(e,xt.Medium);break;case"longTime":r=Ls(e,xt.Long);break;case"fullTime":r=Ls(e,xt.Full);break;case"short":let i=Kn(e,"shortTime"),o=Kn(e,"shortDate");r=wl(Vs(e,xt.Short),[i,o]);break;case"medium":let s=Kn(e,"mediumTime"),a=Kn(e,"mediumDate");r=wl(Vs(e,xt.Medium),[s,a]);break;case"long":let c=Kn(e,"longTime"),l=Kn(e,"longDate");r=wl(Vs(e,xt.Long),[c,l]);break;case"full":let u=Kn(e,"fullTime"),d=Kn(e,"fullDate");r=wl(Vs(e,xt.Full),[u,d]);break}return r&&(Cl[n][t]=r),r}function wl(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function hn(e,t,n="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,o=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),o+s}function jN(e,t){return hn(e,3).substring(0,t)}function Ge(e,t,n=0,r=!1,i=!1){return function(o,s){let a=$N(e,o);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return jN(a,t);let c=Bs(s,Zn.MinusSign);return hn(a,t,c,r,i)}}function $N(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new I(2301,!1)}}function Me(e,t,n=pt.Format,r=!1){return function(i,o){return HN(i,o,e,t,n,r)}}function HN(e,t,n,r,i,o){switch(n){case 2:return ab(t,i,r)[e.getMonth()];case 1:return sb(t,i,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(o){let l=ub(t),u=db(t,i,r),d=l.findIndex(p=>{if(Array.isArray(p)){let[f,g]=p,m=s>=f.hours&&a>=f.minutes,v=s<g.hours||s===g.hours&&a<g.minutes;if(f.hours<g.hours){if(m&&v)return!0}else if(m||v)return!0}else if(p.hours===s&&p.minutes===a)return!0;return!1});if(d!==-1)return u[d]}return ob(t,i,r)[s<12?0:1];case 3:return cb(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new I(2302,!1)}}function Il(e){return function(t,n,r){let i=-1*r,o=Bs(n,Zn.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+hn(s,2,o)+hn(Math.abs(i%60),2,o);case 1:return"GMT"+(i>=0?"+":"")+hn(s,1,o);case 2:return"GMT"+(i>=0?"+":"")+hn(s,2,o)+":"+hn(Math.abs(i%60),2,o);case 3:return r===0?"Z":(i>=0?"+":"")+hn(s,2,o)+":"+hn(Math.abs(i%60),2,o);default:throw new I(2302,!1)}}}var zN=0,Tl=4;function GN(e){let t=Ml(e,zN,1).getDay();return Ml(e,0,1+(t<=Tl?Tl:Tl+7)-t)}function pb(e){let t=e.getDay(),n=t===0?-3:Tl-t;return Ml(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Eh(e,t=!1){return function(n,r){let i;if(t){let o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();i=1+Math.floor((s+o)/7)}else{let o=pb(n),s=GN(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return hn(i,e,Bs(r,Zn.MinusSign))}}function Sl(e,t=!1){return function(n,r){let o=pb(n).getFullYear();return hn(o,e,Bs(r,Zn.MinusSign),t)}}var Dh={};function qN(e){if(Dh[e])return Dh[e];let t;switch(e){case"G":case"GG":case"GGG":t=Me(3,ve.Abbreviated);break;case"GGGG":t=Me(3,ve.Wide);break;case"GGGGG":t=Me(3,ve.Narrow);break;case"y":t=Ge(0,1,0,!1,!0);break;case"yy":t=Ge(0,2,0,!0,!0);break;case"yyy":t=Ge(0,3,0,!1,!0);break;case"yyyy":t=Ge(0,4,0,!1,!0);break;case"Y":t=Sl(1);break;case"YY":t=Sl(2,!0);break;case"YYY":t=Sl(3);break;case"YYYY":t=Sl(4);break;case"M":case"L":t=Ge(1,1,1);break;case"MM":case"LL":t=Ge(1,2,1);break;case"MMM":t=Me(2,ve.Abbreviated);break;case"MMMM":t=Me(2,ve.Wide);break;case"MMMMM":t=Me(2,ve.Narrow);break;case"LLL":t=Me(2,ve.Abbreviated,pt.Standalone);break;case"LLLL":t=Me(2,ve.Wide,pt.Standalone);break;case"LLLLL":t=Me(2,ve.Narrow,pt.Standalone);break;case"w":t=Eh(1);break;case"ww":t=Eh(2);break;case"W":t=Eh(1,!0);break;case"d":t=Ge(2,1);break;case"dd":t=Ge(2,2);break;case"c":case"cc":t=Ge(7,1);break;case"ccc":t=Me(1,ve.Abbreviated,pt.Standalone);break;case"cccc":t=Me(1,ve.Wide,pt.Standalone);break;case"ccccc":t=Me(1,ve.Narrow,pt.Standalone);break;case"cccccc":t=Me(1,ve.Short,pt.Standalone);break;case"E":case"EE":case"EEE":t=Me(1,ve.Abbreviated);break;case"EEEE":t=Me(1,ve.Wide);break;case"EEEEE":t=Me(1,ve.Narrow);break;case"EEEEEE":t=Me(1,ve.Short);break;case"a":case"aa":case"aaa":t=Me(0,ve.Abbreviated);break;case"aaaa":t=Me(0,ve.Wide);break;case"aaaaa":t=Me(0,ve.Narrow);break;case"b":case"bb":case"bbb":t=Me(0,ve.Abbreviated,pt.Standalone,!0);break;case"bbbb":t=Me(0,ve.Wide,pt.Standalone,!0);break;case"bbbbb":t=Me(0,ve.Narrow,pt.Standalone,!0);break;case"B":case"BB":case"BBB":t=Me(0,ve.Abbreviated,pt.Format,!0);break;case"BBBB":t=Me(0,ve.Wide,pt.Format,!0);break;case"BBBBB":t=Me(0,ve.Narrow,pt.Format,!0);break;case"h":t=Ge(3,1,-12);break;case"hh":t=Ge(3,2,-12);break;case"H":t=Ge(3,1);break;case"HH":t=Ge(3,2);break;case"m":t=Ge(4,1);break;case"mm":t=Ge(4,2);break;case"s":t=Ge(5,1);break;case"ss":t=Ge(5,2);break;case"S":t=Ge(6,1);break;case"SS":t=Ge(6,2);break;case"SSS":t=Ge(6,3);break;case"Z":case"ZZ":case"ZZZ":t=Il(0);break;case"ZZZZZ":t=Il(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Il(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=Il(2);break;default:return null}return Dh[e]=t,t}function hb(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function WN(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function KN(e,t,n){let i=e.getTimezoneOffset(),o=hb(t,i);return WN(e,-1*(o-i))}function ZN(e){if(tb(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,o=1,s=1]=e.split("-").map(a=>+a);return Ml(i,o-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(BN))return YN(r)}let t=new Date(e);if(!tb(t))throw new I(2302,!1);return t}function YN(e){let t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return o.call(t,s,a,c,l),t}function tb(e){return e instanceof Date&&!isNaN(e.valueOf())}var Nl=class{$implicit;ngForOf;index;count;constructor(t,n,r,i){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}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}},At=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,i){this._viewContainer=n,this._template=r,this._differs=i}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((i,o,s)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new Nl(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(o===null?void 0:o);else if(o!==null){let a=r.get(o);r.move(a,s),nb(a,i)}});for(let i=0,o=r.length;i<o;i++){let a=r.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}n.forEachIdentityChange(i=>{let o=r.get(i.currentIndex);nb(o,i)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(de(dn),de(Sn),de(Os))};static \u0275dir=Fe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function nb(e,t){e.context.$implicit=t.item}var Ct=(()=>{class e{_viewContainer;_context=new xl;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){rb(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){rb(n,!1),this._elseTemplateRef=n,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(n,r){return!0}static \u0275fac=function(r){return new(r||e)(de(dn),de(Sn))};static \u0275dir=Fe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),xl=class{$implicit=null;ngIf=null};function rb(e,t){if(e&&!e.createEmbeddedView)throw new I(2020,!1)}function QN(e,t){return new I(2100,!1)}var XN="mediumDate",gb=new T(""),mb=new T(""),Us=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,i){this.locale=n,this.defaultTimezone=r,this.defaultOptions=i}transform(n,r,i,o){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??XN,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return fb(n,s,o||this.locale,a)}catch(s){throw QN(e,s.message)}}static \u0275fac=function(r){return new(r||e)(de(As,16),de(gb,24),de(mb,24))};static \u0275pipe=Kp({name:"date",type:e,pure:!0})}return e})();var et=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({})}return e})();function js(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var gi=class{};var Ch="browser";function vb(e){return e===Ch}var Rl=new T(""),Mh=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new I(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(F(Rl),F(De))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),$s=class{_doc;constructor(t){this._doc=t}manager},wh="ng-app-id";function yb(e){for(let t of e)t.remove()}function _b(e,t){let n=t.createElement("style");return n.textContent=e,n}function JN(e,t,n,r){let i=e.head?.querySelectorAll(`style[${wh}="${t}"],link[${wh}="${t}"]`);if(i)for(let o of i)o.removeAttribute(wh),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function Sh(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Nh=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,JN(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,_b);r?.forEach(i=>this.addUsage(i,this.external,Sh))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(yb(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])yb(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,_b(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Sh(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(F(xe),F(al),F(ll,8),F(Sr))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Ih={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"},xh=/%COMP%/g;var Eb="%COMP%",ex=`_nghost-${Eb}`,tx=`_ngcontent-${Eb}`,nx=!0,rx=new T("",{providedIn:"root",factory:()=>nx});function ix(e){return tx.replace(xh,e)}function ox(e){return ex.replace(xh,e)}function Db(e,t){return t.map(n=>n.replace(xh,e))}var Ah=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;animationDisabled;maxAnimationTimeout;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;registry;constructor(n,r,i,o,s,a,c,l=null,u,d,p=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.animationDisabled=u,this.maxAnimationTimeout=d,this.tracingService=p,this.platformIsServer=!1,this.defaultRenderer=new Hs(n,s,c,this.platformIsServer,this.tracingService,this.registry=Rc(),this.maxAnimationTimeout)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(n,r);return i instanceof Al?i.applyToHost(n):i instanceof zs&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case Hn.Emulated:o=new Al(c,l,r,this.appId,u,s,a,d,p,this.registry,this.animationDisabled,this.maxAnimationTimeout);break;case Hn.ShadowDom:return new Th(c,l,n,r,s,a,this.nonce,d,p,this.registry,this.maxAnimationTimeout);default:o=new zs(c,l,r,u,s,a,d,p,this.registry,this.animationDisabled,this.maxAnimationTimeout);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(F(Mh),F(Nh),F(al),F(rx),F(xe),F(Sr),F(De),F(ll),F(nh),F(rh),F(hi,8))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Hs=class{eventManager;doc;ngZone;platformIsServer;tracingService;registry;maxAnimationTimeout;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,i,o,s,a){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.tracingService=o,this.registry=s,this.maxAnimationTimeout=a}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Ih[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(bb(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(bb(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){let{elements:r}=this.registry;if(r){r.animate(n,()=>n.remove(),this.maxAnimationTimeout);return}n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new I(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=Ih[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Ih[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(In.DashCase|In.Important)?t.style.setProperty(n,r,i&In.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&In.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,i){if(typeof t=="string"&&(t=Yt().getGlobalEventTarget(this.doc,t),!t))throw new I(5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(t,n,o)),this.eventManager.addEventListener(t,n,o,i)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function bb(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Th=class extends Hs{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,i,o,s,a,c,l,u,d){super(t,o,s,c,l,u,d),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let p=i.styles;p=Db(i.id,p);for(let g of p){let m=document.createElement("style");a&&m.setAttribute("nonce",a),m.textContent=g,this.shadowRoot.appendChild(m)}let f=i.getExternalStyles?.();if(f)for(let g of f){let m=Sh(g,o);a&&m.setAttribute("nonce",a),this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},zs=class extends Hs{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;_animationDisabled;constructor(t,n,r,i,o,s,a,c,l,u,d,p){super(t,o,s,a,c,l,d),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this._animationDisabled=u;let f=r.styles;this.styles=p?Db(p,f):f,this.styleUrls=r.getExternalStyles?.(p)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){if(this.removeStylesOnCompDestroy){if(!this._animationDisabled&&this.registry.elements){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)},this.maxAnimationTimeout)});return}this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}},Al=class extends zs{contentAttr;hostAttr;constructor(t,n,r,i,o,s,a,c,l,u,d,p){let f=i+"-"+r.id;super(t,n,r,o,s,a,c,l,u,d,p,f),this.contentAttr=ix(f),this.hostAttr=ox(f)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Ol=class e extends Ps{supportsDOMEvents=!0;static makeCurrent(){yh(new e)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=sx();return n==null?null:ax(n)}resetBaseElement(){Gs=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return js(document.cookie,t)}},Gs=null;function sx(){return Gs=Gs||document.head.querySelector("base"),Gs?Gs.getAttribute("href"):null}function ax(e){return new URL(e,document.baseURI).pathname}var cx=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),wb=(()=>{class e extends $s{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||e)(F(xe))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Cb=["alt","control","meta","shift"],lx={"\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"},ux={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Ib=(()=>{class e extends $s{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Yt().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Cb.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let i=lx[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Cb.forEach(s=>{if(s!==i){let a=ux[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(F(xe))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})();function Rh(e,t){let n=C({rootComponent:e},dx(t));return W_(n)}function dx(e){return{appProviders:[...mx,...e?.providers??[]],platformProviders:gx}}function fx(){Ol.makeCurrent()}function px(){return new Ht}function hx(){return wp(document),document}var gx=[{provide:Sr,useValue:Ch},{provide:cl,useValue:fx,multi:!0},{provide:xe,useFactory:hx}];var mx=[{provide:ss,useValue:"root"},{provide:Ht,useFactory:px},{provide:Rl,useClass:wb,multi:!0,deps:[xe]},{provide:Rl,useClass:Ib,multi:!0,deps:[xe]},Ah,Nh,Mh,{provide:Tn,useExisting:Ah},{provide:gi,useClass:cx},[]];var mo=class{},vo=class{},Rn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
9
|
+
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=n.slice(r+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=t.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Fl=class{encodeKey(t){return Sb(t)}encodeValue(t){return Sb(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function vx(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var yx=/%(\d[a-f0-9])/gi,_x={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Sb(e){return encodeURIComponent(e).replace(yx,(t,n)=>_x[n]??t)}function kl(e){return`${e}`}var Xt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Fl,t.fromString){if(t.fromObject)throw new I(2805,!1);this.map=vx(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],i=Array.isArray(r)?r.map(kl):[kl(r)];this.map.set(n,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(kl(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],i=r.indexOf(kl(t.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Ll=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function bx(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Tb(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Mb(e){return typeof Blob<"u"&&e instanceof Blob}function Nb(e){return typeof FormData<"u"&&e instanceof FormData}function Ex(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var qs="Content-Type",Vl="Accept",Lh="X-Request-URL",Ab="text/plain",Rb="application/json",Ob=`${Rb}, ${Ab}, */*`,go=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,i){this.url=n,this.method=t.toUpperCase();let o;if(bx(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new I(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new Rn,this.context??=new Ll,!this.params)this.params=new Xt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Tb(this.body)||Mb(this.body)||Nb(this.body)||Ex(this.body)?this.body:this.body instanceof Xt?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||Nb(this.body)?null:Mb(this.body)?this.body.type||null:Tb(this.body)?null:typeof this.body=="string"?Ab:this.body instanceof Xt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Rb:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,d=t.referrer||this.referrer,p=t.integrity||this.integrity,f=t.transferCache??this.transferCache,g=t.timeout??this.timeout,m=t.body!==void 0?t.body:this.body,v=t.withCredentials??this.withCredentials,y=t.reportProgress??this.reportProgress,R=t.headers||this.headers,U=t.params||this.params,P=t.context??this.context;return t.setHeaders!==void 0&&(R=Object.keys(t.setHeaders).reduce((K,$)=>K.set($,t.setHeaders[$]),R)),t.setParams&&(U=Object.keys(t.setParams).reduce((K,$)=>K.set($,t.setParams[$]),U)),new e(n,r,m,{params:U,headers:R,context:P,reportProgress:y,responseType:i,withCredentials:v,transferCache:f,keepalive:o,cache:a,priority:s,timeout:g,mode:c,redirect:l,credentials:u,referrer:d,integrity:p})}},Yn=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Yn||{}),yo=class{headers;status;statusText;url;ok;type;redirected;constructor(t,n=200,r="OK"){this.headers=t.headers||new Rn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.ok=this.status>=200&&this.status<300}},Ws=class e extends yo{constructor(t={}){super(t)}type=Yn.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},_o=class e extends yo{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Yn.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},An=class extends yo{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},kb=200,Dx=204;function Oh(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer}}var Ul=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof go)o=n;else{let c;i.headers instanceof Rn?c=i.headers:c=new Rn(i.headers);let l;i.params&&(i.params instanceof Xt?l=i.params:l=new Xt({fromObject:i.params})),o=new go(n,r,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,integrity:i.integrity,timeout:i.timeout})}let s=O(o).pipe(ar(c=>this.handler.handle(c)));if(n instanceof go||i.observe==="events")return s;let a=s.pipe(ct(c=>c instanceof _o));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(X(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new I(2806,!1);return c.body}));case"blob":return a.pipe(X(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new I(2807,!1);return c.body}));case"text":return a.pipe(X(c=>{if(c.body!==null&&typeof c.body!="string")throw new I(2808,!1);return c.body}));case"json":default:return a.pipe(X(c=>c.body))}case"response":return a;default:throw new I(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Xt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,Oh(i,r))}post(n,r,i={}){return this.request("POST",n,Oh(i,r))}put(n,r,i={}){return this.request("PUT",n,Oh(i,r))}static \u0275fac=function(r){return new(r||e)(F(mo))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Cx=/^\)\]\}',?\n/;function xb(e){if(e.url)return e.url;let t=Lh.toLocaleLowerCase();return e.headers.get(t)}var Pb=new T(""),Pl=(()=>{class e{fetchImpl=h(kh,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=h(De);destroyRef=h(Ze);destroyed=!1;constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0})}handle(n){return new z(r=>{let i=new AbortController;this.doRequest(n,i.signal,r).then(Ph,s=>r.error(new An({error:s})));let o;return n.timeout&&(o=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{i.signal.aborted||i.abort(new DOMException("signal timed out","TimeoutError"))},n.timeout))),()=>{o!==void 0&&clearTimeout(o),i.abort()}})}doRequest(n,r,i){return Lr(this,null,function*(){let o=this.createRequestInit(n),s;try{let g=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,C({signal:r},o)));wx(g),i.next({type:Yn.Sent}),s=yield g}catch(g){i.error(new An({error:g,status:g.status??0,statusText:g.statusText,url:n.urlWithParams,headers:g.headers}));return}let a=new Rn(s.headers),c=s.statusText,l=xb(s)??n.urlWithParams,u=s.status,d=null;if(n.reportProgress&&i.next(new Ws({headers:a,status:u,statusText:c,url:l})),s.body){let g=s.headers.get("content-length"),m=[],v=s.body.getReader(),y=0,R,U,P=typeof Zone<"u"&&Zone.current,K=!1;if(yield this.ngZone.runOutsideAngular(()=>Lr(this,null,function*(){for(;;){if(this.destroyed){yield v.cancel(),K=!0;break}let{done:we,value:le}=yield v.read();if(we)break;if(m.push(le),y+=le.length,n.reportProgress){U=n.responseType==="text"?(U??"")+(R??=new TextDecoder).decode(le,{stream:!0}):void 0;let _e=()=>i.next({type:Yn.DownloadProgress,total:g?+g:void 0,loaded:y,partialText:U});P?P.run(_e):_e()}}})),K){i.complete();return}let $=this.concatChunks(m,y);try{let we=s.headers.get(qs)??"";d=this.parseBody(n,$,we,u)}catch(we){i.error(new An({error:we,headers:new Rn(s.headers),status:s.status,statusText:s.statusText,url:xb(s)??n.urlWithParams}));return}}u===0&&(u=d?kb:0);let p=u>=200&&u<300,f=s.redirected;p?(i.next(new _o({body:d,headers:a,status:u,statusText:c,url:l,redirected:f})),i.complete()):i.error(new An({error:d,headers:a,status:u,statusText:c,url:l,redirected:f}))})}parseBody(n,r,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(Cx,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(o<200||o>=300)return s;throw a}case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},i;if(i=n.credentials,n.withCredentials&&(i="include"),n.headers.forEach((o,s)=>r[o]=s.join(",")),n.headers.has(Vl)||(r[Vl]=Ob),!n.headers.has(qs)){let o=n.detectContentTypeHeader();o!==null&&(r[qs]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:i,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity}}concatChunks(n,r){let i=new Uint8Array(r),o=0;for(let s of n)i.set(s,o),o+=s.length;return i}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),kh=class{};function Ph(){}function wx(e){e.then(Ph,Ph)}function Ix(e,t){return t(e)}function Sx(e,t,n){return(r,i)=>it(n,()=>t(r,o=>e(o,i)))}var Fb=new T(""),Lb=new T(""),Vb=new T("",{providedIn:"root",factory:()=>!0});var Bl=(()=>{class e extends mo{backend;injector;chain=null;pendingTasks=h(Xi);contributeToStability=h(Vb);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Fb),...this.injector.get(Lb,[])]));this.chain=r.reduceRight((i,o)=>Sx(i,o,this.injector),Ix)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(qr(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(F(vo),F(Ke))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})();var Tx=/^\)\]\}',?\n/,Mx=RegExp(`^${Lh}:`,"m");function Nx(e){return"responseURL"in e&&e.responseURL?e.responseURL:Mx.test(e.getAllResponseHeaders())?e.getResponseHeader(Lh):null}var Fh=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new I(-2800,!1);let r=this.xhrFactory;return O(null).pipe(Re(()=>new z(o=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((v,y)=>s.setRequestHeader(v,y.join(","))),n.headers.has(Vl)||s.setRequestHeader(Vl,Ob),!n.headers.has(qs)){let v=n.detectContentTypeHeader();v!==null&&s.setRequestHeader(qs,v)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let v=n.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let v=s.statusText||"OK",y=new Rn(s.getAllResponseHeaders()),R=Nx(s)||n.url;return c=new Ws({headers:y,status:s.status,statusText:v,url:R}),c},u=()=>{let{headers:v,status:y,statusText:R,url:U}=l(),P=null;y!==Dx&&(P=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=P?kb:0);let K=y>=200&&y<300;if(n.responseType==="json"&&typeof P=="string"){let $=P;P=P.replace(Tx,"");try{P=P!==""?JSON.parse(P):null}catch(we){P=$,K&&(K=!1,P={error:we,text:P})}}K?(o.next(new _o({body:P,headers:v,status:y,statusText:R,url:U||void 0})),o.complete()):o.error(new An({error:P,headers:v,status:y,statusText:R,url:U||void 0}))},d=v=>{let{url:y}=l(),R=new An({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});o.error(R)},p=d;n.timeout&&(p=v=>{let{url:y}=l(),R=new An({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:y||void 0});o.error(R)});let f=!1,g=v=>{f||(o.next(l()),f=!0);let y={type:Yn.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),o.next(y)},m=v=>{let y={type:Yn.UploadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),o.next(y)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",p),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",g),a!==null&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),o.next({type:Yn.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",p),n.reportProgress&&(s.removeEventListener("progress",g),a!==null&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(F(gi))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Bb=new T(""),xx="XSRF-TOKEN",Ax=new T("",{providedIn:"root",factory:()=>xx}),Rx="X-XSRF-TOKEN",Ox=new T("",{providedIn:"root",factory:()=>Rx}),Ks=class{},kx=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=js(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(F(xe),F(Ax))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})();function Px(e,t){let n=e.url.toLowerCase();if(!h(Bb)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=h(Ks).getToken(),i=h(Ox);return r!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var Vh=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(Vh||{});function Fx(e,t){return{\u0275kind:e,\u0275providers:t}}function Bh(...e){let t=[Ul,Fh,Bl,{provide:mo,useExisting:Bl},{provide:vo,useFactory:()=>h(Pb,{optional:!0})??h(Fh)},{provide:Fb,useValue:Px,multi:!0},{provide:Bb,useValue:!0},{provide:Ks,useClass:kx}];for(let n of e)t.push(...n.\u0275providers);return ei(t)}function Uh(){return Fx(Vh.Fetch,[Pl,{provide:Pb,useExisting:Pl},{provide:vo,useExisting:Pl}])}var Ub=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(F(xe))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var J="primary",aa=Symbol("RouteTitle"),Gh=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Io(e){return new Gh(e)}function Vx(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=e[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function Bx(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!On(e[n],t[n]))return!1;return!0}function On(e,t){let n=e?qh(e):void 0,r=t?qh(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!Kb(e[i],t[i]))return!1;return!0}function qh(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Kb(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((i,o)=>r[o]===i)}else return e===t}function Zb(e){return e.length>0?e[e.length-1]:null}function Jn(e){return Gr(e)?e:Tr(e)?ke(Promise.resolve(e)):O(e)}var Ux={exact:Qb,subset:Xb},Yb={exact:jx,subset:$x,ignored:()=>!0};function jb(e,t,n){return Ux[n.paths](e.root,t.root,n.matrixParams)&&Yb[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function jx(e,t){return On(e,t)}function Qb(e,t,n){if(!yi(e.segments,t.segments)||!Hl(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Qb(e.children[r],t.children[r],n))return!1;return!0}function $x(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Kb(e[n],t[n]))}function Xb(e,t,n){return Jb(e,t,t.segments,n)}function Jb(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!yi(i,n)||t.hasChildren()||!Hl(i,n,r))}else if(e.segments.length===n.length){if(!yi(e.segments,n)||!Hl(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Xb(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!yi(e.segments,i)||!Hl(e.segments,i,r)||!e.children[J]?!1:Jb(e.children[J],t,o,r)}}function Hl(e,t,n){return t.every((r,i)=>Yb[n](e[i].parameters,r.parameters))}var Xn=class{root;queryParams;fragment;_queryParamMap;constructor(t=new pe([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Io(this.queryParams),this._queryParamMap}toString(){return Gx.serialize(this)}},pe=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zl(this)}},vi=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Io(this.parameters),this._parameterMap}toString(){return tE(this)}};function Hx(e,t){return yi(e,t)&&e.every((n,r)=>On(n.parameters,t[r].parameters))}function yi(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function zx(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===J&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==J&&(n=n.concat(t(i,r)))}),n}var nu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>new So,providedIn:"root"})}return e})(),So=class{parse(t){let n=new Kh(t);return new Xn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Zs(t.root,!0)}`,r=Kx(t.queryParams),i=typeof t.fragment=="string"?`#${qx(t.fragment)}`:"";return`${n}${r}${i}`}},Gx=new So;function zl(e){return e.segments.map(t=>tE(t)).join("/")}function Zs(e,t){if(!e.hasChildren())return zl(e);if(t){let n=e.children[J]?Zs(e.children[J],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==J&&r.push(`${i}:${Zs(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=zx(e,(r,i)=>i===J?[Zs(e.children[J],!1)]:[`${i}:${Zs(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[J]!=null?`${zl(e)}/${n[0]}`:`${zl(e)}/(${n.join("//")})`}}function eE(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jl(e){return eE(e).replace(/%3B/gi,";")}function qx(e){return encodeURI(e)}function Wh(e){return eE(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Gl(e){return decodeURIComponent(e)}function $b(e){return Gl(e.replace(/\+/g,"%20"))}function tE(e){return`${Wh(e.path)}${Wx(e.parameters)}`}function Wx(e){return Object.entries(e).map(([t,n])=>`;${Wh(t)}=${Wh(n)}`).join("")}function Kx(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${jl(n)}=${jl(i)}`).join("&"):`${jl(n)}=${jl(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var Zx=/^[^\/()?;#]+/;function jh(e){let t=e.match(Zx);return t?t[0]:""}var Yx=/^[^\/()?;=#]+/;function Qx(e){let t=e.match(Yx);return t?t[0]:""}var Xx=/^[^=?&#]+/;function Jx(e){let t=e.match(Xx);return t?t[0]:""}var eA=/^[^&#]+/;function tA(e){let t=e.match(eA);return t?t[0]:""}var Kh=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new pe([],{}):new pe([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[J]=new pe(t,n)),r}parseSegment(){let t=jh(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(t),new vi(Gl(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=Qx(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=jh(this.remaining);i&&(r=i,this.capture(r))}t[Gl(n)]=Gl(r)}parseQueryParam(t){let n=Jx(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=tA(this.remaining);s&&(r=s,this.capture(r))}let i=$b(n),o=$b(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=jh(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new I(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=J);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[J]:new pe([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new I(4011,!1)}};function nE(e){return e.segments.length>0?new pe([],{[J]:e}):e}function rE(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=rE(i);if(r===J&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new pe(e.segments,t);return nA(n)}function nA(e){if(e.numberOfChildren===1&&e.children[J]){let t=e.children[J];return new pe(e.segments.concat(t.segments),t.children)}return e}function To(e){return e instanceof Xn}function rA(e,t,n=null,r=null){let i=iE(e);return oE(i,t,n,r)}function iE(e){let t;function n(o){let s={};for(let c of o.children){let l=n(c);s[c.outlet]=l}let a=new pe(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=nE(r);return t??i}function oE(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return $h(i,i,i,n,r);let o=iA(t);if(o.toRoot())return $h(i,i,new pe([],{}),n,r);let s=oA(o,i,e),a=s.processChildren?Qs(s.segmentGroup,s.index,o.commands):aE(s.segmentGroup,s.index,o.commands);return $h(i,s.segmentGroup,a,n,r)}function ql(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function ea(e){return typeof e=="object"&&e!=null&&e.outlets}function $h(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;e===t?s=n:s=sE(e,t,n);let a=nE(rE(s));return new Xn(a,o,i)}function sE(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=sE(o,t,n)}),new pe(e.segments,r)}var Wl=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ql(r[0]))throw new I(4003,!1);let i=r.find(ea);if(i&&i!==Zb(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function iA(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Wl(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Wl(n,t,r)}var Do=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function oA(e,t,n){if(e.isAbsolute)return new Do(t,!0,0);if(!n)return new Do(t,!1,NaN);if(n.parent===null)return new Do(n,!0,0);let r=ql(e.commands[0])?0:1,i=n.segments.length-1+r;return sA(n,i,e.numberOfDoubleDots)}function sA(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new I(4005,!1);i=r.segments.length}return new Do(r,!1,i-o)}function aA(e){return ea(e[0])?e[0].outlets:{[J]:e}}function aE(e,t,n){if(e??=new pe([],{}),e.segments.length===0&&e.hasChildren())return Qs(e,t,n);let r=cA(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new pe(e.segments.slice(0,r.pathIndex),{});return o.children[J]=new pe(e.segments.slice(r.pathIndex),e.children),Qs(o,0,i)}else return r.match&&i.length===0?new pe(e.segments,{}):r.match&&!e.hasChildren()?Zh(e,t,n):r.match?Qs(e,0,i):Zh(e,t,n)}function Qs(e,t,n){if(n.length===0)return new pe(e.segments,{});{let r=aA(n),i={};if(Object.keys(r).some(o=>o!==J)&&e.children[J]&&e.numberOfChildren===1&&e.children[J].segments.length===0){let o=Qs(e.children[J],t,n);return new pe(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=aE(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new pe(e.segments,i)}}function cA(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;let s=e.segments[i],a=n[r];if(ea(a))break;let c=`${a}`,l=r<n.length-1?n[r+1]:null;if(i>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!zb(c,l,s))return o;r+=2}else{if(!zb(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Zh(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i<n.length;){let o=n[i];if(ea(o)){let c=lA(o.outlets);return new pe(r,c)}if(i===0&&ql(n[0])){let c=e.segments[t];r.push(new vi(c.path,Hb(n[0]))),i++;continue}let s=ea(o)?o.outlets[J]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&ql(a)?(r.push(new vi(s,Hb(a))),i+=2):(r.push(new vi(s,{})),i++)}return new pe(r,{})}function lA(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Zh(new pe([],{}),0,r))}),t}function Hb(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function zb(e,t,n){return e==n.path&&On(t,n.parameters)}var Xs="imperative",ot=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(ot||{}),Jt=class{id;url;constructor(t,n){this.id=t,this.url=n}},Mo=class extends Jt{type=ot.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",i=null){super(t,n),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Or=class extends Jt{urlAfterRedirects;type=ot.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Rt=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Rt||{}),Kl=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Kl||{}),Qn=class extends Jt{reason;code;type=ot.NavigationCancel;constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},kr=class extends Jt{reason;code;type=ot.NavigationSkipped;constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i}},ta=class extends Jt{error;target;type=ot.NavigationError;constructor(t,n,r,i){super(t,n),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Zl=class extends Jt{urlAfterRedirects;state;type=ot.RoutesRecognized;constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yh=class extends Jt{urlAfterRedirects;state;type=ot.GuardsCheckStart;constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Qh=class extends Jt{urlAfterRedirects;state;shouldActivate;type=ot.GuardsCheckEnd;constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Xh=class extends Jt{urlAfterRedirects;state;type=ot.ResolveStart;constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jh=class extends Jt{urlAfterRedirects;state;type=ot.ResolveEnd;constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},eg=class{route;type=ot.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},tg=class{route;type=ot.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ng=class{snapshot;type=ot.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rg=class{snapshot;type=ot.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ig=class{snapshot;type=ot.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},og=class{snapshot;type=ot.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var na=class{},No=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function uA(e){return!(e instanceof na)&&!(e instanceof No)}function dA(e,t){return e.providers&&!e._injector&&(e._injector=Ts(e.providers,t,`Route: ${e.path}`)),e._injector??t}function gn(e){return e.outlet||J}function fA(e,t){let n=e.filter(r=>gn(r)===t);return n.push(...e.filter(r=>gn(r)!==t)),n}function Ao(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var sg=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ao(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new ca(this.rootInjector)}},ca=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new sg(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(F(Ke))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Yl=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=ag(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=ag(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=cg(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return cg(t,this._root).map(n=>n.value)}};function ag(e,t){if(e===t.value)return t;for(let n of t.children){let r=ag(e,n);if(r)return r}return null}function cg(e,t){if(e===t.value)return[t];for(let n of t.children){let r=cg(e,n);if(r.length)return r.unshift(t),r}return[]}var Bt=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Eo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Ql=class extends Yl{snapshot;constructor(t,n){super(t),this.snapshot=n,vg(this,t)}toString(){return this.snapshot.toString()}};function cE(e){let t=pA(e),n=new nt([new vi("",{})]),r=new nt({}),i=new nt({}),o=new nt({}),s=new nt(""),a=new _i(n,r,o,s,i,J,e,t.root);return a.snapshot=t.root,new Ql(new Bt(a,[]),t)}function pA(e){let t={},n={},r={},o=new Co([],t,r,"",n,J,e,null,{});return new Jl("",new Bt(o,[]))}var _i=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,i,o,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(X(l=>l[aa]))??O(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,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(X(t=>Io(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(X(t=>Io(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Xl(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:C(C({},t.params),e.params),data:C(C({},t.data),e.data),resolve:C(C(C(C({},e.data),t.data),i?.data),e._resolvedData)}:r={params:C({},e.params),data:C({},e.data),resolve:C(C({},e.data),e._resolvedData??{})},i&&uE(i)&&(r.resolve[aa]=i.title),r}var Co=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[aa]}constructor(t,n,r,i,o,s,a,c,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}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??=Io(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Io(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Jl=class extends Yl{url;constructor(t,n){super(n),this.url=t,vg(this,n)}toString(){return lE(this._root)}};function vg(e,t){t.value._routerState=e,t.children.forEach(n=>vg(e,n))}function lE(e){let t=e.children.length>0?` { ${e.children.map(lE).join(", ")} } `:"";return`${e.value}${t}`}function Hh(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,On(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),On(t.params,n.params)||e.paramsSubject.next(n.params),Bx(t.url,n.url)||e.urlSubject.next(n.url),On(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function lg(e,t){let n=On(e.params,t.params)&&Hx(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||lg(e.parent,t.parent))}function uE(e){return typeof e.title=="string"||e.title===null}var hA=new T(""),dE=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=J;activateEvents=new Ve;deactivateEvents=new Ve;attachEvents=new Ve;detachEvents=new Ve;routerOutletData=q_(void 0);parentContexts=h(ca);location=h(dn);changeDetector=h(Ar);inputBinder=h(ru,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new ug(n,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Fe({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[wr]})}return e})(),ug=class{route;childContexts;parent;outletData;constructor(t,n,r,i){this.route=t,this.childContexts=n,this.parent=r,this.outletData=i}get(t,n){return t===_i?this.route:t===ca?this.childContexts:t===hA?this.outletData:this.parent.get(t,n)}},ru=new T("");var fE=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Be({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Ce(0,"router-outlet")},dependencies:[dE],encapsulation:2})}return e})();function yg(e){let t=e.children&&e.children.map(yg),n=t?Y(C({},e),{children:t}):C({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==J&&(n.component=fE),n}function gA(e,t,n){let r=ra(e,t._root,n?n._root:void 0);return new Ql(r,t)}function ra(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=mA(e,t,n);return new Bt(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ra(e,a)),s}}let r=vA(t.value),i=t.children.map(o=>ra(e,o));return new Bt(r,i)}}function mA(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return ra(e,r,i);return ra(e,r)})}function vA(e){return new _i(new nt(e.url),new nt(e.params),new nt(e.queryParams),new nt(e.fragment),new nt(e.data),e.outlet,e.component,e)}var ia=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},pE="ngNavigationCancelingError";function eu(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=To(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=hE(!1,Rt.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function hE(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[pE]=!0,n.cancellationCode=t,n}function yA(e){return gE(e)&&To(e.url)}function gE(e){return!!e&&e[pE]}var _A=(e,t,n,r)=>X(i=>(new dg(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),dg=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Hh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=Eo(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Eo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Eo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=Eo(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new og(o.value.snapshot))}),t.children.length&&this.forwardEvent(new rg(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(Hh(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Hh(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},tu=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},wo=class{component;route;constructor(t,n){this.component=t,this.route=n}};function bA(e,t,n){let r=e._root,i=t?t._root:null;return Ys(r,i,n,[r.value])}function EA(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Ro(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Bd(e)?e:t.get(e):r}function Ys(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Eo(t);return e.children.forEach(s=>{DA(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Js(a,n.getContext(s),i)),i}function DA(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=CA(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new tu(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ys(e,t,a?a.children:null,r,i):Ys(e,t,n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new wo(a.outlet.component,s))}else s&&Js(t,a,i),i.canActivateChecks.push(new tu(r)),o.component?Ys(e,null,a?a.children:null,r,i):Ys(e,null,n,r,i);return i}function CA(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!yi(e.url,t.url);case"pathParamsOrQueryParamsChange":return!yi(e.url,t.url)||!On(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lg(e,t)||!On(e.queryParams,t.queryParams);case"paramsChange":default:return!lg(e,t)}}function Js(e,t,n){let r=Eo(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?Js(s,t.children.getContext(o),n):Js(s,null,n):Js(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new wo(t.outlet.component,i)):n.canDeactivateChecks.push(new wo(null,i)):n.canDeactivateChecks.push(new wo(null,i))}function la(e){return typeof e=="function"}function wA(e){return typeof e=="boolean"}function IA(e){return e&&la(e.canLoad)}function SA(e){return e&&la(e.canActivate)}function TA(e){return e&&la(e.canActivateChild)}function MA(e){return e&&la(e.canDeactivate)}function NA(e){return e&&la(e.canMatch)}function mE(e){return e instanceof Ln||e?.name==="EmptyError"}var $l=Symbol("INITIAL_VALUE");function xo(){return Re(e=>lc(e.map(t=>t.pipe(Vn(1),Ui($l)))).pipe(X(t=>{for(let n of t)if(n!==!0){if(n===$l)return $l;if(n===!1||xA(n))return n}return!0}),ct(t=>t!==$l),Vn(1)))}function xA(e){return To(e)||e instanceof ia}function AA(e,t){return We(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?O(Y(C({},n),{guardsResult:!0})):RA(s,r,i,e).pipe(We(a=>a&&wA(a)?OA(r,o,e,t):O(a)),X(a=>Y(C({},n),{guardsResult:a})))})}function RA(e,t,n,r){return ke(e).pipe(We(i=>VA(i.component,i.route,n,t,r)),Bn(i=>i!==!0,!0))}function OA(e,t,n,r){return ke(t).pipe(ar(i=>Vi(PA(i.route.parent,r),kA(i.route,r),LA(e,i.path,n),FA(e,i.route,n))),Bn(i=>i!==!0,!0))}function kA(e,t){return e!==null&&t&&t(new ig(e)),O(!0)}function PA(e,t){return e!==null&&t&&t(new ng(e)),O(!0)}function FA(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return O(!0);let i=r.map(o=>Qo(()=>{let s=Ao(t)??n,a=Ro(o,s),c=SA(a)?a.canActivate(t,e):it(s,()=>a(t,e));return Jn(c).pipe(Bn())}));return O(i).pipe(xo())}function LA(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>EA(s)).filter(s=>s!==null).map(s=>Qo(()=>{let a=s.guards.map(c=>{let l=Ao(s.node)??n,u=Ro(c,l),d=TA(u)?u.canActivateChild(r,e):it(l,()=>u(r,e));return Jn(d).pipe(Bn())});return O(a).pipe(xo())}));return O(o).pipe(xo())}function VA(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return O(!0);let s=o.map(a=>{let c=Ao(t)??i,l=Ro(a,c),u=MA(l)?l.canDeactivate(e,t,n,r):it(c,()=>l(e,t,n,r));return Jn(u).pipe(Bn())});return O(s).pipe(xo())}function BA(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return O(!0);let o=i.map(s=>{let a=Ro(s,e),c=IA(a)?a.canLoad(t,n):it(e,()=>a(t,n));return Jn(c)});return O(o).pipe(xo(),vE(r))}function vE(e){return ld(Qe(t=>{if(typeof t!="boolean")throw eu(e,t)}),X(t=>t===!0))}function UA(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return O(!0);let o=i.map(s=>{let a=Ro(s,e),c=NA(a)?a.canMatch(t,n):it(e,()=>a(t,n));return Jn(c)});return O(o).pipe(xo(),vE(r))}var oa=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},sa=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function bo(e){return Li(new oa(e))}function jA(e){return Li(new I(4e3,!1))}function $A(e){return Li(hE(!1,Rt.GuardRejected))}var fg=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return O(r);if(i.numberOfChildren>1||!i.children[J])return jA(`${t.redirectTo}`);i=i.children[J]}}applyRedirectCommands(t,n,r,i,o){return HA(n,i,o).pipe(X(s=>{if(s instanceof Xn)throw new sa(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new sa(a);return a}))}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new Xn(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,i)}),new pe(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new I(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}};function HA(e,t,n){if(typeof e=="string")return O(e);let r=e,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:l,data:u,title:d}=t;return Jn(it(n,()=>r({params:l,data:u,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:d})))}var pg={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zA(e,t,n,r,i){let o=yE(e,t,n);return o.matched?(r=dA(t,r),UA(r,t,n,i).pipe(X(s=>s===!0?o:C({},pg)))):O(o)}function yE(e,t,n){if(t.path==="**")return GA(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?C({},pg):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||Vx)(n,e,t);if(!i)return C({},pg);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?C(C({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function GA(e){return{matched:!0,parameters:e.length>0?Zb(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Gb(e,t,n,r){return n.length>0&&KA(e,n,r)?{segmentGroup:new pe(t,WA(r,new pe(n,e.children))),slicedSegments:[]}:n.length===0&&ZA(e,n,r)?{segmentGroup:new pe(e.segments,qA(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new pe(e.segments,e.children),slicedSegments:n}}function qA(e,t,n,r){let i={};for(let o of n)if(iu(e,t,o)&&!r[gn(o)]){let s=new pe([],{});i[gn(o)]=s}return C(C({},r),i)}function WA(e,t){let n={};n[J]=t;for(let r of e)if(r.path===""&&gn(r)!==J){let i=new pe([],{});n[gn(r)]=i}return n}function KA(e,t,n){return n.some(r=>iu(e,t,r)&&gn(r)!==J)}function ZA(e,t,n){return n.some(r=>iu(e,t,r))}function iu(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function YA(e,t,n){return t.length===0&&!e.children[n]}var hg=class{};function QA(e,t,n,r,i,o,s="emptyOnly"){return new gg(e,t,n,r,i,s,o).recognize()}var XA=31,gg=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new fg(this.urlSerializer,this.urlTree)}noMatchError(t){return new I(4002,`'${t.segmentGroup}'`)}recognize(){let t=Gb(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(X(({children:n,rootSnapshot:r})=>{let i=new Bt(r,n),o=new Jl("",i),s=rA(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let n=new Co([],Object.freeze({}),Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),J,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,J,n).pipe(X(r=>({children:r,rootSnapshot:n})),kt(r=>{if(r instanceof sa)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof oa?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,o):this.processSegment(t,n,r,r.segments,i,!0,o).pipe(X(s=>s instanceof Bt?[s]:[]))}processChildren(t,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return ke(o).pipe(ar(s=>{let a=r.children[s],c=fA(n,s);return this.processSegmentGroup(t,c,a,s,i)}),Dd((s,a)=>(s.push(...a),s)),cr(null),bd(),We(s=>{if(s===null)return bo(r);let a=_E(s);return JA(a),O(a)}))}processSegment(t,n,r,i,o,s,a){return ke(n).pipe(ar(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,i,o,s,a).pipe(kt(l=>{if(l instanceof oa)return O(null);throw l}))),Bn(c=>!!c),kt(c=>{if(mE(c))return YA(r,i,o)?O(new hg):bo(r);throw c}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,c){return gn(r)!==s&&(s===J||!iu(i,o,r))?bo(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s,c):bo(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:p}=yE(n,i,o);if(!c)return bo(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>XA&&(this.allowRedirects=!1));let f=new Co(o,l,Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,qb(i),gn(i),i.component??i._loadedComponent??null,i,Wb(i)),g=Xl(f,a,this.paramsInheritanceStrategy);return f.params=Object.freeze(g.params),f.data=Object.freeze(g.data),this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,f,t).pipe(Re(v=>this.applyRedirects.lineralizeSegments(i,v)),We(v=>this.processSegment(t,r,n,v.concat(p),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=zA(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(Re(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(Re(({routes:l})=>{let u=r._loadedInjector??t,{parameters:d,consumedSegments:p,remainingSegments:f}=c,g=new Co(p,d,Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,qb(r),gn(r),r.component??r._loadedComponent??null,r,Wb(r)),m=Xl(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(m.params),g.data=Object.freeze(m.data);let{segmentGroup:v,slicedSegments:y}=Gb(n,p,f,l);if(y.length===0&&v.hasChildren())return this.processChildren(u,l,v,g).pipe(X(U=>new Bt(g,U)));if(l.length===0&&y.length===0)return O(new Bt(g,[]));let R=gn(r)===o;return this.processSegment(u,l,v,y,R?J:o,!0,g).pipe(X(U=>new Bt(g,U instanceof Bt?[U]:[])))}))):bo(n)))}getChildConfig(t,n,r){return n.children?O({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?O({routes:n._loadedRoutes,injector:n._loadedInjector}):BA(t,n,r,this.urlSerializer).pipe(We(i=>i?this.configLoader.loadChildren(t,n).pipe(Qe(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):$A(n))):O({routes:[],injector:t})}};function JA(e){e.sort((t,n)=>t.value.outlet===J?-1:n.value.outlet===J?1:t.value.outlet.localeCompare(n.value.outlet))}function eR(e){let t=e.value.routeConfig;return t&&t.path===""}function _E(e){let t=[],n=new Set;for(let r of e){if(!eR(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=_E(r.children);t.push(new Bt(r.value,i))}return t.filter(r=>!n.has(r))}function qb(e){return e.data||{}}function Wb(e){return e.resolve||{}}function tR(e,t,n,r,i,o){return We(s=>QA(e,t,n,r,s.extractedUrl,i,o).pipe(X(({state:a,tree:c})=>Y(C({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function nR(e,t){return We(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return O(n);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of bE(c))s.add(l);let a=0;return ke(s).pipe(ar(c=>o.has(c)?rR(c,r,e,t):(c.data=Xl(c,c.parent,e).resolve,O(void 0))),Qe(()=>a++),Bi(1),We(c=>a===s.size?O(n):St))})}function bE(e){let t=e.children.map(n=>bE(n)).flat();return[e,...t]}function rR(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!uE(i)&&(o[aa]=i.title),Qo(()=>(e.data=Xl(e,e.parent,n).resolve,iR(o,e,t,r).pipe(X(s=>(e._resolvedData=s,e.data=C(C({},e.data),s),null)))))}function iR(e,t,n,r){let i=qh(e);if(i.length===0)return O({});let o={};return ke(i).pipe(We(s=>oR(e[s],t,n,r).pipe(Bn(),Qe(a=>{if(a instanceof ia)throw eu(new So,a);o[s]=a}))),Bi(1),X(()=>o),kt(s=>mE(s)?St:Li(s)))}function oR(e,t,n,r){let i=Ao(t)??r,o=Ro(e,i),s=o.resolve?o.resolve(t,n):it(i,()=>o(t,n));return Jn(s)}function zh(e){return Re(t=>{let n=e(t);return n?ke(n).pipe(X(()=>t)):O(t)})}var EE=(()=>{class e{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===J);return r}getResolvedTitleForRoute(n){return n.data[aa]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(sR),providedIn:"root"})}return e})(),sR=(()=>{class e extends EE{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(F(Ub))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ou=new T("",{providedIn:"root",factory:()=>({})}),su=new T(""),DE=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(ch);loadComponent(n,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return O(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=Jn(it(n,()=>r.loadComponent())).pipe(X(CE),Re(wE),Qe(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),qr(()=>{this.componentLoaders.delete(r)})),o=new rr(i,()=>new se).pipe(ki());return this.componentLoaders.set(r,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return O({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=aR(r,this.compiler,n,this.onLoadEndListener).pipe(qr(()=>{this.childrenLoaders.delete(r)})),s=new rr(o,()=>new se).pipe(ki());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function aR(e,t,n,r){return Jn(it(n,()=>e.loadChildren())).pipe(X(CE),Re(wE),We(i=>i instanceof vl||Array.isArray(i)?O(i):ke(t.compileModuleAsync(i))),X(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(su,[],{optional:!0,self:!0}).flat()),{routes:s.map(yg),injector:o}}))}function cR(e){return e&&typeof e=="object"&&"default"in e}function CE(e){return cR(e)?e.default:e}function wE(e){return O(e)}var _g=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(lR),providedIn:"root"})}return e})(),lR=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),IE=new T("");var SE=new T(""),TE=(()=>{class e{currentNavigation=L(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new se;transitionAbortWithErrorSubject=new se;configLoader=h(DE);environmentInjector=h(Ke);destroyRef=h(Ze);urlSerializer=h(nu);rootContexts=h(ca);location=h(ho);inputBindingEnabled=h(ru,{optional:!0})!==null;titleStrategy=h(EE);options=h(ou,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=h(_g);createViewTransition=h(IE,{optional:!0});navigationErrorHandler=h(SE,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>O(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=i=>this.events.next(new eg(i)),r=i=>this.events.next(new tg(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;je(()=>{this.transitions?.next(Y(C({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))})}setupNavigations(n){return this.transitions=new nt(null),this.transitions.pipe(ct(r=>r!==null),Re(r=>{let i=!1;return O(r).pipe(Re(o=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Rt.SupersededByNewNavigation),St;this.currentTransition=r,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?Y(C({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let s=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new kr(o.id,this.urlSerializer.serialize(o.rawUrl),"",Kl.IgnoredSameUrlNavigation)),o.resolve(!1),St;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return O(o).pipe(Re(c=>(this.events.next(new Mo(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?St:Promise.resolve(c))),tR(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Qe(c=>{r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation.update(u=>(u.finalUrl=c.urlAfterRedirects,u));let l=new Zl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:c,extractedUrl:l,source:u,restoredState:d,extras:p}=o,f=new Mo(c,this.urlSerializer.serialize(l),u,d);this.events.next(f);let g=cE(this.rootComponentType).snapshot;return this.currentTransition=r=Y(C({},o),{targetSnapshot:g,urlAfterRedirects:l,extras:Y(C({},p),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(m=>(m.finalUrl=l,m)),O(r)}else return this.events.next(new kr(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Kl.IgnoredByUrlHandlingStrategy)),o.resolve(!1),St}),Qe(o=>{let s=new Yh(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),X(o=>(this.currentTransition=r=Y(C({},o),{guards:bA(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),AA(this.environmentInjector,o=>this.events.next(o)),Qe(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw eu(this.urlSerializer,o.guardsResult);let s=new Qh(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),ct(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",Rt.GuardRejected),!1)),zh(o=>{if(o.guards.canActivateChecks.length!==0)return O(o).pipe(Qe(s=>{let a=new Xh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),Re(s=>{let a=!1;return O(s).pipe(nR(this.paramsInheritanceStrategy,this.environmentInjector),Qe({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",Rt.NoDataFromResolver)}}))}),Qe(s=>{let a=new Jh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),zh(o=>{let s=a=>{let c=[];if(a.routeConfig?.loadComponent){let l=Ao(a)??this.environmentInjector;c.push(this.configLoader.loadComponent(l,a.routeConfig).pipe(Qe(u=>{a.component=u}),X(()=>{})))}for(let l of a.children)c.push(...s(l));return c};return lc(s(o.targetSnapshot.root)).pipe(cr(null),Vn(1))}),zh(()=>this.afterPreactivation()),Re(()=>{let{currentSnapshot:o,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?ke(a).pipe(X(()=>r)):O(r)}),X(o=>{let s=gA(n.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=Y(C({},o),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),Qe(()=>{this.events.next(new na)}),_A(this.rootContexts,n.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),Vn(1),lr(new z(o=>{let s=r.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(ct(()=>!i&&!r.targetRouterState),Qe(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",Rt.Aborted)}))),Qe({next:o=>{i=!0,this.lastSuccessfulNavigation=je(this.currentNavigation),this.events.next(new Or(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),lr(this.transitionAbortWithErrorSubject.pipe(Qe(o=>{throw o}))),qr(()=>{i||this.cancelNavigationTransition(r,"",Rt.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),kt(o=>{if(this.destroyed)return r.resolve(!1),St;if(i=!0,gE(o))this.events.next(new Qn(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),yA(o)?this.events.next(new No(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let s=new ta(r.id,this.urlSerializer.serialize(r.extractedUrl),o,r.targetSnapshot??void 0);try{let a=it(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof ia){let{message:c,cancellationCode:l}=eu(this.urlSerializer,a);this.events.next(new Qn(r.id,this.urlSerializer.serialize(r.extractedUrl),c,l)),this.events.next(new No(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return St}))}))}cancelNavigationTransition(n,r,i){let o=new Qn(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=je(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function uR(e){return e!==Xs}var dR=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(fR),providedIn:"root"})}return e})(),mg=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},fR=(()=>{class e extends mg{static \u0275fac=(()=>{let n;return function(i){return(n||(n=Ir(e)))(i||e)}})();static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ME=(()=>{class e{urlSerializer=h(nu);options=h(ou,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(ho);urlHandlingStrategy=h(_g);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Xn;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:i}){let o=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=i??o;return s instanceof Xn?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:i}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=n):this.rawUrlTree=i}routerState=cE(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:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(pR),providedIn:"root"})}return e})(),pR=(()=>{class e extends ME{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate")})})}handleRouterEvent(n,r){n instanceof Mo?this.updateStateMemento():n instanceof kr?this.commitTransition(r):n instanceof Zl?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof na?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Qn&&n.code!==Rt.SupersededByNewNavigation&&n.code!==Rt.Redirect?this.restoreHistory(r):n instanceof ta?this.restoreHistory(r,!0):n instanceof Or&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||o){let a=this.browserPageId,c=C(C({},s),this.generateNgRouterState(i,a));this.location.replaceState(n,"",c)}else{let a=C(C({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===n.finalUrl&&o===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(i){return(n||(n=Ir(e)))(i||e)}})();static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function NE(e,t){e.events.pipe(ct(n=>n instanceof Or||n instanceof Qn||n instanceof ta||n instanceof kr),X(n=>n instanceof Or||n instanceof kr?0:(n instanceof Qn?n.code===Rt.Redirect||n.code===Rt.SupersededByNewNavigation:!1)?2:1),ct(n=>n!==2),Vn(1)).subscribe(()=>{t()})}var hR={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gR={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},bg=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=h(Xp);stateManager=h(ME);options=h(ou,{optional:!0})||{};pendingTasks=h(Cn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(TE);urlSerializer=h(nu);location=h(ho);urlHandlingStrategy=h(_g);injector=h(Ke);_events=new se;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=h(dR);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(su,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!h(ru,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Te;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=je(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof Qn&&r.code!==Rt.Redirect&&r.code!==Rt.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Or)this.navigated=!0;else if(r instanceof No){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=C({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||uR(i.source)},s);this.scheduleNavigation(a,Xs,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}uA(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Xs,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,i)=>{this.navigateToSyncWithBrowser(n,i,r)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=C({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(Lt)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return je(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(yg),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(n,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=C(C({},this.currentUrlTree.queryParams),o);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let p=i?i.snapshot:this.routerState.snapshot.root;d=iE(p)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return oE(d,n,u,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=To(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Xs,null,r)}navigate(n,r={skipLocationChange:!1}){return mR(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let i;if(r===!0?i=C({},hR):r===!1?i=C({},gR):i=r,To(n))return jb(this.currentUrlTree,n,i);let o=this.parseUrl(n);return jb(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,p)=>{a=d,c=p});let u=this.pendingTasks.add();return NE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function mR(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new I(4008,!1)}var vR=new T("");function Eg(e,...t){return ei([{provide:su,multi:!0,useValue:e},[],{provide:_i,useFactory:yR,deps:[bg]},{provide:_l,multi:!0,useFactory:_R},t.map(n=>n.\u0275providers)])}function yR(e){return e.routerState.root}function _R(){let e=h(Je);return t=>{let n=e.get(fn);if(t!==n.components[0])return;let r=e.get(bg),i=e.get(bR);e.get(ER)===1&&r.initialNavigation(),e.get(DR,null,{optional:!0})?.setUpPreloading(),e.get(vR,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var bR=new T("",{factory:()=>new se}),ER=new T("",{providedIn:"root",factory:()=>1});var DR=new T("");var xE=[];var AE={providers:[uh({eventCoalescing:!0}),Eg(xE),Bh(Uh())]};function au(e,t){let n=t?.injector??h(Je),r=new Hr(1),i=ze(()=>{let o;try{o=e()}catch(s){je(()=>r.error(s));return}je(()=>r.next(o))},{injector:n,manualCleanup:!0});return n.get(Ze).onDestroy(()=>{i.destroy(),r.complete()}),r.asObservable()}function cu(e,t){let r=!t?.manualCleanup?t?.injector?.get(Ze)??h(Ze):null,i=wR(t?.equal),o;t?.requireSync?o=L({kind:0},{equal:i}):o=L({kind:1,value:t?.initialValue},{equal:i});let s,a=e.subscribe({next:c=>o.set({kind:1,value:c}),error:c=>{o.set({kind:2,error:c}),s?.()},complete:()=>{s?.()}});if(t?.requireSync&&o().kind===0)throw new I(601,!1);return s=r?.onDestroy(a.unsubscribe.bind(a)),He(()=>{let c=o();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new I(601,!1)}},{equal:t?.equal})}function wR(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}var Oo=class e{http=h(Ul);base="/api";getCommits(t={}){let n=new Xt;for(let[r,i]of Object.entries(t))i!=null&&i!==""&&(n=n.set(r,String(i)));return this.http.get(`${this.base}/commits`,{params:n})}getCommit(t){return this.http.get(`${this.base}/commit/${t}`)}getDiff(t){return this.http.get(`${this.base}/diff/${t}`)}getBlame(t){let n=new Xt().set("file",t);return this.http.get(`${this.base}/blame`,{params:n})}getTags(){return this.http.get(`${this.base}/tags`)}getBranches(){return this.http.get(`${this.base}/branches`)}getAuthors(){return this.http.get(`${this.base}/authors`)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};var ht=class e{filters=L({page:1,pageSize:100});commits=L([]);total=L(0);page=L(1);pageSize=L(100);loading=L(!1);error=L(null);authors=L([]);branches=L([]);tags=L([]);selectedHash=L(null);selected=He(()=>{let t=this.selectedHash();return t?this.commits().find(n=>n.hash===t)??null:null});paletteOpen=L(!1);shortcutsOpen=L(!1);graphVisible=L(!0);patchFilters(t){this.filters.update(n=>Y(C(C({},n),t),{page:t.page??1}))}selectHash(t){this.selectedHash.set(t)}selectByOffset(t){let n=this.commits();if(n.length===0)return;let r=this.selectedHash(),i=r?n.findIndex(s=>s.hash===r):-1,o=i===-1?t>0?0:n.length-1:i+t;o=Math.max(0,Math.min(n.length-1,o)),this.selectedHash.set(n[o].hash)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};var UC=Fw(BC(),1);var Og=UC.default;function Rk(e,t){if(e&1&&(b(0,"span",13),w(1),_()),e&2){let n=oe(2);E(),Zt(" \u2190 ",n.file.oldFile," ")}}function Ok(e,t){if(e&1){let n=Dt();b(0,"div",3)(1,"div",4)(2,"span",5),w(3),_(),b(4,"span",6),w(5),_(),re(6,Rk,2,1,"span",7),_(),b(7,"div",8)(8,"span",9),w(9),_(),b(10,"span",10),w(11),_(),b(12,"div",11)(13,"button",12),ce("click",function(){be(n);let i=oe();return Ee(i.mode.set("unified"))}),w(14,"Unified"),_(),b(15,"button",12),ce("click",function(){be(n);let i=oe();return Ee(i.mode.set("split"))}),w(16,"Split"),_()()()()}if(e&2){let n=oe();E(2),Kt("data-status",n.file.status),E(),ie(n.file.status),E(2),ie(n.file.file),E(),N("ngIf",n.file.oldFile&&n.file.oldFile!==n.file.file),E(3),Zt("+",n.file.additions),E(2),Zt("\u2212",n.file.deletions),E(2),Ye("active",n.mode()==="unified"),E(2),Ye("active",n.mode()==="split")}}function kk(e,t){e&1&&(b(0,"div",14),w(1,"Select a file to see its diff."),_())}function Pk(e,t){e&1&&(b(0,"div",14),w(1," Binary file \u2014 diff not displayed. "),_())}function Fk(e,t){if(e&1&&(b(0,"div",19)(1,"span",20),w(2),_(),b(3,"span",21),w(4),_(),b(5,"span",22),w(6),_(),Ce(7,"span",23),_()),e&2){let n=t.$implicit,r=oe(3);Ye("add",n.type==="add")("del",n.type==="del")("hunk",n.type==="hunk")("meta",n.type==="meta"),E(2),ie(n.oldNo??""),E(2),ie(n.newNo??""),E(2),ie(r.sign(n)),E(),N("innerHTML",r.render(n.text),Ds)}}function Lk(e,t){if(e&1&&(b(0,"pre",17)(1,"code"),re(2,Fk,8,12,"div",18),_()()),e&2){let n=oe(2);E(2),N("ngForOf",n.unifiedLines())("ngForTrackBy",n.trackByIdx)}}function Vk(e,t){if(e&1&&(b(0,"div",19)(1,"span",28),w(2),_(),Ce(3,"span",23),_()),e&2){let n=t.$implicit,r=oe(3);Ye("del",n.type==="del")("empty",n.type==="empty")("hunk",n.type==="hunk"),E(2),ie(n.no??""),E(),N("innerHTML",r.render(n.text),Ds)}}function Bk(e,t){if(e&1&&(b(0,"div",19)(1,"span",28),w(2),_(),Ce(3,"span",23),_()),e&2){let n=t.$implicit,r=oe(3);Ye("add",n.type==="add")("empty",n.type==="empty")("hunk",n.type==="hunk"),E(2),ie(n.no??""),E(),N("innerHTML",r.render(n.text),Ds)}}function Uk(e,t){if(e&1&&(b(0,"div",24)(1,"pre",25)(2,"code"),re(3,Vk,4,8,"div",26),_()(),b(4,"pre",25)(5,"code"),re(6,Bk,4,8,"div",27),_()()()),e&2){let n=oe(2);E(3),N("ngForOf",n.splitLines().left)("ngForTrackBy",n.trackByIdx),E(3),N("ngForOf",n.splitLines().right)("ngForTrackBy",n.trackByIdx)}}function jk(e,t){if(e&1&&(Mr(0),re(1,Lk,3,2,"pre",15)(2,Uk,7,4,"div",16),Nr()),e&2){let n=oe();E(),N("ngIf",n.mode()==="unified"),E(),N("ngIf",n.mode()==="split")}}var bu=class e{set fileInput(t){this.file=t,this.parsed.set(t?this.parse(t.changes):[])}file=null;mode=L("unified");parsed=L([]);unifiedLines=He(()=>this.parsed());splitLines=He(()=>{let t=this.parsed(),n=[],r=[],i=0;for(;i<t.length;){let o=t[i];if(o.type==="hunk"||o.type==="meta"){n.push({type:"hunk",text:o.text}),r.push({type:"hunk",text:o.text}),i++;continue}if(o.type==="context"){n.push({type:"context",no:o.oldNo,text:o.text}),r.push({type:"context",no:o.newNo,text:o.text}),i++;continue}let s=[],a=[];for(;i<t.length&&t[i].type==="del";)s.push(t[i++]);for(;i<t.length&&t[i].type==="add";)a.push(t[i++]);let c=Math.max(s.length,a.length);for(let l=0;l<c;l++)n.push(s[l]?{type:"del",no:s[l].oldNo,text:s[l].text}:{type:"empty",text:""}),r.push(a[l]?{type:"add",no:a[l].newNo,text:a[l].text}:{type:"empty",text:""})}return{left:n,right:r}});trackByIdx(t){return t}sign(t){return t.type==="add"?"+":t.type==="del"?"-":" "}render(t){if(!t)return"";let n=this.langForFile(this.file?.file);try{return n?Og.highlight(t,{language:n,ignoreIllegals:!0}).value:Og.highlightAuto(t).value}catch{return this.escape(t)}}langForFile(t){if(!t)return null;let n=t.split(".").pop()?.toLowerCase();if(!n)return null;let r={ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",json:"json",yml:"yaml",yaml:"yaml",md:"markdown",html:"xml",xml:"xml",css:"css",scss:"scss",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",kt:"kotlin",swift:"swift",php:"php",sh:"bash",bash:"bash",sql:"sql",cpp:"cpp",cc:"cpp",c:"c",h:"cpp",hpp:"cpp",cs:"csharp",dockerfile:"dockerfile"};return t.toLowerCase().endsWith("dockerfile")?"dockerfile":r[n]??null}escape(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}parse(t){let n=[];if(!t)return n;let r=0,i=0;for(let o of t.split(`
|
|
10
|
+
`))if(o.startsWith("@@")){n.push({type:"hunk",text:o});let s=o.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);s&&(r=parseInt(s[1],10),i=parseInt(s[2],10))}else o.startsWith("diff --git")||o.startsWith("index ")||o.startsWith("--- ")||o.startsWith("+++ ")||o.startsWith("new file")||o.startsWith("deleted file")||o.startsWith("rename ")||o.startsWith("copy ")||o.startsWith("similarity ")||o.startsWith("Binary files")?n.push({type:"meta",text:o}):o.startsWith("+")?(n.push({type:"add",newNo:i,text:o.substring(1)}),i++):o.startsWith("-")?(n.push({type:"del",oldNo:r,text:o.substring(1)}),r++):o.startsWith(" ")?(n.push({type:"context",oldNo:r,newNo:i,text:o.substring(1)}),r++,i++):o===""&&n.push({type:"context",oldNo:r,newNo:i,text:""});return n}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-diff-viewer"]],inputs:{fileInput:"fileInput"},decls:4,vars:4,consts:[["class","header",4,"ngIf"],["class","empty",4,"ngIf"],[4,"ngIf"],[1,"header"],[1,"file-info"],[1,"status"],[1,"path"],["class","path old",4,"ngIf"],[1,"stats"],[1,"add"],[1,"del"],[1,"toggle"],[1,"btn","btn-ghost",3,"click"],[1,"path","old"],[1,"empty"],["class","unified",4,"ngIf"],["class","split",4,"ngIf"],[1,"unified"],["class","line",3,"add","del","hunk","meta",4,"ngFor","ngForOf","ngForTrackBy"],[1,"line"],[1,"gutter","old"],[1,"gutter","new"],[1,"sign"],[1,"text",3,"innerHTML"],[1,"split"],[1,"side"],["class","line",3,"del","empty","hunk",4,"ngFor","ngForOf","ngForTrackBy"],["class","line",3,"add","empty","hunk",4,"ngFor","ngForOf","ngForTrackBy"],[1,"gutter"]],template:function(n,r){n&1&&re(0,Ok,17,10,"div",0)(1,kk,2,0,"div",1)(2,Pk,2,0,"div",1)(3,jk,3,2,"ng-container",2),n&2&&(N("ngIf",r.file),E(),N("ngIf",!r.file),E(),N("ngIf",r.file&&r.file.status==="binary"),E(),N("ngIf",r.file&&r.file.status!=="binary"))},dependencies:[et,At,Ct],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg-surface)}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.5rem .85rem;border-bottom:1px solid var(--border-soft);background:var(--bg-surface);gap:.75rem}.file-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;min-width:0}.path[_ngcontent-%COMP%]{font-family:var(--font-mono);font-size:12px;color:var(--fg-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.path.old[_ngcontent-%COMP%]{color:var(--fg-muted)}.status[_ngcontent-%COMP%]{text-transform:uppercase;font-size:10px;font-weight:700;padding:2px 6px;border-radius:999px;letter-spacing:.04em;color:var(--accent-fg)}.status[data-status=added][_ngcontent-%COMP%]{background:var(--success)}.status[data-status=deleted][_ngcontent-%COMP%]{background:var(--danger)}.status[data-status=modified][_ngcontent-%COMP%]{background:var(--accent)}.status[data-status=renamed][_ngcontent-%COMP%], .status[data-status=copied][_ngcontent-%COMP%]{background:var(--warning)}.status[data-status=binary][_ngcontent-%COMP%]{background:var(--fg-muted)}.stats[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;font-family:var(--font-mono);font-size:12px}.stats[_ngcontent-%COMP%] .add[_ngcontent-%COMP%]{color:var(--success)}.stats[_ngcontent-%COMP%] .del[_ngcontent-%COMP%]{color:var(--danger)}.toggle[_ngcontent-%COMP%]{display:flex;gap:2px;padding-left:.5rem}.toggle[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:.25rem .6rem;font-size:12px}.toggle[_ngcontent-%COMP%] .btn.active[_ngcontent-%COMP%]{background:var(--accent-soft);color:var(--accent)}.empty[_ngcontent-%COMP%]{padding:2rem 1rem;text-align:center;color:var(--fg-muted)}pre[_ngcontent-%COMP%]{flex:1;margin:0;overflow:auto;padding:0;font-family:var(--font-mono);font-size:12.5px;line-height:1.55;color:var(--fg-primary);background:var(--bg-surface-2);min-height:0}code[_ngcontent-%COMP%]{display:block;min-width:max-content}.line[_ngcontent-%COMP%]{display:grid;grid-template-columns:48px 48px 14px 1fr;align-items:baseline;padding:0 .5rem;white-space:pre}.split[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{grid-template-columns:48px 1fr}.gutter[_ngcontent-%COMP%]{color:var(--fg-subtle);text-align:right;padding-right:.5rem;-webkit-user-select:none;user-select:none;font-variant-numeric:tabular-nums}.sign[_ngcontent-%COMP%]{width:14px;color:var(--fg-subtle)}.text[_ngcontent-%COMP%]{white-space:pre}.line.add[_ngcontent-%COMP%]{background:var(--diff-add-bg);color:var(--diff-add-fg)}.line.add[_ngcontent-%COMP%] .gutter[_ngcontent-%COMP%]{color:var(--diff-add-gutter)}.line.del[_ngcontent-%COMP%]{background:var(--diff-del-bg);color:var(--diff-del-fg)}.line.del[_ngcontent-%COMP%] .gutter[_ngcontent-%COMP%]{color:var(--diff-del-gutter)}.line.hunk[_ngcontent-%COMP%]{background:var(--diff-hunk-bg);color:var(--diff-hunk-fg);font-style:italic}.line.meta[_ngcontent-%COMP%]{color:var(--fg-muted)}.line.empty[_ngcontent-%COMP%]{background:repeating-linear-gradient(45deg,transparent 0 6px,color-mix(in oklab,var(--fg-subtle) 14%,transparent) 6px 12px)}.split[_ngcontent-%COMP%]{flex:1;display:grid;grid-template-columns:1fr 1px 1fr;grid-template-rows:minmax(0,1fr);min-height:0;overflow:hidden}.split[_ngcontent-%COMP%]:before{content:"";grid-column:2;background:var(--border-soft)}.split[_ngcontent-%COMP%] .side[_ngcontent-%COMP%]{width:100%;min-width:0;min-height:0;height:100%;overflow:auto}'],changeDetection:0})};function $k(e,t){if(e&1&&(b(0,"span",22),w(1),_()),e&2){let n=t.$implicit;E(),ie(n)}}function Hk(e,t){if(e&1&&(b(0,"span",23),w(1),_()),e&2){let n=t.$implicit;E(),ie(n)}}function zk(e,t){e&1&&(b(0,"span",24),w(1,"merge"),_())}function Gk(e,t){if(e&1&&(b(0,"pre",25),w(1),_()),e&2){let n=oe().ngIf;E(),ie(n.body)}}function qk(e,t){if(e&1&&(b(0,"span",26),w(1),_()),e&2){let n=oe(2);E(),ie(n.files().length)}}function Wk(e,t){if(e&1&&(b(0,"span",33),w(1),_()),e&2){let n=oe().$implicit;E(),Zt("+",n.additions)}}function Kk(e,t){if(e&1&&(b(0,"span",34),w(1),_()),e&2){let n=oe().$implicit;E(),Zt("\u2212",n.deletions)}}function Zk(e,t){if(e&1){let n=Dt();b(0,"button",27),ce("click",function(){let i=be(n).$implicit,o=oe(2);return Ee(o.selectFile(i))}),Ce(1,"span",28),b(2,"span",29),w(3),_(),b(4,"span",30),re(5,Wk,2,1,"span",31)(6,Kk,2,1,"span",32),_()()}if(e&2){let n,r=t.$implicit,i=oe(2);Ye("selected",r.file===((n=i.activeFile())==null?null:n.file)),E(),Kt("data-status",r.status),E(),N("title",r.file),E(),ie(r.file),E(2),N("ngIf",r.additions),E(),N("ngIf",r.deletions)}}function Yk(e,t){e&1&&(b(0,"div",35),w(1," No files changed. "),_())}function Qk(e,t){e&1&&(b(0,"div",35),w(1,"Loading\u2026"),_())}function Xk(e,t){if(e&1&&(Mr(0),b(1,"header",2)(2,"div",3)(3,"span",4),w(4),_(),b(5,"span",5),re(6,$k,2,1,"span",6)(7,Hk,2,1,"span",7)(8,zk,2,0,"span",8),_()(),b(9,"h2",9),w(10),_(),b(11,"div",10)(12,"span"),w(13),_(),b(14,"span",11),w(15,"\u2022"),_(),b(16,"span"),w(17),Ns(18,"date"),_()(),re(19,Gk,2,1,"pre",12),_(),b(20,"div",13)(21,"aside",14)(22,"div",15)(23,"span"),w(24,"Files"),_(),re(25,qk,2,1,"span",16),_(),b(26,"div",17),re(27,Zk,7,7,"button",18)(28,Yk,2,0,"div",19)(29,Qk,2,0,"div",19),_()(),b(30,"section",20),Ce(31,"app-diff-viewer",21),_()(),Nr()),e&2){let n=t.ngIf,r=oe();E(4),ie(n.shortHash),E(2),N("ngForOf",n.tags),E(),N("ngForOf",n.branches),E(),N("ngIf",n.isMerge),E(2),ie(n.subject),E(3),po("",n.author," <",n.authorEmail,">"),E(4),ie(xs(18,15,n.date,"medium")),E(2),N("ngIf",n.body),E(6),N("ngIf",r.files().length),E(2),N("ngForOf",r.files())("ngForTrackBy",r.trackByFile),E(),N("ngIf",!r.files().length&&!r.loading()),E(),N("ngIf",r.loading()),E(2),N("fileInput",r.activeFile())}}function Jk(e,t){e&1&&(b(0,"div",36)(1,"p",37),w(2,"No commit selected"),_(),b(3,"p",38),w(4," Pick a commit from the list, or press "),b(5,"kbd",39),w(6,"\u2318K"),_(),w(7," to open the command palette. "),_()())}var Eu=class e{state=h(ht);git=h(Oo);commit=this.state.selected;loading=L(!1);files=cu(au(this.commit).pipe(Re(t=>t?(this.loading.set(!0),this.git.getDiff(t.hash).pipe(kt(()=>O([])))):(this.loading.set(!1),O([])))),{initialValue:[]});activeFileIndex=L(0);activeFile=He(()=>{let t=this.files();if(!t.length)return null;let n=Math.min(this.activeFileIndex(),t.length-1);return t[n]});constructor(){ze(()=>{this.files(),this.activeFileIndex.set(0),this.loading.set(!1)})}trackByFile(t,n){return n.file}selectFile(t){let n=this.files().findIndex(r=>r.file===t.file);n>=0&&this.activeFileIndex.set(n)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-commit-detail"]],decls:3,vars:2,consts:[["empty",""],[4,"ngIf","ngIfElse"],[1,"head"],[1,"row"],[1,"hash"],[1,"badges"],["class","badge tag",4,"ngFor","ngForOf"],["class","badge branch",4,"ngFor","ngForOf"],["class","badge merge",4,"ngIf"],[1,"subject"],[1,"meta"],[1,"dot"],["class","body",4,"ngIf"],[1,"split"],[1,"files"],[1,"files-header"],["class","count",4,"ngIf"],[1,"files-list"],["class","file",3,"selected","click",4,"ngFor","ngForOf","ngForTrackBy"],["class","files-empty",4,"ngIf"],[1,"diff"],[3,"fileInput"],[1,"badge","tag"],[1,"badge","branch"],[1,"badge","merge"],[1,"body"],[1,"count"],[1,"file",3,"click"],[1,"status-dot"],[1,"path",3,"title"],[1,"counts"],["class","add",4,"ngIf"],["class","del",4,"ngIf"],[1,"add"],[1,"del"],[1,"files-empty"],[1,"placeholder"],[1,"title"],[1,"hint"],[1,"kbd"]],template:function(n,r){if(n&1&&re(0,Xk,32,18,"ng-container",1)(1,Jk,8,0,"ng-template",null,0,ah),n&2){let i=sh(2);N("ngIf",r.commit())("ngIfElse",i)}},dependencies:[et,At,Ct,bu,Us],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg-app)}.head[_ngcontent-%COMP%]{padding:.85rem 1rem;border-bottom:1px solid var(--border-soft);background:var(--bg-surface)}.row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.4rem}.hash[_ngcontent-%COMP%]{font-family:var(--font-mono);font-size:12px;color:var(--fg-muted);padding:2px 6px;background:var(--bg-surface-2);border:1px solid var(--border-soft);border-radius:4px}.badges[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:4px}.badge[_ngcontent-%COMP%]{font-size:10px;font-weight:600;padding:2px 6px;border-radius:999px}.badge.tag[_ngcontent-%COMP%]{background:#d9770626;color:var(--warning)}.badge.branch[_ngcontent-%COMP%]{background:var(--accent-soft);color:var(--accent)}.badge.merge[_ngcontent-%COMP%]{background:#8b5cf62e;color:#8b5cf6}.subject[_ngcontent-%COMP%]{font-size:18px;margin:0 0 4px;font-weight:600}.meta[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--fg-muted)}.meta[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{opacity:.5}.body[_ngcontent-%COMP%]{white-space:pre-wrap;font-family:var(--font-mono);font-size:12px;color:var(--fg-secondary);background:var(--bg-surface-2);border:1px solid var(--border-soft);border-radius:var(--radius-sm);padding:.5rem .75rem;margin-top:.5rem;max-height:160px;overflow:auto}.split[_ngcontent-%COMP%]{flex:1;display:grid;grid-template-columns:280px 1fr;grid-template-rows:minmax(0,1fr);min-height:0;overflow:hidden}.files[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:0;background:var(--bg-surface);border-right:1px solid var(--border-soft)}.files-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:.5rem .85rem;font-size:12px;color:var(--fg-muted);border-bottom:1px solid var(--border-soft)}.count[_ngcontent-%COMP%]{background:var(--bg-surface-2);padding:0 6px;border-radius:999px;font-size:11px}.files-list[_ngcontent-%COMP%]{overflow:auto;flex:1;min-height:0}.file[_ngcontent-%COMP%]{display:grid;grid-template-columns:10px 1fr auto;gap:.5rem;align-items:center;width:100%;padding:.5rem .85rem;border:0;background:transparent;color:inherit;cursor:pointer;text-align:left;border-bottom:1px solid var(--border-soft);font-size:12px}.file[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.file.selected[_ngcontent-%COMP%]{background:var(--bg-selected)}.file[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{font-family:var(--font-mono);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:left}.status-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background:var(--accent)}.status-dot[data-status=added][_ngcontent-%COMP%]{background:var(--success)}.status-dot[data-status=deleted][_ngcontent-%COMP%]{background:var(--danger)}.status-dot[data-status=renamed][_ngcontent-%COMP%], .status-dot[data-status=copied][_ngcontent-%COMP%]{background:var(--warning)}.status-dot[data-status=binary][_ngcontent-%COMP%]{background:var(--fg-muted)}.counts[_ngcontent-%COMP%]{display:flex;gap:6px;font-family:var(--font-mono);font-size:11px}.counts[_ngcontent-%COMP%] .add[_ngcontent-%COMP%]{color:var(--success)}.counts[_ngcontent-%COMP%] .del[_ngcontent-%COMP%]{color:var(--danger)}.files-empty[_ngcontent-%COMP%]{padding:1rem;color:var(--fg-muted);font-size:12px;text-align:center}.diff[_ngcontent-%COMP%]{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.placeholder[_ngcontent-%COMP%]{flex:1;display:grid;place-items:center;text-align:center;color:var(--fg-muted)}.placeholder[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;margin-bottom:4px;color:var(--fg-secondary)}.placeholder[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{font-size:13px}"],changeDetection:0})};var eP=["canvas"],tP=["scroll"],Vo=28,kg=18,jC=5,$C=14,Pg=14,HC=["#4f46e5","#06b6d4","#f59e0b","#ef4444","#10b981","#8b5cf6","#ec4899","#0ea5e9"],Du=class e{state=h(ht);canvasRef;scrollRef;nodes=[];rowByHash=new Map;laneCount=1;constructor(){ze(()=>{this.layout(this.state.commits()),this.draw()}),ze(()=>{this.state.selectedHash(),this.draw()})}ngAfterViewInit(){this.canvasRef.nativeElement.addEventListener("click",t=>this.onClick(t)),this.draw()}onResize(){this.draw()}layout(t){if(this.nodes=[],this.rowByHash.clear(),!t.length){this.laneCount=1;return}let n=[],r=i=>{let o=n.indexOf(i);if(o>=0)return o;let s=n.indexOf(null);return s>=0?(n[s]=i,s):(n.push(i),n.length-1)};for(let i=0;i<t.length;i++){let o=t[i],s=r(o.hash),a={commit:o,row:i,lane:s};this.nodes.push(a),this.rowByHash.set(o.hash,a);let[c,...l]=o.parents;n[s]=c??null;for(let u of l)if(n.indexOf(u)===-1){let d=n.indexOf(null);d>=0?n[d]=u:n.push(u)}for(;n.length&&n[n.length-1]===null;)n.pop()}this.laneCount=Math.max(1,this.nodes.reduce((i,o)=>Math.max(i,o.lane+1),0))}draw(){let t=this.canvasRef?.nativeElement;if(!t)return;let n=window.devicePixelRatio||1,r=$C*2+this.laneCount*kg,i=Pg*2+this.nodes.length*Vo;t.width=Math.floor(r*n),t.height=Math.floor(i*n),t.style.width=`${r}px`,t.style.height=`${i}px`;let o=t.getContext("2d");if(o.setTransform(n,0,0,n,0,0),o.clearRect(0,0,r,i),!this.nodes.length)return;let s=u=>$C+u*kg+kg/2,a=u=>Pg+u*Vo+Vo/2,c=u=>HC[u%HC.length];o.lineWidth=2;for(let u of this.nodes)for(let d of u.commit.parents){let p=this.rowByHash.get(d);if(!p)continue;o.strokeStyle=c(p.lane);let f=s(u.lane),g=a(u.row),m=s(p.lane),v=a(p.row);if(o.beginPath(),f===m)o.moveTo(f,g),o.lineTo(m,v);else{o.moveTo(f,g);let y=g+Vo*.6;o.bezierCurveTo(f,y,m,g+Vo*.4,m,y),o.lineTo(m,v)}o.stroke()}let l=this.state.selectedHash();for(let u of this.nodes){let d=s(u.lane),p=a(u.row),f=c(u.lane),g=u.commit.hash===l,m=g?jC+2:jC;o.beginPath(),o.arc(d,p,m,0,Math.PI*2),o.fillStyle=u.commit.isMerge?"transparent":f,o.fill(),o.lineWidth=u.commit.isMerge||g?2.5:1.5,o.strokeStyle=f,o.stroke(),g&&(o.beginPath(),o.arc(d,p,m+4,0,Math.PI*2),o.strokeStyle=f,o.globalAlpha=.35,o.lineWidth=2,o.stroke(),o.globalAlpha=1)}}onClick(t){let n=this.canvasRef.nativeElement.getBoundingClientRect(),r=t.clientY-n.top,i=Math.floor((r-Pg)/Vo),o=this.nodes[i];o&&this.state.selectHash(o.commit.hash)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-commit-graph"]],viewQuery:function(n,r){if(n&1&&(Mn(eP,7),Mn(tP,7)),n&2){let i;Nn(i=xn())&&(r.canvasRef=i.first),Nn(i=xn())&&(r.scrollRef=i.first)}},hostBindings:function(n,r){n&1&&ce("resize",function(){return r.onResize()},pi)},decls:9,vars:0,consts:[["scroll",""],["canvas",""],[1,"header"],[1,"hint"],[1,"scroll"]],template:function(n,r){n&1&&(qn(0,"div",2)(1,"span"),w(2,"Graph"),Wn(),qn(3,"span",3),w(4,"Swim-lane visualization"),Wn()(),qn(5,"div",4,0),uo(7,"canvas",null,1),Wn())},dependencies:[et],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg-surface);border-right:1px solid var(--border-soft)}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:.5rem .85rem;border-bottom:1px solid var(--border-soft);font-size:12px;color:var(--fg-muted)}.scroll[_ngcontent-%COMP%]{flex:1;overflow:auto;min-height:0}canvas[_ngcontent-%COMP%]{display:block}"],changeDetection:0})};function pa(e,t=0){return nP(e)?Number(e):arguments.length===2?t:0}function nP(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function zC(e){return e instanceof ft?e.nativeElement:e}var Fg;try{Fg=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Fg=!1}var Cu=(()=>{class e{_platformId=h(Sr);isBrowser=this._platformId?vb(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||Fg)&&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 \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var rP=new T("cdk-dir-doc",{providedIn:"root",factory:iP});function iP(){return h(xe)}var oP=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function sP(e){let t=e?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?oP.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var GC=(()=>{class e{get value(){return this.valueSignal()}valueSignal=L("ltr");change=new Ve;constructor(){let n=h(rP,{optional:!0});if(n){let r=n.body?n.body.dir:null,i=n.documentElement?n.documentElement.dir:null;this.valueSignal.set(sP(r||i||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var mn=(function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e})(mn||{}),wu,Di;function qC(){if(Di==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Di=!1,Di;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Di=!0;else{let e=Element.prototype.scrollTo;e?Di=!/\{\s*\[native code\]\s*\}/.test(e.toString()):Di=!1}}return Di}function Bo(){if(typeof document!="object"||!document)return mn.NORMAL;if(wu==null){let e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";let n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",e.appendChild(n),document.body.appendChild(e),wu=mn.NORMAL,e.scrollLeft===0&&(e.scrollLeft=1,wu=e.scrollLeft===0?mn.NEGATED:mn.INVERTED),e.remove()}return wu}var Lg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({})}return e})();var Iu=class{};function WC(e){return e&&typeof e.connect=="function"&&!(e instanceof rr)}var Su=class extends Iu{_data;constructor(t){super(),this._data=t}connect(){return Gr(this._data)?this._data:O(this._data)}disconnect(){}},ha=(function(e){return e[e.REPLACED=0]="REPLACED",e[e.INSERTED=1]="INSERTED",e[e.MOVED=2]="MOVED",e[e.REMOVED=3]="REMOVED",e})(ha||{}),Vg=new T("_ViewRepeater"),Tu=class{viewCacheSize=20;_viewCache=[];applyChanges(t,n,r,i,o){t.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=()=>r(s,a,c);l=this._insertView(d,c,n,i(s)),u=l?ha.INSERTED:ha.REPLACED}else c==null?(this._detachAndCacheView(a,n),u=ha.REMOVED):(l=this._moveView(a,c,n,i(s)),u=ha.MOVED);o&&o({context:l?.context,operation:u,record:s})})}detach(){for(let t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,n,r,i){let o=this._insertViewFromCache(n,r);if(o){o.context.$implicit=i;return}let s=t();return r.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(t,n){let r=n.detach(t);this._maybeCacheView(r,n)}_moveView(t,n,r,i){let o=r.get(t);return r.move(o,n),o.context.$implicit=i,o}_maybeCacheView(t,n){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(t);else{let r=n.indexOf(t);r===-1?t.destroy():n.remove(r)}}_insertViewFromCache(t,n){let r=this._viewCache.pop();return r&&n.insert(r,t),r||null}};var aP=["contentWrapper"],cP=["*"],QC=new T("VIRTUAL_SCROLL_STRATEGY"),Bg=class{_scrolledIndexChange=new se;scrolledIndexChange=this._scrolledIndexChange.pipe(_d());_viewport=null;_itemSize;_minBufferPx;_maxBufferPx;constructor(t,n,r){this._itemSize=t,this._minBufferPx=n,this._maxBufferPx=r}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,n,r){r<n,this._itemSize=t,this._minBufferPx=n,this._maxBufferPx=r,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,n){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,n)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;let t=this._viewport.getRenderedRange(),n={start:t.start,end:t.end},r=this._viewport.getViewportSize(),i=this._viewport.getDataLength(),o=this._viewport.measureScrollOffset(),s=this._itemSize>0?o/this._itemSize:0;if(n.end>i){let c=Math.ceil(r/this._itemSize),l=Math.max(0,Math.min(s,i-c));s!=l&&(s=l,o=l*this._itemSize,n.start=Math.floor(s)),n.end=Math.max(0,Math.min(i,n.start+c))}let a=o-n.start*this._itemSize;if(a<this._minBufferPx&&n.start!=0){let c=Math.ceil((this._maxBufferPx-a)/this._itemSize);n.start=Math.max(0,n.start-c),n.end=Math.min(i,Math.ceil(s+(r+this._minBufferPx)/this._itemSize))}else{let c=n.end*this._itemSize-(o+r);if(c<this._minBufferPx&&n.end!=i){let l=Math.ceil((this._maxBufferPx-c)/this._itemSize);l>0&&(n.end=Math.min(i,n.end+l),n.start=Math.max(0,Math.floor(s-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(n),this._viewport.setRenderedContentOffset(Math.round(this._itemSize*n.start)),this._scrolledIndexChange.next(Math.floor(s))}};function lP(e){return e._scrollStrategy}var XC=(()=>{class e{get itemSize(){return this._itemSize}set itemSize(n){this._itemSize=pa(n)}_itemSize=20;get minBufferPx(){return this._minBufferPx}set minBufferPx(n){this._minBufferPx=pa(n)}_minBufferPx=100;get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(n){this._maxBufferPx=pa(n)}_maxBufferPx=200;_scrollStrategy=new Bg(this.itemSize,this.minBufferPx,this.maxBufferPx);ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Fe({type:e,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[pn([{provide:QC,useFactory:lP,deps:[on(()=>e)]}]),wr]})}return e})(),uP=20,dP=(()=>{class e{_ngZone=h(De);_platform=h(Cu);_renderer=h(Tn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new se;_scrolledCount=0;scrollContainers=new Map;register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=uP){return this._platform.isBrowser?new z(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let i=n>0?this._scrolled.pipe(Xo(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):O()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let i=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(ct(o=>!o||i.indexOf(o)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((i,o)=>{this._scrollableContainsElement(o,n)&&r.push(o)}),r}_scrollableContainsElement(n,r){let i=zC(r),o=n.getElementRef().nativeElement;do if(i==o)return!0;while(i=i.parentElement);return!1}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),JC=(()=>{class e{elementRef=h(ft);scrollDispatcher=h(dP);ngZone=h(De);dir=h(GC,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new se;_renderer=h(Gn);_cleanupScroll;_elementScrolled=new se;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",n=>this._elementScrolled.next(n))),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(n){let r=this.elementRef.nativeElement,i=this.dir&&this.dir.value=="rtl";n.left==null&&(n.left=i?n.end:n.start),n.right==null&&(n.right=i?n.start:n.end),n.bottom!=null&&(n.top=r.scrollHeight-r.clientHeight-n.bottom),i&&Bo()!=mn.NORMAL?(n.left!=null&&(n.right=r.scrollWidth-r.clientWidth-n.left),Bo()==mn.INVERTED?n.left=n.right:Bo()==mn.NEGATED&&(n.left=n.right?-n.right:n.right)):n.right!=null&&(n.left=r.scrollWidth-r.clientWidth-n.right),this._applyScrollToOptions(n)}_applyScrollToOptions(n){let r=this.elementRef.nativeElement;qC()?r.scrollTo(n):(n.top!=null&&(r.scrollTop=n.top),n.left!=null&&(r.scrollLeft=n.left))}measureScrollOffset(n){let r="left",i="right",o=this.elementRef.nativeElement;if(n=="top")return o.scrollTop;if(n=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let s=this.dir&&this.dir.value=="rtl";return n=="start"?n=s?i:r:n=="end"&&(n=s?r:i),s&&Bo()==mn.INVERTED?n==r?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&Bo()==mn.NEGATED?n==r?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:n==r?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Fe({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return e})(),fP=20,pP=(()=>{class e{_platform=h(Cu);_listeners;_viewportSize;_change=new se;_document=h(xe);constructor(){let n=h(De),r=h(Tn).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let i=o=>this._change.next(o);this._listeners=[r.listen("window","resize",i),r.listen("window","orientationchange",i)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:i}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+i,right:n.left+r,height:i,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),i=n.documentElement,o=i.getBoundingClientRect(),s=-o.top||n.body.scrollTop||r.scrollY||i.scrollTop||0,a=-o.left||n.body.scrollLeft||r.scrollX||i.scrollLeft||0;return{top:s,left:a}}change(n=fP){return n>0?this._change.pipe(Xo(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),KC=new T("VIRTUAL_SCROLLABLE"),hP=(()=>{class e extends JC{constructor(){super()}measureViewportSize(n){let r=this.elementRef.nativeElement;return n==="horizontal"?r.clientWidth:r.clientHeight}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Fe({type:e,features:[Wt]})}return e})();function gP(e,t){return e.start==t.start&&e.end==t.end}var mP=typeof requestAnimationFrame<"u"?md:gd,Ug=(()=>{class e extends hP{elementRef=h(ft);_changeDetectorRef=h(Ar);_scrollStrategy=h(QC,{optional:!0});scrollable=h(KC,{optional:!0});_platform=h(Cu);_detachedSubject=new se;_renderedRangeSubject=new se;get orientation(){return this._orientation}set orientation(n){this._orientation!==n&&(this._orientation=n,this._calculateSpacerSize())}_orientation="vertical";appendOnly=!1;scrolledIndexChange=new z(n=>this._scrollStrategy.scrolledIndexChange.subscribe(r=>Promise.resolve().then(()=>this.ngZone.run(()=>n.next(r)))));_contentWrapper;renderedRangeStream=this._renderedRangeSubject;_totalContentSize=0;_totalContentWidth=L("");_totalContentHeight=L("");_renderedContentTransform;_renderedRange={start:0,end:0};_dataLength=0;_viewportSize=0;_forOf;_renderedContentOffset=0;_renderedContentOffsetNeedsRewrite=!1;_changeDetectionNeeded=L(!1);_runAfterChangeDetection=[];_viewportChanges=Te.EMPTY;_injector=h(Je);_isDestroyed=!1;constructor(){super();let n=h(pP);this._scrollStrategy,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);let r=ze(()=>{this._changeDetectionNeeded()&&this._doChangeDetection()},{injector:h(fn).injector});h(Ze).onDestroy(()=>void r.destroy())}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Ui(null),Xo(0,mP),lr(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(n){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=n,this._forOf.dataStream.pipe(lr(this._detachedSubject)).subscribe(r=>{let i=r.length;i!==this._dataLength&&(this._dataLength=i,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(n){return this.getElementRef().nativeElement.getBoundingClientRect()[n]}setTotalContentSize(n){this._totalContentSize!==n&&(this._totalContentSize=n,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(n){gP(this._renderedRange,n)||(this.appendOnly&&(n={start:0,end:Math.max(this._renderedRange.end,n.end)}),this._renderedRangeSubject.next(this._renderedRange=n),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(n,r="to-start"){n=this.appendOnly&&r==="to-start"?0:n;let i=this.dir&&this.dir.value=="rtl",o=this.orientation=="horizontal",s=o?"X":"Y",c=`translate${s}(${Number((o&&i?-1:1)*n)}px)`;this._renderedContentOffset=n,r==="to-end"&&(c+=` translate${s}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(n,r="auto"){let i={behavior:r};this.orientation==="horizontal"?i.start=n:i.top=n,this.scrollable.scrollTo(i)}scrollToIndex(n,r="auto"){this._scrollStrategy.scrollToIndex(n,r)}measureScrollOffset(n){let r;return this.scrollable==this?r=i=>super.measureScrollOffset(i):r=i=>this.scrollable.measureScrollOffset(i),Math.max(0,r(n??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(n){let r,i="left",o="right",s=this.dir?.value=="rtl";n=="start"?r=s?o:i:n=="end"?r=s?i:o:n?r=n:r=this.orientation==="horizontal"?"left":"top";let a=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-a}measureRenderedContentSize(){let n=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?n.offsetWidth:n.offsetHeight}measureRangeSize(n){return this._forOf?this._forOf.measureRangeSize(n,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(n){n&&this._runAfterChangeDetection.push(n),!je(this._changeDetectionNeeded)&&this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this.ngZone.run(()=>{this._changeDetectionNeeded.set(!0)})})})}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,lo(()=>{this._changeDetectionNeeded.set(!1);let n=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let r of n)r()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight.set(this.orientation==="horizontal"?"":`${this._totalContentSize}px`),this._totalContentWidth.set(this.orientation==="horizontal"?`${this._totalContentSize}px`:"")}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Be({type:e,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(r,i){if(r&1&&Mn(aP,7),r&2){let o;Nn(o=xn())&&(i._contentWrapper=o.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(r,i){r&2&&Ye("cdk-virtual-scroll-orientation-horizontal",i.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",i.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",ks]},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[pn([{provide:JC,useFactory:(n,r)=>n||r,deps:[[new sl,new Ep(KC)],e]}]),Wt],ngContentSelectors:cP,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(r,i){r&1&&(ih(),qn(0,"div",1,0),oh(2),Wn(),uo(3,"div",2)),r&2&&(E(3),fo("width",i._totalContentWidth())("height",i._totalContentHeight()))},styles:[`cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}
|
|
11
|
+
`],encapsulation:2,changeDetection:0})}return e})();function ZC(e,t,n){let r=n;if(!r.getBoundingClientRect)return 0;let i=r.getBoundingClientRect();return e==="horizontal"?t==="start"?i.left:i.right:t==="start"?i.top:i.bottom}var ew=(()=>{class e{_viewContainerRef=h(dn);_template=h(Sn);_differs=h(Os);_viewRepeater=h(Vg);_viewport=h(Ug,{skipSelf:!0});viewChange=new se;_dataSourceChanges=new se;get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(n){this._cdkVirtualForOf=n,WC(n)?this._dataSourceChanges.next(n):this._dataSourceChanges.next(new Su(Gr(n)?n:Array.from(n||[])))}_cdkVirtualForOf;get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(n){this._needsUpdate=!0,this._cdkVirtualForTrackBy=n?(r,i)=>n(r+(this._renderedRange?this._renderedRange.start:0),i):void 0}_cdkVirtualForTrackBy;set cdkVirtualForTemplate(n){n&&(this._needsUpdate=!0,this._template=n)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(n){this._viewRepeater.viewCacheSize=pa(n)}dataStream=this._dataSourceChanges.pipe(Ui(null),Ed(),Re(([n,r])=>this._changeDataSource(n,r)),wd(1));_differ=null;_data;_renderedItems;_renderedRange;_needsUpdate=!1;_destroyed=new se;constructor(){let n=h(De);this.dataStream.subscribe(r=>{this._data=r,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(lr(this._destroyed)).subscribe(r=>{this._renderedRange=r,this.viewChange.observers.length&&n.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(n,r){if(n.start>=n.end)return 0;n.start<this._renderedRange.start||n.end>this._renderedRange.end;let i=n.start-this._renderedRange.start,o=n.end-n.start,s,a;for(let c=0;c<o;c++){let l=this._viewContainerRef.get(c+i);if(l&&l.rootNodes.length){s=a=l.rootNodes[0];break}}for(let c=o-1;c>-1;c--){let l=this._viewContainerRef.get(c+i);if(l&&l.rootNodes.length){a=l.rootNodes[l.rootNodes.length-1];break}}return s&&a?ZC(r,"end",a)-ZC(r,"start",s):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let n=this._differ.diff(this._renderedItems);n?this._applyChanges(n):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((n,r)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(n,r):r)),this._needsUpdate=!0)}_changeDataSource(n,r){return n&&n.disconnect(this),this._needsUpdate=!0,r?r.connect(this):O()}_updateContext(){let n=this._data.length,r=this._viewContainerRef.length;for(;r--;){let i=this._viewContainerRef.get(r);i.context.index=this._renderedRange.start+r,i.context.count=n,this._updateComputedContextProperties(i.context),i.detectChanges()}}_applyChanges(n){this._viewRepeater.applyChanges(n,this._viewContainerRef,(o,s,a)=>this._getEmbeddedViewArgs(o,a),o=>o.item),n.forEachIdentityChange(o=>{let s=this._viewContainerRef.get(o.currentIndex);s.context.$implicit=o.item});let r=this._data.length,i=this._viewContainerRef.length;for(;i--;){let o=this._viewContainerRef.get(i);o.context.index=this._renderedRange.start+i,o.context.count=r,this._updateComputedContextProperties(o.context)}}_updateComputedContextProperties(n){n.first=n.index===0,n.last=n.index===n.count-1,n.even=n.index%2===0,n.odd=!n.even}_getEmbeddedViewArgs(n,r){return{templateRef:this._template,context:{$implicit:n.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:r}}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Fe({type:e,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[pn([{provide:Vg,useClass:Tu}])]})}return e})();var YC=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({})}return e})(),tw=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({imports:[Lg,YC,Lg,YC]})}return e})();function yP(e,t){e&1&&Ce(0,"span",19)}function _P(e,t){if(e&1&&(b(0,"span",23),w(1),_()),e&2){let n=t.$implicit;E(),ie(n)}}function bP(e,t){if(e&1&&(b(0,"span",24),w(1),_()),e&2){let n=t.$implicit;E(),ie(n)}}function EP(e,t){if(e&1&&(b(0,"span",20),re(1,_P,2,1,"span",21)(2,bP,2,1,"span",22),_()),e&2){let n=oe().$implicit;E(),N("ngForOf",n.tags),E(),N("ngForOf",n.branches)}}function DP(e,t){if(e&1){let n=Dt();b(0,"button",7),ce("click",function(){let i=be(n).$implicit,o=oe();return Ee(o.select(i))}),b(1,"span",8),Ce(2,"span",9),re(3,yP,1,0,"span",10),_(),b(4,"span",11)(5,"span",12),w(6),_(),b(7,"span",13)(8,"span",14),w(9),_(),b(10,"span",15),w(11,"\u2022"),_(),b(12,"span",16),w(13),_(),b(14,"span",15),w(15,"\u2022"),_(),b(16,"span",17),w(17),Ns(18,"date"),_()()(),re(19,EP,3,2,"span",18),_()}if(e&2){let n=t.$implicit,r=t.index,i=oe();Ye("selected",n.hash===i.selectedHash()),Kt("aria-current",n.hash===i.selectedHash()?"true":null),E(2),fo("background",i.laneColor(n)),Ye("merge",n.isMerge),E(),N("ngIf",r<i.commits().length-1),E(2),N("title",n.subject),E(),ie(n.subject),E(3),ie(n.shortHash),E(4),ie(n.author),E(4),ie(xs(18,14,n.date,"MMM d, y, h:mm a")),E(2),N("ngIf",n.branches.length||n.tags.length)}}function CP(e,t){e&1&&(b(0,"div",25)(1,"p"),w(2,"No commits match your filters."),_()())}var Mu=class e{state=h(ht);commits=this.state.commits;selectedHash=this.state.selectedHash;trackByHash(t,n){return n.hash}select(t){this.state.selectHash(t.hash)}laneColors=["#4f46e5","#06b6d4","#f59e0b","#ef4444","#10b981","#8b5cf6"];laneColor(t){let n=0,r=t.branches[0]??t.parents[0]??t.hash;for(let i=0;i<r.length;i++)n=n*31+r.charCodeAt(i)>>>0;return this.laneColors[n%this.laneColors.length]}onKey(t){if(!this.isTyping(t.target)){if(t.key==="j")t.preventDefault(),this.state.selectByOffset(1);else if(t.key==="k")t.preventDefault(),this.state.selectByOffset(-1);else if(t.key==="g"){t.preventDefault();let n=this.state.commits();n.length&&this.state.selectHash(n[0].hash)}else if(t.key==="G"){t.preventDefault();let n=this.state.commits();n.length&&this.state.selectHash(n[n.length-1].hash)}}}isTyping(t){return t instanceof HTMLElement?["INPUT","TEXTAREA","SELECT"].includes(t.tagName)||t.isContentEditable:!1}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-commit-list"]],hostBindings:function(n,r){n&1&&ce("keydown",function(o){return r.onKey(o)},pi)},decls:13,vars:6,consts:[[1,"header"],[1,"count"],[1,"hint"],[1,"kbd"],["minBufferPx","640","maxBufferPx","1280",1,"viewport",3,"itemSize"],["class","row",3,"selected","click",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],["class","empty",4,"ngIf"],[1,"row",3,"click"],[1,"lane"],[1,"dot"],["class","line",4,"ngIf"],[1,"content"],[1,"subject",3,"title"],[1,"meta"],[1,"hash"],[1,"dot-sep"],[1,"author"],[1,"date"],["class","badges",4,"ngIf"],[1,"line"],[1,"badges"],["class","badge tag",4,"ngFor","ngForOf"],["class","badge branch",4,"ngFor","ngForOf"],[1,"badge","tag"],[1,"badge","branch"],[1,"empty"]],template:function(n,r){n&1&&(b(0,"div",0)(1,"span",1),w(2),_(),b(3,"span",2)(4,"kbd",3),w(5,"j"),_(),w(6,"/"),b(7,"kbd",3),w(8,"k"),_(),w(9," navigate "),_()(),b(10,"cdk-virtual-scroll-viewport",4),re(11,DP,20,17,"button",5)(12,CP,3,0,"div",6),_()),n&2&&(E(2),po("",r.commits().length," of ",r.state.total()),E(8),N("itemSize",64),E(),N("cdkVirtualForOf",r.commits())("cdkVirtualForTrackBy",r.trackByHash),E(),N("ngIf",!r.commits().length&&!r.state.loading()))},dependencies:[et,At,Ct,tw,XC,ew,Ug,Us],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg-surface);border-right:1px solid var(--border-soft)}.header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:.5rem .85rem;border-bottom:1px solid var(--border-soft);font-size:12px;color:var(--fg-muted);background:var(--bg-surface)}.viewport[_ngcontent-%COMP%]{flex:1;min-height:0}.row[_ngcontent-%COMP%]{display:grid;grid-template-columns:24px 1fr auto;gap:.5rem;align-items:center;width:100%;height:64px;padding:.45rem .85rem;background:transparent;border:0;border-bottom:1px solid var(--border-soft);color:inherit;text-align:left;cursor:pointer;transition:background .1s}.row[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.row.selected[_ngcontent-%COMP%]{background:var(--bg-selected)}.row.selected[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{color:var(--fg-primary)}.lane[_ngcontent-%COMP%]{position:relative;width:24px;height:100%;display:flex;align-items:center;justify-content:center}.dot[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--bg-surface);z-index:1}.dot.merge[_ngcontent-%COMP%]{background:transparent;border:2px solid var(--accent)}.line[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;width:2px;height:50%;background:var(--border-strong);transform:translate(-50%)}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0;gap:2px}.subject[_ngcontent-%COMP%]{font-weight:500;color:var(--fg-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta[_ngcontent-%COMP%]{display:flex;gap:6px;font-size:11px;color:var(--fg-muted);align-items:center}.hash[_ngcontent-%COMP%]{font-family:var(--font-mono)}.dot-sep[_ngcontent-%COMP%]{opacity:.5}.badges[_ngcontent-%COMP%]{display:flex;gap:4px;flex-wrap:wrap}.badge[_ngcontent-%COMP%]{font-size:10px;font-weight:600;padding:2px 6px;border-radius:999px;letter-spacing:.02em}.badge.tag[_ngcontent-%COMP%]{background:#d9770626;color:var(--warning)}.badge.branch[_ngcontent-%COMP%]{background:var(--accent-soft);color:var(--accent)}.empty[_ngcontent-%COMP%]{padding:2rem 1rem;text-align:center;color:var(--fg-muted)}"],changeDetection:0})};var uw=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(de(Gn),de(ft))};static \u0275dir=Fe({type:e})}return e})(),Gg=(()=>{class e extends uw{static \u0275fac=(()=>{let n;return function(i){return(n||(n=Ir(e)))(i||e)}})();static \u0275dir=Fe({type:e,features:[Wt]})}return e})(),Ou=new T("");var wP={provide:Ou,useExisting:on(()=>Ho),multi:!0};function IP(){let e=Yt()?Yt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var SP=new T(""),Ho=(()=>{class e extends uw{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!IP())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(de(Gn),de(ft),de(SP,8))};static \u0275dir=Fe({type:e,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(r,i){r&1&&ce("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[pn([wP]),Wt]})}return e})();var TP=new T(""),MP=new T("");function dw(e){return e!=null}function fw(e){return Tr(e)?ke(e):e}function pw(e){let t={};return e.forEach(n=>{t=n!=null?C(C({},t),n):t}),Object.keys(t).length===0?null:t}function hw(e,t){return t.map(n=>n(e))}function NP(e){return!e.validate}function gw(e){return e.map(t=>NP(t)?t:n=>t.validate(n))}function xP(e){if(!e)return null;let t=e.filter(dw);return t.length==0?null:function(n){return pw(hw(n,t))}}function mw(e){return e!=null?xP(gw(e)):null}function AP(e){if(!e)return null;let t=e.filter(dw);return t.length==0?null:function(n){let r=hw(n,t).map(fw);return vd(r).pipe(X(pw))}}function vw(e){return e!=null?AP(gw(e)):null}function nw(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function RP(e){return e._rawValidators}function OP(e){return e._rawAsyncValidators}function jg(e){return e?Array.isArray(e)?e:[e]:[]}function xu(e,t){return Array.isArray(e)?e.includes(t):e===t}function rw(e,t){let n=jg(t);return jg(e).forEach(i=>{xu(n,i)||n.push(i)}),n}function iw(e,t){return jg(t).filter(n=>!xu(e,n))}var Au=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(t){this._rawValidators=t||[],this._composedValidatorFn=mw(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=vw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},$g=class extends Au{name;get formDirective(){return null}get path(){return null}},_a=class extends Au{_parent=null;name=null;valueAccessor=null},Hg=class{_cd;constructor(t){this._cd=t}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}},kP={"[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"},jZ=Y(C({},kP),{"[class.ng-submitted]":"isSubmitted"}),ku=(()=>{class e extends Hg{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(de(_a,2))};static \u0275dir=Fe({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&Ye("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[Wt]})}return e})();var ga="VALID",Nu="INVALID",Uo="PENDING",ma="DISABLED",$o=class{},Ru=class extends $o{value;source;constructor(t,n){super(),this.value=t,this.source=n}},va=class extends $o{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},ya=class extends $o{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},jo=class extends $o{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function PP(e){return(Pu(e)?e.validators:e)||null}function FP(e){return Array.isArray(e)?mw(e):e||null}function LP(e,t){return(Pu(t)?t.asyncValidators:e)||null}function VP(e){return Array.isArray(e)?vw(e):e||null}function Pu(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var zg=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return je(this.statusReactive)}set status(t){je(()=>this.statusReactive.set(t))}_status=He(()=>this.statusReactive());statusReactive=L(void 0);get valid(){return this.status===ga}get invalid(){return this.status===Nu}get pending(){return this.status==Uo}get disabled(){return this.status===ma}get enabled(){return this.status!==ma}errors;get pristine(){return je(this.pristineReactive)}set pristine(t){je(()=>this.pristineReactive.set(t))}_pristine=He(()=>this.pristineReactive());pristineReactive=L(!0);get dirty(){return!this.pristine}get touched(){return je(this.touchedReactive)}set touched(t){je(()=>this.touchedReactive.set(t))}_touched=He(()=>this.touchedReactive());touchedReactive=L(!1);get untouched(){return!this.touched}_events=new se;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(rw(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(rw(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(iw(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(iw(t,this._rawAsyncValidators))}hasValidator(t){return xu(this._rawValidators,t)}hasAsyncValidator(t){return xu(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(Y(C({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ya(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new ya(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(Y(C({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new va(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new va(!0,r))}markAsPending(t={}){this.status=Uo;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new jo(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(Y(C({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ma,this.errors=null,this._forEachChild(i=>{i.disable(Y(C({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ru(this.value,r)),this._events.next(new jo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Y(C({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ga,this._forEachChild(r=>{r.enable(Y(C({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Y(C({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ga||this.status===Uo)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ru(this.value,n)),this._events.next(new jo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(Y(C({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ma:ga}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Uo,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=fw(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new jo(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Ve,this.statusChanges=new Ve}_calculateStatus(){return this._allControlsDisabled()?ma:this.errors?Nu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Uo)?Uo:this._anyControlsHaveStatus(Nu)?Nu:ga}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),i&&this._events.next(new va(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new ya(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Pu(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=FP(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=VP(this._rawAsyncValidators)}};var yw=new T("",{providedIn:"root",factory:()=>qg}),qg="always";function BP(e,t){return[...t.path,e]}function UP(e,t,n=qg){$P(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),HP(e,t),GP(e,t),zP(e,t),jP(e,t)}function ow(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function jP(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function $P(e,t){let n=RP(e);t.validator!==null?e.setValidators(nw(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=OP(e);t.asyncValidator!==null?e.setAsyncValidators(nw(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();ow(t._rawValidators,i),ow(t._rawAsyncValidators,i)}function HP(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&_w(e,t)})}function zP(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&_w(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function _w(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function GP(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function qP(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function WP(e){return Object.getPrototypeOf(e.constructor)===Gg}function KP(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===Ho?n=o:WP(o)?r=o:i=o}),i||r||n||null}function sw(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function aw(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var ZP=class extends zg{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(PP(n),LP(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Pu(n)&&(n.nonNullable||n.initialValueIsDefault)&&(aw(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){sw(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){sw(this._onDisabledChange,t)}_forEachChild(t){}_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(t){aw(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var YP={provide:_a,useExisting:on(()=>ba)},cw=Promise.resolve(),ba=(()=>{class e extends _a{_changeDetectorRef;callSetDisabledState;control=new ZP;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Ve;constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=KP(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),qP(n,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(n){this.viewModel=n,this.update.emit(n)}_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(){UP(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(n){cw.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&ks(r);cw.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?BP(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(de($g,9),de(TP,10),de(MP,10),de(Ou,10),de(Ar,8),de(yw,8))};static \u0275dir=Fe({type:e,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:[pn([YP]),Wt,wr]})}return e})();var QP={provide:Ou,useExisting:on(()=>Fu),multi:!0};function bw(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function XP(e){return e.split(":")[0]}var Fu=(()=>{class e extends Gg{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=h(fn).injector;destroyRef=h(Ze);cdr=h(Ar);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,lo({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),i=bw(r,n);this.setProperty("value",i)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=XP(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(i){return(n||(n=Ir(e)))(i||e)}})();static \u0275dir=Fe({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,i){r&1&&ce("change",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[pn([QP]),Wt]})}return e})(),Ew=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,i){this._element=n,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(bw(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select&&this._select._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select._writeValueAfterRender())}static \u0275fac=function(r){return new(r||e)(de(ft),de(Gn),de(Fu,9))};static \u0275dir=Fe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),JP={provide:Ou,useExisting:on(()=>Dw),multi:!0};function lw(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function e1(e){return e.split(":")[0]}var Dw=(()=>{class e extends Gg{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let i=n.map(o=>this._getOptionId(o));r=(o,s)=>{o._setSelected(i.indexOf(s.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let i=[],o=r.selectedOptions;if(o!==void 0){let s=o;for(let a=0;a<s.length;a++){let c=s[a],l=this._getOptionValue(c.value);i.push(l)}}else{let s=r.options;for(let a=0;a<s.length;a++){let c=s[a];if(c.selected){let l=this._getOptionValue(c.value);i.push(l)}}}this.value=i,n(i)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=e1(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(i){return(n||(n=Ir(e)))(i||e)}})();static \u0275dir=Fe({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,i){r&1&&ce("change",function(s){return i.onChange(s.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[pn([JP]),Wt]})}return e})(),Cw=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,i){this._element=n,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(lw(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(lw(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(de(ft),de(Gn),de(Dw,9))};static \u0275dir=Fe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var t1=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({})}return e})();var Lu=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:yw,useValue:n.callSetDisabledState??qg}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({imports:[t1]})}return e})();var n1=["input"];function r1(e,t){if(e&1){let n=Dt();b(0,"div",3),ce("click",function(){be(n);let i=oe();return Ee(i.close())}),_()}}function i1(e,t){if(e&1){let n=Dt();b(0,"li",11),ce("mouseenter",function(){let i=be(n).index,o=oe(2);return Ee(o.index.set(i))})("click",function(){let i=be(n).$implicit,o=oe(2);return Ee(o.pick(i))}),b(1,"span",12),w(2),_(),b(3,"span",13),w(4),_(),b(5,"span",14),w(6),_()()}if(e&2){let n=t.$implicit,r=t.index,i=oe(2);Ye("active",r===i.index()),Kt("aria-selected",r===i.index()),E(2),ie(n.shortHash),E(2),ie(n.subject),E(2),ie(n.author)}}function o1(e,t){e&1&&(b(0,"li",15),w(1,"No matches."),_())}function s1(e,t){if(e&1){let n=Dt();b(0,"div",4)(1,"input",5,0),ce("ngModelChange",function(i){be(n);let o=oe();return Ee(o.onQuery(i))})("keydown",function(i){be(n);let o=oe();return Ee(o.onKey(i))}),_(),b(3,"ul",6),re(4,i1,7,6,"li",7)(5,o1,2,0,"li",8),_(),b(6,"div",9)(7,"span")(8,"kbd",10),w(9,"\u2191"),_(),b(10,"kbd",10),w(11,"\u2193"),_(),w(12," navigate"),_(),b(13,"span")(14,"kbd",10),w(15,"Enter"),_(),w(16," select"),_(),b(17,"span")(18,"kbd",10),w(19,"Esc"),_(),w(20," close"),_()()()}if(e&2){let n=oe();E(),N("ngModel",n.query()),E(3),N("ngForOf",n.results())("ngForTrackBy",n.trackByHash),E(),N("ngIf",!n.results().length)}}var Vu=class e{state=h(ht);input;query=L("");index=L(0);results=He(()=>{let t=this.query().trim().toLowerCase(),n=this.state.commits();return t?n.filter(r=>r.hash.toLowerCase().startsWith(t)||r.shortHash.toLowerCase().startsWith(t)||r.subject.toLowerCase().includes(t)||r.author.toLowerCase().includes(t)).slice(0,50):n.slice(0,50)});constructor(){ze(()=>{this.state.paletteOpen()&&(this.query.set(""),this.index.set(0),queueMicrotask(()=>this.input?.nativeElement.focus()))}),ze(()=>{let t=this.results().length;this.index()>=t&&this.index.set(Math.max(0,t-1))})}trackByHash(t,n){return n.hash}onQuery(t){this.query.set(t),this.index.set(0)}onKey(t){if(t.key==="ArrowDown")t.preventDefault(),this.index.update(n=>Math.min(this.results().length-1,n+1));else if(t.key==="ArrowUp")t.preventDefault(),this.index.update(n=>Math.max(0,n-1));else if(t.key==="Enter"){t.preventDefault();let n=this.results()[this.index()];n&&this.pick(n)}else t.key==="Escape"&&(t.preventDefault(),this.close())}pick(t){this.state.selectHash(t.hash),this.close()}close(){this.state.paletteOpen.set(!1)}onGlobal(t){(t.metaKey||t.ctrlKey)&&(t.key==="k"||t.key==="K")&&(t.preventDefault(),this.state.paletteOpen.set(!this.state.paletteOpen()))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-command-palette"]],viewQuery:function(n,r){if(n&1&&Mn(n1,5),n&2){let i;Nn(i=xn())&&(r.input=i.first)}},hostBindings:function(n,r){n&1&&ce("keydown",function(o){return r.onGlobal(o)},Cs)},decls:2,vars:2,consts:[["input",""],["class","backdrop",3,"click",4,"ngIf"],["class","palette","role","dialog","aria-modal","true",4,"ngIf"],[1,"backdrop",3,"click"],["role","dialog","aria-modal","true",1,"palette"],["type","text","placeholder","Jump to a commit by hash, subject, or author\u2026",1,"search",3,"ngModelChange","keydown","ngModel"],["role","listbox",1,"results"],["class","result",3,"active","mouseenter","click",4,"ngFor","ngForOf","ngForTrackBy"],["class","result empty",4,"ngIf"],[1,"footer"],[1,"kbd"],[1,"result",3,"mouseenter","click"],[1,"hash"],[1,"subj"],[1,"auth"],[1,"result","empty"]],template:function(n,r){n&1&&re(0,r1,1,0,"div",1)(1,s1,21,4,"div",2),n&2&&(N("ngIf",r.state.paletteOpen()),E(),N("ngIf",r.state.paletteOpen()))},dependencies:[et,At,Ct,Lu,Ho,ku,ba],styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:var(--bg-overlay);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:90}.palette[_ngcontent-%COMP%]{position:fixed;top:12vh;left:50%;transform:translate(-50%);width:min(640px,calc(100vw - 32px));background:var(--bg-elevated);border:1px solid var(--border-soft);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);z-index:100;overflow:hidden}.search[_ngcontent-%COMP%]{width:100%;border:0;outline:0;padding:.85rem 1rem;background:transparent;color:var(--fg-primary);font-size:14px;border-bottom:1px solid var(--border-soft)}.results[_ngcontent-%COMP%]{list-style:none;margin:0;padding:.25rem 0;max-height:50vh;overflow:auto}.result[_ngcontent-%COMP%]{display:grid;grid-template-columns:70px 1fr auto;align-items:center;gap:.6rem;padding:.45rem 1rem;cursor:pointer;font-size:13px}.result.active[_ngcontent-%COMP%]{background:var(--bg-hover)}.result.empty[_ngcontent-%COMP%]{grid-template-columns:1fr;color:var(--fg-muted);cursor:default}.hash[_ngcontent-%COMP%]{font-family:var(--font-mono);color:var(--fg-muted)}.subj[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fg-primary)}.auth[_ngcontent-%COMP%]{color:var(--fg-muted);font-size:11px}.footer[_ngcontent-%COMP%]{display:flex;gap:1rem;padding:.4rem .75rem;background:var(--bg-surface-2);border-top:1px solid var(--border-soft);font-size:11px;color:var(--fg-muted)}"],changeDetection:0})};function a1(e,t){if(e&1&&(b(0,"kbd",11),w(1),_()),e&2){let n=t.$implicit;E(),ie(n)}}function c1(e,t){if(e&1&&(b(0,"li")(1,"span",8),w(2),_(),b(3,"span",9),re(4,a1,2,1,"kbd",10),_()()),e&2){let n=t.$implicit;E(2),ie(n.description),E(2),N("ngForOf",n.keys)}}function l1(e,t){if(e&1&&(b(0,"section")(1,"h3"),w(2),_(),b(3,"ul"),re(4,c1,5,2,"li",7),_()()),e&2){let n=t.$implicit;E(2),ie(n.title),E(2),N("ngForOf",n.bindings)}}function u1(e,t){if(e&1){let n=Dt();Mr(0),b(1,"div",1),ce("click",function(){be(n);let i=oe();return Ee(i.close())}),_(),b(2,"div",2)(3,"div",3)(4,"h2",4),w(5,"Keyboard shortcuts"),_(),b(6,"button",5),ce("click",function(){be(n);let i=oe();return Ee(i.close())}),w(7,"\u2715"),_()(),b(8,"div",6),re(9,l1,5,2,"section",7),_()(),Nr()}if(e&2){let n=oe();E(9),N("ngForOf",n.groups)}}var d1=[{title:"Navigation",bindings:[{keys:["j"],description:"Next commit"},{keys:["k"],description:"Previous commit"},{keys:["g"],description:"Jump to newest commit"},{keys:["G"],description:"Jump to oldest commit"}]},{title:"Search & overlays",bindings:[{keys:["/"],description:"Focus search"},{keys:["\u2318","K"],description:"Open command palette"},{keys:["?"],description:"Show this help"},{keys:["Esc"],description:"Close overlays"}]}],Bu=class e{state=h(ht);groups=d1;close(){this.state.shortcutsOpen.set(!1)}onKey(t){t.key==="?"&&!this.isTyping(t.target)&&(t.preventDefault(),this.state.shortcutsOpen.set(!0)),t.key==="Escape"&&(this.state.shortcutsOpen.set(!1),this.state.paletteOpen.set(!1))}isTyping(t){return t instanceof HTMLElement?["INPUT","TEXTAREA","SELECT"].includes(t.tagName)||t.isContentEditable:!1}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-shortcuts-modal"]],hostBindings:function(n,r){n&1&&ce("keydown",function(o){return r.onKey(o)},Cs)},decls:1,vars:1,consts:[[4,"ngIf"],[1,"backdrop",3,"click"],["role","dialog","aria-modal","true","aria-labelledby","shortcuts-title",1,"modal"],[1,"head"],["id","shortcuts-title"],["aria-label","Close",1,"btn","btn-ghost","btn-icon",3,"click"],[1,"body"],[4,"ngFor","ngForOf"],[1,"desc"],[1,"keys"],["class","kbd",4,"ngFor","ngForOf"],[1,"kbd"]],template:function(n,r){n&1&&re(0,u1,10,1,"ng-container",0),n&2&&N("ngIf",r.state.shortcutsOpen())},dependencies:[et,At,Ct],styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:var(--bg-overlay);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:90}.modal[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 32px));max-height:80vh;overflow:auto;background:var(--bg-elevated);border:1px solid var(--border-soft);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);z-index:100}.head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--border-soft)}.head[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:16px}.body[_ngcontent-%COMP%]{padding:.75rem 1rem 1rem}h3[_ngcontent-%COMP%]{margin:1rem 0 .4rem;font-size:12px;color:var(--fg-muted);text-transform:uppercase;letter-spacing:.04em}h3[_ngcontent-%COMP%]:first-child{margin-top:0}ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}li[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.45rem .25rem;border-bottom:1px dashed var(--border-soft)}li[_ngcontent-%COMP%]:last-child{border-bottom:0}.desc[_ngcontent-%COMP%]{color:var(--fg-secondary);font-size:13px}.keys[_ngcontent-%COMP%]{display:flex;gap:4px}"],changeDetection:0})};var Iw="ghui:theme",Uu=class e{doc=h(xe);mediaQuery=null;preference=L(this.read());systemDark=L(!1);resolved=He(()=>{let t=this.preference();return t==="system"?this.systemDark()?"dark":"light":t});constructor(){typeof window<"u"&&window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.systemDark.set(this.mediaQuery.matches),this.mediaQuery.addEventListener("change",t=>this.systemDark.set(t.matches))),ze(()=>{let t=this.resolved(),n=this.doc.documentElement;n.classList.toggle("dark",t==="dark"),n.dataset.theme=t,this.doc.body?.classList?.toggle("dark",t==="dark")})}setPreference(t){this.preference.set(t);try{localStorage.setItem(Iw,t)}catch{}}cycle(){let t=["light","dark","system"],n=t[(t.indexOf(this.preference())+1)%t.length];this.setPreference(n)}read(){try{let t=localStorage.getItem(Iw);if(t==="light"||t==="dark"||t==="system")return t}catch{}return"system"}static \u0275fac=function(n){return new(n||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};var f1=["searchInput"];function p1(e,t){if(e&1&&(b(0,"span",27),w(1),_()),e&2){let n=t.ngIf;E(),ie(n)}}function h1(e,t){e&1&&(b(0,"kbd",28),w(1,"/"),_())}function g1(e,t){if(e&1&&(b(0,"option",29),w(1),_()),e&2){let n=t.$implicit;N("value",n),E(),ie(n)}}function m1(e,t){e&1&&(Dr(),b(0,"svg",21),Ce(1,"path",30),_())}function v1(e,t){e&1&&(Dr(),b(0,"svg",21),Ce(1,"path",31),_())}var ju=class e{state=h(ht);theme=h(Uu);searchEl;searchValue=L("");totalLabel=He(()=>{let t=this.state.total();return t?`${t.toLocaleString()} commits`:""});debounce=null;constructor(){ze(()=>{let t=this.state.filters();this.searchValue.set(t.search??"")})}onKeydown(t){t.key==="/"&&!this.isTyping(t.target)&&(t.preventDefault(),queueMicrotask(()=>this.searchEl?.nativeElement.focus()))}onSearchInput(t){this.searchValue.set(t),this.debounce&&clearTimeout(this.debounce),this.debounce=setTimeout(()=>{this.state.patchFilters({search:t||void 0})},250)}onAuthor(t){this.state.patchFilters({author:t||void 0})}onSince(t){this.state.patchFilters({since:t||void 0})}onUntil(t){this.state.patchFilters({until:t||void 0})}onFile(t){this.state.patchFilters({file:t||void 0})}isTyping(t){return t instanceof HTMLElement?["INPUT","TEXTAREA","SELECT"].includes(t.tagName)||t.isContentEditable:!1}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-toolbar"]],viewQuery:function(n,r){if(n&1&&Mn(f1,5),n&2){let i;Nn(i=xn())&&(r.searchEl=i.first)}},hostBindings:function(n,r){n&1&&ce("keydown",function(o){return r.onKeydown(o)},pi)},decls:32,vars:11,consts:[["searchInput",""],[1,"toolbar"],[1,"brand"],["aria-hidden","true",1,"brand-mark"],[1,"brand-text"],[1,"brand-title"],["class","brand-sub",4,"ngIf"],[1,"filters"],[1,"search"],["viewBox","0 0 20 20","width","16","height","16","aria-hidden","true"],["fill","currentColor","d","M9 2a7 7 0 1 1-4.32 12.5l-3.1 3.09a1 1 0 0 1-1.42-1.42l3.1-3.09A7 7 0 0 1 9 2Zm0 2a5 5 0 1 0 0 10A5 5 0 0 0 9 4Z"],["type","text","placeholder","Search commits\u2026 ( / )","aria-label","Search commits",1,"search-input",3,"ngModelChange","ngModel"],["class","kbd",4,"ngIf"],["aria-label","Filter by author",1,"select",3,"ngModelChange","ngModel"],["value",""],[3,"value",4,"ngFor","ngForOf"],["type","date","aria-label","Since date",1,"input","date",3,"ngModelChange","ngModel"],["type","date","aria-label","Until date",1,"input","date",3,"ngModelChange","ngModel"],["type","text","placeholder","path/to/file","aria-label","Filter by file path",1,"input",3,"ngModelChange","ngModel"],[1,"actions"],["title","Command palette (\u2318K)",1,"btn","btn-ghost","btn-icon",3,"click"],["viewBox","0 0 24 24","width","16","height","16","aria-hidden","true"],["fill","currentColor","d","M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3Zm3-1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1Zm2 4h2v2H8Zm4 0h6v2h-6Zm-4 4h6v2H8Zm8 0h2v2h-2Z"],["title","Keyboard shortcuts (?)",1,"btn","btn-ghost","btn-icon",3,"click"],["fill","currentColor","d","M11 18h2v-2h-2Zm1-16a8 8 0 0 0-8 8h2a6 6 0 1 1 9.6 4.8c-1.06.8-1.6 1.42-1.6 3.2v.5h-2v-.5c0-2.6.94-3.5 2.13-4.39A4 4 0 1 0 8 10H6a6 6 0 0 1 6-8Z"],[1,"btn","btn-ghost","btn-icon",3,"click","title"],["viewBox","0 0 24 24","width","16","height","16","aria-hidden","true",4,"ngIf"],[1,"brand-sub"],[1,"kbd"],[3,"value"],["fill","currentColor","d","M12 4V2m0 20v-2m8-8h2M2 12h2m13.66-6.34 1.42-1.42M4.92 19.08l1.42-1.42m0-11.32L4.92 4.92m14.16 14.16-1.42-1.42M12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"],["fill","currentColor","d","M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z"]],template:function(n,r){if(n&1){let i=Dt();b(0,"header",1)(1,"div",2)(2,"span",3),w(3,"\u2387"),_(),b(4,"div",4)(5,"span",5),w(6,"Git History"),_(),re(7,p1,2,1,"span",6),_()(),b(8,"div",7)(9,"label",8),Dr(),b(10,"svg",9),Ce(11,"path",10),_(),Yi(),b(12,"input",11,0),ce("ngModelChange",function(s){return be(i),Ee(r.onSearchInput(s))}),_(),re(14,h1,2,0,"kbd",12),_(),b(15,"select",13),ce("ngModelChange",function(s){return be(i),Ee(r.onAuthor(s))}),b(16,"option",14),w(17,"All authors"),_(),re(18,g1,2,2,"option",15),_(),b(19,"input",16),ce("ngModelChange",function(s){return be(i),Ee(r.onSince(s))}),_(),b(20,"input",17),ce("ngModelChange",function(s){return be(i),Ee(r.onUntil(s))}),_(),b(21,"input",18),ce("ngModelChange",function(s){return be(i),Ee(r.onFile(s))}),_()(),b(22,"div",19)(23,"button",20),ce("click",function(){return be(i),Ee(r.state.paletteOpen.set(!0))}),Dr(),b(24,"svg",21),Ce(25,"path",22),_()(),Yi(),b(26,"button",23),ce("click",function(){return be(i),Ee(r.state.shortcutsOpen.set(!0))}),Dr(),b(27,"svg",21),Ce(28,"path",24),_()(),Yi(),b(29,"button",25),ce("click",function(){return be(i),Ee(r.theme.cycle())}),re(30,m1,2,0,"svg",26)(31,v1,2,0,"svg",26),_()()()}n&2&&(E(7),N("ngIf",r.totalLabel()),E(5),N("ngModel",r.searchValue()),E(2),N("ngIf",!r.searchValue()),E(),N("ngModel",r.state.filters().author??""),E(3),N("ngForOf",r.state.authors()),E(),N("ngModel",r.state.filters().since??""),E(),N("ngModel",r.state.filters().until??""),E(),N("ngModel",r.state.filters().file??""),E(8),N("title","Theme: "+r.theme.preference()),E(),N("ngIf",r.theme.resolved()==="light"),E(),N("ngIf",r.theme.resolved()==="dark"))},dependencies:[et,At,Ct,Lu,Ew,Cw,Ho,Fu,ku,ba],styles:["[_nghost-%COMP%]{display:block;position:sticky;top:0;z-index:50;background:color-mix(in oklab,var(--bg-surface) 92%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--border-soft)}.toolbar[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;padding:.6rem 1rem}.brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.6rem;padding-right:.5rem}.brand-mark[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),#06b6d4);color:var(--accent-fg);font-weight:700;font-size:18px}.brand-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;line-height:1.1}.brand-title[_ngcontent-%COMP%]{font-weight:600}.brand-sub[_ngcontent-%COMP%]{font-size:11px;color:var(--fg-muted)}.filters[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;min-width:0}.search[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;gap:.4rem;flex:1 1 240px;min-width:200px;max-width:420px;padding:0 .6rem;background:var(--bg-surface);border:1px solid var(--border-soft);border-radius:var(--radius-sm);color:var(--fg-muted)}.search[_ngcontent-%COMP%]:focus-within{border-color:var(--border-focus);box-shadow:0 0 0 3px #6366f12e}.search-input[_ngcontent-%COMP%]{flex:1;border:0;outline:0;background:transparent;color:var(--fg-primary);font-size:13px;padding:.45rem 0}.search-input[_ngcontent-%COMP%]::placeholder{color:var(--fg-subtle)}.search[_ngcontent-%COMP%] .kbd[_ngcontent-%COMP%]{margin-left:.4rem}.date[_ngcontent-%COMP%]{width:9rem}.actions[_ngcontent-%COMP%]{display:flex;gap:.3rem}"],changeDetection:0})};function y1(e,t){if(e&1&&(b(0,"div",6)(1,"span"),w(2),_()()),e&2){let n=t.ngIf;E(2),Zt("\u26A0\uFE0F ",n)}}function _1(e,t){e&1&&(b(0,"div",7),Ce(1,"span",8),w(2," Loading commits\u2026 "),_())}var $u=class e{state=h(ht);git=h(Oo);commitsResp=cu(au(this.state.filters).pipe(yd(200),Re(t=>(this.state.loading.set(!0),this.state.error.set(null),this.git.getCommits(t).pipe(kt(n=>(this.state.error.set(this.errorMessage(n)),this.state.loading.set(!1),O(null))))))),{initialValue:null});authorsLoaded=L(!1);constructor(){ze(()=>{let t=this.commitsResp();t&&(this.state.commits.set(t.commits),this.state.total.set(t.total),this.state.page.set(t.page),this.state.pageSize.set(t.pageSize),this.state.loading.set(!1),!this.state.selectedHash()&&t.commits.length&&this.state.selectHash(t.commits[0].hash))}),ze(()=>{this.commitsResp()&&!this.authorsLoaded()&&(this.authorsLoaded.set(!0),this.git.getAuthors().subscribe({next:t=>this.state.authors.set(t),error:()=>this.state.authors.set([])}),this.git.getBranches().subscribe({next:t=>this.state.branches.set(t),error:()=>this.state.branches.set([])}),this.git.getTags().subscribe({next:t=>this.state.tags.set(t),error:()=>this.state.tags.set([])}))})}errorMessage(t){if(t&&typeof t=="object"&&"error"in t){let n=t.error;if(n?.error)return n.error}return t instanceof Error?t.message:"Failed to load commits."}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-root"]],decls:12,vars:2,consts:[["class","status-bar",4,"ngIf"],[1,"layout"],[1,"pane","graph"],[1,"pane","list"],[1,"pane","detail"],["class","loading","aria-live","polite",4,"ngIf"],[1,"status-bar"],["aria-live","polite",1,"loading"],[1,"spinner"]],template:function(n,r){n&1&&(Ce(0,"app-toolbar"),re(1,y1,3,1,"div",0),b(2,"main",1)(3,"aside",2),Ce(4,"app-commit-graph"),_(),b(5,"section",3),Ce(6,"app-commit-list"),_(),b(7,"section",4),Ce(8,"app-commit-detail"),_()(),re(9,_1,3,0,"div",5),Ce(10,"app-command-palette")(11,"app-shortcuts-modal")),n&2&&(E(),N("ngIf",r.state.error()),E(8),N("ngIf",r.state.loading()))},dependencies:[et,Ct,ju,Du,Mu,Eu,Vu,Bu],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100vh;width:100vw;overflow:hidden;background:var(--bg-app);color:var(--fg-primary)}.layout[_ngcontent-%COMP%]{flex:1;display:grid;grid-template-columns:220px 380px 1fr;min-height:0}.pane[_ngcontent-%COMP%]{min-width:0;min-height:0}.pane.graph[_ngcontent-%COMP%]{border-right:1px solid var(--border-soft)}.status-bar[_ngcontent-%COMP%]{padding:.5rem 1rem;background:#dc26261a;color:var(--danger);border-bottom:1px solid var(--border-soft);font-size:13px}.loading[_ngcontent-%COMP%]{position:fixed;bottom:1rem;right:1rem;display:flex;align-items:center;gap:.5rem;padding:.5rem .85rem;background:var(--bg-elevated);border:1px solid var(--border-soft);border-radius:var(--radius-md);box-shadow:var(--shadow-md);font-size:12px;color:var(--fg-secondary);z-index:80}.spinner[_ngcontent-%COMP%]{width:14px;height:14px;border:2px solid var(--border-strong);border-top-color:var(--accent);border-radius:50%;animation:_ngcontent-%COMP%_spin .7s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media (max-width: 1100px){.layout[_ngcontent-%COMP%]{grid-template-columns:320px 1fr}.pane.graph[_ngcontent-%COMP%]{display:none}}@media (max-width: 720px){.layout[_ngcontent-%COMP%]{grid-template-columns:1fr}.pane.list[_ngcontent-%COMP%]{display:none}}"],changeDetection:0})};Rh($u,AE).catch(e=>console.error(e));
|