PageSourceSearch

https://treedimensional.org/main-ASD5IS5M.js

js treedimensional.org collected 2026-10-06 05:23:11 UTC 221,419 bytes, 8 lines download raw bytes

1import{$ as My,$n as mV,$r as wt$1,An as fy,Ar as ry,C as EV,Cr as ql,D as Ey,Dr as rd,Dt as Us,E as Em,En as eu,Fr as tI,G as Jr,Gn as jh,Gr as vb,Gt as YC,Hn as iV,Hr as vE,Ht as Xe$1,In as hV,J as Kr,Jr as w$1,Jt as Z$3,Kt as YT,Mn as ge$1,Mr as sV,N as Gw,Nr as sm,Nt as Wh,O as Fo,On as ff,P as H$2,Pn as gy,Qr as wi,Qt as _$1,Rr as tu,Rt as X$3,Sn as eb,Tn as ef,Tr as qs,Un as io,Ur as vV,Ut as Xo,V as Im,Vr as v$2,Vt as Xd,Wn as iu,X as LE,Xn as ld,Y as Ks,Yt as ZC,Z as Lm,Zn as lt$1,Zr as wf,Zt as Zw,ai as yV,bn as dd,c as Bw,ci as z$1,ct as Pe$2,dn as bb,dr as o_,dt as QD,ft as QT,g as De$1,gn as cb,gr as oy,gt as Qw,hr as ov,i as Am,in as aV,ir as nd,j as Gm,jt as Vw,kn as ft$1,kr as rt$1,l as Cb,ln as ar,mn as cV,nn as _t$1,nr as mn$2,oi as y_,or as ns,pi as zw,pn as cD,rt as Ny,si as ym,sr as nu,st as Pc,ti as x$2,tn as _m,tr as me,tt as Nd,ui as zb,ut as Q$2,v as Dm,vr as pf,vt as Ro,wn as ee$2,x as EE,xt as Sm,yr as pt$1,zt as XC}from"./chunk-DwtS57HM.js";import{F as de$2,O as Yr,it as xr,k as Yt,rt as xe$2,t as $r}from"./chunk-CI79qbDP.js";import{a as K$2,c as We$2,f as j$3,i as I$3,n as Et$1,o as Rt$1,p as k$2,r as F$3,s as S$2,t as B,u as bt$1}from"./chunk-5NGjGVjb.js";import{i as u$2,r as l$2,t as E$2}from"./chunk-XMQsfKzo.js";import{n as t$1,t as n$1}from"./chunk-_P-QcUfi.js";import{t as n$2}from"./chunk-C54BdNBQ.js";import{C as Ru,E as Su,J as k$3,L as br,O as Vi,U as fs,Z as ne$2,dt as wr,et as pc,ht as yc,i as Be$2,it as tc,l as G,x as Rn$1}from"./chunk-CYaB4xoM.js";import{r as U$1,t as F$4}from"./chunk-CpKQLmlW.js";var n=class t{http=v$2(We$2);BaseURI=n$1.apiUrl;apiGeAllPessoasUrl=this.BaseURI+`/Pessoa/GeAllPessoas`;apiAllEditoresUrl=this.BaseURI+`/Pessoa/GetAllEditores`;apiAllReviewersUrl=this.BaseURI+`/Pessoa/GeAllReviewers`;apiAllReviewersForInviteUrl=this.BaseURI+`/Pessoa/GeAllReviewersForInvite`;apiIsUserUrl=this.BaseURI+`/Pessoa/IsUserUrl`;apiGeAllEditoresForEditUrl=this.BaseURI+`/Pessoa/GetAllEditoresForEdit`;apiExcluirEditorUrl=this.BaseURI+`/Pessoa/DeleteEditor`;apiUpdateEditorUrl=this.BaseURI+`/Pessoa/UpdateEditor`;apiSecretaryesUrl=this.BaseURI+`/Pessoa/GeAllSecretaryes`;apiGetPessoaByEmailUrl=this.BaseURI+`/Pessoa/GetPessoaByEmail`;GeAllPessoas(){return this.http.get(this.apiGeAllPessoasUrl)}GetAllEditores(){return this.http.get(this.apiAllEditoresUrl)}GeAllReviewers(){return this.http.get(this.apiAllReviewersUrl)}GeAllReviewersForInvite(s){let e=new F$3;return e=e.append(`sumarioId`,s.toString()),this.http.get(this.apiAllReviewersForInviteUrl,{params:e})}isUser(s){let e=new F$3;return e=e.append(`pessoaId`,s.toString()),this.http.get(this.apiIsUserUrl,{params:e})}GetAllEditoresForEdit(){return this.http.get(this.apiGeAllEditoresForEditUrl)}ExcluirEditor(s){return this.http.post(`${this.apiExcluirEditorUrl}/${s}`,{},{headers:E$2})}UpdateEditor(s){return this.http.post(this.apiUpdateEditorUrl,s,{headers:E$2})}GeAllSecretarys(){return this.http.get(this.apiSecretaryesUrl)}GetPessoaByEmail(s){let e=new F$3;return e=e.append(`email`,s),this.http.get(this.apiGetPessoaByEmailUrl,{params:e})}static ɵfac=function(e){return new(e||t)};static ɵprov=Kr({token:t,factory:t.ɵfac})};function F$2(n){var e=new d$1;return e.rootUrl=n,{provide:d$1,useValue:e}}var d$1=class n{rootUrl=``;static ɵfac=function(t){return new(t||n)};static ɵprov=Kr({token:n,factory:n.ɵfac})};var P$2=class n{constructor(e,t){this.config=e;this.http=t}config;http;_rootUrl;get rootUrl(){return this._rootUrl||this.config.rootUrl}set rootUrl(e){this._rootUrl=e}invoke(e,t,s){return this.invoke$Response(e,t,s).pipe(pt$1(i=>i.body))}invoke$Response(e,t,s){return e(this.http,this.rootUrl,t,s).pipe(Ro(i=>i instanceof j$3),pt$1(i=>i))}static ɵfac=function(t){return new(t||n)(Pe$2(d$1),Pe$2(We$2))};static ɵprov=ee$2({token:n,factory:n.ɵfac,providedIn:`root`})};var H$1=class{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};var q$2=new H$1;var y=class{constructor(e,t,s,r,i){this.name=e;this.value=t;this.options=s;this.options=s||{},(this.options.style===null||this.options.style===void 0)&&(this.options.style=r),(this.options.explode===null||this.options.explode===void 0)&&(this.options.explode=i)}name;value;options;serializeValue(e,t=`,`){if(e==null)return``;if(e instanceof Array)return e.map(s=>this.serializeValue(s).split(t).join(encodeURIComponent(t))).join(t);if(typeof e==`object`){let s=[];for(let r of Object.keys(e)){let i=e[r];i!=null&&(i=this.serializeValue(i).split(t).join(encodeURIComponent(t)),this.options.explode?s.push(`${r}=${i}`):(s.push(r),s.push(i)))}return s.join(t)}else return String(e)}};var w=class extends y{constructor(e,t,s){super(e,t,s,`simple`,!1)}append(e){let t=this.value;t??=``;let s=this.options.style===`label`?`.`:``,r=this.options.explode?s===``?`,`:s:`,`,i=!1;return this.options.style===`matrix`&&(s=`;${this.name}=`,this.options.explode&&typeof t==`object`&&(s=`;`,t instanceof Array?(t=t.map(o=>`${this.name}=${this.serializeValue(o,`;`)}`),t=t.join(`;`),i=!0):(t=this.serializeValue(t,`;`),i=!0))),t=s+(i?t:this.serializeValue(t,r)),e=e.replace(`{${this.name}}`,t),e=e.replace(`{${s}${this.name}${this.options.explode?`*`:``}}`,t),e}serializeValue(e,t=`,`){var s=typeof e==`string`?encodeURIComponent(e):super.serializeValue(e,t);return s=s.replace(/%3D/g,`=`),s=s.replace(/%3B/g,`;`),s=s.replace(/%2C/g,`,`),s}};var k$1=class extends y{constructor(e,t,s){super(e,t,s,`form`,!0)}append(e){if(this.value instanceof Array)if(this.options.explode)for(let t of this.value)e=e.append(this.name,this.serializeValue(t));else{let t=this.options.style===`spaceDelimited`?` `:this.options.style===`pipeDelimited`?`|`:`,`;return e.append(this.name,this.serializeValue(this.value,t))}else if(this.value!==null&&typeof this.value==`object`)if(this.options.style===`deepObject`)for(let t of Object.keys(this.value)){let s=this.value[t];s!=null&&(e=e.append(`${this.name}[${t}]`,this.serializeValue(s)))}else if(this.options.explode)for(let t of Object.keys(this.value)){let s=this.value[t];s!=null&&(e=e.append(t,this.serializeValue(s)))}else{let t=[];for(let s of Object.keys(this.value)){let r=this.value[s];r!=null&&(t.push(s),t.push(r))}e=e.append(this.name,this.serializeValue(t))}else this.value!==null&&this.value!==void 0&&(e=e.append(this.name,this.serializeValue(this.value)));return e}};var T$2=class extends y{constructor(e,t,s){super(e,t,s,`simple`,!1)}append(e){if(this.value!==null&&this.value!==void 0)if(this.value instanceof Array)for(let t of this.value)e=e.append(this.name,this.serializeValue(t));else e=e.append(this.name,this.serializeValue(this.value));return e}};var f=class{constructor(e,t,s){this.rootUrl=e;this.operationPath=t;this.method=s}rootUrl;operationPath;method;_path=new Map;_query=new Map;_header=new Map;_bodyContent;_bodyContentType;path(e,t,s){this._path.set(e,new w(e,t,s||{}))}query(e,t,s){this._query.set(e,new k$1(e,t,s||{}))}header(e,t,s){this._header.set(e,new T$2(e,t,s||{}))}body(e,t=`application/json`){if(e instanceof Blob?this._bodyContentType=e.type:this._bodyContentType=t,this._bodyContentType===`application/x-www-form-urlencoded`&&e!==null&&typeof e==`object`){let s=[];for(let r of Object.keys(e)){let i=e[r];i instanceof Array||(i=[i]);for(let o of i){let h=this.formDataValue(o);h!==null&&s.push([r,h])}}this._bodyContent=s.map(r=>`${encodeURIComponent(r[0])}=${encodeURIComponent(r[1])}`).join(`&`)}else if(this._bodyContentType===`multipart/form-data`){let s=new FormData;if(e!=null)for(let r of Object.keys(e)){let i=e[r];if(i instanceof Array)for(let o of i){let h=this.formDataValue(o);h!==null&&s.append(r,h)}else{let o=this.formDataValue(i);o!==null&&s.set(r,o)}}this._bodyContent=s}else this._bodyContent=e}formDataValue(e){return e==null?null:e instanceof Blob?e:typeof e==`object`?new Blob([JSON.stringify(e)],{type:`application/json`}):String(e)}build(e){e=e||{};let t=this.operationPath;for(let o of this._path.values())t=o.append(t);let s=this.rootUrl+t,r=new F$3({encoder:q$2});for(let o of this._query.values())r=o.append(r);let i=new k$2;e.accept&&(i=i.append(`Accept`,e.accept));for(let o of this._header.values())i=o.append(i);return this._bodyContentType&&!(this._bodyContent instanceof FormData)&&(i=i.set(`Content-Type`,this._bodyContentType)),new B(this.method.toUpperCase(),s,this._bodyContent,{params:r,headers:i,responseType:e.responseType,reportProgress:e.reportProgress,context:e.context})}};function A$3(n,e,t,s){let r=new f(e,A$3.PATH,`post`);return t&&r.body(t.body,`application/json`),n.request(r.build({responseType:`json`,accept:`application/json`,context:s})).pipe(Ro(i=>i instanceof j$3),pt$1(i=>i))}A$3.PATH=`/api/ApplicationUser/Login`;function v$1(n,e,t,s){let r=new f(e,v$1.PATH,`post`);return t&&r.body(t.body,`application/json`),n.request(r.build({responseType:`json`,accept:`application/json`,context:s})).pipe(Ro(i=>i instanceof j$3),pt$1(i=>i))}v$1.PATH=`/api/ApplicationUser/Register`;var I$2=class n{http=v$2(We$2);generatedApi=v$2(P$2);apiBaseUrl=n$1.apiUrl;skipGlobalToastContext=new K$2().set(l$2,!0);register(e){return this.generatedApi.invoke(v$1,{body:e},this.skipGlobalToastContext).pipe(pt$1(t=>({succeeded:t.succeeded===!0,message:t.message??``,userId:t.userId??``})))}login(e){return this.generatedApi.invoke(A$3,{body:e},this.skipGlobalToastContext).pipe(pt$1(t=>({token:t.token??``,userProfile:{userName:t.userProfile?.userName??null,pessoaId:t.userProfile?.pessoaId??0,fullName:t.userProfile?.fullName??``,apelido:t.userProfile?.apelido??null,email:t.userProfile?.email??null,autor:t.userProfile?.autor??!1,editor:t.userProfile?.editor??!1,revisor:t.userProfile?.revisor??!1,permissaoEspecial:t.userProfile?.permissaoEspecial??!1,orcid:t.userProfile?.orcid??null,universidade:t.userProfile?.universidade??null}})))}static isPasskeySupported(){return typeof globalThis.PublicKeyCredential<`u`&&typeof globalThis.navigator?.credentials<`u`&&globalThis.isSecureContext!==!1}async registerPasskey(e,t,s=`Primary passkey`){this.assertPasskeySupport();let r=await oy(this.http.post(`${this.apiBaseUrl}/ApplicationUser/Passkey/CreationOptions`,{userName:e,password:t},{responseType:`text`,withCredentials:!0,headers:E$2})),i=this.parseCreationOptions(r),o=await navigator.credentials.create({publicKey:i});if(!(o instanceof PublicKeyCredential))throw new Error(`No passkey credential was created.`);return oy(this.http.post(`${this.apiBaseUrl}/ApplicationUser/Passkey/Register`,{credentialJson:M$2(o),name:s},{withCredentials:!0,headers:E$2}))}async loginWithPasskey(){this.assertPasskeySupport();let e=await oy(this.http.post(`${this.apiBaseUrl}/ApplicationUser/Passkey/RequestOptions`,{},{responseType:`text`,withCredentials:!0,headers:E$2})),t=this.parseRequestOptions(e),s=await navigator.credentials.get({publicKey:t});if(!(s instanceof PublicKeyCredential))throw new Error(`No passkey credential was selected.`);return oy(this.http.post(`${this.apiBaseUrl}/ApplicationUser/Passkey/Login`,{credentialJson:M$2(s)},{withCredentials:!0,headers:E$2}))}assertPasskeySupport(){if(!n.isPasskeySupported())throw new Error(`Passkeys are not supported by this browser or connection.`)}parseCreationOptions(e){return PublicKeyCredential.parseCreationOptionsFromJSON(JSON.parse(e))}parseRequestOptions(e){return PublicKeyCredential.parseRequestOptionsFromJSON(JSON.parse(e))}logout(){return this.http.post(`${this.apiBaseUrl}/ApplicationUser/Logout`,{},{withCredentials:!0})}refresh(){return this.http.post(`${this.apiBaseUrl}/ApplicationUser/Refresh`,{},{withCredentials:!0})}confirmEmail(e,t){return this.http.post(`${this.apiBaseUrl}/ApplicationUser/ConfirmEmail/Consume`,{userId:e,code:t},{withCredentials:!0})}recoveryPassword(e){let t=new F$3().set(`email`,e);return this.http.get(`${this.apiBaseUrl}/ApplicationUser/recoveryPassword`,{params:t,headers:E$2})}validateResetToken(){return this.http.post(`${this.apiBaseUrl}/ApplicationUser/Reset/Begin`,{},{withCredentials:!0,headers:E$2})}finishPasswordReset(e){return this.http.post(`${this.apiBaseUrl}/ApplicationUser/Reset/Finish`,{newPassword:e},{withCredentials:!0,headers:E$2})}EnviarEmailParaUsario(e){return this.http.post(`${this.apiBaseUrl}/ApplicationUser/EnviarEmailParaUsuario?userId=${e}`,null)}EnviarEmailParaRecuperacaoSenha(e){return this.http.post(`${this.apiBaseUrl}/ApplicationUser/EnviarEmailParaRecuperacaoSenha?userId=${e}`,null)}validarEmailParaEnviar(e){let t=new F$3().set(`email`,e);return this.http.get(`${this.apiBaseUrl}/ApplicationUser/validarEmailParaEnviar`,{params:t,headers:E$2})}getUserProfile(){return this.http.get(`${this.apiBaseUrl}/UserProfile/UserProfile`)}getAllUsers(){return this.http.get(`${this.apiBaseUrl}/UserProfile/Usuarios`)}static ɵfac=function(t){return new(t||n)};static ɵprov=Kr({token:n,factory:n.ɵfac})};function l$1(n){if(!n)return null;let e=new Uint8Array(n),t=``;for(let s of e)t+=String.fromCharCode(s);return btoa(t).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/g,``)}function M$2(n){let e=n.response,t={authenticatorAttachment:n.authenticatorAttachment,clientExtensionResults:n.getClientExtensionResults(),id:n.id,rawId:l$1(n.rawId
1),type:n.type};if(e instanceof AuthenticatorAttestationResponse){let r=e;return JSON.stringify(Q$2(z$1({},t),{response:{attestationObject:l$1(e.attestationObject),authenticatorData:l$1(r.getAuthenticatorData?.()??null),clientDataJSON:l$1(e.clientDataJSON),publicKey:l$1(r.getPublicKey?.()??null),publicKeyAlgorithm:r.getPublicKeyAlgorithm?.(),transports:r.getTransports?.()}}))}let s=e;return JSON.stringify(Q$2(z$1({},t),{response:{authenticatorData:l$1(s.authenticatorData),clientDataJSON:l$1(s.clientDataJSON),signature:l$1(s.signature),userHandle:l$1(s.userHandle)}}))}var c$1=class e{cfg=v$2(n$2);static sanitizePositiveInt(r,i=10){let t=Number.parseInt(String(r??``),10);return Number.isFinite(t)&&t>0?t:i}pageSize$=this.cfg.getByParametro(`pageSize`).pipe(pt$1(r=>e.sanitizePositiveInt(r?.valor,e.pageSize)));static pageSize=10;static AUTH_TOKEN_KEY=`auth_token`;static AUTH_USER_PROFILE_KEY=`userProfile`;static URL_KEY=`url`;constructor(){this.pageSize$.subscribe({next:r=>e.pageSize=e.sanitizePositiveInt(r,e.pageSize),error:()=>{}})}getValorNumero(r){return this.cfg.getByParametro(r).pipe(pt$1(i=>e.sanitizePositiveInt(i?.valor)))}static ɵfac=function(i){return new(i||e)};static ɵprov=Kr({token:e,factory:e.ɵfac})};var h$2=`td_pending_logs`;var L$4=`/FrontendLog`;var d=200;var S$1=5;var T$1=5e3;function l(){return typeof globalThis.crypto?.randomUUID==`function`?globalThis.crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}var I$1=class n{platformId=v$2(EE);isBrowser=xr(this.platformId);remoteTransportEnabled=n$1.enableRemoteLogging||n$1.persistAuditLogs;logs=[];remoteBuffer=[];flushTimerId=null;isFlushing=!1;consecutiveFailures=0;circuitOpen=!1;lastErrorKey=``;lastErrorTime=0;lastErrorCount=0;constructor(){this.isBrowser&&this.remoteTransportEnabled&&(this.restoreFromStorage(),this.startFlushTimer())}log(e,t,o,r){if(e<n$1.logLevel)return;let s={level:e,message:t,stack:o||void 0,extraInfo:[],timestamp:new Date,logWithDate:!0,httpStatus:r?.httpStatus,httpMethod:r?.httpMethod,requestUrl:r?.requestUrl,errorCode:r?.errorCode,traceId:r?.traceId,correlationId:r?.correlationId,clientEventId:l(),component:r?.component,data:r?.data};if(this.logs.push(s),this.writeToConsole(s),this.isBrowser){let a=e>=5,E=n$1.persistAuditLogs&&r?.persist===!0;(n$1.enableRemoteLogging&&a||E)&&this.enqueueRemote(s,a)}}error(e,t,o){this.log(5,e,t,o)}warn(e,t){this.log(4,e,void 0,t)}info(e,t){this.log(3,e,void 0,t)}debug(e,t){this.log(2,e,void 0,t)}getLogs(){return this.logs}writeToConsole(e){let r=`[${new Date().toISOString()}][${t$1[e.level]}]: ${e.message}`,s=F$1(e.level),a=e.data!==void 0?[e.data]:[];e.stack?console.error(r,e.stack,...a):e.level===1||e.level===2?console.debug(`%c${r}`,`color: ${s}`,...a):e.level===3?console.info(`%c${r}`,`color: ${s}`,...a):e.level===4?console.warn(`%c${r}`,`color: ${s}`,...a):e.level===5||e.level===6?console.error(`%c${r}`,`color: ${s}`,...a):console.log(`%c${r}`,`color: ${s}`,...a)}enqueueRemote(e,t){if(this.circuitOpen)return;if(t){let r=`${e.message}|${e.stack??``}`,s=Date.now();if(r===this.lastErrorKey&&s-this.lastErrorTime<T$1){this.lastErrorCount++;return}this.flushDedupCounter(),this.lastErrorKey=r,this.lastErrorTime=s,this.lastErrorCount=1}let o={level:t$1[e.level],message:e.message,stack:e.stack,httpStatus:e.httpStatus,httpMethod:e.httpMethod,requestUrl:e.requestUrl,errorCode:e.errorCode,traceId:e.traceId,correlationId:e.correlationId,pageUrl:globalThis.location?.href??``,userAgent:globalThis.navigator?.userAgent??``,timestamp:e.timestamp.toISOString(),clientEventId:e.clientEventId??l(),component:e.component,environment:n$1.ambiente,data:C$3(e.data)};this.remoteBuffer.length>=d&&this.remoteBuffer.splice(0,this.remoteBuffer.length-d+1),this.remoteBuffer.push(o),this.remoteBuffer.length>=n$1.remoteLogBatchSize&&this.flush()}flushDedupCounter(){if(this.lastErrorCount>1){let e={level:`Error`,message:`[Repeated x${this.lastErrorCount}] ${this.lastErrorKey.split(`|`)[0]}`,stack:void 0,pageUrl:globalThis.location?.href??``,userAgent:globalThis.navigator?.userAgent??``,timestamp:new Date().toISOString(),clientEventId:l(),environment:n$1.ambiente};this.remoteBuffer.length<d&&this.remoteBuffer.push(e)}this.lastErrorCount=0}startFlushTimer(){this.flushTimerId=setInterval(()=>this.flush(),n$1.remoteLogFlushIntervalMs)}async flush(){if(this.isFlushing||this.remoteBuffer.length===0||this.circuitOpen)return;this.flushDedupCounter(),this.isFlushing=!0;let e=this.remoteBuffer.splice(0,n$1.remoteLogBatchSize),t=n$1.apiUrl.replace(/\/+$/,``)+L$4;try{(await fetch(t,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e),keepalive:!0})).ok?this.consecutiveFailures=0:this.onFlushFailure(e)}catch{this.onFlushFailure(e)}finally{this.isFlushing=!1}}onFlushFailure(e){this.consecutiveFailures++;let t=new Date().toISOString();this.saveToStorage(e.map(o=>Q$2(z$1({},o),{queuedAtUtc:o.queuedAtUtc??t}))),this.consecutiveFailures>=S$1&&(this.circuitOpen=!0,this.flushTimerId!==null&&(clearInterval(this.flushTimerId),this.flushTimerId=null))}saveToStorage(e){try{let o=[...this.readStorage(),...e].slice(-100);localStorage.setItem(h$2,JSON.stringify(o))}catch{}}restoreFromStorage(){try{let e=this.readStorage();e.length>0&&(this.remoteBuffer.push(...e.map(t=>Q$2(z$1({},t),{clientEventId:t.clientEventId||l()}))),localStorage.removeItem(h$2))}catch{}}readStorage(){try{let e=localStorage.getItem(h$2);if(e){let t=JSON.parse(e);return Array.isArray(t)?t:[]}}catch{}return[]}static ɵfac=function(t){return new(t||n)};static ɵprov=Kr({token:n,factory:n.ɵfac})};function C$3(n){if(n==null)return;let e=6e3;try{let t=JSON.stringify(n);return t?t.length>e?`${t.slice(0,e)}\u2026(truncated)`:t:void 0}catch{return`[unserializable data]`}}function F$1(n){switch(n){case 0:return`gray`;case 1:return`gray`;case 2:return`gray`;case 3:return`#2196f3`;case 4:return`#ff9800`;case 5:return`#f44336`;case 6:return`#9c27b0`;case 7:return`gray`;default:return`black`}}var O$1=new _$1(`JWT_OPTIONS`);var C$2=(()=>{class i{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let r=e.replace(/-/g,`+`).replace(/_/g,`/`);switch(r.length%4){case 0:break;case 2:r+=`==`;break;case 3:r+=`=`;break;default:throw new Error(`Illegal base64url string!`)}return this.b64DecodeUnicode(r)}b64decode(e){let r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/=`,o=``;if(e=String(e).replace(/=+$/,``),e.length%4===1)throw new Error(`'atob' failed: The string to be decoded is not correctly encoded.`);for(let s=0,u,n,f=0;n=e.charAt(f++);~n&&(u=s%4?u*64+n:n,s++%4)&&(o+=String.fromCharCode(255&u>>(-2*s&6))))n=r.indexOf(n);return o}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),r=>`%`+(`00`+r.charCodeAt(0).toString(16)).slice(-2)).join(``))}decodeToken(e=this.tokenGetter()){return e instanceof Promise?e.then(r=>this._decodeToken(r)):this._decodeToken(e)}_decodeToken(e){if(!e||e===``)return null;let r=e.split(`.`);if(r.length!==3)throw new Error(`The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.`);let o=this.urlBase64Decode(r[1]);if(!o)throw new Error(`Cannot decode the token.`);return JSON.parse(o)}getTokenExpirationDate(e=this.tokenGetter()){return e instanceof Promise?e.then(r=>this._getTokenExpirationDate(r)):this._getTokenExpirationDate(e)}_getTokenExpirationDate(e){let r;if(r=this.decodeToken(e),!r||!r.hasOwnProperty(`exp`))return null;let o=new Date(0);return o.setUTCSeconds(r.exp),o}isTokenExpired(e=this.tokenGetter(),r){return e instanceof Promise?e.then(o=>this._isTokenExpired(o,r)):this._isTokenExpired(e,r)}_isTokenExpired(e,r){if(!e||e===``)return!0;let o=this.getTokenExpirationDate(e);return r=r||0,o===null?!1:!(o.valueOf()>new Date().valueOf()+r*1e3)}getAuthScheme(e,r){return typeof e==`function`?e(r):e}}return i.ɵfac=function(e){return new(e||i)(Pe$2(O$1))},i.ɵprov=ee$2({token:i,factory:i.ɵfac}),i})();var P$1=new _$1(`STORAGE_TOKEN`,{providedIn:`root`,factory:()=>{return xr(v$2(EE))?localStorage:null}});var L$3=c$1.AUTH_TOKEN_KEY;var S=c$1.AUTH_USER_PROFILE_KEY;var h$1=`has_refresh_cookie_hint`;var D$1=class i{router=v$2(G);jwtHelper=v$2(C$2);injector=v$2(me);userService=v$2(I$2);platformId=v$2(EE);log=v$2(I$1);storage=v$2(P$1);_currentUser=wi(null);_authToken=wi(null);_jwtPayload=wi(null);jwtPayload=this._jwtPayload.asReadonly();logoutTimer=null;_authCheckState=wi(`checking`);refreshPromise=null;currentUser=this._currentUser.asReadonly();authCheckState=this._authCheckState.asReadonly();CLOCK_SKEW_MS=3e4;isLoggedIn=mn$2(()=>{let t=this._currentUser(),e=this._authToken();return!!t&&(!!t.userName||this.isGuest())&&!!e&&!this.safeIsExpired(e)});clearToken(){this.log.log(2,`[AuthService] clearToken: clearing access token only (keeps profile & hint)`),this._authToken.set(null),this._jwtPayload.set(null),this.logoutTimer&&(clearTimeout(this.logoutTimer),this.logoutTimer=null)}role=mn$2(()=>{let t=this._jwtPayload(),e=t?.role??t?.roles;return Array.isArray(e)&&e.length?String(e[0]).toLowerCase():typeof e==`string`?e.toLowerCase():``});isGuest=mn$2(()=>this.role()===`guest`);isAuthenticated=mn$2(()=>{let t=this._authToken();return!!t&&!this.safeIsExpired(t)});constructor(){wf(()=>{!this._authToken()&&this.logoutTimer&&(this.log.log(2,`[AuthService] token cleared -> canceling logout timer`),clearTimeout(this.logoutTimer),this.logoutTimer=null)},{injector:this.injector})}mask(t){if(!t)return`null`;try{return`${t.slice(0,10)}...${t.slice(-6)}`}catch{return`masked`}}decodeTokenSafe(t){if(!t)return null;try{return this.jwtHelper.decodeToken(t)??null}catch{return this.log.log(5,`[AuthService] decodeTokenSafe: failed to decode token`),null}}async initAuth(){if(this._authCheckState.set(`checking`),!xr(this.platformId)){this.log.log(2,`[AuthService] initAuth: non-browser -> keep CHECKING`);return}this.log.log(3,`[AuthService] initAuth: start`);try{let t=this.storage?.getItem(h$1)===`1`;this.log.log(2,`[AuthService] initAuth: hadSession=${t}`),t?await this.refreshAccessToken():this._authCheckState.set(`complete`),this.log.log(3,`[AuthService] initAuth: complete`)}catch(t){this.log.error(`AuthService initAuth failed: `+(t instanceof Error?t.message:String(t))),this.log.log(5,`[AuthService] initAuth: error -> clearing state`),this.clearStateAndTimer(),this._authCheckState.set(`error`)}}async login(t){this._authCheckState.set(`checking`),this.log.log(3,`[AuthService] login: start user=${t.userName}`),this.clearStateAndTimer();try{let e=await oy(this.userService.login(t));return e?.token&&e?.userProfile?this.completeAccountLogin(e,`password`):(this._authCheckState.set(`complete`),this.log.log(4,`[AuthService] login: unexpected response shape`),{success:!1,message:`Login failed: Unexpected server response format.`})}catch(e){let r=this.mapLoginError(e);return this._authCheckState.set(`complete`),this.log.log(4,`[AuthService] login: failed status=${e?.status??`N/A`} msg=${r}`),{success:!1,message:r}}}async loginWithPasskey(){this._authCheckState.set(`checking`),this.clearStateAndTimer();try{let t=await this.userService.loginWithPasskey();return t?.token&&t?.userProfile?this.completeAccountLogin(t,`passkey`):(this._authCheckState.set(`complete`),{success:!1,message:`Login failed: Unexpected server response format.`})}catch(t){return this._authCheckState.set(`complete`),t instanceof DOMException&&t.name===`NotAllowedError`?{success:!1,message:`Passkey sign-in was cancelled or timed out.`}:{success:!1,message:this.mapLoginError(t)}}}completeAccountLogin(t,e){return this._authToken.set(t.token),this._jwtPayload.set(this.decodeTokenSafe(t.token)),this.storage?.setItem(S,JSON.stringify(t.userProfile)),this.storage?.setItem(h$1,`1`),this._currentUser.set(t.userProfile),this.scheduleAutoLogoutBasedOnToken(t.token),this._authCheckState.set(`complete`),this.log.log(3,`[AuthService] login: success method=${e} token=${this.mask(t.token)}`),{success:!0}}async logout(t=!0){this._authCheckState.set(`checking`);let e=this.role()===`guest`;this.log.log(3,`[AuthService] logout: start navigateToLogin=${t} isGuest=${e}`);let r=this.getToken(),o=xr(this.platformId)?localStorage.getItem(h$1)===`1`:!1;if(!e&&(!!r||o))try{await oy(this.userService.logout()),this.log.log(3,`[AuthService] logout: api ok`)}catch{this.log.log(4,`[AuthService] logout: api failed -> local cleanup`)}else e?this.log.log(2,`[AuthService] logout: skipping API call for guest`):this.log.log(2,`[AuthService] logout: skipping API call (no valid token and no refresh hint)`);
1xr(this.platformId)&&localStorage.removeItem(h$1),this.clearStateAndTimer(),t&&xr(this.platformId)&&!e&&(this.log.log(2,`[AuthService] logout: navigating to /login`),this.router.navigate([`/login`])),this._authCheckState.set(`complete`),this.log.log(3,`[AuthService] logout: complete`)}getToken(){let t=this._authToken(),e=t&&!this.safeIsExpired(t)?t:null;return this.log.log(1,`[AuthService] getToken: has=${!!e} token=${this.mask(e)}`),e}setAuthTokenOnly(t){if(this._authCheckState.set(`checking`),this.log.log(2,`[AuthService] setAuthTokenOnly: token=${this.mask(t)}`),t){this._authToken.set(t);let e=this.decodeTokenSafe(t);this._jwtPayload.set(e);try{let r=e?.role??e?.roles,o=Array.isArray(r)?String(r[0]):r??``,s=e?.pessoaId;if(this.log.log(2,`[AuthService] setAuthTokenOnly: decoded role=${o||`N/A`} pessoaId=${s??`N/A`}`),e&&String(o).toLowerCase()===`guest`&&s){let u=e?.unique_name||`Guest Reviewer`,n={pessoaId:Number(s),userName:null,fullName:u,apelido:`Guest`,email:null,autor:!1,editor:!1,revisor:!0,permissaoEspecial:!1,orcid:null,universidade:null};this._currentUser.set(n),this.log.log(3,`[AuthService] setAuthTokenOnly: guest session set pessoaId=${s}`)}else this._currentUser.set(null),this.log.log(2,`[AuthService] setAuthTokenOnly: non-guest token -> userProfile cleared (will be fetched elsewhere if needed)`)}catch{this.log.log(5,`[AuthService] setAuthTokenOnly: decode failed`),this._currentUser.set(null)}this.scheduleAutoLogoutBasedOnToken(t)}else this.log.log(2,`[AuthService] setAuthTokenOnly: null -> clearing state`),this.clearStateAndTimer();this._authCheckState.set(`complete`),this.log.log(2,`[AuthService] setAuthTokenOnly: complete`)}scheduleAutoLogoutBasedOnToken(t){if(xr(this.platformId)){this.logoutTimer&&clearTimeout(this.logoutTimer);try{let e=this._jwtPayload(),r=String(Array.isArray(e?.role??e?.roles)?e.role[0]:e?.role??e?.roles??``).toLowerCase(),o=r===`guest`,s=null;if(e?.exp&&Number.isFinite(e.exp)?s=new Date(e.exp*1e3):s=this.jwtHelper.getTokenExpirationDate(t)??null,!s||Number.isNaN(s.getTime())){this.log.log(4,`[AuthService] scheduleAutoLogout: invalid exp ->
1 skip scheduling`);return}let u=s.getTime()-Date.now()-this.CLOCK_SKEW_MS,n=Math.max(u,0),f=2147483647;n>0?(this.log.log(2,`[AuthService] scheduleAutoLogout: role=${r} in ${n}ms at=${s.toISOString()}`),this.logoutTimer=setTimeout(()=>{o?(this.log.log(3,`[AuthService] auto-expire (guest) -> clear session (no redirect)`),this.clearStateAndTimer()):(this.log.log(3,`[AuthService] auto-expire -> logout (with redirect)`),this.logout())},Math.min(n,f))):o?(this.log.log(4,`[AuthService] scheduleAutoLogout: guest token looks expired on set -> clear only`),this.clearStateAndTimer()):(this.log.log(4,`[AuthService] scheduleAutoLogout: token looks expired on set -> logout now`),this.logout())}catch{this.log.log(4,`[AuthService] scheduleAutoLogout: exception computing expiration -> skip`)}}}clearStateAndTimer(){this._currentUser.set(null),this._authToken.set(null),this._jwtPayload.set(null),this.logoutTimer&&(clearTimeout(this.logoutTimer),this.logoutTimer=null),this.storage?.removeItem(L$3),this.storage?.removeItem(S),this.log.log(2,`[AuthService] clearStateAndTimer: state cleared`)}async refreshAccessToken(){return xr(this.platformId)?this.refreshPromise?this.refreshPromise:(this._authCheckState.set(`checking`),this.log.log(3,`[AuthService] refreshAccessToken: start`),this.refreshPromise=(async()=>{try{let e=(await oy(this.userService.refresh()))?.token??null;if(this.log.log(2,`[AuthService] refreshAccessToken: api done hasToken=${!!e}`),e){this._authToken.set(e),this._jwtPayload.set(this.decodeTokenSafe(e));let r=await oy(this.userService.getUserProfile());return this._currentUser.set(r),this.storage?.setItem(S,JSON.stringify(r)),this.scheduleAutoLogoutBasedOnToken(e),this.storage?.setItem(h$1,`1`),this._authCheckState.set(`complete`),this.log.log(3,`[AuthService] refreshAccessToken: success token=${this.mask(e)}`),e}return this.endSessionAfterRefresh(`no token`),null}catch(t){let e=t?.status??0;return e===401||e===403?(this.endSessionAfterRefresh(`status=${e}`),null):(this.clearStateAndTimer(),this._authCheckState.set(`error`),this.log.log(4,`[AuthService] refreshAccessToken: failed (non-401) status=${e}`),null)}finally{this.refreshPromise=null}})(),this.refreshPromise):null}endSessionAfterRefresh(t){let e=this.isGuest();this.log.log(3,`[AuthService] refreshAccessToken: session ended (${t}) -> clear & mark COMPLETE`),this.clearStateAndTimer();try{this.storage?.removeItem(h$1)}catch{}this._authCheckState.set(`complete`),xr(this.platformId)&&!e&&this.router.navigate([`/login`])}safeIsExpired(t){try{return this.jwtHelper.isTokenExpired(t)}catch{return!0}}mapLoginError(t){let e=`Login failed. Please check your credentials or try again later.`;if(t instanceof I$3){let r=t.error;if(t.status===404&&r?.message){let o=r.message.toLowerCase();o.includes(`username not found`)||o.includes(`password is incorrect`)?e=`Invalid username or password.`:o.includes(`account has not been activated`)?e=`Account not activated. Please check your email.`:e=`Login failed. Please check your credentials.`}else t.status===0?e=`Cannot connect to the server. Please check your network connection.`:r?.message&&(e=r.message)}return e}static ɵfac=function(e){return new(e||i)};static ɵprov=Kr({token:i,factory:i.ɵfac})};var p$1=(i=>(i.TopRight=`top-right`,i.TopLeft=`top-left`,i.BottomRight=`bottom-right`,i.BottomLeft=`bottom-left`,i))(p$1||{});function L$2(n,t){if(n&1&&(tu(0,`h3`,4),zb(1),nu()),n&2){let e=vb().$implicit;QD(),Gm(e.title)}}function V$1(n,t){if(n&1){let e=cb();tu(0,`button`,7),Sm(`click`,function(){Xd(e);let i=vb().$implicit;return ef(vb().dismiss(i.id))}),Dm(1,`span`,8),nu()}}function U(n,t){if(n&1&&(tu(0,`article`,1),Dm(1,`span`,2),tu(2,`div`,3),ZC(3,L$2,2,1,`h3`,4),tu(4,`p`,5),zb(5),nu()(),ZC(6,V$1,2,0,`button`,6),nu()),n&2){let e=t.$implicit,o=vb();ym(`data-type`,e.type)(`data-dismissible`,e.dismissible),QD(),ym(`data-emoji`,o.iconFor(e.type)),QD(2),YC(e.title?3:-1),QD(2),Gm(e.message),QD(),YC(e.dismissible?6:-1)}}var g$1=class n{toastService=v$2(u$1);toasts=this.toastService.toasts;position=this.toastService.position;trackById=(t,e)=>e.id;ToastPosition=p$1;iconMap={success:`✅`,error:`⛔`,info:`ℹ️`,warning:`⚠️`};dismiss(t){this.toastService.dismiss(t)}iconFor(t){return this.iconMap[t]??`ℹ️`}static ɵfac=function(e){return new(e||n)};static ɵcmp=Vw({type:n,selectors:[[`app-toast-container`]],hostVars:1,hostBindings:function(e,o){e&2&&ym(`data-position`,o.position())},decls:3,vars:1,consts:[[`role`,`region`,1,`toast-viewport`],[1,`toast`],[`aria-hidden`,`true`,1,`emoji-icon`,`toast__icon`],[1,`toast__content`],[1,`toast__title`],[1,`toast__message`],[`type`,`button`,`aria-label`,`Dismiss notification`,1,`toast__close`],[`type`,`button`,`aria-label`,`Dismiss notification`,1,`toast__close`,3,`click`],[`data-emoji`,`✖️`,`aria-hidden`,`true`,1,`emoji-icon`]],template:function(e,o){e&1&&(tu(0,`div`,0),XC(1,U,7,6,`article`,1,o.trackById,!0),nu()),e&2&&(ym(`data-position`,o.position()),QD(),eb(o.toasts()))},styles:[`[_nghost-%COMP%]{position:fixed;pointer-events:none;z-index:1800;max-width:calc(100vw - var(--%NS%space-4) * 2)}[data-position="top-right"][_nghost-%COMP%]{top:var(--%NS%space-6);right:var(--%NS%space-6)}[data-position="top-left"][_nghost-%COMP%]{top:var(--%NS%space-6);left:var(--%NS%space-6)}[data-position="bottom-right"][_nghost-%COMP%]{bottom:var(--%NS%space-6);right:var(--%NS%space-6)}[data-position="bottom-left"][_nghost-%COMP%]{bottom:var(--%NS%space-6);left:var(--%NS%space-6)}.toast-viewport[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--%NS%space-3);width:100%}[data-position="bottom-right"][_nghost-%COMP%]   .toast-viewport[_ngcontent-%COMP%], [data-position="bottom-left"][_nghost-%COMP%]   .toast-viewport[_ngcontent-%COMP%]{flex-direction:column-reverse}.toast[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1fr auto;align-items:flex-start;gap:var(--%NS%space-3);min-width:min(320px,100%);max-width:min(420px,100%);margin:0;padding:var(--%NS%space-4);border-radius:var(--%NS%radius-md);background:var(--%NS%card);border:1px solid var(--%NS%border);border-inline-start:4px solid transparent;
1box-shadow:var(--%NS%shadow);color:var(--%NS%text);pointer-events:auto;animation:_ngcontent-%COMP%_toast-in-top .24s ease-out}[data-position="bottom-right"][_nghost-%COMP%]   .toast[_ngcontent-%COMP%], [data-position="bottom-left"][_nghost-%COMP%]   .toast[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_toast-in-bottom}.toast[data-type=success][_ngcontent-%COMP%]{border-inline-start-color:var(--%NS%accent-green)}.toast[data-type=error][_ngcontent-%COMP%]{border-inline-start-color:var(--%NS%danger)}.toast[data-type=info][_ngcontent-%COMP%]{border-inline-start-color:var(--%NS%accent-blue)}.toast[data-type=warning][_ngcontent-%COMP%]{border-inline-start-color:color-mix(in srgb,#f59e0b 70%,var(--%NS%border) 30%)}.toast__icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;font-size:20px}.toast__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.toast__title[_ngcontent-%COMP%]{margin:0;font-size:.95rem;font-weight:600}.toast__message[_ngcontent-%COMP%]{margin:0;font-size:.9rem;line-height:1.5}.toast__close[_ngcontent-%COMP%]{background:none;border:none;border-radius:var(--%NS%radius-sm);padding:4px;color:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.toast__close[_ngcontent-%COMP%]:hover, .toast__close[_ngcontent-%COMP%]:focus-visible{background:color-mix(in srgb,var(--%NS%link) 12%,transparent)}.toast__close[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--%NS%link);outline-offset:2px}@media(max-width:600px){[_nghost-%COMP%]{left:0;right:0;padding-inline:var(--%NS%space-4)}[data-position="top-right"][_nghost-%COMP%], [data-position="top-left"][_nghost-%COMP%]{top:var(--%NS%space-4)}[data-position="bottom-right"][_nghost-%COMP%], [data-position="bottom-left"][_nghost-%COMP%]{bottom:var(--%NS%space-4)}.toast[_ngcontent-%COMP%]{width:100%}}@keyframes _ngcontent-%COMP%_toast-in-top{0%{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}@keyframes _ngcontent-%COMP%_toast-in-bottom{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.toast[_ngcontent-%COMP%]{animation:none}}`]})};var Q$1=5e3;var j$2=4;var u$1=class n{appRef=v$2(lt$1);environmentInjector=v$2(ge$1);destroyRef=v$2(De$1);platformId=v$2(EE);document=v$2(wt$1);isBrowser=xr(this.platformId);liveRegion;toastQueue=wi([]);toastPosition=wi(`top-right`);timeouts=new Map;containerRef;constructor(){this.destroyRef.onDestroy(()=>this.teardown())}toasts=this.toastQueue.asReadonly();position=this.toastPosition.asReadonly();show(t){let e=t.message?.trim();if(!e)return``;let o={id:this.generateId(),message:e,title:t.title?.trim()||void 0,type:t.type??`info`,duration:t.duration??Q$1,dismissible:t.dismissible??!0,createdAt:Date.now()};return this.ensureContainer(),this.announce(o.message),this.toastQueue.update(i=>{let d=[o,...i];return d.length>j$2?d.slice(0,j$2):d}),this.scheduleDismiss(o),o.id}success(t,e,o){return this.show({message:t,title:e,type:`success`,duration:o})}error(t,e,o){return this.show({message:t,title:e,type:`error`,duration:o})}info(t,e,o){return this.show({message:t,title:e,type:`info`,duration:o})}warning(t,e,o){return this.show({message:t,title:e,type:`warning`,duration:o})}setPosition(t){this.toastPosition.set(t)}dismiss(t){this.clearTimer(t),this.toastQueue.update(e=>e.filter(o=>o.id!==t))}clear(){this.toastQueue.set([]),this.clearAllTimers()}ensureContainer(){if(!this.isBrowser||this.containerRef)return;let t=EV(g$1,{environmentInjector:this.environmentInjector});this.appRef.attachView(t.hostView);let e=t.location.nativeElement;e.setAttribute(`data-toast-host`,`true`),this.document.body.appendChild(e),this.containerRef=t}scheduleDismiss(t){if(!this.isBrowser||t.duration<=0)return;let e=setTimeout(()=>this.dismiss(t.id),t.duration);this.timeouts.set(t.id,e)}clearTimer(t){let e=this.timeouts.get(t);e&&(clearTimeout(e),this.timeouts.delete(t))}clearAllTimers(){this.timeouts.forEach(t=>clearTimeout(t)),this.timeouts.clear()}teardown(){this.clearAllTimers(),this.containerRef&&(this.appRef.detachView(this.containerRef.hostView),this.containerRef.destroy(),this.containerRef
1=void 0),this.liveRegion&&(this.liveRegion.remove(),this.liveRegion=void 0)}announce(t){if(!this.isBrowser)return;if(!this.liveRegion){let o=this.document.createElement(`div`);o.setAttribute(`aria-live`,`polite`),o.setAttribute(`aria-atomic`,`true`),o.setAttribute(`role`,`status`),o.setAttribute(`data-toast-announcer`,`true`),o.className=`visually-hidden`,this.document.body.appendChild(o),this.liveRegion=o}let e=this.liveRegion;e.textContent=``,setTimeout(()=>{e.textContent=t},100)}generateId(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`}static ɵfac=function(e){return new(e||n)};static ɵprov=Kr({token:n,factory:n.ɵfac})};var t=class e{worldFooterReady=wi(!1);enableFooterWorld(){this.worldFooterReady.set(!0)}reset(){this.worldFooterReady.set(!1)}static ɵfac=function(a){return new(a||e)};static ɵprov=Kr({token:e,factory:e.ɵfac})};var e=class{constructor(n,c={}){this.eventName=n;this.frozenDefaults=Object.freeze(z$1({},c))}eventName;frozenDefaults;build(n={}){return{eventName:this.eventName,params:z$1(z$1({},this.frozenDefaults),n)}}};var o=class{static navbar={mainLink:new e(`select_content`,{content_type:`navigation_link`,location:`navbar_main`}),socialLink:new e(`click`,{event_category:`outbound_link`,location:`navbar_social`}),openAccessLink:new e(`click`,{event_category:`outbound_link`,location:`navbar_open_access`}),themeToggle:new e(`theme_toggle`,{location:`navbar_controls`}),userAuth:new e(`select_content`,{content_type:`user_action_link`,location:`navbar_auth`}),userDropdown:new e(`select_content`,{content_type:`user_action_link`,location:`navbar_dropdown`}),logout:new e(`logout`,{method:`button_click`,location:`navbar_dropdown`})};static home={heroAbout:new e(`select_content`,{content_type:`hero_cta`,item_id:`about_cta`,location:`home_hero`}),heroGuide:new e(`select_content`,{content_type:`hero_cta`,item_id:`guide_cta`,location:`home_hero`}),submitManuscript:new e(`select_content`,{content_type:`cta`,item_id:`submit_now`,location:`home_sidebar`}),recentArticleTitle:new e(`select_content`,{content_type:`article_link_internal`,location:`home_recent_list_title`}),recentArticleDoi:new e(`click`,{event_category:`outbound_link`,event_label:`DOI Click`,location:`home_recent_list_doi`}),recentVolume:new e(`select_content`,{content_type:`volume_link`,location:`home_recent_list_volume`}),pagination:new e(`paginate`,{content_type:`recent_articles`,location:`home_recent_list`}),sidebarSearch:new e(`search`,{location:`home_sidebar_search`}),sidebarSearchFail:new e(`search_attempt_failed`,{location:`home_sidebar_search`})};static archiveDetail={pdfView:new e(`select_content`,{content_type:`pdf_view_link`,location:`article_page_buttons`}),doiClick:new e(`click`,{event_category:`outbound_link`,event_label:`DOI Click`,location:`article_page_details`}),volumeLink:new e(`select_content`,{content_type:`volume_link`,location:`article_page_details`}),shareCopyLink:new e(`share`,{method:`copy_link`,content_type:`article`,location:`article_page_buttons`}),shareCopyCitation:new e(`share`,{method:`cite_copy`,content_type:`citation`,location:`article_page_buttons`}),shareBibtex:new e(`download`,{method:`cite_bibtex`,content_type:`citation`,location:`article_page_buttons`})};static contact={email:new e(`contact_click`,{content_type:`email_link`,location:`contact_page`}),phone:new e(`contact_click`,{content_type:`phone_link`,location:`contact_page`}),externalSite:new e(`click`,{event_category:`outbound_link`,location:`contact_page`})};static editorialBoard={orcidLink:new e(`click`,{event_category:`outbound_link`,content_type:`orcid_profile`,location:`editorial_board_table`})}};var ke=(()=>{class n{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,i){this._renderer=t,this._elementRef=i}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty(`disabled`,t)}static ɵfac=function(i){return new(i||n)(io(Pc),io(Jr))};static ɵdir=Gw({type:n})}return n})();var ue=(()=>{class n extends ke{static ɵfac=(()=>{let t;return function(r){return(t||(t=tI(n)))(r||n)}})();static ɵdir=Gw({type:n,features:[sm]})}return n})();var Y$1=new _$1(``);var it={provide:Y$1,useExisting:Xo(()=>je$2),multi:!0};function rt(){let n=de$2()?de$2().getUserAgent():``;return/android (\d+)/.test(n.toLowerCase())}var ot=new _$1(``);var je$2=(()=>{class n extends ke{_compositionMode;_composing=!1;constructor(t,i,r){super(t,i),this._compositionMode=r,this._compositionMode??=!rt()}writeValue(t){let i=t??``;this.setProperty(`value`,i)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}
vendor: 5,195 bytes, line 1
1_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static ɵfac=function(i){return new(i||n)(io(Pc),io(Jr),io(ot,8))};static ɵdir=Gw({type:n,selectors:[[`input`,`formControlName`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`formControlName`,``,3,`ngNoCva`,``],[`input`,`formControl`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`formControl`,``,3,`ngNoCva`,``],[`input`,`ngModel`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`ngModel`,``,3,`ngNoCva`,``],[``,`ngDefaultControl`,``]],hostBindings:function(i,r){i&1&&_m(`input`,function(a){return r._handleInput(a.target.value)})(`blur`,function(){return r.onTouched()})(`compositionstart`,function(){return r._compositionStart()})(`compositionend`,function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[o_([it]),sm]})}return n})();function de$1(n){return n==null||ce(n)===0}function ce(n){return n==null?null:Array.isArray(n)||typeof n==`string`?n.length:n instanceof Set?n.size:null}var he$1=new _$1(``);var Te$1=new _$1(``);var st=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;var oe=class{static min(e){return at(e)}static max(e){return lt(e)}static required(e){return Ge$2(e)}static requiredTrue(e){return ut(e)}static email(e){return dt(e)}static minLength(e){return ct(e)}static maxLength(e){return ht(e)}static pattern(e){return ft(e)}static nullValidator(e){return L$1()}static compose(e){return $e$2(e)}static composeAsync(e){return qe$1(e)}};function at(n){return e=>{if(e.value==null||n==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t<n?{min:{min:n,actual:e.value}}:null}}function lt(n){return e=>{if(e.value==null||n==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}function Ge$2(n){return de$1(n.value)?{required:!0}:null}function ut(n){return n.value===!0?null:{required:!0}}function dt(n){return de$1(n.value)||st.test(n.value)?null:{email:!0}}function ct(n){return e=>{let t=e.value?.length??ce(e.value);return t===null||t===0?null:t<n?{minlength:{requiredLength:n,actualLength:t}}:null}}function ht(n){return e=>{let t=e.value?.length??ce(e.value);return t!==null&&t>n?{maxlength:{requiredLength:n,actualLength:t}}:null}}function ft(n){if(!n)return L$1;let e,t;return typeof n==`string`?(t=``,n.charAt(0)!==`^`&&(t+=`^`),t+=n,n.charAt(n.length-1)!==`$`&&(t+=`$`),e=new RegExp(t)):(t=n.toString(),e=n),i=>{if(de$1(i.value))return null;let r=i.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}function L$1(n){return null}function Be$1(n){return n!=null}function Ue$2(n){return ql(n)?ft$1(n):n}function He$2(n){let e={};return n.forEach(t=>{e=t!=null?z$1(z$1({},e),t):e}),Object.keys(e).length===0?null:e}function Le$1(n,e){return e.map(t=>t(n))}function gt(n){return!n.validate}function We$1(n){return n.map(e=>gt(e)?e:t=>e.validate(t))}function $e$2(n){if(!n)return null;let e=n.filter(Be$1);return e.length==0?null:function(t){return He$2(Le$1(t,e))}}function fe$1(n){return n!=null?$e$2(We$1(n)):null}function qe$1(n){if(!n)return null;let e=n.filter(Be$1);return e.length==0?null:function(t){return fy(Le$1(t,e).map(Ue$2)).pipe(pt$1(He$2))}}function ge(n){return n!=null?qe$1(We$1(n)):null}function Fe$2(n,e){return n===null?[e]:Array.isArray(n)?[...n,e]:[n,e]}function pt(n){return n._rawValidators}function mt(n){return n._rawAsyncValidators}function se$1(n){return n?Array.isArray(n)?n:[n]:[]}function W(n,e){return Array.isArray(n)?n.includes(e):n===e}function we(n,e){let t=se$1(e);return se$1(n).forEach(r=>{W(t,r)||t.push(r)}),t}function Ne$1(n,e){return se$1(e).filter(t=>!W(n,t))}var $$1=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(e){this._rawValidators=e||[],this._composedValidatorFn=fe$1(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ge(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}
1_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control?.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}};var A$2=class extends $$1{name;get formDirective(){return null}get path(){return null}};var x$1=`VALID`;var H=`INVALID`;var D=`PENDING`;var R=`DISABLED`;var p=class{};var q$1=class extends p{value;source;constructor(e,t){super(),this.value=e,this.source=t}};var k=class extends p{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}};var j$1=class extends p{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}};var b=class extends p{status;source;constructor(e,t){super(),this.status=e,this.source=t}};var ae=class extends p{source;constructor(e){super(),this.source=e}};var M$1=class extends p{source;constructor(e){super(),this.source=e}};function ze$1(n){return(K$1(n)?n.validators:n)||null}function vt(n){return Array.isArray(n)?fe$1(n):n||null}function Ze(n,e){return(K$1(e)?e.asyncValidators:n)||null}function _t(n){return Array.isArray(n)?ge(n):n||null}function K$1(n){return n!=null&&!Array.isArray(n)&&typeof n==`object`}function yt(n,e,t){let i=n.controls;if(!(e?Object.keys(i):i).length)throw new w$1(1e3,``);if(!Xe(i,t))throw new w$1(1001,``)}function Ct(n,e,t){n._forEachChild((i,r)=>{if(t[r]===void 0)throw new w$1(-1002,``)})}var z=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=wi(!1);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e,this._updateHasRequiredValidator()}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return ov(this.statusReactive)}set status(e){ov(()=>this.statusReactive.set(e))}_status=mn$2(()=>this.statusReactive());statusReactive=wi(void 0);get valid(){return this.status===x$1}get invalid(){return this.status===H}get pending(){return this.status===D}get disabled(){return this.status===R}get enabled(){return this.status!==R}errors;get pristine(){return ov(this.pristineReactive)}set pristine(e){ov(()=>this.pristineReactive.set(e))}_pristine=mn$2(()=>this.pristineReactive());pristineReactive=wi(!0);get dirty(){return!this.pristine}get touched(){return ov(this.touchedReactive)}set touched(e){ov(()=>this.touchedReactive.set(e))}_touched=mn$2(()=>this.touchedReactive());touchedReactive=wi(!1);get untouched(){return!this.touched}_events=new Z$3;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:`change`}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(we(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(we(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Ne$1(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Ne$1(e,this._rawAsyncValidators))}hasValidator(e){return W(this._rawValidators,e)}hasAsyncValidator(e){return W(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;e.onlySelf||this._parent?.markAsTouched(Q$2(z$1({},e),{sourceControl:i})),t&&e.emitEvent!==!1&&this._events.next(new j$1(!0,i))}markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;
1this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),e.onlySelf||this._parent?._updateTouched(e,i),t&&e.emitEvent!==!1&&this._events.next(new j$1(!1,i))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;e.onlySelf||this._parent?.markAsDirty(Q$2(z$1({},e),{sourceControl:i})),t&&e.emitEvent!==!1&&this._events.next(new k(!1,i))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),e.onlySelf||this._parent?._updatePristine(e,i),t&&e.emitEvent!==!1&&this._events.next(new k(!0,i))}markAsPending(e={}){this.status=D;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new b(this.status,t)),this.statusChanges.emit(this.status)),e.onlySelf||this._parent?.markAsPending(Q$2(z$1({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=R,this.errors=null,this._forEachChild(r=>{r.disable(Q$2(z$1({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new q$1(this.value,i)),this._events.next(new b(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Q$2(z$1({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=x$1,this._forEachChild(i=>{i.enable(Q$2(z$1({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Q$2(z$1({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,t){e.onlySelf||(this._parent?.updateValueAndValidity(e),e.skipPristineCheck||this._parent?._updatePristine({},t),this._parent?._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===x$1||this.status===D)&&this._runAsyncValidator(i,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new q$1(this.value,t)),this._events.next(new b(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),e.onlySelf||this._parent?.updateValueAndValidity(Q$2(z$1({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?R:x$1}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=D,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let i=Ue$2(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(`.`)),t.length===0)?null:t.reduce((i,r)=>i&&i._find(r),this)}getError(e,t){let i=t?this.get(t):this;return i?.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new b(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,i)}_initObservables(){this.valueChanges=new Xe$1,this.statusChanges=new Xe$1}_calculateStatus(){return this._allControlsDisabled()?R:this.errors?H:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(D)?D:this._anyControlsHaveStatus(H)?H:x$1}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}
1_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,e.onlySelf||this._parent?._updatePristine(e,t),r&&this._events.next(new k(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new j$1(this.touched,t)),e.onlySelf||this._parent?._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){K$1(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=vt(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=_t(this._rawAsyncValidators)}_updateHasRequiredValidator(){ov(()=>this._hasRequired.set(this.hasValidator(oe.required)))}};function Xe(n,e){return Object.hasOwn(n,e)}function Vt(n){return n.tagName===`INPUT`||n.tagName===`SELECT`||n.tagName===`TEXTAREA`}function fn$1(n){if(n.tagName!==`INPUT`)return!1;let e=n.type;return e===`number`||e===`range`||e===`date`||e===`month`}function gn(n){return n.tagName===`INPUT`||n.tagName===`TEXTAREA`}function Dt(n,e,t,i){switch(t){case`name`:n.setAttribute(e,t,i);break;case`disabled`:case`readonly`:case`required`:i?n.setAttribute(e,t,``):n.removeAttribute(e,t);break;case`max`:case`min`:case`minLength`:case`maxLength`:i!==void 0?n.setAttribute(e,t,i.toString()):n.removeAttribute(e,t);break}}var le$1=class{kind;context;control;message;constructor({kind:e,context:t,control:i}){this.kind=e,this.context=t,this.control=i}};var bt=(()=>{class n{_validator=L$1;_onChange;_enabled;ngOnChanges(t){if(this.inputName in t){let i=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):L$1,this._onChange?.()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static ɵfac=function(i){return new(i||n)};static ɵdir=Gw({type:n,features:[LE]})}return n})();var At={provide:he$1,useExisting:Xo(()=>Ye),multi:!0};var Ye=(()=>{class n extends bt{required;inputName=`required`;normalizeInput=mV;createValidator=t=>Ge$2;enabled(t){return t}static ɵfac=(()=>{let t;return function(r){return(t||(t=tI(n)))(r||n)}})();static ɵdir=Gw({type:n,selectors:[[``,`required`,``,`formControlName`,``,3,`type`,`checkbox`],[``,`required`,``,`formControl`,``,3,`type`,`checkbox`],[``,`required`,``,`ngModel`,``,3,`type`,`checkbox`]],hostVars:1,hostBindings:function(i,r){i&2&&ym(`required`,r._enabled?``:null)},inputs:{required:`required`},standalone:!1,features:[o_([At]),sm]})}return n})();var Mt=new _$1(``);var J$1=new _$1(``,{factory:()=>Q});var Q=`always`;function Et(n,e){return[...e.path,n]}function Ie$1(n,e,t=Q){Ke$1(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||t===`always`)&&e.valueAccessor.setDisabledState?.(n.disabled),wt(n,e),It(n,e),Nt(n,e),Ft(n,e)}function Se$1(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Ft(n,e){if(e.valueAccessor.setDisabledState){let t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}function Ke$1(n,e){let t=pt(n);e.validator!==null?n.setValidators(Fe$2(t,e.validator)):typeof t==`function`&&n.setValidators([t]);let i=mt(n);e.asyncValidator!==null?n.setAsyncValidators(Fe$2(i,e.asyncValidator)):typeof i==`function`&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();Se$1(e._rawValidators,r),Se$1(e._rawAsyncValidators,r)}function wt(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn===`change`&&Je$1(n,e)})}function Nt(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn===`blur`&&n._pendingChange&&Je$1(n,e),n.updateOn!==`submit`&&n.markAsTouched()})}function Je$1(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function It(n,e){let t=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)}
1)}function St(n,e){Ke$1(n,e)}function Ot(n,e){if(!Object.hasOwn(n,`model`))return!1;let t=n.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function xt(n){return Object.getPrototypeOf(n.constructor)===ue}function Rt(n,e){n._syncPendingControls(),e.forEach(t=>{let i=t.control;i.updateOn===`submit`&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Pt(n,e){if(!e)return null;let t,i,r;return e.forEach(o=>{o.constructor===je$2?t=o:xt(o)?i=o:r=o}),r||i||t||null}var kt={provide:Mt,useFactory:()=>{let n=v$2(E$1,{self:!0});return{setParseErrors:e=>{n.setParseErrorSource(e)},set onReset(e){n.onReset=e}}}};var E$1=class extends $$1{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(e){this.userOnReset=e,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(t=>{t instanceof M$1&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=Pt(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(e,t,i){super(),this.injector=e,this.renderer=t,this.rawValueAccessors=i,this.injector?.get(De$1)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let e=this.injector?.get(hV);if(!this.control||!e)return;let t=e.markForCheck.bind(e);this.subscription=new X$3,this.subscription.add(this.control.valueChanges.subscribe(t)),this.subscription.add(this.control.statusChanges.subscribe(t)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(i=>{i instanceof M$1&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(e){!e.nativeElement.hasAttribute?.(`ngNoCva`)&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!e.customControl||(this.isCustomControlBased=!0,e.listenToCustomControlModel(r=>{this.control?.setValue(r,{emitModelToViewChange:!1}),this.control?.markAsDirty(),this.viewToModelUpdate(r)}),e.listenToCustomControlOutput(`touch`,()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=Vt(e.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(r=>r instanceof Ye))}ngControlUpdate(e,t){if(!this.isCustomControlBased)return;let i=this.control,r=this.customControlBindings;Object.is(r.value,i.value)||(r.value=i.value,e.setCustomControlModelInput(i.value)),this.bindControlProperty(e,r,`touched`,i.touched),this.bindControlProperty(e,r,`dirty`,i.dirty),this.bindControlProperty(e,r,`valid`,i.valid),this.bindControlProperty(e,r,`invalid`,i.invalid),this.bindControlProperty(e,r,`pending`,i.pending),this.bindControlProperty(e,r,`disabled`,i.disabled),this.shouldBindRequired&&this.bindControlProperty(e,r,`required`,this.isRequired);let o=i.errors;if(r.errors!==o){r.errors=o;let a=this._convertErrors(o);e.setInputOnDirectives(`errors`,a)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(e,t,i,r){if(t[i]===r)return;t[i]=r;let o=e.setInputOnDirectives(i,r);this.isNativeFormElement&&!o&&(i===`disabled`||i===`required`)&&this.renderer&&Dt(this.renderer,e.nativeElement,i,r)}_convertErrors(e){if(e===null)return[];let t=this.control;return Object.entries(e).map(([i,r])=>new le$1({context:r,kind:i,control:t}))}setParseErrorSource(e){if(e===void 0)return;let t=null,i=mn$2(()=>{let r=e();return r.length===0?null:r.reduce((o,a)=>(o[a.kind]=a,o),{})});this.parseErrorsValidator=(()=>t).bind(this),wf(()=>{t=i(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(e){this.parseErrorsValidator&&(e?.removeValidators(this.parseErrorsValidator),e?.updateValueAndValidity({emitEvent:!1}))}};var Z$2=class{_cd;constructor(e){this._cd=e}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}
1get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var pn$1=(()=>{class n extends Z$2{constructor(t){super(t)}static ɵfac=function(i){return new(i||n)(io(E$1,2))};static ɵdir=Gw({type:n,selectors:[[``,`formControlName`,``],[``,`ngModel`,``],[``,`formControl`,``]],hostVars:14,hostBindings:function(i,r){i&2&&Lm(`ng-untouched`,r.isUntouched)(`ng-touched`,r.isTouched)(`ng-pristine`,r.isPristine)(`ng-dirty`,r.isDirty)(`ng-valid`,r.isValid)(`ng-invalid`,r.isInvalid)(`ng-pending`,r.isPending)},standalone:!1,features:[sm]})}return n})();var mn$1=(()=>{class n extends Z$2{constructor(t){super(t)}static ɵfac=function(i){return new(i||n)(io(A$2,10))};static ɵdir=Gw({type:n,selectors:[[``,`formGroupName`,``],[``,`formArrayName`,``],[``,`ngModelGroup`,``],[``,`formGroup`,``],[``,`formArray`,``],[`form`,3,`ngNoForm`,``],[``,`ngForm`,``]],hostVars:16,hostBindings:function(i,r){i&2&&Lm(`ng-untouched`,r.isUntouched)(`ng-touched`,r.isTouched)(`ng-pristine`,r.isPristine)(`ng-dirty`,r.isDirty)(`ng-valid`,r.isValid)(`ng-invalid`,r.isInvalid)(`ng-pending`,r.isPending)(`ng-submitted`,r.isSubmitted)},standalone:!1,features:[sm]})}return n})();var X$2=class extends z{constructor(e,t,i){super(ze$1(t),Ze(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,t){return this._find(e)||(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){let i=this._find(e);i&&i._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){let r=this._find(e);r&&r._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this._find(e)?.enabled===!0}setValue(e,t={}){ov(()=>{Ct(this,!0,e),Object.keys(e).forEach(i=>{yt(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)})}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(i=>{let r=this._find(i);r&&r.patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e?e[r]:null,Q$2(z$1({},t),{onlySelf:!0}))}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new M$1(this))}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>i._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,i]of Object.entries(this.controls))if(this.contains(t)&&e(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,i,r)=>((i.enabled||this.disabled)&&(t[r]=i.value),t))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,o)=>{i=t(i,r,o)}),i}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return Xe(this.controls,e)?this.controls[e]:null}};var jt={provide:A$2,useExisting:Xo(()=>Tt)};var P=Promise.resolve();var Tt=(()=>{class n extends A$2{callSetDisabledState;get submitted(){return ov(this.submittedReactive)}_submitted=mn$2(()=>this.submittedReactive());submittedReactive=wi(!1);_directives=new Set;form;ngSubmit=new Xe$1;options;constructor(t,i,r){super(),this.callSetDisabledState=r,this.form=new X$2({},fe$1(t),ge(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){P.then(()=>{t.control=this._findContainer(t.path).registerControl(t.name,t.control),t._setupWithForm(this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}
1removeControl(t){P.then(()=>{this._findContainer(t.path)?.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){P.then(()=>{let i=this._findContainer(t.path),r=new X$2({});St(r,t),i.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){P.then(()=>{this._findContainer(t.path)?.removeControl?.(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,i){P.then(()=>{this.form.get(t.path).setValue(i)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),Rt(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new ae(this.control)),t?.target?.method===`dialog`}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static ɵfac=function(i){return new(i||n)(io(he$1,10),io(Te$1,10),io(J$1,8))};static ɵdir=Gw({type:n,selectors:[[`form`,3,`ngNoForm`,``,3,`formGroup`,``,3,`formArray`,``],[`ng-form`],[``,`ngForm`,``]],hostBindings:function(i,r){i&1&&_m(`submit`,function(a){return r.onSubmit(a)})(`reset`,function(){return r.onReset()})},inputs:{options:[0,`ngFormOptions`,`options`]},outputs:{ngSubmit:`ngSubmit`},exportAs:[`ngForm`],standalone:!1,features:[o_([jt]),sm]})}return n})();function Oe$2(n,e){let t=n.indexOf(e);t>-1&&n.splice(t,1)}function xe$1(n){return typeof n==`object`&&n!==null&&Object.keys(n).length===2&&`value`in n&&`disabled`in n}var Gt=class extends z{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,i){super(ze$1(t),Ze(i,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),K$1(t)&&(t.nonNullable||t.initialValueIsDefault)&&(xe$1(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){ov(()=>{this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)})}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),t.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new M$1(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Oe$2(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Oe$2(this._onDisabledChange,e)}_forEachChild(e){}_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(e){xe$1(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Bt={provide:E$1,useExisting:Xo(()=>Ut)};var Re$1=Promise.resolve();var Ut=(()=>{class n extends E$1{_changeDetectorRef;callSetDisabledState;control=new Gt;static ngAcceptInputType_isDisabled;_registered=!1;_ngModelInjector;viewModel;name=``;isDisabled;model;options;update=new Xe$1;constructor(t,i,r,o,a,f,_,F){super(_,F,o),this._changeDetectorRef=a,this.callSetDisabledState=f,this._parent=t,this._setValidators(i),this._setAsyncValidators(r)}ngOnChanges(t){if(this._registered,this._checkForErrors(),!this._registered||`name`in t){if(this._registered&&(this._checkName(),this.formDirective)){let i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}`isDisabled`in t&&this._updateDisabled(t),Ot(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}ɵngControlCreate(t){super.ngControlCreate(t)}ɵngControlUpdate(t){super.ngControlUpdate(t,!1)}get shouldBindRequired(){return!1}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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)}
1_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Ie$1(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(t){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Ie$1(this.control,this,t))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Re$1.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let i=t.isDisabled.currentValue,r=i!==0&&mV(i);Re$1.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Et(t,this._parent):[t]}static ɵfac=function(i){return new(i||n)(io(A$2,9),io(he$1,10),io(Te$1,10),io(Y$1,10),io(hV,8),io(J$1,8),io(me,8),io(Pc,8))};static ɵdir=Gw({type:n,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:[o_([Bt,kt]),sm,LE,Qw(null)]})}return n})();var _n$1=(()=>{class n{static ɵfac=function(i){return new(i||n)};static ɵdir=Gw({type:n,selectors:[[`form`,3,`ngNoForm`,``,3,`ngNativeValidate`,``]],hostAttrs:[`novalidate`,``],standalone:!1})}return n})();var Ht=new _$1(``);var Lt={provide:Y$1,useExisting:Xo(()=>et),multi:!0};function Qe(n,e){return n==null?`${e}`:(e&&typeof e==`object`&&(e=`Object`),`${n}: ${e}`.slice(0,50))}function Wt(n){return n.split(`:`)[0]}var et=(()=>{class n extends ue{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;appRefInjector=v$2(lt$1).injector;destroyRef=v$2(De$1);cdr=v$2(hV);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,Wh({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(t){this.cdr.markForCheck(),this.value=t;let r=Qe(this._getOptionId(t),t);this.setProperty(`value`,r)}registerOnChange(t){this.onChange=i=>{this.value=this._getOptionValue(i),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),t))return i;return null}_getOptionValue(t){let i=Wt(t);return this._optionMap.has(i)?this._optionMap.get(i):t}static ɵfac=(()=>{let t;return function(r){return(t||(t=tI(n)))(r||n)}})();static ɵdir=Gw({type:n,selectors:[[`select`,`formControlName`,``,3,`multiple`,``,3,`ngNoCva`,``],[`select`,`formControl`,``,3,`multiple`,``,3,`ngNoCva`,``],[`select`,`ngModel`,``,3,`multiple`,``,3,`ngNoCva`,``]],hostBindings:function(i,r){i&1&&_m(`change`,function(a){return r.onChange(a.target.value)})(`blur`,function(){return r.onTouched()})},inputs:{compareWith:`compareWith`},standalone:!1,features:[o_([Lt]),sm]})}return n})();var yn$1=(()=>{class n{_element;_renderer;_select;id;constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){this._select!=null&&(this._select._optionMap.set(this.id,t),this._setElementValue(Qe(this.id,t)),this._select._writeValueAfterRender())}set value(t){this._setElementValue(t),this._select?._writeValueAfterRender()}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,`value`,t)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static ɵfac=function(i){return new(i||n)(io(Jr),io(Pc),io(et,9))};static ɵdir=Gw({type:n,selectors:[[`option`]],inputs:{ngValue:`ngValue`,value:`value`},standalone:!1})}return n})();var $t={provide:Y$1,useExisting:Xo(()=>tt$1),multi:!0};function Pe$1(n,e){return n==null?`${e}`:(typeof e==`string`&&(e=`'${e}'`),e&&typeof e==`object`&&(e=`Object`),`${n}: ${e}`.slice(0,50))}function qt(n){return n.split(`:`)[0]}var tt$1=(()=>{class n extends ue{value;_optionMap=new Map;_idCounter=0;set compareWith(t){this._compareWith=t}_compareWith=Object.is;writeValue(t){this.value=t;let i;if(Array.isArray(t)){let r=t.map(o=>this._getOptionId(o));i=(o,a)=>{o._setSelected(r.indexOf(a)>-1)}}else i=r=>{r._setSelected(!1)};
1this._optionMap.forEach(i)}registerOnChange(t){this.onChange=i=>{let r=[],o=i.selectedOptions;if(o!==void 0){let a=o;for(let f=0;f<a.length;f++){let _=a[f],F=this._getOptionValue(_.value);r.push(F)}}else{let a=i.options;for(let f=0;f<a.length;f++){let _=a[f];if(_.selected){let F=this._getOptionValue(_.value);r.push(F)}}}this.value=r,t(r)}}_registerOption(t){let i=(this._idCounter++).toString();return this._optionMap.set(i,t),i}_getOptionId(t){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,t))return i;return null}_getOptionValue(t){let i=qt(t);return this._optionMap.has(i)?this._optionMap.get(i)._value:t}static ɵfac=(()=>{let t;return function(r){return(t||(t=tI(n)))(r||n)}})();static ɵdir=Gw({type:n,selectors:[[`select`,`multiple`,``,`formControlName`,``,3,`ngNoCva`,``],[`select`,`multiple`,``,`formControl`,``,3,`ngNoCva`,``],[`select`,`multiple`,``,`ngModel`,``,3,`ngNoCva`,``]],hostBindings:function(i,r){i&1&&_m(`change`,function(a){return r.onChange(a.target)})(`blur`,function(){return r.onTouched()})},inputs:{compareWith:`compareWith`},standalone:!1,features:[o_([$t]),sm]})}return n})();var Cn$1=(()=>{class n{_element;_renderer;_select;id;_value;constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){this._select!=null&&(this._value=t,this._setElementValue(Pe$1(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Pe$1(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,`value`,t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,`selected`,t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static ɵfac=function(i){return new(i||n)(io(Jr),io(Pc),io(tt$1,9))};static ɵdir=Gw({type:n,selectors:[[`option`]],inputs:{ngValue:`ngValue`,value:`value`},standalone:!1})}return n})();var nt$1=(()=>{class n{static ɵfac=function(i){return new(i||n)};static ɵmod=Bw({type:n});static ɵinj=Nd({})}return n})();var Vn$1=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:J$1,useValue:t.callSetDisabledState??Q}]}}static ɵfac=function(i){return new(i||n)};static ɵmod=Bw({type:n});static ɵinj=Nd({imports:[nt$1]})}return n})();var Dn$1=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:Ht,useValue:t.warnOnNgModelWithFormControl??`always`},{provide:J$1,useValue:t.callSetDisabledState??Q}]}}static ɵfac=function(i){return new(i||n)};static ɵmod=Bw({type:n});static ɵinj=Nd({imports:[nt$1]})}return n})();var m$1=class l{platformId=v$2(EE);BaseURI=this.resolveBaseUri();apiArtigoUrl=this.BaseURI+`/Article/Article`;apiArquivesArtigosUrl=this.BaseURI+`/Article/ArquivesArticlesAnoMes`;apiArtigoMaisRecenteUrl=this.BaseURI+`/Article/ArtigoMaisRecente`;apiArtigoMaisBaixadoUrl=this.BaseURI+`/Article/ArtigoMaisBaixado`;apiArtigoByAnoMesUrl=this.BaseURI+`/Article/ArtigoByAnoMes`;apiQuantidadeArtigosUrl=this.BaseURI+`/Article/QuantidadeArtigos`;apiVolumesArtigosUrl=this.BaseURI+`/Article/GetAllVolumesDosArtigos`;apiAllArtigosPorVolumeUrl=this.BaseURI+`/Article/GetAllArtigosPorVolume`;apiisExistSumarioIdrl=this.BaseURI+`/Article/IstheSumarioIDPublic`;apiSumarioIdByUrlFriendlyUrl=this.BaseURI+`/Article/IsTheSumariofriendlyURLPublic`;apiMetaDataArticleUrl=this.BaseURI+`/Article/GetMetaDataArticle`;apiArtigosByFriendlyUrl=this.BaseURI+`/Article/ArticlesByFriendlyUrl`;apiGetListUrlFriendlySumarioPublished=this.BaseURI+`/Article/GetListUrlFriendlySumarioPublished`;apiGetListSumariosIdPublished=this.BaseURI+`/Article/GetListSumariosIdPublished`;apiRelatedArticlesUrl=this.BaseURI+`/Article/RelatedArticles`;apiArticlesByIdsUrl=this.BaseURI+`/Article/ArticlesByIds`;apiRecentArticleIdsUrl=this.BaseURI+`/Article/RecentArticleIds`;apiIncrementViewsCountUrl=this.BaseURI+`/Article/IncrementViewsCount`;apiTopMostDownloadedUrl=this.BaseURI+`/Article/TopMostDownloaded`;apiTopMostReadUrl=this.BaseURI+`/Article/TopMostRead`;apiRecommendToColleagueUrl=this.BaseURI+`/Article/RecommendToColleague`;http=v$2(We$2);homeCacheInvalidate$=new Z$3;volumes$=this.homeCacheInvalidate$.pipe(dd(void 0),nd(()=>this.http.get(this.apiVolumesArtigosUrl)),Ny({bufferSize:1,refCount:!1}));artigoMaisRecente$=this.homeCacheInvalidate$.pipe(dd(void 0),nd(()=>this.http.get(this.apiArtigoMaisRecenteUrl)),Ny({bufferSize:1,refCount:!1}));artigoMaisBaixado$=this.homeCacheInvalidate$.pipe(dd(void 0),nd(()=>this.http.get(this.apiArtigoMaisBaixadoUrl)),Ny({bufferSize:1,refCount:!1}));invalidateHomeCaches(){this.homeCacheInvalidate$.next()}resolveBaseUri(){if(!$r(this.platformId))return this.normalizeBaseUrl(n$1.apiUrl);if(this.isBuildExecutionContext())return this.normalizeBaseUrl(n$1.apiUrl);let e=this.getProcessEnvVar(`TD_INTERNAL_API_URL`);if(e&&e.trim().length>0)return this.normalizeBaseUrl(e);let t=n$1.internalApiUrl;return t&&t.trim().length>0?this.normalizeBaseUrl(t):this.normalizeBaseUrl(n$1.apiUrl)}isBuildExecutionContext(){let e=this.getProcessEnvVar(`npm_lifecycle_event`).toLowerCase();if(/build|prerender/.test(e))return!0;let t=globalThis.process?.argv?.join(` `).toLowerCase()??``;return/\bng\b.*\bbuild\b|@angular[\\/]build|prerender/.test(t)}getProcessEnvVar(e){return globalThis.process?.env?.[e]??``}normalizeBaseUrl(e){return(e??``).replace(/\/+$/,``)}
1GetArticlesByIds(e){let t=e.map(c=>`ids=${c}`).join(`&`);return this.http.get(`${this.apiArticlesByIdsUrl}?${t}`).pipe(ld())}GetRecentArticleIds(e,t){return this.http.get(`${this.apiRecentArticleIdsUrl}`,{params:{currentPage:e,pageSize:t.toString()}})}GetArticle(e){return this.http.get(`${this.apiArtigoUrl}/${e}`).pipe(ld())}GetArchivesArticles(){return this.http.get(this.apiArquivesArtigosUrl)}GetOneArtigoMaisRecente(){return this.artigoMaisRecente$.pipe(ld())}GetOneArtigoMaisBaixado(){return this.artigoMaisBaixado$.pipe(ld())}getGrupoArtigoByAnoMes(e){return this.http.get(`${this.apiArtigoByAnoMesUrl}/${e}`)}GetQuantidadeArtigos(){return this.http.get(this.apiQuantidadeArtigosUrl).pipe(ld())}GetAllVolumesDosArtigos(){return this.volumes$.pipe(ld())}GetAllArtigosPorVolume(e){return this.http.get(`${this.apiAllArtigosPorVolumeUrl}/${e}`)}isExistSumarioBySumarioId(e){return this.http.get(`${this.apiisExistSumarioIdrl}/${e}`)}isExistSumarioByFriendlyURL(e){return this.http.get(`${this.apiSumarioIdByUrlFriendlyUrl}/${e}`)}GetMetaDataArticle(e){return this.http.get(`${this.apiMetaDataArticleUrl}/${e}`).pipe(ld())}GetSumarioIdByUrlFriendly(e){return this.http.get(`${this.apiArtigosByFriendlyUrl}/${e}`).pipe(ld())}GetListUrlFriendlySumarioPublished(){return oy(this.http.get(this.apiGetListUrlFriendlySumarioPublished))}GetListSumariosIdPublished(){return oy(this.http.get(this.apiGetListSumariosIdPublished))}GetRelatedArticles(e){return this.http.get(`${this.apiRelatedArticlesUrl}/${e}`)}IncrementViewsCount(e){return this.http.post(`${this.apiIncrementViewsCountUrl}/${e}`,null)}
1GetTopMostDownloaded(e=5){return this.http.get(this.apiTopMostDownloadedUrl,{params:{topN:e.toString()}})}GetTopMostRead(e=5){return this.http.get(this.apiTopMostReadUrl,{params:{topN:e.toString()}})}RecommendToColleague(e){return this.http.post(this.apiRecommendToColleagueUrl,e)}static ɵfac=function(t){return new(t||l)};static ɵprov=Kr({token:l,factory:l.ɵfac})};var E=class f{static RE_FRIENDLY_URL=/^[\p{L}\p{N}]+(?:-[\p{L}\p{N}]+)+$/u;static RE_NUMERIC_ID=/^[1-9][0-9]{0,4}$/;static isFriendlyUrl(e){return f.RE_FRIENDLY_URL.test(e)}static isNumericId(e){return f.RE_NUMERIC_ID.test(e)}static getAuthorTooltip(e){let t=[];return e.orcid&&e.orcid!==`____-____-____-____`&&t.push(`ORCID: ${e.orcid}`),e.email&&t.push(`E-Mail: ${e.email}`),e.universidade&&t.push(`Institution: ${e.universidade}`),t.join(`
2`)||`Author details not available`}hasOrcid(e){return!!e.orcid&&e.orcid!==`____-____-____-____`}getOrcidLink(e){return this.hasOrcid(e)?`https://orcid.org/${e.orcid}`:null}getAuthorClass(e){return this.hasOrcid(e)?`ponteiro_mouse`:`ponteiro_nodrop`}static obterNomeArquivoDoDiagramaPDF(e,t){return this.obterUltimaParteDaDOI(t)+this.obterExtensaoDoArquivo(e??``)}static obterUltimaParteDaDOI(e){let t=e?e.lastIndexOf(`/`):-1;return e?e.substring(t+1):``}static obterExtensaoDoArquivo(e){let t=e.lastIndexOf(`.`);return t===-1?``:e.substring(t)}static getLinkOrcid(e){return e?`https://orcid.org/`+e:``}static base64toBlob(e,t=`application/octet-stream`){let r=atob(e),s=[];for(let o=0;o<r.length;o+=1024){let n=r.slice(o,o+1024),c=new Array(n.length);for(let g=0;g<n.length;g++)c[g]=n.charCodeAt(g);let p=new Uint8Array(c);s.push(p.buffer)}return new Blob(s,{type:t})}static slugify(e){return e.toString().toLowerCase().normalize(`NFD`).replace(/[\u0300-\u036f]/g,``).replace(/\b(de|da|do|das|dos|e)\b/gi,``).replace(/\s+/g,`-`).replace(/[^\w\-]+/g,``).replace(/\-\-+/g,`-`).replace(/^-+/,``).replace(/-+$/,``)}};var x=class f{platformId=v$2(EE);trackEvent(e,t={}){if(!this.shouldSend())return;let i=Object.entries(t).filter(([,r])=>r!=null).reduce((r,[s,o])=>(r[s]=o,r),{});this.defer(()=>gtag(`event`,e,i))}trackPageView(e,t,i){if(!this.shouldSend())return;let r={};e&&(r.page_title=e),t&&(r.page_location=t),i&&(r.page_path=i),this.defer(()=>gtag(`event`,`page_view`,r))}trackTag(e,t={}){let{eventName:i,params:r}=e.build(t);this.trackEvent(i,r)}shouldSend(){return n$1.production&&xr(this.platformId)&&typeof gtag==`function`}defer(e){let t=globalThis;if(typeof t?.requestIdleCallback==`function`){t.requestIdleCallback(()=>e());return}if(typeof queueMicrotask==`function`){queueMicrotask(e);return}setTimeout(e,0)}static ɵfac=function(t){return new(t||f)};static ɵprov=Kr({token:f,factory:f.ɵfac})};var L=class{sumarioId=0;url=``;title=`TreeD Journal`;imageRelativeUrl=`Fundo_Home_600x315.webp`;imageAbsoluteUrl=null;description=`TreeD Journal`;abstract=``;author=[{name:`Gerson dos Santos Lisboa`,orcid:null}];editor=[];authorPessoas=[];editorPessoas=[];keywords=[];type=`website`;twitterTitle=``;twitterDescription=``;twiiterImage=`logo_TreeDimensional_transp200x200.webp`;publishDate=new Date;volume=``;edition=``;nameFilePdf=``;doi=``;language=`English`;robots=`index, follow`;image;issue=null;firstPage=0;lastPage=0;JournalTitle=`TreeDimensional Journal`;imageMimeType;imageWidth;imageHeight};var X$1=`share-image`;var de=`custom-share`;var Z$1=Math.floor(367001.6);var fe=Math.floor(Z$1/1024);var be=`image/webp`;var _e=`article-cover`;var Te=`cover`;var ye=1200;var ee$1=.6;var te$1=Math.floor(ee$1*1024*1024);var ve=Math.floor(te$1/1024);var Ie=`image/webp`;var Ae$1=`figure`;var ie$1=60;var Me=60*1024;var Se=`image/webp`;var De=[`image/png`,`image/jpeg`,`image/webp`];var Oe$1=[`.png`,`.jpg`,`.jpeg`,`.webp`];var xe=.1;var Ce$1=.2;var Y=`assets/Imagens/Fundo_Home_600x315.webp`;var m={authorTag:[`citation_author`],keywordsTag:[`citation_keywords`],journalTitleTag:`citation_journal_title`,titleTag:`citation_title`,abstractTag:`citation_abstract`,publicationDateTag:`citation_publication_date`,pdfUrlTag:`citation_pdf_url`,volumeTag:`citation_volume`,abstractHtmlUrlTag:`citation_abstract_html_url`,fulltextHtmlUrlTag:`citation_fulltext_html_url`,doiTag:`citation_doi`,languageTag:`citation_language`,issueTag:`citation_issue`,firstPageTag:`citation_firstpage`,lastPageTag:`citation_lastpage`};var A$1={cardTag:`twitter:card`,siteTag:`twitter:site`,titleTag:`twitter:title`,descriptionTag:`twitter:description`,imageTag:`twitter:image`};var M=`TreeD Journal`;var re$1=`TreeD Journal: Open access forest science research.`;var ne$1=new Set([`citation_author`,`citation_author_institution`,`citation_author_email`,`article:author`,`article:tag`]);
2var C$1=class f{baseUrl=n$1.baseUrl;archivesBaseUrl=(n$1.BasePathFilesArchiveUrl||`${n$1.baseUrl}/archives/`).replace(/\/?$/,`/`);metaTagService=v$2(Su);titleService=v$2(Vi);location=v$2(xe$2);document=v$2(wt$1);updateAllMetadata(e,t,i,r,s){if(this.document&&this.limparSchema(),this.titleService.setTitle(e.title??`TreeD Journal`),this.updateStandardMetaTags(e),this.updateTwitterMetaTags(e),e.type===`article`||e.type===`ScholarlyArticle`?this.updateCitationMetaTags(e):this.removeCitationMetaTags(),this.createOrUpdateCanonicalLink(e.url??``),this.document){let o=this.buildSchema(e,t,i,r,s,e.type);o&&this.generateAndInjectSchema(o)}}updateStandardMetaTags(e){this.removeArticleMetaTags();let t=this.resolveImageUrl(e.imageAbsoluteUrl,e.imageRelativeUrl),i=(e.description||`TreeD Journal - Open Access Forest Science Research`).substring(0,300),r=e.title?`${e.title} - TreeD Journal`:`TreeD Journal Open Access`,s=e.imageMimeType??this.inferImageMimeType(t),o=String(e.imageWidth??600),n=String(e.imageHeight??315),c=e.robots??`index, follow`,p=c.includes(`noindex`)?c:`${c}, max-image-preview:large, max-snippet:-1`,g=(e.author??[]).map(l
2=>l.name).filter(l=>!!l),a=g.length?g.join(`, `):`TreeD Journal`,u=e.type===`article`||e.type===`ScholarlyArticle`,b=[{name:`description`,content:i},{name:`robots`,content:p},{name:`author`,content:a},{property:`og:url`,content:this.getFullUrl(e.url??``)},{property:`og:locale`,content:`en_US`},{property:`og:type`,content:e.type??`website`},{property:`og:site_name`,content:M},{property:`og:title`,content:e.title??`TreeD Journal`},{property:`og:description`,content:i},{property:`og:image`,content:t},{property:`og:image:type`,content:s},{property:`og:image:width`,content:o},{property:`og:image:height`,content:n},{property:`og:image:alt`,content:r}];u&&(e.publishDate&&b.push({property:`article:published_time`,content:new Date(e.publishDate).toISOString()}),g.forEach(l=>b.push({property:`article:author`,content:`${this.baseUrl}/author/${E.slugify(l)}`})),(e.keywords??[]).map(l=>l?.trim()).filter(l=>!!l).forEach(l=>b.push({property:`article:tag`,content:l}))),this.setMetaTags(b)}removeArticleMetaTags(){[`article:published_time`,`article:modified_time`,`article:author`,`article:tag`,`article:section`].forEach(e=>this.removeMetaTagByName(e))}updateTwitterMetaTags(e){let t=this.resolveImageUrl(e.imageAbsoluteUrl,e.imageRelativeUrl,`${this.baseUrl}/assets/Imagens/logo_TreeDimensional_transp200x200.webp`),i=(e.twitterDescription||e.description||`Open Access Forest Science`).substring(0,200),r=e.title?`${e.title} - TreeD Journal`:`TreeD Journal Open Access`,s=[{name:A$1.cardTag,content:`summary_large_image`},{name:A$1.siteTag,content:`@treed_science`},{name:A$1.titleTag,content:(e.twitterTitle||e.title||`TreeD Journal`).substring(0,70)},{name:A$1.descriptionTag,content:i},{name:A$1.imageTag,content:t},{name:`twitter:image:alt`,content:r}],o=(e.author??[]).map(n=>n.name).filter(n=>!!n);(e.type===`article`||e.type===`ScholarlyArticle`)&&o.length&&(s.push({name:`twitter:label1`,content:`Authors`}),s.push({name:`twitter:data1`,content:o.join(`, `)})),this.removeTwitterMetaTags(),this.setMetaTags(s)}updateCitationMetaTags(e){let t=this.generateCitationMetaDefinitions(e);this.removeCitationMetaTags(),this.setMetaTags(t)}removeCitationMetaTags(){let e=[`citation_author_email`,`citation_author_institution`,`citation_publisher`,`citation_issn`];[...Object.values(m).flat(),...e].forEach(t=>this.removeMetaTagByName(t))}removeTwitterMetaTags(){[...Object.values(A$1),`twitter:image:alt`,`twitter:label1`,`twitter:data1`].forEach(e=>this.removeMetaTagByName(e))}generateCitationMetaDefinitions(e){let t=[];e.author?.forEach(o=>{o.name&&t.push({name:m.authorTag[0],content:o.name}),o.affiliation&&t.push({name:`citation_author_institution`,content:o.affiliation}),o.email&&t.push({name:`citation_author_email`,content:o.email})}),e.keywords&&e.keywords.length>0&&t.push({name:m.keywordsTag[0],content:e.keywords.join(`; `)});let i=e.abstract||e.description,r=M,s={[m.journalTitleTag]:r,[m.titleTag]:e.title,[m.abstractTag]:i,[m.publicationDateTag]:e.publishDate?Yt(e.publishDate,`yyyy/MM/dd`,`en-US`):void 0,[m.pdfUrlTag]:e.nameFilePdf?this.getFullPdfUrlProd(e.nameFilePdf):void 0,[m.volumeTag]:e.volume,[m.abstractHtmlUrlTag]:this.getFullUrl(e.url),[m.fulltextHtmlUrlTag]:this.getFullUrl(e.url),[m.doiTag]:e.doi?.replace(/^(https?:\/\/)?(dx\.)?doi\.org\//,``),[m.languageTag]:e.language??`en`,[m.issueTag]:e.issue!==null&&e.issue!==void 0?String(e.issue):void 0,[m.firstPageTag]:e.firstPage!==null&&e.firstPage!==void 0?String(e.firstPage):void 0,[m.lastPageTag]:e.lastPage!==null&&e.lastPage!==void 0?String(e.lastPage):void 0,citation_publisher:r,citation_issn:`2447-9829`};return Object.entries(s).forEach(([o,n])=>{n!=null&&n!==``&&t.push({name:o,content:String(n)})}),t}createOrUpdateCanonicalLink(e){if(this.document){let t=this.getFullUrl(e),i=this.document.head.querySelector(`link[rel="canonical"]`);i||(i=this.document.createElement(`link`),i.setAttribute(`rel`,`canonical`),this.document.head.appendChild(i)),i.setAttribute(`href`,t)}}updatePaginationLinks(e,t){this.document&&(this.removeLinkRel(`prev`),this.removeLinkRel(`next`),e&&this.createLinkRel(`prev`,this.getFullUrl(e)),t&&this.createLinkRel(`next`,this.getFullUrl(t)))}createLinkRel(e,t){if(this.document){let i=this.document.head.querySelector(`link[rel="${e}"]`);i||(i=this.document.createElement(`link`),i.setAttribute(`rel`,e),this.document.head.appendChild(i)),i.setAttribute(`href`,t)}}removeLinkRel(e){if(this.document){let t=this.document.head.querySelector(`link[rel="${e}"]`);t?.parentNode&&t.parentNode.removeChild(t)}}resolveImageUrl(e,t,i){let r=(e??``).trim();if(r)return this.ensureAbsoluteUrl(r);let s=(t??``).trim();return s?this.ensureAbsoluteUrl(s):i??`${this.baseUrl}/assets/Imagens/Fundo_Home_600x315.webp`}ensureAbsoluteUrl(e){return e?/^https?:\/\//i.test(e)?e:e.startsWith(`//`)?`${typeof window<`u`&&window?.location?.protocol?window.location.protocol:`https:`}${e}`:e.startsWith(`/archives/`)?this.combineUrl(this.archivesBaseUrl,e.substring(10)):e.startsWith(`archives/`)?this.combineUrl(this.archivesBaseUrl,e.substring(9)):e.startsWith(`/`)?this.combineUrl(this.baseUrl,e.substring(1)):e.startsWith(`assets/`)?this.combineUrl(this.baseUrl,e):this.combineUrl(this.baseUrl,e):`${this.baseUrl}/assets/Imagens/Fundo_Home_600x315.webp`}combineUrl(e,t){return`${e.replace(/\/?$/,`/`)}${t.replace(/^\//,``)}`}inferImageMimeType(e){let t=e.split(`?`)[0]?.toLowerCase()??``;return t.endsWith(`.png`)?`image/png`:t.endsWith(`.jpg`)||t.endsWith(`.jpeg`)?`image/jpeg`:t.endsWith(`.gif`)?`image/gif`:t.endsWith(`.svg`)?`image/svg+xml`:`image/webp`}limparSchema(){this.document&&this.document.body.querySelectorAll(`script[type="application/ld+json"]`).forEach(t=>t.parentNode?.removeChild(t))}generateAndInjectSchema(e){if(this.document&&e){let t=this.document.createElement(`script`);t.type=`application/ld+json`,t.textContent=JSON.stringify(e),this.document.body.appendChild(t)}}buildSchema(e,t,i,r,s,o){let n=[];if(n.push(this.buildWebSiteSchema(e)),n.push(this.buildOrganizationSchema()),t?.length){let p=this.buildBreadcrumbSchema(t,e.url??``);p&&n.push(p)}let c=this.buildMainEntitySchema(e,i,r,s,o||e.type);if(c){let p=n.find(g=>g[`@type`]===`BreadcrumbList`);
2Array.isArray(c)?c.forEach(g=>{p&&g[`@type`]!==`WebSite`&&g[`@type`]!==`ItemList`&&(g.breadcrumb={"@id":p[`@id`]}),n.push(g)}):(p&&c[`@type`]!==`WebSite`&&(c.breadcrumb={"@id":p[`@id`]}),n.push(c))}return n.length?{"@context":`https://schema.org`,"@graph":n}:null}buildWebSiteSchema(e){return{"@type":`WebSite`,"@id":`${this.baseUrl}/#website`,url:this.baseUrl,name:M,description:re$1,publisher:{"@id":`${this.baseUrl}/#organization`},inLanguage:e.language||`en`,potentialAction:this.buildSearchActionSchema()}}buildSearchActionSchema(){return{"@type":`SearchAction`,target:{"@type":`EntryPoint`,urlTemplate:`${this.baseUrl}/search?query={search_term_string}`},"query-input":{"@type":`PropertyValueSpecification`,valueRequired:!0,valueName:`search_term_string`}}}buildBreadcrumbSchema(e,t){if(!e||e.length===0)return null;let i=t.startsWith(`/`)?t:`/${t}`;return{"@type":`BreadcrumbList`,"@id":`${this.baseUrl}${i}#breadcrumb`,itemListElement:e.sort((s,o)=>(s.position??99)-(o.position??99)).map((s,o)=>{let n=`${this.baseUrl}/${s.item.startsWith(`/`)?s.item.substring(1):s.item}`;return{"@type":`ListItem`,position:s.position??o+1,name:s.name,item:n}})}}buildMainEntitySchema(e,t,i,r,s){let o=this.getSchemaType(s||e.type),n=this.getFullUrl(e.url??``),c=t||[],p=i||1,g=r||10,a=c.length>0?{"@type":`ItemList`,numberOfItems:c.length,itemListElement:c.map((u,b)=>({"@type":`ListItem`,position:(p-1)*g+b+1,item:{"@type":`ScholarlyArticle`,"@id":`${this.baseUrl}/archives/${u.sumarioId}`,headline:u.manuscriptTitle,url:`${this.baseUrl}/archives/${u.sumarioId}`,datePublished:u.publishedIn?Yt(u.publishedIn,`yyyy-MM-dd`,`en-US`):void 0,author:this.formatPessoasToSchemaAuthors(u.pessoas?.filter(l=>!l.editor).slice(0,3))}}))}:void 0;switch(o){case`ScholarlyArticle`:return{"@type":`ScholarlyArticle`,"@id":n,mainEntityOfPage:{"@type":`WebPage`,"@id":n},headline:e.title,description:e.description,image:this.resolveImageUrl(e.imageAbsoluteUrl,e.imageRelativeUrl),abstract:e.abstract||e.description,keywords:e.keywords?.join(`, `),datePublished:e.publishDate?Yt(e.publishDate,`yyyy-MM-dd`,`en-US`):void 0,author:this.formatPessoasToSchemaAuthors(e.authorPessoas),editor:this.formatPessoasToSchemaAuthors(e.editorPessoas),publisher:{"@id":`${this.baseUrl}/#organization`},isPartOf:this.buildPublicationContext(e),identifier:e.doi?[{"@type":`PropertyValue`,propertyID:`DOI`,value:e.doi.replace(/^(https?:\/\/)?(dx\.)?doi\.org\//,``)}]:[],url:n,sameAs:[e.nameFilePdf?this.getFullPdfUrlProd(e.nameFilePdf):null,e.doi?`https://doi.org/${e.doi.replace(/^(https?:\/\/)?(dx\.)?doi\.org\//,``)}`:null].filter(_=>_!==null),license:`https://creativecommons.org/licenses/by/4.0/`,copyrightYear:e.publishDate?Yt(e.publishDate,`yyyy`,`en-US`):void 0,copyrightHolder:{"@id":`${this.baseUrl}/#organization`},isAccessibleForFree:!0,pagination:this.formatPagination(e.firstPage,e.lastPage),inLanguage:e.language??`en`,potentialAction:{"@type":`ReadAction`,target:n,expectsAcceptanceOf:{"@type":`Offer`,price:`0`,priceCurrency:`USD`,availability:`http://schema.org/InStock`}}};case`CollectionPage`:let u={"@type":`CollectionPage`,"@id":n,url:n,name:e.title,description:e.description,isPartOf:{"@id":`${this.baseUrl}/#website`},inLanguage:e.language??`en`};return a&&(u.mainEntity=a),u;case`WebPage`:let b={"@type":`WebPage`,"@id":n,url:n,name:e.title,description:e.description,isPartOf:{"@id":`${this.baseUrl}/#website`}};return e.type===`SearchPage`&&(b.mainEntity={"@type":`SearchResultsPage`}),b;case`ProfilePage`:let l=e.author?.[0],P=l?.orcid&&l.orcid!==`____-____-____-____`?l.orcid:null,k=z$1(z$1(z$1(z$1({"@type":`Person`,name:l?.name||e.title},l?.image&&{image:l.image}),l?.affiliation&&{affiliation:{"@type":`Organization`,name:l.affiliation}}),P&&{sameAs:E.getLinkOrcid(P)}),P&&{identifier:{"@type":`PropertyValue`,propertyID:`https://orcid.org`,value:P}}),d={"@type":`ProfilePage`,"@id":n,url:n,name:e.title,description:e.description,isPartOf:{"@id":`${this.baseUrl}/#website`},mainEntity:k};return a?[d,a]:d;default:return{"@type":`WebPage`,"@id":n,url:n,name:e.title,description:e.description,isPartOf:{"@id":`${this.baseUrl}/#website`}}}}buildOrganizationSchema(){return{"@type":`Organization`,"@id":`${this.baseUrl}/#organization`,name:M,url:this.baseUrl,logo:{"@type":`ImageObject`,url:`${this.baseUrl}/assets/Imagens/logo_TreeDimensional_transp.webp`},sameAs:[`https://pt-br.facebook.com/proflorestaufg/`,`https://www.instagram.com/profloresta/?hl=pt-br`,`https://x.com/treed_science`]}}getSchemaType(e){return e===`article`||e===`ScholarlyArticle`?`ScholarlyArticle`:e===`CollectionPage`?`CollectionPage`:e===`website`||e===`WebSite`?`WebSite`:e===`SearchPage`?`WebPage`:e===`ProfilePage`?`ProfilePage`:`WebPage`}formatPessoasToSchemaAuthors(e){if(!(!e||e.length===0))return e.filter(t=>t.nomePessoa).map(t=>{let i=!!t.orcid&&t.orcid!==`____-____-____-____`;return z$1(z$1(z$1({"@type":`Person`,name:t.nomePessoa,url:`${this.baseUrl}/author/${E.slugify(t.nomePessoa)}`},t.universidade&&{affiliation:{"@type":`Organization`,name:t.universidade}}),i&&{sameAs:E.getLinkOrcid(t.orcid)}),i&&{identifier:{"@type":`PropertyValue`,propertyID:`https://orcid.org`,value:t.orcid}})})}buildPublicationContext(e){if(!(!e.volume&&!e.issue&&!e.edition))return{"@type":`PublicationIssue`,issueNumber:e.edition||e.issue?.toString(),datePublished:e.publishDate?Yt(e.publishDate,`yyyy-MM-dd`,`en-US`):void 0,isPartOf:{"@type":`PublicationVolume`,volumeNumber:e.volume,isPartOf:{"@type":`Per
2iodical`,name:M,"@id":this.baseUrl,issn:`2447-9829`}}}}formatPagination(e,t){if(e!=null)return t==null||t===e?String(e):`${e}-${t}`}getFullUrl(e){let t=e?e.startsWith(`/`)?e:`/`+e:this.location.path(!1)||`/`;return this.baseUrl+t}getFullPdfUrlProd(e){if(!e)return``;let t=e.startsWith(`/`)?e:`/`+e;return n$1.baseUrl.replace(/\/$/,``)+`/pdf-articles`+t}removeMetaTagByName(e){this.metaTagService.getTags(`name='${e}'`).forEach(r=>this.metaTagService.removeTagElement(r)),this.metaTagService.getTags(`property='${e}'`).forEach(r=>this.metaTagService.removeTagElement(r))}removeMetaTagBySelector(e){let t=this.metaTagService.getTag(e);t&&this.metaTagService.removeTagElement(t)}setMetaTags(e){e.forEach(t=>{let i=t.name?`name="${t.name}"`:`property="${t.property}"`,r=t.content,s=ne$1.has(t.name??t.property??``);if(r==null||r===``){s||this.removeMetaTagBySelector(i);return}s?this.metaTagService.addTag(t,!0):this.metaTagService.getTag(i)?this.metaTagService.updateTag(t,i):this.metaTagService.addTag(t)})}static ɵfac=function(t){return new(t||f)};static ɵprov=Kr({token:f,factory:f.ɵfac})};var q=class f{metadataService=v$2(C$1);activatedRoute=v$2(ne$2);router=v$2(G);destroyRef=v$2(De$1);analyticsService=v$2(x);document=v$2(wt$1);platformId=v$2(EE);titleService=v$2(Vi);location=v$2(xe$2);BasePathFilesArchiveUrl=n$1.BasePathFilesArchiveUrl;baseUrl=n$1.baseUrl;ngOnInit(){let e=this.activatedRoute.snapshot,t=e.data,i=t.seo||{};i.title=e.title;let r=t.archive;this.updateMetaData(i,r),this.router.events.pipe(Ro(s=>s instanceof k$3),U$1(this.destroyRef)).subscribe(s=>{let o=this.titleService.getTitle(),n=this.document.location.href,c=s.urlAfterRedirects||this.location.path(!1);this.analyticsService.trackPageView(o,n,c),xr(this.platformId)&&setTimeout(()=>window.scrollTo(0,0),0)})}updateMetaData(e,t){let i=new L;i.type=e.type||`website`,i.robots=e.robots||`index, follow`,i.title=e.title||`TreeD Journal`,i.description=e.description||`TreeD Journal - Open Access Forest Science Research`,i.url=this.router.url,i.imageRelativeUrl=e.imageRelativeUrl||`Fundo_Home_600x315.webp`,i.twitterTitle=i.title,i.twitterDescription=i.description,this.metadataService.updateAllMetadata(i),this.metadataService.updatePaginationLinks()}limparSchema(){this.document&&this.document.body.querySelectorAll(`script[type="application/ld+json"]`).forEach(t=>t.parentNode?.removeChild(t))}resolveShareImageMetadata(e,t){let i=this.normalizeFallbackShareImageRelativePath(),r=i.startsWith(`/`)?i.substring(1):i,s=`${this.baseUrl.replace(/\/?$/,`/`)}${r}`,o=r.split(`/`).pop()?.toLowerCase()??r.toLowerCase(),n=r.toLowerCase(),c=this.extractShareImageExtension(r),p=`archives/${t}/files/${this.buildCanonicalShareImageFileName(t,c)}`,g=(e??``).trim(),a=p;if(g){let d=g.split(`?`)[0]?.trim()??``,_=d.startsWith(`/`)?d.substring(1):d,$=_.toLowerCase(),v=_.split(`/`).pop()??_,F=v.toLowerCase();if($===n||F===o)a=p;else if(/^https?:\/\//i.test(d)||d.startsWith(`//`))a=d;else if(_.startsWith(`assets/`))a=_;else{let K=this.extractShareImageExtension(v);a=`archives/${t}/files/${this.buildCanonicalShareImageFileName(t,K)}`}}else a=p;let u;if(/^https?:\/\//i.test(a))u=a;else if(a.startsWith(`//`))u=`https:${a}`;else if(a.startsWith(`archives/`)){let d=(this.BasePathFilesArchiveUrl??``).trim();if(d.length>0){let _=d.endsWith(`/`)?d:`${d}/`,v=_.toLowerCase().endsWith(`/archives/`)?a.substring(9):a;u=`${_}${v.startsWith(`/`)?v.substring(1):v}`}else u=`${this.baseUrl.replace(/\/?$/,`/`)}${a}`}else a.startsWith(`assets/`)?u=`${this.baseUrl.replace(/\/?$/,`/`)}${a}`:(u=s,a=r);let b=this.inferMimeTypeFromPath(u),l=a.startsWith(`archives/`);return{url:u,mimeType:b,width:l?595:600,height:l?315:315,relativePath:a}}normalizeFallbackShareImageRelativePath(){return(`assets/Imagens/Fundo_Home_600x315.webp`??``).trim()||`assets/Imagens/Fundo_Home_600x315.webp`}extractShareImageExtension(e){if(!e)return`.webp`;let t=e.trim();if(!t)return`.webp`;let i=t.lastIndexOf(`.`);return i>-1&&i<t.length-1?t.substring(i).toLowerCase():`.webp`}buildCanonicalShareImageFileName(e,t){return`${X$1}-${e}${(t&&t.trim()?t.startsWith(`.`)?t:`.${t}`:`.webp`).toLowerCase()}`}inferMimeTypeFromPath(e){let t=e.split(`?`)[0]?.toLowerCase()??``;return t.endsWith(`.png`)?`image/png`:t.endsWith(`.jpg`)||t.endsWith(`.jpeg`)?`image/jpeg`:t.endsWith(`.gif`)?`image/gif`:t.endsWith(`.svg`)?`image/svg+xml`:`image/webp`}ngOnDestroy(){}static ɵfac=function(t){return new(t||f)};static ɵcmp=Vw({type:f,selectors:[[`ng-component`]],decls:0,vars:0,template:function(t,i){},encapsulation:2})};var g=class e extends q{static ɵfac=(()=>{let t;return function(i){return(t||(t=tI(e)))(i||e)}})();static ɵcmp=Vw({type:e,selectors:[[`app-error-page`]],features:[sm],decls:8,vars:0,consts:[[1,`page`,`container`],[1,`page-header`],[1,`content-flow`],[1,`form-card`]],template:function(a,i){a&1&&(tu(0,`main`,0)(1,`header`,1)(2,`h1`),zb(3,`Page not found`),nu()(),tu(4,`section`,2)(5,`section`,3)(6,`p`),zb(7,`Sorry, the page you are looking for was not found.`),nu()()()())},styles:[`.page[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh}.page-header[_ngcontent-%COMP%]{text-align:center;margin-bottom:2rem}.page-header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:2rem;margin:0}.content-flow[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:1.5rem}.form-card[_ngcontent-%COMP%]{background:var(--%NS%card);border:1px solid var(--%NS%border);border-radius:var(--%NS%r-2);padding:1.5rem;
2box-shadow:var(--%NS%shadow);text-align:center}`]})};var c=class t{name=sV.required();size=sV(24);label=sV(``);href=mn$2(()=>`/assets/icons/sprite.svg#${this.name()}`);static ɵfac=function(n){return new(n||t)};static ɵcmp=Vw({type:t,selectors:[[`gz-icon`]],inputs:{name:[1,`name`],size:[1,`size`],label:[1,`label`]},decls:2,vars:6,consts:[[`viewBox`,`0 0 24 24`,`fill`,`none`,`stroke`,`currentColor`,`stroke-width`,`2`,`stroke-linecap`,`round`,`stroke-linejoin`,`round`,`focusable`,`false`,1,`gz-icon`]],template:function(n,e){n&1&&(ff(),tu(0,`svg`,0),Dm(1,`use`),nu()),n&2&&(ym(`width`,e.size())(`height`,e.size())(`role`,e.label()?`img`:null)(`aria-label`,e.label()||null)(`aria-hidden`,e.label()?null:`true`),QD(),ym(`href`,e.href()))},styles:[`[_nghost-%COMP%]{display:inline-flex;line-height:0}.gz-icon[_ngcontent-%COMP%]{display:block}`]})};var Pe=(s,e)=>e.value;function Le(s,e){if(s&1&&Im(0,`gz-icon`,3),s&2){let t=vb().$implicit;Em(`name`,t.icon)(`size`,16)}}function ze(s,e){if(s&1){let t=cb();ns(0,`button`,2),_m(`click`,function(){let n=Xd(t).$implicit;return ef(vb().valueChange.emit(n.value))}),ZC(1,Le,1,2,`gz-icon`,3),ns(2,`span`),zb(3),eu()()}if(s&2){let t=e.$implicit,i=vb();ym(`aria-pressed`,t.value===i.value()),QD(),YC(t.icon?1:-1),QD(2),Gm(t.label)}}var ee=class s{options=sV.required();value=sV();ariaLabel=sV(``);valueChange=iV();static ɵfac=function(t){return new(t||s)};static ɵcmp=Vw({type:s,selectors:[[`gz-segmented`]],inputs:{options:[1,`options`],value:[1,`value`],ariaLabel:[1,`ariaLabel`]},outputs:{valueChange:`valueChange`},decls:3,vars:1,consts:[[`role`,`group`,1,`gz-segmented`],[`type`,`button`,1,`gz-segmented__btn`],[`type`,`button`,1,`gz-segmented__btn`,3,`click`],[3,`name`,`size`]],template:function(t,i){t&1&&(ns(0,`div`,0),XC(1,ze,4,3,`button`,1,Pe),eu()),t&2&&(ym(`aria-label`,i.ariaLabel()||null),QD(),eb(i.options()))},dependencies:[c],styles:[`.gz-segmented[_ngcontent-%COMP%]{display:inline-flex;align-items:stretch;border:var(--%NS%rule-fine) solid var(--%NS%rule);border-radius:var(--%NS%r-1);overflow:hidden;background:var(--%NS%panel)}.gz-segmented__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:var(--%NS%sp-2);font-family:var(--%NS%font-meta);text-transform:uppercase;letter-spacing:.1em;font-size:var(--%NS%fs-300);font-weight:700;line-height:1;border:0;border-left:var(--%NS%rule-fine) solid var(--%NS%line);background:transparent;color:var(--%NS%text-muted);padding:var(--%NS%sp-2) var(--%NS%sp-3);cursor:pointer;transition:background-color .15s ease,color .15s ease}.gz-segmented__btn[_ngcontent-%COMP%]:first-of-type{border-left:0}.gz-segmented__btn[_ngcontent-%COMP%]:hover{color:var(--%NS%ink);background:color-mix(in srgb,var(--%NS%accent) 14%,transparent)}.gz-segmented__btn[aria-pressed=true][_ngcontent-%COMP%]{background:var(--%NS%accent);color:var(--%NS%on-accent)}.gz-segmented__btn[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--%NS%focus-ring);outline-offset:-3px}.gz-segmented__btn[aria-pressed=true][_ngcontent-%COMP%]:focus-visible{outline-color:var(--%NS%on-accent)}`]})};var Ae=`theme`;var te=class s{doc=v$2(wt$1);isBrowser=xr(v$2(EE));media=this.isBrowser&&typeof this.doc.defaultView?.matchMedia==`function`?this.doc.defaultView.matchMedia(`(prefers-color-scheme: dark)`):null;theme=wi(this.readStored());systemDark=wi(this.media?.matches??!1);resolved=mn$2(()=>{let e=this.theme();return e===`system`?this.systemDark()?`dark`:`light`:e});constructor(){this.media?.addEventListener(`change`,e=>this.systemDark.set(e.matches)),wf(()=>{let e=this.theme();if(this.applyAttribute(e),this.isBrowser)try{localStorage.setItem(Ae,e)}catch{}})}set(e){this.theme.set(e)}toggle(){this.theme.set(this.resolved()===`dark`?`light`:`dark`)}applyAttribute(e){let t=this.doc.documentElement,i=this.doc.body;e===`system`?(t.removeAttribute(`data-theme`),i?.removeAttribute(`data-theme`)):(t.setAttribute(`data-theme`,e),i?.setAttribute(`data-theme`,e))}readStored(){if(!this.isBrowser)return`system`;try{let e=localStorage.getItem(Ae);return e===`light`||e===`dark`||e===`system`?e:`system`}catch{return`system`}}static ɵfac=function(t){return new(t||s)};static ɵprov=Kr({token:s,factory:s.ɵfac})};var Re=class s{gzTheme=v$2(te);
2options=[{value:`system`,label:`Auto`},{value:`light`,label:`Light`},{value:`dark`,label:`Dark`}];setTheme(e){this.gzTheme.set(e)}static ɵfac=function(t){return new(t||s)};static ɵcmp=Vw({type:s,selectors:[[`gz-theme-toggle`]],decls:1,vars:2,consts:[[`ariaLabel`,`Color theme`,3,`valueChange`,`options`,`value`]],template:function(t,i){t&1&&(ns(0,`gz-segmented`,0),_m(`valueChange`,function(r){return i.setTheme(r)}),eu()),t&2&&Em(`options`,i.options)(`value`,i.gzTheme.theme())},dependencies:[ee],encapsulation:2})};var Ne=class s{doc=v$2(wt$1);isBrowser=xr(v$2(EE));connect(e,t,i={}){if(!this.isBrowser)return()=>{};let n=this.doc.defaultView;if(!n)return()=>{};let r=()=>this.apply(e,t,i,n),o=0;return typeof n.requestAnimationFrame==`function`?o=n.requestAnimationFrame(r):r(),n.addEventListener(`scroll`,r,!0),n.addEventListener(`resize`,r),()=>{o&&typeof n.cancelAnimationFrame==`function`&&n.cancelAnimationFrame(o),n.removeEventListener(`scroll`,r,!0),n.removeEventListener(`resize`,r)}}apply(e,t,i,n){let r=i.placement??`bottom`,o=i.align??`start`,p=i.offset??6;e.style.position=`fixed`,e.style.margin=`0`;let a=t.getBoundingClientRect(),f=e.getBoundingClientRect(),oe=n.innerWidth,ae=n.innerHeight,U=8,g=r;g===`bottom`&&a.bottom+p+f.height>ae&&a.top-p-f.height>=0?g=`top`:g===`top`&&a.top-p-f.height<0&&a.bottom+p+f.height<=ae?g=`bottom`:g===`right`&&a.right+p+f.width>oe&&a.left-p-f.width>=0?g=`left`:g===`left`&&a.left-p-f.width<0&&a.right+p+f.width<=oe&&(g=`right`);let k,P;g===`top`||g===`bottom`?(k=g===`bottom`?a.bottom+p:a.top-f.height-p,P=o===`center`?a.left+a.width/2-f.width/2:o===`end`?a.right-f.width:a.left):(P=g===`right`?a.right+p:a.left-f.width-p,k=o===`center`?a.top+a.height/2-f.height/2:o===`end`?a.bottom-f.height:a.top),P=Math.max(U,Math.min(P,oe-f.width-U)),k=Math.max(U,Math.min(k,ae-f.height-U)),e.style.top=`${Math.round(k)}px`,e.style.left=`${Math.round(P)}px`,e.dataset.placement=g}static ɵfac=function(t){return new(t||s)};static ɵprov=Kr({token:s,factory:s.ɵfac})};function N(s){if(s.composedPath)try{return s.composedPath()[0]}catch{}return s.target}var Fe$1=new Map;var F=class s{_appId=v$2(_t$1);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(e,t=!1){this._appId!==`ng`&&(e+=this._appId);let i=Fe$1.get(e);return i===void 0?i=0:i++,Fe$1.set(e,i),`${e}${t?s._infix+`-`:``}${i}`}static ɵfac=function(t){return new(t||s)};static ɵprov=Kr({token:s,factory:s.ɵfac})};var He$1=new _$1(`cdk-dir-doc`,{providedIn:`root`,factory:()=>v$2(wt$1)});var Ge$1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Oe(s){let e=s?.toLowerCase()||``;return e===`auto`&&typeof navigator<`u`&&navigator?.language?Ge$1.test(navigator.language)?`rtl`:`ltr`:e===`rtl`?`rtl`:`ltr`}var V=(()=>{class s{get value(){return this.valueSignal()}valueSignal=wi(`ltr`);change=new Xe$1;constructor(){let t=v$2(He$1,{optional:!0});if(t){let i=t.body?t.body.dir:null,n=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(Oe(i||n||`ltr`))}}ngOnDestroy(){this.change.complete()}static ɵfac=function(i){return new(i||s)};static ɵprov=Kr({token:s,factory:s.ɵfac})}return s})();var T=(function(s){return s[s.None=0]=`None`,s[s.Ctrl=1]=`Ctrl`,s[s.Shift=2]=`Shift`,s[s.Alt=4]=`Alt`,s[s.Meta=8]=`Meta`,s.Any=`Any`,s})(T||{});var le=class{configs=[];handle(e){for(let t of this.configs)t.matcher(e)&&(t.handler(e),t.preventDefault&&e.preventDefault(),t.stopPropagation&&e.stopPropagation())}};function Ve$1(s){return(+s.ctrlKey&&T.Ctrl)|(+s.shiftKey&&T.Shift)|(+s.altKey&&T.Alt)|(+s.metaKey&&T.Meta)}function Ke(s,e){let t=Ve$1(s),i=Array.isArray(e)?e:[e];return i.includes(T.Any)?!0:i.some(n=>t===n)}var O=class extends le{options={ignoreRepeat:!0,preventDefault:!0,stopPropagation:!0};on(...e){let{modifiers:t,key:i,handler:n,options:r}=this._normalizeInputs(...e);return this.configs.push(z$1(z$1({handler:n,matcher:o=>this._isMatch(o,i,t,r)},this.options),r)),this}_normalizeInputs(...e){let t=Array.isArray(e[0])||T.hasOwnProperty(e[0]),i=t?e[0]:T.None;return{key:t?e[1]:e[0],handler:t?e[2]:e[1],modifiers:i,options:(t?e[3]:e[2])??{}}}_isMatch(e,t,i,n){return e.key==null||!Ke(e,i)||e.repeat&&n?.ignoreRepeat!==!1?!1:t instanceof RegExp?t.test(e.key):(typeof t==`string`?t:t()).toLowerCase()===e.key.toLowerCase()}};function u(s){let e=ar(s);return e[H$2].debugName=``,e}function h(s){let[e,t,i]=Ks(s);
2return e[H$2].debugName=``,Object.assign(e,{set:t,update:i,asReadonly:()=>e})}function je$1(s,e){return(s.element.compareDocumentPosition(e.element)&Node.DOCUMENT_POSITION_PRECEDING)>0?1:-1}var K=class{_items=wi(new Set);_version=wi(0);_observer;orderedItems=mn$2(()=>(this._version(),Array.from(this._items()).sort(je$1)));register(e){this._items.update(t=>{let i=new Set(t);return i.add(e),i})}unregister(e){this._items.update(t=>{let i=new Set(t);return i.delete(e),i})}startObserving(e){this._observer&&this._observer.disconnect(),this._observer=new MutationObserver(t=>{t.some(n=>n.addedNodes.length||n.removedNodes.length)&&this._version.update(n=>n+1)}),this._observer.observe(e,{childList:!0,subtree:!0})}stopObserving(){this._observer?.disconnect(),this._observer=void 0}};var ie=class{inputs;prevActiveItem=h(void 0);prevActiveIndex=u(()=>this.prevActiveItem()?this.inputs.items().indexOf(this.prevActiveItem()):-1);activeIndex=u(()=>this.inputs.activeItem()?this.inputs.items().indexOf(this.inputs.activeItem()):-1);constructor(e){this.inputs=e}isListDisabled(){return this.inputs.disabled()||this.inputs.items().every(e=>e.disabled())}getActiveDescendant(){if(!this.isListDisabled()&&this.inputs.focusMode()!==`roving`)return this.inputs.activeItem()?.id()??void 0}getListTabIndex(){return this.isListDisabled()||this.inputs.focusMode()===`activedescendant`?0:-1}getItemTabIndex(e){return this.isListDisabled()||this.inputs.focusMode()===`activedescendant`?-1:this.inputs.activeItem()===e?0:-1}focus(e,t){return this.isListDisabled()||!this.isFocusable(e)?!1:(this.prevActiveItem.set(this.inputs.activeItem()),this.inputs.activeItem.set(e),(t?.focusElement||t?.focusElement===void 0)&&this.inputs.focusMode()===`roving`&&e.element()?.focus(),!0)}isFocusable(e){return!e.disabled()||this.inputs.softDisabled()}};var ne=class{inputs;constructor(e){this.inputs=e}goto(e,t){return e?this.inputs.focusManager.focus(e,t):!1}next(e){return this._advance(1,e)}peekNext(e){return this._peek(1,e)}prev(e){return this._advance(-1,e)}peekPrev(e){return this._peek(-1,e)}first(e){let t=this.peekFirst(e);return t?this.goto(t,e):!1}last(e){let t=this.peekLast(e);return t?this.goto(t,e):!1}peekFirst(e){return(e?.items??this.inputs.items()).find(i=>this.inputs.focusManager.isFocusable(i))}peekLast(e){let t=e?.items??this.inputs.items();for(let i=t.length-1;i>=0;i--)if(this.inputs.focusManager.isFocusable(t[i]))return t[i]}_advance(e,t){let i=this._peek(e,t);return i?this.goto(i,t):!1}_peek(e,t){let i=t?.items??this.inputs.items(),n=i.length,r=this.inputs.focusManager.inputs.activeItem(),o=t?.items&&r?i.indexOf(r):this.inputs.focusManager.activeIndex(),p=a=>this.inputs.wrap()?(a+e+n)%n:a+e;for(let a=p(o);a!==o&&a<n&&a>=0;a=p(a))if(this.inputs.focusManager.isFocusable(i[a]))return i[a]}};var se=class{inputs;rangeStartIndex=h(0);rangeEndIndex=h(0);selectedItems=u(()=>this.inputs.items().filter(e=>this.inputs.value().includes(e.value())));constructor(e){this.inputs=e}select(e,t={anchor:!0}){if(e=e??this.inputs.focusManager.inputs.activeItem(),!e||e.disabled()||!e.selectable()||!this.inputs.focusManager.isFocusable(e)||this.inputs.value().includes(e.value()))return;this.inputs.multi()||this.deselectAll();let i=this.inputs.items().findIndex(n=>n===e);t.anchor&&this.beginRangeSelection(i),this.inputs.value.update(n=>n.concat(e.value()))}deselect(e){e=e??this.inputs.focusManager.inputs.activeItem(),e&&!e.disabled()&&e.selectable()&&this.inputs.value.update(t=>t.filter(i=>i!==e.value()))}toggle(e){e=e??this.inputs.focusManager.inputs.activeItem(),e&&(this.inputs.value().includes(e.value())?this.deselect(e):this.select(e))}toggleOne(){let e=this.inputs.focusManager.inputs.activeItem();e&&(this.inputs.value().includes(e.value())?this.deselect():this.selectOne())}selectAll(){if(this.inputs.multi()){for(let e of this.inputs.items())this.select(e,{anchor:!1});this.beginRangeSelection()}}deselectAll(){for(let e of this.inputs.value()){let t=this.inputs.items().find(i=>i.value()===e);t?this.deselect(t):this.inputs.value.update(i=>i.filter(n=>n!==e))}}toggleAll(){this.inputs.items().filter(t=>!t.disabled()&&t.selectable()&&this.inputs.focusManager.isFocusable(t)).map(t=>t.value()).every(t=>
2this.inputs.value().includes(t))?this.deselectAll():this.selectAll()}selectOne(){let e=this.inputs.focusManager.inputs.activeItem();e&&(e.disabled()||!e.selectable())||(this.deselectAll(),!(this.inputs.value().length>0&&!this.inputs.multi())&&this.select())}selectRange(e={anchor:!0}){this.inputs.focusManager.prevActiveIndex()===this.rangeStartIndex()&&e.anchor&&this.beginRangeSelection(this.inputs.focusManager.prevActiveIndex());let i=this._getItemsFromIndex(this.rangeStartIndex()),n=this._getItemsFromIndex(this.rangeEndIndex()).filter(r=>!i.includes(r));for(let r of n)this.deselect(r);for(let r of i)this.select(r,{anchor:!1});if(i.length){let r=i.pop(),o=this.inputs.items().findIndex(p=>p===r);this.rangeEndIndex.set(o)}}beginRangeSelection(e=this.inputs.focusManager.activeIndex()){this.rangeStartIndex.set(e),this.rangeEndIndex.set(e)}_getItemsFromIndex(e){if(e===-1)return[];let t=Math.max(this.inputs.focusManager.activeIndex(),e),i=Math.min(this.inputs.focusManager.activeIndex(),e),n=[];for(let r=i;r<=t;r++)n.push(this.inputs.items()[r]);return this.inputs.focusManager.activeIndex()<e?n.reverse():n}};var re=class{inputs;timeout;focusManager;isTyping=u(()=>this._query().length>0);_query=h(``);_startIndex=h(void 0);constructor(e){this.inputs=e,this.focusManager=e.focusManager}search(e){if(e.length!==1||!this.isTyping()&&e===` `)return!1;this._startIndex()===void 0&&this._startIndex.set(this.focusManager.activeIndex()),clearTimeout(this.timeout),this._query.update(i=>i+e.toLowerCase());let t=this._getItem();return t&&this.focusManager.focus(t),this.timeout=setTimeout(()=>{this._query.set(``),this._startIndex.set(void 0)},this.inputs.typeaheadDelay()),!0}_getItem(){let e=this.focusManager.inputs.items(),t=e.length,i=this._startIndex();for(let n=0;n<t;n++){let o=e[(i+1+n)%t];if(this.focusManager.isFocusable(o)&&o.searchTerm().toLowerCase().startsWith(this._query()))return o}}};var j=class{inputs;navigationBehavior;selectionBehavior;typeaheadBehavior;focusBehavior;disabled=u(()=>this.focusBehavior.isListDisabled());activeDescendant=u(()=>this.focusBehavior.getActiveDescendant());tabIndex=u(()=>this.focusBehavior.getListTabIndex());activeIndex=u(()=>this.focusBehavior.activeIndex());_anchorIndex=h(0);_wrap=h(!0);constructor(e){this.inputs=e,this.focusBehavior=new ie(e),this.selectionBehavior=new se(Q$2(z$1({},e),{focusManager:this.focusBehavior})),this.typeaheadBehavior=new re(Q$2(z$1({},e),{focusManager:this.focusBehavior})),this.navigationBehavior=new ne(Q$2(z$1({},e),{focusManager:this.focusBehavior,wrap:u(()=>this._wrap()&&this.inputs.wrap())}))}getItemTabindex(e){return this.focusBehavior.getItemTabIndex(e)}first(e){this._navigate(e,()=>this.navigationBehavior.first(e))}last(e){this._navigate(e,()=>this.navigationBehavior.last(e))}next(e){this._navigate(e,()=>this.navigationBehavior.next(e))}prev(e){this._navigate(e,()=>this.navigationBehavior.prev(e))}goto(e,t){this._navigate(t,()=>this.navigationBehavior.goto(e,t))}unfocus(){this.inputs.activeItem.set(void 0)}anchor(e){this._anchorIndex.set(e)}search(e,t){this._navigate(t,()=>this.typeaheadBehavior.search(e))}isTyping(){return this.typeaheadBehavior.isTyping()}select(e){this.selectionBehavior.select(e)}selectOne(){this.selectionBehavior.selectOne()}deselect(e){this.selectionBehavior.deselect(e)}deselectAll(){this.selectionBehavior.deselectAll()}toggle(e){this.selectionBehavior.toggle(e)}toggleOne(){this.selectionBehavior.toggleOne()}toggleAll(){this.selectionBehavior.toggleAll()}isFocusable(e){return this.focusBehavior.isFocusable(e)}updateSelection(e={anchor:!0}){e.toggle&&this.selectionBehavior.toggle(),e.select&&this.selectionBehavior.select(),e.selectOne&&this.selectionBehavior.selectOne(),e.selectRange&&this.selectionBehavior.selectRange(),e.anchor||this.anchor(this.selectionBehavior.rangeStartIndex())}_navigate(e={},t){e?.selectRange&&(this._wrap.set(!1),this.selectionBehavior.rangeStartIndex.set(this._anchorIndex())),t()&&(this.updateSelection(e),e?.selectRange||this.anchor(this.activeIndex())),this._wrap.set(!0)}};var $=class s{inputs;id;role=()=>`menu`;disabled=()=>this.inputs.disabled();visible=u(()=>this.inputs.parent()?!!this.inputs.parent()?.expanded():!0);listBehavior;isFocused=h(!1);hasBeenInteracted=h(!1);hasBeenHovered=h(!1);items=()=>this.inputs.items();_openTimeout;_closeTimeout;tabIndex=()=>this.listBehavior.tabIndex();shouldFocus=u(()=>{let e=this.root();return e instanceof I?!0:e instanceof _||e instanceof s?e.isFocused():!1});_expandKey=u(()=>this.inputs.textDirection()===`rtl`?`ArrowLeft`:`ArrowRight`);_collapseKey=u(()=>this.inputs.textDirection()===`rtl`?`ArrowRight`:`ArrowLeft`);dynamicSpaceKey=u(()=>this.listBehavior.isTyping()?``:` `);typeaheadRegexp=/^.$/;root=u(()=>{let e=this.inputs.parent();if(!e)return this;if(e instanceof I)return e;
2let t=e.inputs.parent();return t instanceof _?t:t?.root()});keydownManager=u(()=>new O().on(`ArrowDown`,()=>this.next(),{ignoreRepeat:!1}).on(`ArrowUp`,()=>this.prev(),{ignoreRepeat:!1}).on(`Home`,()=>this.first()).on(`End`,()=>this.last()).on(`Enter`,()=>this.trigger()).on(`Escape`,()=>this.closeAll()).on(this._expandKey,()=>this.expand()).on(this._collapseKey,()=>this.collapse()).on(this.dynamicSpaceKey,()=>this.trigger()).on(this.typeaheadRegexp,e=>this.listBehavior.search(e.key)));constructor(e){this.inputs=e,this.id=e.id,this.listBehavior=new j(Q$2(z$1({},e),{value:h([])}))}validate(){let e=[],t=this.inputs.items().map(n=>n.value()),i=t.filter((n,r)=>t.indexOf(n)!==r);return i.length>0&&e.push(`Duplicate value '${i[0]}' detected inside ngMenu.`),e}setDefaultState(){if(!this.inputs.parent()){let e=this.listBehavior.navigationBehavior.peekFirst();e&&this.listBehavior.goto(e,{focusElement:!1})}}setDefaultStateEffect(){this.hasBeenInteracted()||this.hasBeenHovered()||this.inputs.items().length>0&&this.setDefaultState()}onKeydown(e){this.hasBeenInteracted.set(!0),this.keydownManager().handle(e)}onMouseOver(e){if(!this.visible())return;this.hasBeenHovered.set(!0);let t=this.inputs.items().find(r=>r.element()?.contains(N(e)));if(!t)return;let i=this.inputs.parent(),n=this.inputs.activeItem();if(i instanceof C){let r=i.inputs.parent();r instanceof s&&(r._clearTimeouts(),r.listBehavior.goto(i,{focusElement:!1}))}n&&n!==t&&this._closeItem(n),t.expanded()&&this._clearCloseTimeout(),this._openItem(t),this.listBehavior.goto(t,{focusElement:this.shouldFocus()})}_closeItem(e){this._clearOpenTimeout(),this._closeTimeout||(this._closeTimeout=setTimeout(()=>{e.close(),this._closeTimeout=void 0},this.inputs.expansionDelay()))}_openItem(e){this._clearOpenTimeout(),this._openTimeout=setTimeout(()=>{e.open(),this._openTimeout=void 0},this.inputs.expansionDelay())}onMouseOut(e){if(this._clearOpenTimeout(),this.isFocused())return;let t=this.root(),i=this.inputs.parent(),n=e.relatedTarget;if(!t||!i||i instanceof I)return;let r=i.inputs.parent();!r||r instanceof _||r.inputs.element()?.contains(n)||i.close()}onClick(e){let t=N(e),i=this.inputs.items().find(n=>n.element()?.contains(t));i&&(i.open(),this.listBehavior.goto(i),this.submit(i))}onFocusIn(){this.isFocused.set(!0),this.hasBeenInteracted.set(!0)}onFocusOut(e){let t=this.inputs.parent(),i=t?.inputs.element(),n=e.relatedTarget;n||(this.isFocused.set(!1),this.inputs.parent()?.close({refocus:!0})),!(t instanceof C&&t.inputs.parent()?.inputs.items().filter(a=>a!==t)?.find(a=>a.element()?.contains(n)))&&this.visible()&&!i?.contains(n)&&!this.inputs.element()?.contains(n)&&(this.isFocused.set(!1),this.inputs.parent()?.close())}prev(){this.inputs.activeItem()?.close(),this.listBehavior.prev()}next(){this.inputs.activeItem()?.close(),this.listBehavior.next()}first(){this.inputs.activeItem()?.close(),this.listBehavior.first()}last(){this.inputs.activeItem()?.close(),this.listBehavior.last()}trigger(){this.inputs.activeItem()?.hasPopup()?this.inputs.activeItem()?.open({first:!0}):this.submit()}submit(e=this.inputs.activeItem()){if(!e||e.disabled()||e.submenu())return;let t=this.root();t instanceof I?(t.close({refocus:!0}),t?.inputs.menu()?.inputs.itemSelected?.(e.value())):t instanceof _?(t.close(),t?.inputs.itemSelected?.(e.value())):t instanceof s&&(t.inputs.activeItem()?.close({refocus:!0}),t?.inputs.itemSelected?.(e.value()))}collapse(){let e=this.root(),t=this.inputs.parent();t instanceof C&&!(t.inputs.parent()instanceof _)?t.close({refocus:!0}):e instanceof _&&e.prev()}expand(){let e=this.root(),t=this.inputs.activeItem();t?.submenu()?t.open({first:!0}):e instanceof _&&e.next()}close(){this.inputs.parent()?.close()}closeAll(){let e=this.root();e instanceof I&&e.close({refocus:!0}),e instanceof _&&e.close(),e instanceof s&&e.inputs.activeItem()?.close({refocus:!0})}_clearTimeouts(){this._clearOpenTimeout(),this._clearCloseTimeout()}_clearOpenTimeout(){this._openTimeout&&(clearTimeout(this._openTimeout),this._openTimeout=void 0)}_clearCloseTimeout(){this._closeTimeout&&(clearTimeout(this._closeTimeout),this._closeTimeout=void 0)}};var _=class{inputs;listBehavior;tabIndex=()=>this.listBehavior.tabIndex();_nextKey=u(()=>this.inputs.textDirection()===`rtl`?`ArrowLeft`:`ArrowRight`);_previousKey=u(()=>this.inputs.textDirection()===`rtl`?`ArrowRight`:`ArrowLeft`);dynamicSpaceKey=u(()=>this.listBehavior.isTyping()?``:` `);typeaheadRegexp=/^.$/;
2isFocused=h(!1);hasBeenInteracted=h(!1);disabled=()=>this.inputs.disabled();keydownManager=u(()=>new O().on(this._nextKey,()=>this.next(),{ignoreRepeat:!1}).on(this._previousKey,()=>this.prev(),{ignoreRepeat:!1}).on(`End`,()=>this.listBehavior.last()).on(`Home`,()=>this.listBehavior.first()).on(`Enter`,()=>this.inputs.activeItem()?.open({first:!0})).on(`ArrowUp`,()=>this.inputs.activeItem()?.open({last:!0})).on(`ArrowDown`,()=>this.inputs.activeItem()?.open({first:!0})).on(this.dynamicSpaceKey,()=>this.inputs.activeItem()?.open({first:!0})).on(this.typeaheadRegexp,e=>this.listBehavior.search(e.key)));constructor(e){this.inputs=e,this.listBehavior=new j(e)}setDefaultState(){let e=this.listBehavior.navigationBehavior.peekFirst();e&&this.inputs.activeItem.set(e)}setDefaultStateEffect(){this.hasBeenInteracted()||this.inputs.items().length>0&&this.setDefaultState()}onKeydown(e){this.hasBeenInteracted.set(!0),this.keydownManager().handle(e)}onClick(e){let t=this.inputs.items().find(i=>i.element()?.contains(N(e)));t&&(this.goto(t),t.expanded()?t.close():t.open())}onMouseOver(e){let t=this.inputs.items().find(i=>i.element()?.contains(N(e)));t&&this.goto(t,{focusElement:this.isFocused()})}onFocusIn(){this.isFocused.set(!0),this.hasBeenInteracted.set(!0)}onFocusOut(e){let t=e.relatedTarget;this.inputs.element()?.contains(t)||(this.isFocused.set(!1),this.close())}goto(e,t){let i=this.inputs.activeItem();this.listBehavior.goto(e,t),i?.expanded()&&(i?.close(),this.inputs.activeItem()?.open()),e===i&&e.expanded()&&e.submenu()?.inputs.activeItem()&&(e.submenu()?.inputs.activeItem()?.close(),e.submenu()?.listBehavior.unfocus())}next(){let e=this.inputs.activeItem();this.listBehavior.next(),e?.expanded()&&(e?.close(),this.inputs.activeItem()?.open({first:!0}))}prev(){let e=this.inputs.activeItem();this.listBehavior.prev(),e?.expanded()&&(e?.close(),this.inputs.activeItem()?.open({first:!0}))}close(){this.inputs.activeItem()?.close({refocus:this.isFocused()})}};var I=class{inputs;expanded=h(!1);hasBeenInteracted=h(!1);pendingFocus=h(void 0);role=()=>`button`;hasPopup=()=>!0;menu;tabIndex=u(()=>this.expanded()&&this.menu()?.inputs.activeItem()?-1:0);disabled=()=>this.inputs.disabled();keydownManager=u(()=>new O().on(` `,()=>this.open({first:!0})).on(`Enter`,()=>this.open({first:!0})).on(`ArrowDown`,()=>this.open({first:!0})).on(`ArrowUp`,()=>this.open({last:!0})).on(`Escape`,()=>this.close({refocus:!0})));constructor(e){this.inputs=e,this.menu=this.inputs.menu}pendingFocusEffect(){let e=this.inputs.menu(),t=this.pendingFocus(),i=e?.items();e&&t&&i?.length&&(t===`first`?e.first():t===`last`&&e.last(),this.pendingFocus.set(void 0))}onKeydown(e){this.inputs.disabled()||(this.hasBeenInteracted.set(!0),this.keydownManager().handle(e))}onClick(){this.inputs.disabled()||(this.expanded()?this.close():this.open({first:!0}))}onFocusIn(){this.hasBeenInteracted.set(!0)}onFocusOut(e){let t=this.inputs.element(),i=e.relatedTarget;this.expanded()&&!t?.contains(i)&&!this.inputs.menu()?.inputs.element()?.contains(i)&&this.close()}open(e){this.expanded.set(!0),e?.first?this.pendingFocus.set(`first`):e?.last&&this.pendingFocus.set(`last`)}close(e={}){this.expanded.set(!1),this.pendingFocus.set(void 0),this.menu()?.listBehavior.unfocus(),e.refocus&&this.inputs.element()?.focus();let t=this.inputs.menu()?.inputs.items()??[];for(;t.length;){let i=t.pop();
2i?._expanded.set(!1),i?.inputs.parent()?.listBehavior.unfocus(),t=t.concat(i?.submenu()?.inputs.items()??[])}}};var C=class{inputs;value;id;disabled=()=>this.inputs.parent()?.disabled()||this.inputs.disabled();searchTerm;element;active=u(()=>this.inputs.parent()?.inputs.activeItem()===this);hasBeenInteracted=h(!1);tabIndex=u(()=>this.submenu()&&this.submenu()?.inputs.activeItem()?-1:this.inputs.parent()?.listBehavior.getItemTabindex(this)??-1);index=u(()=>this.inputs.parent()?.inputs.items().indexOf(this)??-1);expanded=u(()=>this.submenu()?this._expanded():null);_expanded=h(!1);controls=h(void 0);role=()=>this.inputs.role();hasPopup=u(()=>!!this.submenu());submenu;selectable;constructor(e){this.inputs=e,this.id=e.id,this.value=e.value,this.element=e.element,this.submenu=this.inputs.submenu,this.searchTerm=e.searchTerm,this.selectable=u(()=>!this.submenu())}open(e){this.disabled()||(this._expanded.set(!0),e?.first&&this.submenu()?.first(),e?.last&&this.submenu()?.last())}close(e={}){this._expanded.set(!1),e.refocus&&this.inputs.parent()?.listBehavior.goto(this);let t=this.inputs.submenu()?.inputs.items()??[];for(;t.length;){let i=t.pop();
2i?._expanded.set(!1),i?.inputs.parent()?.listBehavior.unfocus(),t=t.concat(i?.submenu()?.inputs.items()??[]);let n=i?.inputs.parent();n instanceof $&&n._clearTimeouts()}}onFocusIn(){this.hasBeenInteracted.set(!0)}};var he=(()=>{class s{contentVisible=wi(!1);preserveContent=aV(!1);static ɵfac=function(i){return new(i||s)};static ɵdir=Gw({type:s,inputs:{preserveContent:[1,`preserveContent`]},outputs:{preserveContent:`preserveContentChange`}})}return s})();var li=(()=>{class s{_elementRef=v$2(Jr);element=this._elementRef.nativeElement;textDirection=v$2(V).valueSignal;menu=sV(void 0);expanded=mn$2(()=>this._pattern.expanded());hasPopup=mn$2(()=>this._pattern.hasPopup());disabled=sV(!1,{transform:mV});softDisabled=sV(!0,{transform:mV});_pattern=new I({textDirection:this.textDirection,element:mn$2(()=>this._elementRef.nativeElement),menu:mn$2(()=>this.menu()?._pattern),disabled:()=>this.disabled()});constructor(){wf(()=>this.menu()?.parent.set(this)),wf(()=>this._pattern.pendingFocusEffect()),this.element.tagName===`BUTTON`&&!this.element.hasAttribute(`type`)&&this.element.setAttribute(`type`,`button`)}open(){this._pattern.open({first:!0})}close(){this._pattern.close()}static ɵfac=function(i){return new(i||s)};static ɵdir=Gw({type:s,selectors:[[``,`ngMenuTrigger`,``]],hostVars:6,hostBindings:function(i,n){i&1&&_m(`click`,function(){return n._pattern.onClick()})(`keydown`,function(o){return n._pattern.onKeydown(o)})(`focusout`,function(o){return n._pattern.onFocusOut(o)})(`focusin`,function(){return n._pattern.onFocusIn()}),i&2&&ym(`tabindex`,n._pattern.tabIndex())(`disabled`,!n.softDisabled()&&n._pattern.disabled()?!0:null)(`aria-disabled`,n._pattern.disabled())(`aria-haspopup`,n.hasPopup())(`aria-expanded`,n.expanded())(`aria-controls`,n._pattern.menu()?.id())},inputs:{menu:[1,`menu`],disabled:[1,`disabled`],softDisabled:[1,`softDisabled`]},exportAs:[`ngMenuTrigger`]})}return s})();var pe=new _$1(`MENU_COMPONENT`);var $e$1=(()=>{class s{_elementRef=v$2(Jr);element=this._elementRef.nativeElement;id=sV(v$2(F).getId(`ng-menu-item-`,!0));value=sV.required();disabled=sV(!1);searchTerm=aV(``);role=sV(`menuitem`);parent=v$2(pe,{optional:!0});submenu=sV(void 0);active=mn$2(()=>this._pattern.active());expanded=mn$2(()=>this._pattern.expanded());hasPopup=mn$2(()=>this._pattern.hasPopup());_pattern=new C({id:this.id,value:this.value,element:mn$2(()=>this._elementRef.nativeElement),disabled:this.disabled,searchTerm:this.searchTerm,parent:mn$2(()=>this.parent?._pattern),submenu:mn$2(()=>this.submenu()?._pattern),role:this.role});constructor(){wf(()=>this.submenu()?.parent.set(this))}ngOnInit(){this.parent?._collection.register(this)}ngOnDestroy(){this.parent?._collection.unregister(this)}open(){this._pattern.open({first:!0})}close(){this._pattern.close()}static ɵfac=function(i){return new(i||s)};static ɵdir=Gw({type:s,selectors:[[``,`ngMenuItem`,``]],hostVars:7,hostBindings:function(i,n){i&1&&_m(`focusin`,function(){return n._pattern.onFocusIn()}),i&2&&ym(`role`,n._pattern.role())(`tabindex`,n._pattern.tabIndex())(`data-active`,n.active())(`aria-haspopup`,n.hasPopup())(`aria-expanded`,n.expanded())(`aria-disabled`,n._pattern.disabled())(`aria-controls`,n._pattern.submenu()?.id())},inputs:{id:[1,`id`],value:[1,`value`],disabled:[1,`disabled`],searchTerm:[1,`searchTerm`],role:[1,`role`],submenu:[1,`submenu`]},outputs:{searchTerm:`searchTermChange`},exportAs:[`ngMenuItem`]})}return s})();var Ue$1=(()=>{class s{_collection=new K;_items=()=>this._collection.orderedItems().filter(t=>t.parent===this);_elementRef=v$2(Jr);element=this._elementRef.nativeElement;disabled=sV(!1,{transform:mV});softDisabled=sV(!0,{transform:mV});textDirection=v$2(V).valueSignal;value=aV([]);wrap=sV(!0,{transform:mV});typeaheadDelay=sV(500);_pattern;_itemPatterns=mn$2(()=>this._items().map(t=>t._pattern));itemSelected=iV();constructor(){this._pattern=new _(Q$2(z$1({},this),{items:this._itemPatterns,multi:()=>!1,focusMode:()=>`roving`,orientation:()=>`horizontal`,selectionMode:()=>`explicit`,itemSelected:t=>this.itemSelected.emit(t),activeItem:wi(void 0),element:mn$2(()=>this._elementRef.nativeElement)})),yV({write:()=>
2this._pattern.setDefaultStateEffect()}),Wh(()=>{this._collection.startObserving(this.element)})}ngOnDestroy(){this._collection.stopObserving()}close(){this._pattern.close()}static ɵfac=function(i){return new(i||s)};static ɵdir=Gw({type:s,selectors:[[``,`ngMenuBar`,``]],hostAttrs:[`role`,`menubar`],hostVars:3,hostBindings:function(i,n){i&1&&_m(`keydown`,function(o){return n._pattern.onKeydown(o)})(`mouseover`,function(o){return n._pattern.onMouseOver(o)})(`click`,function(o){return n._pattern.onClick(o)})(`focusin`,function(){return n._pattern.onFocusIn()})(`focusout`,function(o){return n._pattern.onFocusOut(o)}),i&2&&ym(`disabled`,!n.softDisabled()&&n._pattern.disabled()?!0:null)(`aria-disabled`,n._pattern.disabled())(`tabindex`,n._pattern.tabIndex())},inputs:{disabled:[1,`disabled`],softDisabled:[1,`softDisabled`],value:[1,`value`],wrap:[1,`wrap`],typeaheadDelay:[1,`typeaheadDelay`]},outputs:{value:`valueChange`,itemSelected:`itemSelected`},exportAs:[`ngMenuBar`],features:[o_([{provide:pe,useExisting:s}])]})}return s})();var hi=(()=>{class s{_deferredContentAware=v$2(he,{optional:!0});_collection=new K;_items=mn$2(()=>this._collection.orderedItems().filter(t=>t.parent===this));_elementRef=v$2(Jr);element=this._elementRef.nativeElement;textDirection=v$2(V).valueSignal;id=sV(v$2(F).getId(`ng-menu-`,!0));wrap=sV(!0,{transform:mV});typeaheadDelay=sV(500);disabled=sV(!1,{transform:mV});parent=wi(void 0);softDisabled=sV(!0,{transform:mV});_pattern;_itemPatterns=mn$2(()=>(this._pattern.visible(),this._items().map(t=>t._pattern)));visible=mn$2(()=>this._pattern.visible());tabIndex=mn$2(()=>this._pattern.tabIndex());itemSelected=iV();expansionDelay=sV(100);constructor(){this._pattern=new $(Q$2(z$1({},this),{parent:mn$2(()=>this.parent()?._pattern),items:this._itemPatterns,multi:()=>!1,focusMode:()=>`roving`,orientation:()=>`vertical`,selectionMode:()=>`explicit`,activeItem:wi(void 0),element:mn$2(()=>this._elementRef.nativeElement),itemSelected:t=>this.itemSelected.emit(t)})),yV({write:()=>{let t=this.parent();t instanceof $e$1&&t.parent instanceof Ue$1?this._deferredContentAware?.contentVisible.set(!0):this._deferredContentAware?.contentVisible.set(this._pattern.visible()||!!this.parent()?._pattern.hasBeenInteracted())}}),yV({write:()=>{if(this.visible()){let t=ov(()=>this._pattern.inputs.activeItem());this._pattern.listBehavior.goto(t)}}}),yV({write:()=>this._pattern.setDefaultStateEffect()}),Wh(()=>{this._collection.startObserving(this.element)})}ngOnDestroy(){this._collection.stopObserving()}close(){this._pattern.close()}static ɵfac=function(i){return new(i||s)};static ɵdir=Gw({type:s,selectors:[[``,`ngMenu`,``]],hostAttrs:[`role`,`menu`],hostVars:4,hostBindings:function(i,n){i&1&&_m(`keydown`,function(o){return n._pattern.onKeydown(o)})(`mouseover`,function(o){return n._pattern.onMouseOver(o)})(`mouseout`,function(o){return n._pattern.onMouseOut(o)})(`focusout`,function(o){return n._pattern.onFocusOut(o)})(`focusin`,function(){return n._pattern.onFocusIn()})(`click`,function(o){return n._pattern.onClick(o)}),i&2&&ym(`id`,n._pattern.id())(`aria-disabled`,n._pattern.disabled())(`tabindex`,n.tabIndex())(`data-visible`,n.visible())},inputs:{id:[1,`id`],wrap:[1,`wrap`],typeaheadDelay:[1,`typeaheadDelay`],disabled:[1,`disabled`],softDisabled:[1,`softDisabled`],expansionDelay:[1,`expansionDelay`]},outputs:{itemSelected:`itemSelected`},exportAs:[`ngMenu`],features:[o_([{provide:pe,useExisting:s}]),Zw([{directive:he,inputs:[`preserveContent`,`preserveContent`]}])]})}return s})();var s=class a{variant=sV(`default`);size=sV(`md`);pill=sV(!1,{transform:mV});iconOnly=sV(!1,{transform:mV});static ɵfac=function(t){return new(t||a)};static ɵdir=Gw({type:a,selectors:[[`button`,`gzButton`,``],[`a`,`gzButton`,``]],hostAttrs:[1,`gz-btn`],hostVars:12,hostBindings:function(t,n){t&2&&Lm(`gz-btn--primary`,n.variant()===`primary`)(`gz-btn--outline`,n.variant()===`outline`)(`gz-btn--ghost`,n.variant()===`ghost`)(`gz-btn--pill`,n.pill())(`gz-btn--icon`,n.iconOnly())(`gz-btn--sm`,n.size()===`sm`)},inputs:{variant:[1,`variant`],size:[1,`size`],pill:[1,`pill`],iconOnly:[1,`iconOnly`]}})};var A=class a{tooltipText=sV(null,{alias:`appCssTooltip`});tooltipHtml=sV(null,{alias:`appCssTooltipHtml`});placement=sV(`auto`,{alias:`appCssTooltipPlacement`});showDelay=sV(0,{alias:`appCssTooltipDelay`,transform:vV});get tooltipAttribute(){let t=this.tooltipText();return t&&typeof t==`string`&&t.trim()!==``?t.trim():null}static activeInstance=null;static nextTooltipId=0;tooltipId=`css-tooltip-${++a.nextTooltipId}`;previousDescribedBy=null;describedTarget=null;isBrowser;isVisible=wi(!1);pointerPos=wi(null);hostElement=v$2(Jr);platformId=v$2(EE);destroyRef=v$2(De$1);constructor(){this.isBrowser=xr(this.platformId),this.isBrowser&&yV({write:()=>{this.isVisible()?this.createOrUpdateBubble():this.removeBubble()},mixedReadWrite:()=>{this.isVisible()&&this.tooltipBubble&&(this.positionTooltip(),this.tooltipBubble.classList.contains(`css-tooltip-bubble--visible`)||this.tooltipBubble.classList.add(`css-tooltip-bubble--visible`))}}),this.destroyRef.onDestroy(()=>{this.showTimer!==null&&window.clearTimeout(this.showTimer),this.hideTimer!==null&&window.clearTimeout(this.hideTimer),this.isVisible.set(!1),this.removeBubble()})}tooltipBubble=null;tooltipContent=null;detachFns=[];hideTimer=null;showTimer=null;attachedAt=Date.now();handlePointerEnter(t){if(t instanceof FocusEvent&&!this.isKeyboardFocus(t))return;a.activeInstance&&a.activeInstance!==this&&a.activeInstance.forceClose(),a.activeInstance=this,this.hideTimer!==null&&(window.clearTimeout(this.hideTimer),this.hideTimer=null),t instanceof MouseEvent&&this.pointerPos.set({x:t.clientX,y:t.clientY});let i=this.showDelay();i>0?this.showTimer=window.setTimeout(()=>{this.isVisible.set(!0),this.showTimer=null},i):this.isVisible.set(!0)}handlePointerMove(t){this.isVisible()&&this.pointerPos.set({x:t.clientX,y:t.clientY})}handlePointerLeave(){this.showTimer!==null&&(window.clearTimeout(this.showTimer),this.showTimer=null),this.hideTimer=window.setTimeout(()=>{this.isVisible.set(!1),this.hideTimer=null},500)}handleClick(){this.showTimer!==null&&(window.clearTimeout(this.showTimer),this.showTimer=null),this.isVisible.set(!1)}isKeyboardFocus(t){if(Date.now()-this.attachedAt<600)return!1;let i=t.target;if(!i||typeof i.matches!=`function`)return!0;try{return i.matches(`:focus-visible`)}catch{return!0}}handleEscapeKey(t){if(!this.isVisible()){this.showTimer!==null&&(window.clearTimeout(this.showTimer),this.showTimer=null);return}t.stopPropagation(),t.preventDefault(),this.forceClose()}forceClose(){this.showTimer!==null&&(window.clearTimeout(this.showTimer),this.showTimer=null),this.hideTimer!==null&&(window.clearTimeout(this.hideTimer),this.hideTimer=null),this.isVisible.set(!1)}createOrUpdateBubble(){let t=this.tooltipText(),i=this.tooltipHtml(),o=typeof t==`string`?t.trim():``,s=typeof i==`string`?i.trim():``;if(!o&&!s){this.removeBubble();return}if(!this.tooltipBubble){let e=document.createElement(`div`);e.className=`css-tooltip-bubble`,e.id=this.tooltipId,e.setAttribute(`role`,`tooltip`),e.addEventListener(`mouseenter`,()=>{this.hideTimer!==null&&(window.clearTimeout(this.hideTimer),this.hideTimer=null)}),e.addEventListener(`mouseleave`,()=>{this.hideTimer=window.setTimeout(()=>{this.isVisible.set(!1),this.hideTimer=null},500)});let h=document.createElement(`span`);h.className=`css-tooltip-content`,e.appendChild(h);let p=document.createElement(`span`);p.className=`css-tooltip-arrow`,e.appendChild(p),(this.hostElement.nativeElement.closest(`dialog`)??document.body).appendChild(e),this.tooltipBubble=e,this.tooltipContent=h,this.applyDescribedBy(),this.attachGlobalListeners()}this.tooltipContent&&(s?(this.tooltipContent.innerHTML=s,this.tooltipBubble.style.pointerEvents=`auto`):(this.tooltipContent.textContent=o,this.tooltipBubble.style.pointerEvents=`auto`))}removeBubble(){this.tooltipBubble&&(this.tooltipBubble.remove(),this.tooltipBubble=null,this.tooltipContent=null,this.restoreDescribedBy(),this.detachGlobalListeners()),a.activeInstance===this&&(a.activeInstance=null)}applyDescribedBy(){let t=this.hostElement.nativeElement,i=t.matches(`button, a[href], input, select, textarea, [tabindex]`)?t:t.querySelector(`button, a[href], input, select, textarea, [tabindex]`)??t;this.describedTarget=i,this.previousDescribedBy=i.getAttribute(`aria-describedby`);
2let o=[this.previousDescribedBy,this.tooltipId].filter(Boolean).join(` `);i.setAttribute(`aria-describedby`,o)}restoreDescribedBy(){let t=this.describedTarget;t&&(this.previousDescribedBy?t.setAttribute(`aria-describedby`,this.previousDescribedBy):t.removeAttribute(`aria-describedby`),this.describedTarget=null,this.previousDescribedBy=null)}attachGlobalListeners(){if(!this.isBrowser||this.detachFns.length>0)return;let t=()=>{this.layoutVersion.update(i=>i+1)};window.addEventListener(`scroll`,t,!0),window.addEventListener(`resize`,t,!0),this.detachFns.push(()=>window.removeEventListener(`scroll`,t,!0)),this.detachFns.push(()=>window.removeEventListener(`resize`,t,!0))}layoutVersion=wi(0);detachGlobalListeners(){for(let t of this.detachFns)t();this.detachFns=[]}positionTooltip(){if(this.layoutVersion(),!this.tooltipBubble||!this.isBrowser)return;let t=this.hostElement.nativeElement,i=t.getBoundingClientRect();if(i.width===0&&i.height===0)return;let o=i,s=t.getClientRects();if(s.length>1){let n=this.pointerPos(),m=null,D=Number.POSITIVE_INFINITY;for(let r of Array.from(s)){if(n&&r.left<=n.x&&r.right>=n.x&&r.top<=n.y&&r.bottom>=n.y){m=r;break}if(n){let _=Math.max(r.left,Math.min(n.x,r.right)),k=Math.max(r.top,Math.min(n.y,r.bottom)),E=Math.hypot(n.x-_,n.y-k);E<D&&(D=E,m=r)}}!m&&s.length>0&&(m=s[0]),m&&(o=m)}let e=this.tooltipBubble;e.dataset.placement=`top`,e.style.setProperty(`--tooltip-arrow-shift`,`0px`);let h=e.offsetWidth||0,p=e.offsetHeight||0;if(h===0&&p===0)return;let l=12,T=4,w=o.left+o.width/2,u=w,y=l+h/2,g=window.innerWidth-l-h/2;u<y?u=y:u>g&&(u=g);let N=Math.max(Math.min(w-u,h/2-8),-(h/2-8)),d=`top`,B=this.placement();B===`bottom`?d=`bottom`:B===`top`?d=`top`:o.top-T-p<l&&(d=`bottom`);let c;if(d===`top`?c=o.top-T-p:c=o.bottom+T,d===`bottom`){let n=Math.max(l,window.innerHeight-l-p);c=Math.min(Math.max(c,l),n)}else{let n=Math.max(l,window.innerHeight-l-p);c=Math.min(Math.max(c,l),n)}e.dataset.placement=d,e.style.left=`${u}px`,e.style.top=`${c}px`,e.style.setProperty(`--tooltip-arrow-shift`,`${N}px`)}static ɵfac=function(i){return new(i||a)};static ɵdir=Gw({type:a,selectors:[[``,`appCssTooltip`,``],[``,`appCssTooltipHtml`,``]],hostVars:3,hostBindings:function(i,o){i&1&&_m(`mouseenter`,function(e){return o.handlePointerEnter(e)})(`mousemove`,function(e){return o.handlePointerMove(e)})(`focusin`,function(e){return o.handlePointerEnter(e)})(`mouseleave`,function(){return o.handlePointerLeave()})(`focusout`,function(){return o.handlePointerLeave()})(`click`,function(){return o.handleClick()})(`keydown.escape`,function(e){return o.handleEscapeKey(e)}),i&2&&(ym(`data-tooltip`,o.tooltipAttribute),Lm(`tooltip-host`,!0))},inputs:{tooltipText:[1,`appCssTooltip`,`tooltipText`],tooltipHtml:[1,`appCssTooltipHtml`,`tooltipHtml`],placement:[1,`appCssTooltipPlacement`,`placement`],showDelay:[1,`appCssTooltipDelay`,`showDelay`]}})};var Z=(n,e)=>{let t=v$2(G),r=v$2(D$1),o=v$2(me),l=v$2(EE),d=v$2(I$1),u=t.currentNavigation(),g=u?.finalUrl?.toString()??u?.extractedUrl?.toString()??``,f=`/`+e.map(_=>_.path).join(`/`),A=g||f;return xr(l)?(d.log(2,`[AuthGuard] checking match for url=${A}`),new x$2(_=>{wf(()=>{let N=r.authCheckState();if(d.log(2,`[AuthGuard] authCheckState=${N}`),N!==`complete`){d.log(1,`[AuthGuard] waiting for authCheckState=Complete`);return}let K=r.getToken();d.log(2,`[AuthGuard] inputs -> hasToken=${!!K}`),K?(d.log(3,`[AuthGuard] match allowed (authenticated) url=${A}`),_.next(!0)):(d.log(4,`[AuthGuard] blocked (no token). -> /login?returnUrl=${A}`),_.next(t.createUrlTree([`/login`],{queryParams:{returnUrl:A}}))),_.complete()},{injector:o});return()=>{}}).pipe(Fo(1))):(d.log(2,`[AuthGuard] SSR/non-browser -> allow match url=${A}`),new x$2(_=>{_.next(!0),_.complete()}))};var X=(n,e)=>{let t=v$2(D$1),r=v$2(me),o=v$2(EE),l=v$2(I$1),d=e.map(g=>g.path).join(`/`);if(!xr(o))return!0;let u=n.data?.permittedRoles;return!u||u.length===0?!0:new x$2(g=>{wf(()=>{if(t.authCheckState()!==`complete`)return;let _=t.role();_&&u.includes(_)?(l.log(3,`[PermissionGuard] allowed role '${_}' for /${d}`),g.next(!0)):(l.log(4,`[PermissionGuard] blocked /${d}. Role '${_}' not in [${u}]`),g.next(!1)),g.complete()},{injector:r});return()=>{}})};var v={ADMIN:`admin`,USER_ADVANCED:`useradvanced`,USER_COMMON:`usercommon`,GUEST:`guest`};var Kt=(n,e)=>{let t=v$2(G),r=v$2(m$1),o=n.paramMap.get(`sumarioId`);return E.isFriendlyUrl(o)?r.isExistSumarioByFriendlyURL(o).pipe(nd(l=>l?ry(!0):ry(new Be$2(t.createUrlTree([`app-error-page`]),{skipLocationChange:!0})))):E.isNumericId(o)?r.isExistSumarioBySumarioId(Number(o)).pipe(nd(l=>l?ry(!0):ry(new Be$2(t.createUrlTree([`app-error-page`]),{skipLocationChange:!0})))):ry(new Be$2(t.createUrlTree([`app-error-page`]),{skipLocationChange:!0}))};var en=(n,e)=>{let t=v$2(G),r=v$2(c$1),o=n.paramMap.get(`page`);if(o==null)return t.navigate([`app-error-page`]);let l=Number(o);return isNaN(l)?t.navigate([`app-error-page`]):l<1?t.navigate([`archives`,`page`,`1`]):l===1?ry(!0):v$2(m$1).GetQuantidadeArtigos().pipe(Fo(1),nd(d=>r.pageSize$.pipe(Fo(1),nd(u=>{let g=Math.ceil(d/u);return l>g?t.navigate([`app-error-page`]):ry(!0)}))))};var tn=(n,e)=>{let t=v$2(G);return v$2(m$1).GetAllVolumesDosArtigos().pipe(Fo(1),pt$1(o=>
2o.map(l=>l.vol)),nd(o=>{let l=n.paramMap.get(`vol`);return l&&o.includes(+l)?ry(!0):t.navigate([`app-error-page`])}))};var tt=(n,e)=>{let t=n.paramMap.get(`sumarioId`);return E.isNumericId(t)?v$2(m$1).GetArticle(t).pipe(U$1()):E.isFriendlyUrl(t)?v$2(m$1).GetSumarioIdByUrlFriendly(t).pipe(U$1()):null};var nn=(n,e)=>{let t=v$2(m$1),r=n.paramMap.get(`sumarioId`);return E.isFriendlyUrl(r)||E.isNumericId(r)?t.GetMetaDataArticle(r).pipe(pt$1(o=>o?.title||`Article | TreeD Journal`)):`Archives | TreeD Journal`};var fn=(n,e)=>{let t=n.paramMap.get(`page`);if(t==null)return`Archives | TreeD Journal`;let r=Number(t);return isNaN(r)?`Archives — Page 1 | TreeD Journal`:`Archives — Page `+Number(t)+` | TreeD Journal`};var hn=(n,e)=>{let t=n.paramMap.get(`vol`);if(t==null)return`Archives | TreeD Journal`;let r=Number(t);return isNaN(r)?`Volume `+Number(t)+` — Archives | TreeD Journal`:`Volume 1 — Archives | TreeD Journal`};var vn=()=>v$2(n).GetAllEditores().pipe(Us(()=>ry([])));var rn=[...n$1.production?[]:[{path:`styleguide`,loadComponent:()=>import(`./chunk-C811P5jp.js`).then(n=>n.StyleguideComponent),title:`TreeD — Styleguide (dev)`,data:{seo:{robots:`noindex,nofollow`}}}],{path:`author/:slug`,loadComponent:()=>import(`./chunk-ZaWrNqFE.js`).then(n=>n.AuthorArchivesComponent),data:{seo:{robots:`index,follow`,type:`ProfilePage`}}},{path:`home`,loadComponent:()=>import(`./chunk-D43kcpq72.js`).then(n=>n.HomeComponent),title:`TreeD Journal | Open Access Forest Science Research`,data:{seo:{description:`TreeD Journal: An open access, peer-reviewed journal focusing on forest science. Submit your research or explore our latest articles.`,robots:`index,follow`,type:`website`}}},{path:`search`,loadComponent:()=>import(`./chunk-CNPqILBv.js`).then(n=>n.SearchResultsComponent),title:`Search Articles | TreeD Journal`,data:{seo:{description:`Search peer-reviewed forest science articles in TreeD Journal by title, author, keyword or volume.`,robots:`noindex, follow`,type:`SearchPage`}}},{path:`rankings`,loadComponent:()=>import(`./chunk-Dm2w8tO-2.js`).then(n=>n.RankingsComponent),title:`Article Rankings | TreeD Journal`,data:{seo:{description:`Discover the most read and most downloaded articles published in TreeD Journal.`,robots:`index,follow`,type:`CollectionPage`}}},{path:`contact`,loadComponent:()=>import(`./chunk-DmgQ3qWf2.js`).then(n=>n.ContactComponent),title:`Contact the Editorial Office | TreeD Journal`,data:{seo:{description:`Reach the TreeD Journal editorial office for queries, corrections and letters to the editor. Editor-in-Chief: Prof. Dr. Gerson dos Santos Lisboa (ProFloresta, UFG).`,robots:`index,follow`,type:`ContactPage`}}},{path:`app-error-page`,loadComponent:()=>import(`./chunk-0qIKHtq92.js`).then(n=>n.ErrorPageComponent),title:`Something Went Wrong | TreeD Journal`,data:{seo:{description:`An error occurred.`,robots:`noindex`,type:`WebPage`}}},{path:`editorialboard`,loadComponent:()=>import(`./chunk-B5bxhD-H.js`).then(n=>n.EditorialBoardComponent),title:`Editorial Board | TreeD Journal`,data:{seo:{description:`Meet the editors and reviewers who evaluate and approve submissions to TreeD Journal.`,robots:`index,follow`,type:`CollectionPage`}},resolve:{board:vn}},{path:`guide-to-authors`,loadComponent:()=>import(`./chunk-BMtW3VGR.js`).then(n=>n.GuideToAuthorsComponent),title:`Guide for Authors | TreeD Journal`,data:{seo:{description:`Instructions for authors submitting manuscripts to TreeD Journal, including formatting and ethical guidelines.`,robots:`index,follow`,type:`WebPage`}}},{path:`about`,loadComponent:()=>import(`./chunk-DG3HLGae2.js`).then(n=>n.AimsScopeComponent),title:`Aims, Scope & Ethics | TreeD Journal`,data:{seo:{description:`Learn about the aims, scope, and publication ethics of TreeD Journal, an independent open access peer-reviewed journal in forest science.`,robots:`index,follow`,type:`AboutPage`}}},{path:`archives`,data:{seo:{robots:`index,follow`,type:`CollectionPage`}},children:[{path:`page/:page`,loadComponent:()=>import(`./chunk-UE_mWOUj.js`).then(n=>n.ArchivesComponent),canActivate:[en],title:fn,data:{seo:{robots:`index,follow`,type:`CollectionPage`}}},{path:`vol/:vol`,loadComponent:()=>import(`./chunk-Bhg8eLYQ.js`).then(n=>n.ArchivesVolComponent),canActivate:[tn],title:hn,data:{seo:{robots:`index,follow`,type:`CollectionPage`}}},{path:`:sumarioId/:pdfName`,loadComponent:()=>import(`./chunk-CLXW2xAu.js`).then(n=>n.PdfViewerComponent),resolve:{archive:tt},title:nn,runGuardsAndResolvers:`always`,data:{seo:{robots:`index,follow`,type:`website`}}},{path:`:sumarioId`,loadComponent:()=>import(`./chunk-BHkJjdxg2.js`).then(n=>n.ArchiveDetailComponent),canActivate:[Kt],resolve:{archive:tt},title:nn,runGuardsAndResolvers:`always`,data:{seo:{description:`Read this open-access, peer-reviewed forest science article on TreeD Journal.`,robots:`index,follow`,type:`article`}}},{path:``,pathMatch:`full`,redirectTo:`page/1`}]},{path:`login`,loadComponent:()=>import(`./chunk-n9BiJcaF.js`).then(n=>n.LoginComponent),title:`Sign In | TreeD Journal`,data:{seo:{description:`Login to your TreeD Journal account.`,robots:`noindex`,type:`WebPage`}}},{path:`register`,loadComponent:()=>import(`./chunk-DVbsi5WF.js`).then(n=>n.RegistrationComponent),title:`Create an Account | TreeD Journal`,data:{seo:{description:`Register for a new account with TreeD Journal.`,robots:`noindex`,type:`WebPage`}}},{path:`confirmEmail`,loadComponent:()=>import(`./chunk-0YeOFa11.js`).then(n=>n.ConfirmEmailComponent),title:`Confirm Your Email | TreeD Journal`},{path:`submissionSumario`,loadComponent:()=>import(`./chunk-DbnGU-aK.js`).then(n=>n.SubmissionSumarioComponent),canMatch:[Z,X],title:`Submit a Manuscript | TreeD Journal`,data:{permittedRoles:[v.ADMIN,v.USER_ADVANCED,v.USER_COMMON],seo:{description:`Submit your manuscript to TreeD Journal.`,robots:`noindex, nofollow`,type:`WebPage`}}},{path:`artigos`,loadComponent:()=>import(`./chunk-CUMKrjB1.js`).then(n=>n.SumariosComponent),canMatch:[Z,X],title:`My Submissions | TreeD Journal`,data:{permittedRoles:[v.ADMIN,v.USER_ADVANCED,v.USER_COMMON],seo:{description:`Manage your manuscript submissions to TreeD Journal.`,robots:`noindex`,type:`website`}}},{path:`panelUser`,loadComponent:()=>import(`./chunk-B0ON08nh2.js`).then(n=>n.PanelUserComponent),canMatch:[Z,X],title:`User Panel | TreeD Journal`,data:{permittedRoles:[v.ADMIN,v.USER_ADVANCED,v.USER_COMMON],seo:{description:`Manage your submissions and profile.`,robots:`noindex, nofollow`,type:`WebPage`}}},{path:`viewQuestionsReviewer`,loadComponent:()=>import(`./chunk-BdHck3j22.js`).then(n=>n.ViewQuestionsReviewerComponent),canMatch:[Z,X],title:`Manage Review Assignments | TreeD Journal`,data:{permittedRoles:[v.ADMIN,v.USER_ADVANCED,v.USER_COMMON],seo:{description:`Manage reviewer assignments and review questionnaires.`,robots:`noindex`,type:`website`}}},{path:`my-review-assignments`,loadComponent:()=>import(`./chunk-CubYAbkY.js`).then(n=>n.MyReviewAssignmentsComponent),canMatch:[Z,X],title:`My Review Assignments | TreeD Journal`,data:{permittedRoles:[v.GUEST],seo:{description:`My Review Assignments`,robots:`noindex`,type:`website`}}},{path:`reviewer-manuscript/:sumarioId`,loadComponent:()=>import(`./chunk-CyA2Xc5X2.js`).then(n=>n.ReviewerArticleViewComponent),canMatch:[Z,X],title:`Review Manuscript | TreeD Journal`,data:{permittedRoles:[v.ADMIN,v.USER_ADVANCED,v.USER_COMMON,v.GUEST],seo:{description:`Review the manuscript files and metadata assigned to you.`,robots:`noindex`,type:`WebPage`}}},{path:`confirmInviteQuestionReviewer`,loadComponent:()=>import(`./chunk-Domr1IAJ2.js`).then(n=>n.ConfirmInviteQuestionReviewerComponent),title:`Reviewer Invitation | TreeD Journal`},{path:`replicaOrNewRevision`,loadComponent:()=>import(`./chunk-BqYBrYEI.js`).then(n=>n.ReplicaOrNewRevisionComponent),title:`Reply or New Revision | TreeD Journal`},{path:`recoveryPassword`,loadComponent:()=>import(`./chunk-CVB4VPcD2.js`).then(n=>n.RecoveryPasswordComponent),title:`Recover Password | TreeD Journal`,data:{seo:{description:`Recover access to your TreeD Journal account.`,robots:`noindex`,type:`website`}}},{path:`resetPassword`,loadComponent:()=>import(`./chunk-C61M1czV2.js`).then(n=>n.ResetPasswordComponent),title:`Reset Password | TreeD Journal`,data:{seo:{description:`Set a new password for your TreeD Journal account.`,robots:`noindex`,type:`website`}}},{path:`resendConfirmEmail`,loadComponent:()=>import(`./chunk-BBFX2yK_.js`).then(n=>n.ResendEmailConfirmComponent),title:`Resend Confirmation Email | TreeD Journal`,data:{seo:{description:`Resend the confirmation email for your TreeD Journal account.`,robots:`noindex`,type:`website`}}},{path:`app-list-editor`,loadComponent:()=>import(`./chunk-Ct869Fhx.js`).then(n=>n.ListEditorComponent),canMatch:[Z,X],title:`Manage Editors | TreeD Journal`,data:{permittedRoles:[v.ADMIN,v.USER_ADVANCED],seo:{description:`Manage the editors of TreeD Journal.`,robots:`noindex`,type:`website`}}},{path:`app-change-editors`,loadComponent:()=>import(`./chunk-mSs5zjrF.js`).then(n=>n.ChangeEditorsComponent),canMatch:[Z,X],title:`Change Article Editor | TreeD Journal`,data:{permittedRoles:[v.ADMIN,v.USER_ADVANCED],seo:{description:`Reassign the handling editor of a manuscript.`,robots:`noindex`,type:`website`}}},{path:`newsletter/confirm`,loadComponent:()=>import(`./chunk-Bg5tTPjM2.js`).then(n=>n.NewsletterWidgetComponent),title:`Newsletter Confirmation | TreeD Journal`,data:{seo:{description:`Confirm your subscription to the TreeD Journal newsletter.`,robots:`noindex`,type:`website`}}},{path:`forbidden`,loadComponent:()=>import(`./chunk-Um20IKXP.js`).then(n=>n.ForbiddenComponent),title:`Access Denied | TreeD Journal`,data:{seo:{description:`Access to this page is restricted.`,robots:`noindex`,type:`WebPage`}}},{path:``,redirectTo:`home`,pathMatch:`full`},{path:`**`,component:g,title:`Page Not Found | TreeD Journal`,data:{seo:{description:`The requested page was not found.`,robots:`noindex`,type:`website`}}}];var Ue=class n extends rt$1{logger=v$2(I$1);handleError(e){if(this.isExtensionError(e))return;if(e instanceof I$3){this.logger.log(4,`Unhandled HttpErrorResponse reached ErrorHandler: [HTTP ${e.status}] ${e.url??``}`,void 0,{component:`GlobalErrorHandler`,httpStatus:e.status,requestUrl:e.url??void 0});return}if(e instanceof Error){this.logger.error(e.message,e.stack,{component:`GlobalErrorHandler`});return}let t=this.serialize(e);this.logger.log(6,`Unexpected error: ${t}`,void 0,{component:`GlobalErrorHandler`})}
2isExtensionError(e){return e instanceof Error&&e.stack?e.stack.includes(`chrome-extension://`)||e.stack.includes(`moz-extension://`):!1}serialize(e){if(e==null)return String(e);if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`)return String(e);try{return JSON.stringify(e,this.circularReplacer())}catch{return Object.prototype.toString.call(e)}}circularReplacer(){let e=new WeakSet;return(t,r)=>{if(typeof r==`object`&&r!==null){if(e.has(r))return`[Circular]`;e.add(r)}return r}}static ɵfac=function(t){return new(t||n)};static ɵprov=Kr({token:n,factory:n.ɵfac,autoProvided:!1})};function J(n){let e=new URL(n,`http://dummy-base`);return(e.origin+e.pathname).toLowerCase().replace(/\/+$/,``)}var on=(n,e)=>{let t=v$2(D$1),r=v$2(I$1),o=!n$1.production&&globalThis?.__TD_HTTP_DEBUG__===!0,l=n$1.apiUrl.replace(/\/+$/,``),d=`${l}/ApplicationUser/Login`,u=`${l}/ApplicationUser/Register`,g=`${l}/ApplicationUser/Refresh`,f=`${l}/ApplicationUser/ResetLink`,A=`${l}/ApplicationUser/Reset/Begin`,_=`${l}/ApplicationUser/Reset/Finish`,I=n.url.startsWith(l),N=J(n.url),K=N===J(d)||N===J(u)||N===J(g)||N===J(f)||N===J(A)||N===J(_),ee=t.getToken(),te=I&&(K||!!ee)?n.clone({withCredentials:!0}):n,se=I&&!K&&ee?te.clone({setHeaders:{Authorization:`Bearer ${ee}`}}):te;return I&&o&&r.log(2,`[AuthInterceptor] request: ${n.method} ${n.url} authEndpoint=${K} hasToken=${!!ee} withAuthHeader=${!!se.headers.get(`Authorization`)} withCredentials=${se.withCredentials}`),e(se).pipe(rd({next:x=>{I&&o&&x?.status&&r.log(2,`[AuthInterceptor] response: ${n.method} ${n.url} status=${x.status}`)}}),Us(x=>{let ve=x instanceof I$3&&x.status===401;if(I&&o&&x instanceof I$3&&r.log(2,`[AuthInterceptor] error: ${n.method} ${n.url} status=${x.status} canTryRefresh=${I&&N!==J(g)}`),ve&&N===J(g))return r.log(4,`[AuthInterceptor] refresh endpoint returned 401 -> clearToken`),t.clearToken(),gy(()=>x);let _e=I&&N!==J(g);return ve&&_e?(o&&r.log(2,`[AuthInterceptor] trying refresh after 401: ${n.url}`),ft$1(t.refreshAccessToken()).pipe(nd(rt=>{if(rt){o&&r.log(2,`[AuthInterceptor] refresh success -> retry request: ${n.method} ${n.url}`);return e(te.clone({withCredentials:!0,setHeaders:{Authorization:`Bearer ${rt}`}}))}return r.log(4,`[AuthInterceptor] refresh returned no token -> propagate original 401: ${n.url}`),gy(()=>x)}))):gy(()=>x)}))};var Ge=class n{router=v$2(G);logger=v$2(I$1);toast=v$2(u$1);platformId=v$2(EE);isBrowser=xr(this.platformId);handleHttpError(e,t={}){let r=this.toApiErrorResponse(e),o=this.resolveFriendlyMessage(r),l=Q$2(z$1({},r),{userMessage:o}),d=e.headers?.get(`X-Request-Id`)??void 0;return this.logger.log(r.status>=500?5:4,`[HTTP ${r.status}] ${r.errorCode} ${r.detail} traceId=${r.traceId}${d?` correlationId=${d}`:``}`,void 0,{httpStatus:r.status,httpMethod:t.httpMethod,requestUrl:t.requestUrl,errorCode:r.errorCode,traceId:r.traceId,correlationId:d}),this.routeByStatus(l,t.requestUrl),this.notify(l,t.skipGlobalToast??!1),l}toApiErrorResponse(e){if(!(e instanceof I$3))return this.createFallbackError(500,`Unexpected error`,`Unknown error`,`COM_500_001`);let t=this.readPayload(e.error),r=t.status,o=typeof r==`number`?r:typeof e.status==`number`&&e.status>=0?e.status:500,l=this.pickString(t.traceId,t.traceID,t[`x-trace-id`])||``,d=this.pickString(t.timestamp)||new Date().toISOString(),u=this.pickString(t.errorVersion)||`v1`,g=this.pickString(t.errorCode,t.code)||this.defaultErrorCode(o),f=this.pickString(t.userMessage)??void 0,A=this.pickString(t.title)||this.defaultTitle(o),_=this.pickString(t.detail,t.message,e.message)||this.defaultDetail(o);return{type:this.pickString(t.type)||(o===0?`about:blank`:`https://httpstatuses.com/${o}`),title:A,status:o,traceId:l,timestamp:d,errorVersion:u,errorCode:g,detail:_,errors:this.readFieldErrors(t.errors),userMessage:f}}applyFieldErrors(e,t){if(t.errors.length)for(let r of t.errors){let o=this.findControl(e,r.field);if(!o)continue;let l=o.errors??{};o.setErrors(Q$2(z$1({},l),{server:r.message})),o.markAsTouched(),o.markAsDirty()}}routeByStatus(e,t){if(this.isBrowser){if(e.status===401&&!this.isAuthEndpoint(t)){this.router.navigate([`/login`]);return}if(e.status===403){this.router.navigate([`/forbidden`]);return}if(e.status===404){if(this.isAuthEndpoint(t)||this.isAuthorProfileEndpoint(t))return;this.router.navigate([`/app-error-page`])}}}notify(e,t){if(!(t||!this.isBrowser)&&e.status!==400){if(e.status>
2=500||e.status===0){this.toast.error(e.userMessage??e.detail,`Server Error`);return}e.status===404&&this.toast.warning(e.userMessage??e.detail,`Not Found`)}}resolveFriendlyMessage(e){if(e.userMessage&&e.userMessage.trim().length>0)return e.userMessage;if(e.status===0)return`Unable to reach the server. Please check your internet connection.`;if(e.detail&&e.detail.trim().length>0&&e.detail!==`Request failed.`)return e.detail;let t=this.parseErrorCode(e.errorCode);if(t){let r=this.resolveDomainMessage(t.domain,e.status);if(r)return r}return e.status===401?`Your session has expired. Please sign in again.`:e.status===403?`You do not have permission to perform this action.`:e.status===404?`The requested resource was not found.`:e.status>=500?`An internal error occurred. Please try again later.`:e.detail}parseErrorCode(e){if(!e)return null;let t=/^([A-Z]+)_(\d{3})_(\d{3})$/.exec(e.trim());if(!t)return null;let[,r,o,l]=t;return{domain:r,status:Number(o),sequence:Number(l)}}resolveDomainMessage(e,t){if(t===401)return`Your session has expired. Please sign in again.`;if(t===403)return`You do not have permission to perform this action.`;if(t===404)return`The requested resource was not found.`;if(t>=500)return`An internal error occurred. Please try again later.`;if(t===400)switch(e){case`AUTH`:return`Please review the authentication data and try again.`;case`SUM`:return`Please review the manuscript data and try again.`;case`PUB`:return`Please review the publication data and try again.`;case`REV`:return`Please review the reviewer data and try again.`;case`INV`:return`Please review the invite data and try again.`;case`USR`:return`Please review the user data and try again.`;default:return`Please review the informed data and try again.`}return null}readPayload(e){return e?typeof e==`string`?{detail:e}:e instanceof TypeError||typeof ProgressEvent<`u`&&e instanceof ProgressEvent?{}:typeof e==`object`&&!(e instanceof Blob)?e:{}:{}}readFieldErrors(e){if(!e)return[];if(Array.isArray(e))return e.map(t=>t).filter(t=>typeof t?.field==`string`&&typeof t?.message==`string`).map(t=>({field:t.field,message:t.message}));if(typeof e==`object`){let t=[];return Object.entries(e).forEach(([r,o])=>{if(Array.isArray(o)){o.forEach(l=>{typeof l==`string`&&t.push({field:r,message:l})});return}typeof o==`string`&&t.push({field:r,message:o})}),t}return[]}createFallbackError(e,t,r,o){return{type:`https://httpstatuses.com/${e}`,title:t,status:e,traceId:``,timestamp:new Date().toISOString(),errorVersion:`v1`,errorCode:o,detail:r,errors:[]}}pickString(...e){for(let t of e)if(typeof t==`string`&&t.trim().length>0)return t.trim();return null}defaultTitle(e){switch(e){case 0:return`Network error`;case 400:return`Validation error`;case 401:return`Unauthorized`;case 403:return`Forbidden`;case 404:return`Not found`;case 409:return`Conflict`;case 503:return`Service unavailable`;default:return`Internal server error`}}defaultDetail(e){return e===0?`Unable to reach the server. Please check your internet connection.`:e>=500?`An internal error occurred.`:`Request failed.`}defaultErrorCode(e){switch(e){case 0:return`COM_000_001`;case 400:return`COM_400_001`;case 401:return`COM_401_001`;case 403:return`COM_403_001`;case 404:return`COM_404_001`;case 409:return`COM_409_001`;case 503:return`COM_503_001`;default:return`COM_500_001`}}findControl(e,t){return t?e.get(t):null}isAuthEndpoint(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`/applicationuser/login`)||t.includes(`/applicationuser/register`)||t.includes(`/applicationuser/refresh`)||t.includes(`/applicationuser/logout`)}isAuthorProfileEndpoint(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`/author/getauthorprofilebyslug/`)||t.includes(`/author/getauthorprofile/`)}static ɵfac=function(t){return new(t||n)};static ɵprov=Kr({token:n,factory:n.ɵfac})};var _n=8e3;var an=3;function Ce(n){let e=new URL(n,`http://dummy-base`);return(e.origin+e.pathname).toLowerCase().replace(/\/+$/,``)}function bn(n){return n===0||n>=502&&n<=504}function yn(n){if(n==null)return String(n);if(typeof n==`string`)return n;
2if(typeof n==`number`||typeof n==`boolean`)return String(n);try{let e=new WeakSet;return JSON.stringify(n,(t,r)=>{if(typeof r==`object`&&r!==null){if(e.has(r))return`[Circular]`;e.add(r)}return r})}catch{return Object.prototype.toString.call(n)}}function sn(n){let e=n.toUpperCase();return e===`GET`||e===`HEAD`}var ln=(n,e)=>{let t=v$2(I$1),r=v$2(Ge),o=$r(v$2(EE)),l=!n$1.production&&globalThis?.__TD_HTTP_DEBUG__===!0,d=n$1.apiUrl.replace(/\/+$/,``),u=n.headers.has(u$2),g=u||n.context.get(l$2),f=u?n.clone({headers:n.headers.delete(u$2)}):n,A=f.url.startsWith(d);A&&l&&t.log(2,`[ErrorInterceptor] request: ${f.method} ${f.url} skipGlobalToast=${g}`);let _=`${d}/ApplicationUser/Login`,I=`${d}/ApplicationUser/Register`,N=`${d}/ApplicationUser/Refresh`,K=`${d}/ApplicationUser/Logout`,ee=e(f).pipe(rd({next:h=>{A&&l&&h?.status&&t.log(2,`[ErrorInterceptor] response: ${f.method} ${f.url} status=${h.status}`)}}));return o&&sn(f.method)&&(ee=ee.pipe(Ey({each:_n,with:()=>gy(()=>new I$3({status:0,statusText:`SSR request timeout`,url:f.url??void 0}))}))),ee.pipe(My({count:an,delay:(h,te)=>{if(h instanceof I$3&&bn(h.status)&&sn(f.method)){let se=Math.min(1e3*2**(te-1),4e3),x=Math.floor(Math.random()*250);return t.log(4,`Retrying ${f.method} (status ${h.status}, attempt ${te}/${an}): ${f.url}`),qs(se+x)}return gy(()=>h)}}),Us(h=>{if(h instanceof I$3){let x=Ce(f.url),ve=x===Ce(_)||x===Ce(I)||x===Ce(N)||x===Ce(K);A&&l&&t.log(2,`[ErrorInterceptor] catchError: ${f.method} ${f.url} status=${h.status} expectedAuthFailure=${ve}`);let _e=r.handleHttpError(h,{requestUrl:f.url,httpMethod:f.method,skipGlobalToast:g});return h.apiError=_e,h.userMessage=_e.userMessage??_e.detail,h.status===401&&A&&!ve&&t.log(4,`HTTP 401 (Unauthorized) na URL: ${h.url??`N/A`}`),gy(()=>h)}let te=h instanceof Error?h.message:yn(h),se=h instanceof Error?h.stack:void 0;return t.log(6,`Erro n\xE3o-HTTP interceptado: ${te}`,se),gy(()=>h)}))};function Sn(n){return n&&n.replace(/^[A-Z]+(?=[A-Z][a-z]|[0-9]|$)/,e=>e.toLowerCase()).replace(/^[A-Z]/,e=>e.toLowerCase())}function nt(n){if(Array.isArray(n))return n.map(t=>nt(t));if(!cn(n))return n;let e={};for(let[t,r]of Object.entries(n))e[Sn(t)]=nt(r);return e}function cn(n){return n!==null&&typeof n==`object`&&!Array.isArray(n)}function Cn(n){return cn(n)?n.succeeded===!0&&Object.prototype.hasOwnProperty.call(n,`data`):!1}var pn=(n,e)=>{let t=v$2(I$1),r=!n$1.production&&globalThis?.__TD_HTTP_DEBUG__===!0;return e(n).pipe(pt$1(o=>{if(o.type!==S$2.Response||!(o instanceof j$3))return o;let l=o.body;if(!Cn(l))return r&&n.url.includes(`/api/`)&&t.log(2,`[ApiEnvelopeInterceptor] passthrough: ${n.method} ${n.url} status=${o.status} envelope=false bodyType=${Array.isArray(l)?`array`:typeof l}`),o;if(r&&n.url.includes(`/api/`)){let d=l.data,u=Array.isArray(d)?`array(len=${d.length})`:typeof d;t.log(2,`[ApiEnvelopeInterceptor] unwrap: ${n.method} ${n.url} status=${o.status} traceId=${l.traceId??`N/A`} dataType=${u}`)}return o.clone({body:nt(l.data)})}))};var dn=`X-Request-Id`;var Mn=n$1.apiUrl.replace(/\/+$/,``);var mn=(n,e)=>{if(!n.url.startsWith(Mn)||n.headers.has(dn))return e(n);return e(n.clone({setHeaders:{[dn]:xn()}}))};function xn(){let n=globalThis.crypto;return n&&typeof n.randomUUID==`function`?n.randomUUID().replace(/-/g,``):`${Date.now().toString(36)}${Math.random().toString(36).slice(2,10)}`}var Fe=class n extends br{title=v$2(Vi);updateTitle(e){let t=this.buildTitle(e)||``;this.title.setTitle(t)}static ɵfac=function(t){return new(t||n)};static ɵprov=Kr({token:n,factory:n.ɵfac,autoProvided:!1})};var $e=class n{isBrowser=xr(v$2(EE));_initialized=!1;_trackingId=`G-Q0YCNG9DMQ`;initialize(){if(!n$1.production||!this.isBrowser||this._initialized)return;let e=document.createElement(`script`);e.src=`https://www.googletagmanager.com/gtag/js?id=${this._trackingId}`,e.async=!0,document.head.appendChild(e);let t=document.createElement(`script`);t.innerHTML=`
3      window.dataLayer = window.dataLayer || [];
4      function gtag(){dataLayer.push(arguments);}
5      gtag('js', new Date());
6      gtag('config', '${this._trackingId}');
7    `,document.head.appendChild(t),this._initialized=!0}static ɵfac=function(t){return new(t||n)};static ɵprov=Kr({token:n,factory:n.ɵfac})};var wn={LCP:[2500,4e3],CLS:[.1,.25],INP:[200,500],FCP:[1800,3e3],TTFB:[800,1800]};var He=class n{platformId=v$2(EE);analytics=v$2(x);logger=v$2(I$1);destroyRef=v$2(De$1);observers=[];collected=new Map;clsValue=0;clsEntries=[];worstInpDuration=0;started=!1;
7start(){if(this.started||!xr(this.platformId)||typeof PerformanceObserver!=`function`)return;this.started=!0,this.observeLcp(),this.observeCls(),this.observeInp(),this.captureNavigationTimings();let e=()=>this.flush(),t=()=>{document.visibilityState===`hidden`&&e()};document.addEventListener(`visibilitychange`,t),addEventListener(`pagehide`,e),this.destroyRef.onDestroy(()=>{document.removeEventListener(`visibilitychange`,t),removeEventListener(`pagehide`,e),this.observers.forEach(r=>r.disconnect()),this.observers.length=0})}observeLcp(){this.safeObserve(`largest-contentful-paint`,e=>{let t=e[e.length-1];t&&this.record(`LCP`,t.startTime)},{buffered:!0})}observeCls(){this.safeObserve(`layout-shift`,e=>{for(let t of e){let r=t;if(r.hadRecentInput)continue;let o=this.clsEntries[this.clsEntries.length-1],l=this.clsEntries[0];o&&r.startTime-o.startTime<1e3&&r.startTime-l.startTime<5e3?this.clsEntries.push(r):this.clsEntries=[r];let d=this.clsEntries.reduce((u,g)=>u+g.value,0);d>this.clsValue&&(this.clsValue=d,this.record(`CLS`,this.clsValue))}},{buffered:!0})}observeInp(){this.safeObserve(`event`,e=>{for(let t of e){let r=t;r.interactionId&&r.duration>this.worstInpDuration&&(this.worstInpDuration=r.duration,this.record(`INP`,this.worstInpDuration))}},{buffered:!0,durationThreshold:40})}captureNavigationTimings(){try{let e=performance.getEntriesByType(`navigation`)[0];if(!e)return;e.responseStart>0&&this.record(`TTFB`,e.responseStart);let t=performance.getEntriesByName(`first-contentful-paint`)[0];t&&this.record(`FCP`,t.startTime)}catch{}}safeObserve(e,t,r){try{let o=new PerformanceObserver(l=>t(l.getEntries()));o.observe(z$1({type:e},r)),this.observers.push(o)}catch{}}record(e,t){let[r,o]=wn[e],l=t<=r?`good`:t<=o?`needs-improvement`:`poor`,u=performance.getEntriesByType(`navigation`)[0]?.type??`navigate`,g={name:e,value:t,rating:l,navigationType:u};this.collected.set(e,g),this.analytics.trackEvent(`web_vitals`,{metric_name:e,metric_value:Math.round(e===`CLS`?t*1e3:t),metric_rating:l,navigation_type:u})}flush(){if(this.collected.size===0)return;let e=Array.from(this.collected.values()).filter(r=>r.rating===`poor`);if(e.length===0)return;let t=e.map(r=>`${r.name}=${Math.round(r.name===`CLS`?r.value*1e3:r.value)}(${r.rating})`).join(`, `);this.logger.warn(`[WebVitals] poor metrics on ${location.pathname}: ${t}`,{component:`WebVitalsService`})}static ɵfac=function(t){return new(t||n)};static ɵprov=Kr({token:n,factory:n.ɵfac})};var un={providers:[vE(),y_(),Ru(),pc(rn,yc({paramsInheritanceStrategy:`emptyOnly`})),{provide:br,useClass:Fe},{provide:rt$1,useClass:Ue},bt$1(Rt$1(),Et$1([mn,on,ln,pn])),F$2(n$1.apiUrl.replace(/\/api\/?$/,``)),{provide:O$1,useValue:O$1},C$2,C$1,{provide:I$1,useClass:I$1,deps:[t$1]},{provide:t$1,useValue:n$1.production?4:0},zw(()=>v$2(D$1).initAuth()),zw(()=>{v$2($e).initialize()}),zw(()=>v$2(He).start())]};var Nn=[`trigger`];function kn(n,e){if(n&1){let t=cb();ns(0,`button`,3,0)(2,`span`,4),zb(3),eu(),ff(),ns(4,`svg`,5),Im(5,`path`,6),eu()(),pf(),ns(6,`ul`,7,1)(8,`li`,8)(9,`button`,9),_m(`click`,function(){Xd(t);return ef(vb(2).onSubmissions())}),zb(10,` My submissions `),eu()(),ns(11,`li`,8)(12,`button`,9),_m(`click`,function(){Xd(t);return ef(vb(2).onLogout())}),zb(13,` Logout `),eu()()()}if(n&2){let t=bb(7),r=vb(2);Em(`menu`,t),QD(3),Gm(r.displayName()),QD(3),Em(`id`,r.menuId),QD(3),Em(`value`,`submissions`),QD(3),Em(`value`,`logout`)}}function Pn(n,e){if(n&1){let t=cb();ns(0,`a`,10),_m(`click`,function(){Xd(t);return ef(vb(2).trackAuth(`login`))}),zb(1,`Sign in`),eu(),ns(2,`a`,11),_m(`click`,function(){Xd(t);return ef(vb(2).trackAuth(`register`))}),zb(3,` Register
8`),eu()}}function En(n,e){if(n&1&&ZC(0,kn,14,5)(1,Pn,4,0),n&2)YC(vb().isRealUser()?0:1)}function An(n,e){n&1&&Im(0,`span`,2)}var Tn=0;var Ve=class n{router=v$2(G);auth=v$2(D$1);analytics=v$2(x);pos=v$2(Ne);isBrowser=xr(v$2(EE));navTags=o.navbar;menuId=`gz-account-menu-${++Tn}`;authReady=mn$2(()=>this.auth.authCheckState()!==`checking`);isRealUser=mn$2(()=>this.auth.isLoggedIn()&&!this.auth.isGuest());displayName=mn$2(()=>{let e=this.auth.currentUser();return(e?.apelido??e?.fullName??e?.userName??`Account`).toString()});triggerRef=cV(`trigger`);menu=cV(hi);constructor(){wf(e=>{let t=this.menu(),r=this.triggerRef();if(!this.isBrowser||!t||!r||!t.visible())return;let o=this.pos.connect(t.element,r.nativeElement,{placement:`bottom`,align:`end`});e(()=>o())})}trackAuth(e){this.analytics.trackTag(this.navTags.userAuth,{item_id:e===`login`?`Log-in`:`Register`,link_url:e===`login`?`/login`:`/register`,link_text:e===`login`?`Log-in`:`Register`})}onSubmissions(){this.analytics.trackTag(this.navTags.userDropdown,{item_id:`Submissions`,link_url:`/panelUser`,link_text:`Submissions`}),this.router.navigate([`/panelUser`])}onLogout(){let e=this.auth.currentUser();this.analytics.trackTag(this.navTags.logout,{item_id:`logout`,user_id:e?.userName?.toString()??e?.pessoaId?.toString()??`unknown`}),this.auth.logout()}static ɵfac=function(t){return new(t||n)};static ɵcmp=Vw({type:n,selectors:[[`gz-account-menu`]],viewQuery:function(t,r){t&1&&Am(r.triggerRef,Nn,5)(r.menu,hi,5),t&2&&Cb(2)},decls:2,vars:1,consts:[[`trigger`,``],[`acctMenu`,`ngMenu`],[`aria-hidden`,`true`,1,`gz-account-menu__placeholder`],[`type`,`button`,`ngMenuTrigger`,``,1,`gz-account-menu__trigger`,3,`menu`],[1,`gz-account-menu__name`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,`focusable`,`false`,1,`gz-account-menu__caret`],[`fill`,`currentColor`,`d`,`M7 10l5 5 5-5z`],[`ngMenu`,``,1,`gz-account-menu__panel`,3,`id`],[`role`,`none`],[`type`,`button`,`ngMenuItem`,``,1,`gz-account-menu__item`,3,`click`,`value`],[`routerLink`,`/login`,1,`gz-account-menu__signin`,3,`click`],[`routerLink`,`/register`,1,`gz-account-menu__signin`,`gz-account-menu__signin--ghost`,3,`click`]],template:function(t,r){t&1&&ZC(0,En,2,1)(1,An,1,0,`span`,2),t&2&&YC(r.authReady()?0:1)},dependencies:[Rn$1,hi,$e$1,li],styles:[`[_nghost-%COMP%]{display:inline-flex;align-items:center;justify-content:flex-end;
8gap:var(--%NS%sp-2);min-inline-size:169px;min-block-size:35px;font-family:var(--%NS%font-meta)}.gz-account-menu__placeholder[_ngcontent-%COMP%]{display:block;inline-size:169px;block-size:35px}.gz-account-menu__signin[_ngcontent-%COMP%]{font-family:var(--%NS%font-meta);text-transform:uppercase;letter-spacing:.1em;font-size:var(--%NS%fs-300);font-weight:700;color:var(--%NS%ink);text-decoration:none;padding:var(--%NS%sp-2) var(--%NS%sp-3);border:var(--%NS%rule-fine) solid var(--%NS%rule);border-radius:var(--%NS%r-1)}.gz-account-menu__signin--ghost[_ngcontent-%COMP%]{border-color:transparent}.gz-account-menu__signin[_ngcontent-%COMP%]:hover, .gz-account-menu__signin[_ngcontent-%COMP%]:focus-visible{background:var(--%NS%accent);color:var(--%NS%on-accent);text-decoration:none}.gz-account-menu__trigger[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;font-family:var(--%NS%font-meta);text-transform:uppercase;letter-spacing:.1em;font-size:var(--%NS%fs-300);font-weight:700;background:transparent;border:var(--%NS%rule-fine) solid var(--%NS%rule);color:var(--%NS%ink);padding:var(--%NS%sp-1) var(--%NS%sp-2);cursor:pointer;border-radius:var(--%NS%r-1)}.gz-account-menu__trigger[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--%NS%accent) 14%,transparent)}.gz-account-menu__trigger[_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--%NS%focus-ring);outline-offset:2px}.gz-account-menu__caret[_ngcontent-%COMP%]{width:12px;height:12px;flex:none}.gz-account-menu__panel[_ngcontent-%COMP%]{position:fixed;z-index:1100;min-width:190px;max-width:calc(100vw - 16px);list-style:none;margin:0;padding:var(--%NS%sp-1) 0;background:var(--%NS%panel);color:var(--%NS%ink);border:var(--%NS%rule-fine) solid var(--%NS%rule);box-shadow:var(--%NS%overlay-shadow)}.gz-account-menu__panel[data-visible=false][_ngcontent-%COMP%]{display:none}.gz-account-menu__panel[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:none}.gz-account-menu__item[_ngcontent-%COMP%]{display:block;width:100%;text-align:left;border:0;background:transparent;font-family:var(--%NS%font-meta);text-transform:uppercase;letter-spacing:.06em;font-size:var(--%NS%fs-300);font-weight:700;color:var(--%NS%ink);padding:var(--%NS%sp-2) var(--%NS%sp-3);cursor:pointer}.gz-account-menu__item[_ngcontent-%COMP%]:hover, .gz-account-menu__item[_ngcontent-%COMP%]:focus-visible{background:var(--%NS%accent);color:var(--%NS%on-accent);text-decoration:none;outline:none}`]})};var On=(n,e)=>e.label;function Rn(n,e){if(n&1&&(ns(0,`span`),zb(1),eu()),n&2){let t=vb();QD(),iu(`Vol. `,t.volume())}}function Dn(n,e){if(n&1&&(ns(0,`span`),zb(1),eu()),n&2){let t=vb();QD(),iu(`No. `,t.editionNumber())}}function In(n,e){if(n&1&&(ns(0,`span`),zb(1),eu()),n&2){let t=vb();QD(),Gm(t.currentDate())}}function zn(n,e){if(n&1&&(ns(0,`li`)(1,`a`,14),zb(2),eu()()),n&2){let t=e.$implicit;QD(),Em(`routerLink`,t.link),QD(),Gm(t.label)}}function Ln(n,e){if(n&1&&(ns(0,`div`,10)(1,`div`,11)(2,`span`,12),zb(3,`Latest`),eu(),ns(4,`ul`,13),XC(5,zn,3,2,`li`,null,On),eu()()()),n&2){let t=vb();QD(5),eb(t.tickerItems())}}var Be=class n{tickerItems=sV([]);volume=sV(``);editionNumber=sV(``);currentDate=wi(``);constructor(){Wh(()=>{this.currentDate.set(new Date().toLocaleDateString(`en-US`,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}))})}static ɵfac=function(t){return new(t||n)};static ɵcmp=Vw({type:n,selectors:[[`gz-masthead`]],inputs:{tickerItems:[1,`tickerItems`],volume:[1,`volume`],editionNumber:[1,`editionNumber`]},decls:24,vars:4,consts:[[1,`gazette-head`],[1,`masthead`],[`routerLink`,`/`,`aria-label`,`Tree Dimensional — home`,1,`masthead__brand`],[`ngSrc`,`assets/Imagens/logo_TreeDimensional_transp.webp`,`width`,`54`,`height`,`54`,`alt`,``,`aria-hidden`,`true`,`priority`,``,1,`masthead__emblem`],[1,`masthead__title`],[1,`masthead__sub`],[1,`dateline`],[1,`dateline__inner`,`dateline__inner--util`],[1,`dateline__meta`],[1,`dateline__tools`],[`role`,`region`,`aria-label`,`Latest headlines`,1,`ticker`],[1,`ticker__inner`],[1,`ticker__label`],[1,`ticker__list`],[1,`ticker__item`,3,`routerLink`]],template:function(t,r){t&1&&(ns(0,`header`,0)(1,`div`,1)(2,`a`,2),Im(3,`img`,3),ns(4,`span`,4),zb(5,`Tree Dimensional`),eu()(),ns(6,`div`,5),zb(7,`The Forest Science Gazette`),eu()(),ns(8,`div`,6)(9,`div`,7)(10,`div`,8),ZC(11,Rn,2,1,`span`),ZC(12,Dn,2,1,`span`),ns(13,`span`),zb(14,`Continuous publication`),eu(),ns(15,`span`),zb(16,`Open Access`),eu(),ns(17,`span`),zb(18,`ISSN 2447-9829`),eu(),ZC(19,In,2,1,`span`),eu(),ns(20,`div`,9),Im(21,`gz-theme-toggle`)(22,`gz-account-menu`),eu()()(),ZC(23,Ln,7,0,`div`,10),eu()),t&2&&(QD(11),YC(r.volume()?11:-1),QD(),YC(r.editionNumber()?12:-1),QD(7),YC(r.currentDate()?19:-1),QD(4),YC(r.tickerItems().length?23:-1))},dependencies:[Yr,Rn$1,Re,Ve],styles:[`[_nghost-%COMP%]{display:block}.gazette-head[_ngcontent-%COMP%]{background:var(--%NS%paper)}.masthead[_ngcontent-%COMP%]{text-align:center;padding:var(--%NS%sp-5) var(--%NS%sp-4) var(--%NS%sp-3)}.masthead__brand[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:var(--%NS%sp-3);text-decoration:none;color:var(--%NS%ink)}.masthead__brand[_ngcontent-%COMP%]:hover{color:var(--%NS%ink);text-decoration:none}.masthead__emblem[_ngcontent-%COMP%]{width:54px;height:54px;flex:none;object-fit:contain}.masthead__title[_ngcontent-%COMP%]{font-family:var(--%NS%font-head);font-weight:900;font-size:clamp(2.2rem,6.5vw,4.4rem);letter-spacing:.01em;line-height:.95}.masthead__sub[_ngcontent-%COMP%]{font-family:var(--%NS%font-meta);text-transform:uppercase;letter-spacing:.42em;font-size:var(--%NS%fs-300);color:var(--%NS%text-muted);margin-top:var(--%NS%sp-2);padding-left:.42em}.dateline[_ngcontent-%COMP%]{border-top:var(--%NS%rule-thick) solid var(--%NS%rule);border-bottom:var(--%NS%rule-fine) solid var(--%NS%rule);margin:var(--%NS%sp-2) 0 0}.dateline__inner[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--%NS%sp-1) var(--%NS%sp-3);padding:var(--%NS%sp-2) var(--%NS%sp-4);font-family:var(--%NS%font-meta);text-transform:uppercase;letter-spacing:.12em;font-size:var(--%NS%fs-300);color:var(--%NS%text-muted)}.dateline__inner--util[_ngcontent-%COMP%]{justify-content:center;gap:var(--%NS%sp-2) var(--%NS%sp-4)}.dateline__inner--util[_ngcontent-%COMP%]   .dateline__meta[_ngcontent-%COMP%]{margin-right:auto}@media(max-width:640px){.dateline__inner--util[_ngcontent-%COMP%]   .dateline__meta[_ngcontent-%COMP%]{margin-right:0}}.dateline__meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--%NS%sp-1) var(--%NS%sp-3)}.dateline__meta[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{white-space:nowrap}.dateline__meta[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:after{content:"\\b7";margin-left:var(--%NS%sp-3);color:var(--%NS%line)}.dateline__meta[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child:after{content:"";margin:0}.dateline__tools[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:var(--%NS%sp-3)}.ticker[_ngcontent-%COMP%]{background:var(--%NS%ink);color:var(--%NS%paper);border-bottom:var(--%NS%rule-thick) solid var(--%NS%rule);overflow:hidden}.ticker__inner[_ngcontent-%COMP%]{max-width:var(--%NS%maxw);margin:0 auto;display:flex;align-items:stretch}.ticker__label[_ngcontent-%COMP%]{flex:none;display:inline-flex;align-items:center;background:var(--%NS%accent);color:var(--%NS%on-accent);font-family:var(--%NS%font-meta);text-transform:uppercase;letter-spacing:.14em;font-weight:800;font-size:var(--%NS%fs-300);padding:var(--%NS%sp-2) var(--%NS%sp-3);white-space:nowrap}.ticker__list[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;display:flex;align-items:stretch;margin:0;padding:0;list-style:none;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--%NS%accent) var(--%NS%ink)}.ticker__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{flex:none;scroll-snap-align:start;display:inline-flex;align-items:center}.ticker__list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{border-left:var(--%NS%rule-fine) solid color-mix(in srgb,var(--%NS%paper) 22%,transparent)}.ticker__item[_ngcontent-%COMP%]{font-family:var(--%NS%font-meta);font-size:var(--%NS%fs-400);letter-spacing:.04em;color:var(--%NS%paper);text-decoration:none;white-space:nowrap;padding:var(--%NS%sp-2) var(--%NS%sp-4)}.ticker__item[_ngcontent-%COMP%]:hover, .ticker__item[_ngcontent-%COMP%]:focus-visible{color:var(--%NS%accent);text-decoration:underline}.ticker__list[_ngcontent-%COMP%]::-webkit-scrollbar{height:6px}.ticker__list[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--%NS%ink)}.ticker__list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:var(--%NS%accent);border-radius:999px}`]})};var Un=[`toggleBtn`];var Gn=(n,e)=>e.route;function Fn(n,e){if(n&1){let t=cb();ns(0,`li`,8)(1,`a`,12),_m(`click`,function(){Xd(t);let o=vb();return ef(o.onLinkClick(o.mySubmissionsLink))}),zb(2,` My Submissions `),eu()()}}function $n(n,e){if(n&1){let t=cb();ns(0,`li`)(1,`a`,13),_m(`click`,function(){let o=Xd(t).$implicit;return ef(vb().onLinkClick(o))}),zb(2),eu()()}if(n&2){let t=e.$implicit;QD(),Em(`routerLink`,t.route),QD(),Gm(t.label)}}function Hn(n,e){if(n&1){let t=cb();ns(0,`a`,14),_m(`click`,function(){Xd(t);let o=vb();return ef(o.onLinkClick(o.mySubmissionsLink))}),zb(1,` My Submissions `),eu()}}var je=class n{router=v$2(G);analytics=v$2(x);auth=v$2(D$1);hostEl=v$2(Jr);isBrowser=xr(v$2(EE));navTags=o.navbar;toggleBtn=cV(`toggleBtn`);isRealUser=mn$2(()=>
8this.auth.isLoggedIn()&&!this.auth.isGuest());open=wi(!1);links=[{label:`Home`,route:`/home`},{label:`Aims & Scope`,route:`/about`},{label:`Editorial Board`,route:`/editorialboard`},{label:`Guide to Authors`,route:`/guide-to-authors`},{label:`Archives`,route:`/archives`},{label:`Rankings`,route:`/rankings`},{label:`Contact`,route:`/contact`}];mySubmissionsLink={label:`My Submissions`,route:`/panelUser`};toggle(){this.open.update(e=>!e)}onEsc(){this.open()&&(this.open.set(!1),this.toggleBtn()?.nativeElement.focus())}onDocumentClick(e){!this.open()||!this.isBrowser||this.hostEl.nativeElement.contains(e.target)||this.open.set(!1)}onLinkClick(e){this.analytics.trackTag(this.navTags.mainLink,{item_id:e.label,link_url:e.route,link_text:e.label}),this.open.set(!1)}goToSubmit(){if(this.open.set(!1),!this.isRealUser()){this.analytics.trackTag(this.navTags.mainLink,{item_id:`Submit`,link_url:`/login`,link_text:`Submit`}),this.router.navigate([`/login`],{queryParams:{returnUrl:`/submissionSumario?sumarioId=0`}});return}this.analytics.trackTag(this.navTags.mainLink,{item_id:`Submit`,link_url:`/submissionSumario`,link_text:`Submit`}),this.router.navigate([`/submissionSumario`],{queryParams:{sumarioId:0}})}static ɵfac=function(t){return new(t||n)};static ɵcmp=Vw({type:n,selectors:[[`gz-navbar`]],viewQuery:function(t,r){t&1&&Am(r.toggleBtn,Un,5),t&2&&Cb()},hostBindings:function(t,r){t&1&&_m(`keydown.escape`,function(){return r.onEsc()},cD)(`click`,function(l){return r.onDocumentClick(l)},cD)},decls:18,vars:5,consts:[[`toggleBtn`,``],[`aria-label`,`Primary`,1,`classifieds`],[1,`classifieds__inner`],[`routerLink`,`/`,1,`classifieds__brand`],[`type`,`button`,`aria-controls`,`gz-primary-menu`,1,`classifieds__toggle`,3,`click`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,`focusable`,`false`],[`fill`,`currentColor`,`d`,`M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z`],[`id`,`gz-primary-menu`,1,`classifieds__menu`],[1,`classifieds__mobile-submissions`],[1,`classifieds__actions`],[`routerLink`,`/panelUser`,`routerLinkActive`,``,`ariaCurrentWhenActive`,`page`,1,`classifieds__my-submissions`],[`type`,`button`,1,`classifieds__cta`,3,`click`],[`routerLink`,`/panelUser`,`routerLinkActive`,``,`ariaCurrentWhenActive`,`page`,3,`click`],[`routerLinkActive`,``,`ariaCurrentWhenActive`,`page`,3,`click`,`routerLink`],[`routerLink`,`/panelUser`,`routerLinkActive`,``,`ariaCurrentWhenActive`,`page`,1,`classifieds__my-submissions`,3,`click`]],template:function(t,r){t&1&&(ns(0,`nav`,1)(1,`div`,2)(2,`a`,3),zb(3,`Tree Dimensional`),eu(),ns(4,`button`,4,0),_m(`click`,function(){return r.toggle()}),ff(),ns(6,`svg`,5),Im(7,`path`,6),eu(),pf(),ns(8,`span`),zb(9,`Menu`),eu()(),ns(10,`ul`,7),ZC(11,Fn,3,0,`li`,8),XC(12,$n,3,2,`li`,null,Gn),eu(),ns(14,`div`,9),ZC(15,Hn,2,0,`a`,10),ns(16,`button`,11),_m(`click`,function(){return r.goToSubmit()}),zb(17,`Submit`),eu()()()()),t&2&&(Lm(`is-open`,r.open()),QD(4),ym(`aria-expanded`,r.open()),QD(7),YC(r.isRealUser()?11:-1),QD(),eb(r.links),QD(3),YC(r.isRealUser()?15:-1))},dependencies:[Rn$1,tc],styles:[`[_nghost-%COMP%]{display:contents}.classifieds[_ngcontent-%COMP%]{position:sticky;top:0;z-index:100;background:var(--%NS%paper);border-bottom:var(--%NS%rule-thick) solid var(--%NS%rule);box-shadow:0 1px color-mix(in srgb,var(--%NS%rule) 28%,transparent)}.classifieds__inner[_ngcontent-%COMP%]{max-width:1320px;margin:0 auto;min-height:var(--%NS%nav-h);display:flex;align-items:stretch;padding:0 var(--%NS%sp-2)}.classifieds__brand[_ngcontent-%COMP%]{display:inline-flex;flex:none;align-items:center;font-family:var(--%NS%font-head);font-weight:900;font-size:var(--%NS%fs-500);letter-spacing:.01em;color:var(--%NS%ink);padding:var(--%NS%sp-2) var(--%NS%sp-4) var(--%NS%sp-2) 0;white-space:nowrap;text-decoration:none}.classifieds__brand[_ngcontent-%COMP%]:hover{color:var(--%NS%accent);text-decoration:none}.classifieds__menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;flex:1 1 auto;display:flex;flex-wrap:nowrap;align-items:stretch;justify-content:center}.classifieds__menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{display:flex;flex:none}.classifieds__menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-family:var(--%NS%font-meta);text-transform:uppercase;letter-spacing:.1em;font-size:var(--%NS%fs-400);font-weight:700;color:var(--%NS%nav-ink);padding:var(--%NS%sp-3) var(--%NS%sp-3);border-left:var(--%NS%rule-fine) solid var(--%NS%line);display:inline-flex;align-items:center;white-space:nowrap;text-decoration:none}.classifieds__menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:first-child   a[_ngcontent-%COMP%]{border-left:0}.classifieds__mobile-submissions[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{border-left:0}.classifieds__mobile-submissions[_ngcontent-%COMP%]{display:none!important}.classifieds__menu[_ngcontent-%COMP%]   a[aria-current=page][_ngcontent-%COMP%]{color:var(--%NS%nav-fill);box-shadow:inset 0 -3px 0 var(--%NS%nav-fill)}.classifieds__menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .classifieds__menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible{background:var(--%NS%nav-fill);color:var(--%NS%nav-ink-on-fill);box-shadow:none;text-decoration:none}.classifieds__actions[_ngcontent-%COMP%]{display:flex;flex:none;align-items:stretch}.classifieds__my-submissions[_ngcontent-%COMP%], .classifieds__cta[_ngcontent-%COMP%]{appearance:none;border:0;border-left:var(--%NS%rule-fine) solid var(--%NS%line);cursor:pointer;display:inline-flex;align-items:center;font-family:var(--%NS%font-meta);text-transform:uppercase;letter-spacing:.1em;font-size:var(--%NS%fs-400);font-weight:700;color:var(--%NS%nav-ink-on-fill);background:var(--%NS%nav-fill);padding:var(--%NS%sp-3) var(--%NS%sp-4);white-space:nowrap;text-decoration:none}.classifieds__my-submissions[_ngcontent-%COMP%]{background:var(--%NS%paper);color:var(--%NS%nav-fill)}.classifieds__my-submissions[aria-current=page][_ngcontent-%COMP%]{box-shadow:inset 0 -3px 0 var(--%NS%nav-fill)}.classifieds__my-submissions[_ngcontent-%COMP%]:hover, .classifieds__my-submissions[_ngcontent-%COMP%]:focus-visible, .classifieds__cta[_ngcontent-%COMP%]:hover, .classifieds__cta[_ngcontent-%COMP%]:focus-visible{background:var(--%NS%accent-ink);color:var(--%NS%nav-ink-on-fill);text-decoration:none}.classifieds__toggle[_ngcontent-%COMP%]{display:none;align-items:center;gap:var(--%NS%sp-2);font-family:var(--%NS%font-meta);text-transform:uppercase;letter-spacing:.1em;font-weight:700;font-size:var(--%NS%fs-400);background:transparent;border:0;color:var(--%NS%ink);cursor:pointer;padding:var(--%NS%sp-2)}.classifieds__toggle[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:22px;height:22px}@media(max-width:1360px){.classifieds__inner[_ngcontent-%COMP%]{align-items:center}.classifieds__brand[_ngcontent-%COMP%]{margin-right:auto;padding-left:var(--%NS%sp-2)}.classifieds__toggle[_ngcontent-%COMP%]{display:inline-flex}.classifieds__my-submissions[_ngcontent-%COMP%]{display:none}.classifieds__menu[_ngcontent-%COMP%]{position:absolute;
8left:0;right:0;top:100%;flex-direction:column;background:var(--%NS%paper);border-bottom:var(--%NS%rule-thick) solid var(--%NS%rule);box-shadow:var(--%NS%overlay-shadow);display:none;z-index:100}.classifieds.is-open[_ngcontent-%COMP%]   .classifieds__menu[_ngcontent-%COMP%]{display:flex}.classifieds__menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{display:block}.classifieds__menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{border-left:0;border-top:var(--%NS%rule-fine) solid var(--%NS%line);justify-content:flex-start;padding:var(--%NS%sp-3) var(--%NS%sp-4)}.classifieds__menu[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:first-child   a[_ngcontent-%COMP%]{border-top:0}.classifieds__mobile-submissions[_ngcontent-%COMP%]{display:block!important}}`]})};var Vn=[`searchInput`];function Bn(n,e){n&1&&(ns(0,`p`,6),zb(1),eu()),n&2&&(QD(),Gm(e))}var Je=class n{router=v$2(G);analytics=v$2(x);term=wi(``);error=wi(null);inputRef=cV(`searchInput`);MIN_SEARCH_LENGTH=4;VALID_SEARCH_REGEX=/^[a-zA-Z\s]*$/;submit(){let e=this.term().trim(),t=e.length<this.MIN_SEARCH_LENGTH?`too_short`:this.VALID_SEARCH_REGEX.test(e)?null:`invalid_characters`;if(t){this.error.set(t===`too_short`?`Type at least ${this.MIN_SEARCH_LENGTH} characters.`:`Use letters and spaces only.`),this.analytics.trackEvent(`search_attempt_failed`,{reason:t,search_term:e,location:`searchbar`}),this.inputRef()?.nativeElement.focus();return}this.error.set(null),this.analytics.trackEvent(`search`,{search_term:e,location:`searchbar`}),this.router.navigate([`/search`],{queryParams:{query:e}}),this.term.set(``)}static ɵfac=function(t){return new(t||n)};static ɵcmp=Vw({type:n,selectors:[[`gz-searchbar`]],viewQuery:function(t,r){t&1&&Am(r.inputRef,Vn,5),t&2&&Cb()},decls:9,vars:4,consts:[[`searchInput`,``],[1,`searchbar`],[`role`,`search`,1,`searchbar__inner`,3,`ngSubmit`],[`for`,`gz-search-q`],[`id`,`gz-search-q`,`type`,`search`,`name`,`q`,`autocomplete`,`off`,`placeholder`,`Keywords, author, DOI…`,3,`ngModelChange`,`ngModel`],[`gzButton`,``,`variant`,`primary`,`size`,`sm`,`type`,`submit`],[`id`,`gz-search-err`,`role`,`alert`,1,`searchbar__error`]],template:function(t,r){if(t&1&&(ns(0,`div`,1)(1,`form`,2),_m(`ngSubmit`,function(){return r.submit()}),ns(2,`label`,3),zb(3,`Search the archive`),eu(),ns(4,`input`,4,0),_m(`ngModelChange`,function(l){return r.term.set(l)}),eu(),QT(),ns(6,`button`,5),zb(7,`Search`),eu()(),ZC(8,Bn,2,1,`p`,6),eu()),t&2){let o;QD(4),Em(`ngModel`,r.term()),ym(`aria-invalid`,r.error()?`true`:null)(`aria-describedby`,r.error()?`gz-search-err`:null),YT(),QD(4),YC((o=r.error())?8:-1,o)}},dependencies:[Vn$1,_n$1,je$2,pn$1,mn$1,Ut,Tt,s],styles:[`[_nghost-%COMP%]{display:block}.searchbar[_ngcontent-%COMP%]{border-bottom:var(--%NS%rule-fine) solid var(--%NS%line);background:var(--%NS%paper)}.searchbar__inner[_ngcontent-%COMP%]{max-width:var(--%NS%maxw);margin:0 auto;display:flex;gap:var(--%NS%sp-2);align-items:center;padding:var(--%NS%sp-2) var(--%NS%sp-4);flex-wrap:wrap}.searchbar[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-family:var(--%NS%font-meta);text-transform:uppercase;letter-spacing:.1em;font-size:var(--%NS%fs-300);color:var(--%NS%text-muted)}.searchbar[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]{flex:1 1 180px;min-width:0;box-sizing:border-box;border:var(--%NS%rule-fine) solid var(--%NS%input-border);border-radius:var(--%NS%r-1);background-color:var(--%NS%input-surface);color:var(--%NS%ink);font-family:var(--%NS%font-body);font-size:var(--%NS%fs-400);padding:var(--%NS%sp-2) var(--%NS%sp-3);transition:background-color .12s ease,border-color .12s ease}.searchbar[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]:hover{background-color:var(--%NS%input-surface-hover);border-color:var(--%NS%input-border-hover)}.searchbar[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]:focus-visible{outline:3px solid var(--%NS%accent);outline-offset:2px;border-color:var(--%NS%accent)}.searchbar__error[_ngcontent-%COMP%]{max-width:var(--%NS%maxw);margin:0 auto;padding:0 var(--%NS%sp-4) var(--%NS%sp-2);font-family:var(--%NS%font-meta);font-size:var(--%NS%fs-300);color:var(--%NS%err-ink)}`]})};var We=class n{worldShell=sV(!1);currentYear=new Date().getFullYear();rssUrl=`${n$1.apiUrl}/Article/RssFeed`;static ɵfac=function(t){return new(t||n)};static ɵcmp=Vw({type:n,selectors:[[`app-footer`]],hostVars:2,hostBindings:function(t,r){t&2&&Lm(`site-footer--world`,r.worldShell())},inputs:{worldShell:[1,`worldShell`]},decls:88,vars:3,consts:[[1,`site-footer`],[1,`footer-main`,`container`],[`aria-label`,`Footer navigation`,1,`footer-nav`],[1,`footer-heading`],[1,`footer-nav-list`],[`routerLink`,`/home`],[`routerLink`,`/about`],[`routerLink`,`/archives`],[`routerLink`,`/rankings`],[`routerLink`,`/editorialboard`],[`routerLink`,`/guide-to-authors`],[`routerLink`,`/contact`],[1,`footer-partners`],[1,`footer-logos`],[`href`,`https://site.funape.org.br/`,`target`,`_blank`,`rel`,`noopener noreferrer`],[`src`,`assets/Imagens/Logo_Funape.webp`,`alt`,`FUNAPE`,`width`,`139`,`height`,`25`],[`href`,`https://www.abecbrasil.org.br/`,`target`,`_blank`,`rel`,`noopener noreferrer`],[`src`,`assets/Imagens/ABEC.webp`,`alt`,`ABEC`,`width`,`135`,`height`,`43`],[`href`,`https://search.crossref.org/`,`target`,`_blank`,`rel`,`noopener noreferrer`],[`src`,`assets/Imagens/Crossref.webp`,`alt`,`Crossref`,`width`,`135`,`height`,`39`],[`href`,`https://sucupira-legado.capes.gov.br/sucupira/`,`target`,`_blank`,`rel`,`noopener noreferrer`],[`src`,`assets/Imagens/Qualis.webp`,`alt`,`Qualis`,`width`,`135`,`height`,`54`],[`href`,`https://scholar.google.com/`,`target`,`_blank`,`rel`,`noopener noreferrer`],[1,`footer-scholar-logo`],[`srcset`,`assets/Imagens/google-scholar-dark.webp`,`media`,`(prefers-color-scheme: dark)`],[`src`,`assets/Imagens/google-scholar-light.webp`,`alt`,`Google Scholar`,`width`,`150`,`height`,`40`],[1,`footer-contact`],[`src`,`assets/Imagens/logo_profloresta_transp.webp`,`alt`,`ProFloresta`,`height`,`35`,`width`,`206`,`loading`,`lazy`,1,`footer-imprint-logo`],[`href`,`https://profloresta.agro.ufg.br`,`target`,`_blank`,`rel`,`noopener`],[`href`,`mailto:[email protected]`],[1,`footer-follow`],[1,`footer-social`],[`href`,`https://pt-br.facebook.com/proflorestaufg/`,`target`,`_blank`,`rel`,`noopener noreferrer`,`aria-label`,`ProFloresta on Facebook`],[`viewBox`,`0 0 24 24`,`aria-hidden`,`true`,`focusable`,`false`],[`fill`,`currentColor`,`d`,`M22 12a10 10 0 1 0-11.6 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.2c-1.2 0-1.6.8-1.6 1.6V12h2.7l-.4 2.9h-2.3v7A10 10 0 0 0 22 12Z`],[`href`,`https://x.com/treed_science`,`target`,`_blank`,`rel`,`noopener noreferrer`,`aria-label`,`TreeDimensional on X`],[`fill`,`currentColor`,`d`,`M18.9 2H22l-7.3 8.3L23 22h-6.
86l-5.2-6.8L5.2 22H2l7.8-8.9L1.3 2H8l4.7 6.2L18.9 2Zm-1.2 18h1.8L7.3 3.9H5.4L17.7 20Z`],[`href`,`https://www.instagram.com/profloresta/?hl=pt-br`,`target`,`_blank`,`rel`,`noopener noreferrer`,`aria-label`,`ProFloresta on Instagram`],[`fill`,`currentColor`,`d`,`M12 2.2c3.2 0 3.6 0 4.9.1 1.2.1 1.8.3 2.2.4.6.2 1 .5 1.4.9.4.4.7.8.9 1.4.2.4.4 1 .4 2.2.1 1.3.1 1.7.1 4.9s0 3.6-.1 4.9c-.1 1.2-.3 1.8-.4 2.2-.2.6-.5 1-.9 1.4-.4.4-.8.7-1.4.9-.4.2-1 .4-2.2.4-1.3.1-1.7.1-4.9.1s-3.6 0-4.9-.1c-1.2-.1-1.8-.3-2.2-.4-.6-.2-1-.5-1.4-.9-.4-.4-.7-.8-.9-1.4-.2-.4-.4-1-.4-2.2C2.2 15.6 2.2 15.2 2.2 12s0-3.6.1-4.9c.1-1.2.3-1.8.4-2.2.2-.6.5-1 .9-1.4.4-.4.8-.7 1.4-.9.4-.2 1-.4 2.2-.4C8.4 2.2 8.8 2.2 12 2.2Zm0 1.8c-3.1 0-3.5 0-4.7.1-1.1.1-1.7.2-2.1.4-.5.2-.9.4-1.3.8-.4.4-.6.8-.8 1.3-.2.4-.3 1-.4 2.1-.1 1.2-.1 1.6-.1 4.7s0 3.5.1 4.7c.1 1.1.2 1.7.4 2.1.2.5.4.9.8 1.3.4.4.8.6 1.3.8.4.2 1 .3 2.1.4 1.2.1 1.6.1 4.7.1s3.5 0 4.7-.1c1.1-.1 1.7-.2 2.1-.4.5-.2.9-.4 1.3-.8.4-.4.6-.8.8-1.3.2-.4.3-1 .4-2.1.1-1.2.1-1.6.1-4.7s0-3.5-.1-4.7c-.1-1.1-.2-1.7-.4-2.1-.2-.5-.4-.9-.8-1.3-.4-.4-.8-.6-1.3-.8-.4-.2-1-.3-2.1-.4-1.2-.1-1.6-.1-4.7-.1Zm0 3.1a4.9 4.9 0 1 1 0 9.8 4.9 4.9 0 0 1 0-9.8Zm0 8.1a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4Zm6.2-8.3a1.1 1.1 0 1 1-2.3 0 1.1 1.1 0 0 1 2.3 0Z`],[1,`footer-bottom`],[1,`container`,`footer-bottom-inner`],[1,`footer-journal-info`],[1,`footer-issn`],[`name`,`article`,3,`size`],[`href`,`https://creativecommons.org/licenses/by/4.0/`,`target`,`_blank`,`rel`,`noopener noreferrer`,1,`footer-license`],[`target`,`_blank`,`rel`,`noopener noreferrer`,`aria-label`,`RSS Feed`,1,`footer-rss`,3,`href`],[1,`footer-copyright`],[1,`footer-credit`]],template:function(t,r){t&1&&(ns(0,`footer`,0)(1,`div`,1)(2,`nav`,2)(3,`h2`,3),zb(4,`The Gazette`),eu(),ns(5,`ul`,4)(6,`li`)(7,`a`,5),zb(8,`Home`),eu()(),ns(9,`li`)(10,`a`,6),zb(11,`About`),eu()(),ns(12,`li`)(13,`a`,7),zb(14,`Archives`),eu()(),ns(15,`li`)(16,`a`,8),zb(17,`Rankings`),eu()(),ns(18,`li`)(19,`a`,9),zb(20,`Editorial Board`),eu()(),ns(21,`li`)(22,`a`,10),zb(23,`Guide to Authors`),eu()(),ns(24,`li`)(25,`a`,11),zb(26,`Contact`),eu()()()(),ns(27,`div`,12)(28,`h2`,3),zb(29,`Indexed & supported by`),eu(),ns(30,`div`,13)(31,`a`,14),Im(32,`img`,15),eu(),ns(33,`a`,16),Im(34,`img`,17),eu(),ns(35,`a`,18),Im(36,`img`,19),eu(),ns(37,`a`,20),Im(38,`img`,21),eu(),ns(39,`a`,22)(40,`picture`,23),Im(41,`source`,24)(42,`img`,25),eu()()()(),ns(43,`address`,26)(44,`h2`,3),zb(45,`Editorial office`),eu(),Im(46,`img`,27),ns(47,`p`),zb(48,` ProFloresta · School of Agronomy, UFG`),Im(49,`br`),ns(50,`a`,28),zb(51,`profloresta.agro.ufg.br`),eu(),Im(52,`br`),zb(53,` Av. Esperanca s/n, Campus Samambaia`),Im(54,`br`),zb(55,` Zip Code: 74.690-900 Goiania (GO), Brazil`),Im(56,`br`),zb(57,` Phone: +55 (62) 3521-1563`),Im(58,`br`),ns(59,`a`,29),zb(60,`[email protected]`),eu()()(),ns(61,`div`,30)(62,`h2`,3),zb(63,`Follow`),eu(),ns(64,`div`,31)(65,`a`,32),ff(),ns(66,`svg`,33),Im(67,`path`,34),eu()(),pf(),ns(68,`a`,35),ff(),ns(69,`svg`,33),Im(70,`path`,36),eu()(),pf(),ns(71,`a`,37),ff(),ns(72,`svg`,33),Im(73,`path`,38),eu()()()()(),pf(),ns(74,`div`,39)(75,`div`,40)(76,`div`,41)(77,`span`,42),Im(78,`gz-icon`,43),zb(79,` ISSN: 2447-9829 `),eu(),ns(80,`a`,44),zb(81,`CC-BY 4.0`),eu(),ns(82,`a`,45),zb(83,`RSS Feed`),eu()(),ns(84,`p`,46),zb(85),eu(),ns(86,`p`,47),zb(87,`Built by Leandro Tassinari`),eu()()()()),t&2&&(QD(78),Em(`size`,16),QD(4),Em(`href`,r.rssUrl,jh),QD(3),iu(`© `,r.currentYear,` TreeD Journal. All rights reserved.`))},dependencies:[Rn$1,c],styles:[`.site-footer[_ngcontent-%COMP%], [_nghost-%COMP%]{display:block}.site-footer[_ngcontent-%COMP%]{border-top:1px solid var(--%NS%border);background:var(--%NS%card);color:var(--%NS%text);margin-top:auto}.site-footer--world[_nghost-%COMP%]   .site-footer[_ngcontent-%COMP%]{background:transparent;border-top:var(--%NS%rule-thick) solid color-mix(in srgb,var(--%NS%accent) 62%,var(--%NS%border))}.site-footer--world[_nghost-%COMP%]{position:relative;z-index:1}.site-footer--world[_nghost-%COMP%]   .footer-main[_ngcontent-%COMP%]{background:var(--%NS%paper);border-inline:1px solid color-mix(in srgb,var(--%NS%border) 74%,transparent);box-shadow:0 0 28px color-mix(in srgb,var(--%NS%text) 15%,transparent)}.footer-main[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:32px;padding:40px 20px 32px}.footer-heading[_ngcontent-%COMP%]{font-size:.95rem;font-weight:700;margin:0 0 14px;color:var(--%NS%text)}.footer-nav-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.footer-nav-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--%NS%muted);text-decoration:none;font-size:.9rem;transition:color .2s ease}.footer-nav-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .footer-nav-list[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible{color:var(--%NS%link);text-decoration:underline}.footer-logos[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start}.footer-logos[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:4px 8px;background:var(--%NS%logo-surface);border:1px solid var(--%NS%logo-border);border-radius:var(--%NS%r-1, 2px)}.footer-logos[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:auto;max-height:20px;width:auto;display:block}.footer-scholar-logo[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0}.footer-scholar-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:auto;max-height:20px;width:auto}.footer-contact[_ngcontent-%COMP%]{font-style:normal;font-size:.875rem;line-height:1.6;color:var(--%NS%muted)}.footer-contact[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--%NS%link)}.footer-imprint-logo[_ngcontent-%COMP%]{display:block;height:35px;width:auto;margin-bottom:12px}.footer-social[_ngcontent-%COMP%]{display:flex;gap:8px}.footer-social[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;border:1px solid var(--%NS%border);border-radius:var(--%NS%r-1, 2px);color:var(--%NS%text);transition:background-color .2s ease,color .2s ease,border-color .2s ease}.footer-social[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .footer-social[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible{background:var(--%NS%accent);color:var(--%NS%on-accent);border-color:var(--%NS%accent)}.footer-social[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:18px;height:18px}.footer-bottom[_ngcontent-%COMP%]{border-top:1px solid var(--%NS%border);background:var(--%NS%bg);padding:14px 0}.footer-bottom-inner[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:.8rem;color:var(--%NS%muted)}.site-footer--world[_nghost-%COMP%]   .footer-bottom[_ngcontent-%COMP%]{background:transparent}.site-footer--world[_nghost-%COMP%]   .footer-bottom-inner[_ngcontent-%COMP%]{position:relative;isolation:isolate}.site-footer--world[_nghost-%COMP%]   .footer-bottom-inner[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:-14px 0;z-index:-1;background:var(--%NS%paper);border-inline:1px solid color-mix(in srgb,var(--%NS%border) 74%,transparent);box-shadow:0 12px 28px color-mix(in srgb,var(--%NS%text) 15%,transparent)}.footer-journal-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.footer-issn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;font-weight:600}.footer-license[_ngcontent-%COMP%]{color:var(--%NS%link);text-decoration:none;font-weight:600}.footer-license[_ngcontent-%COMP%]:hover{text-decoration:underline}.footer-rss[_ngcontent-%COMP%]{color:var(--%NS%link);text-decoration:none;font-weight:600}.footer-rss[_ngcontent-%COMP%]:hover{text-decoration:underline}.footer-copyright[_ngcontent-%COMP%], .footer-credit[_ngcontent-%COMP%]{margin:0}@media(max-width:820px){.footer-main[_ngcontent-%COMP%]{grid-template-columns:1fr;text-align:center}.footer-logos[_ngcontent-%COMP%]{justify-content:center}.footer-nav-list[_ngcontent-%COMP%]{align-items:center}.footer-social[_ngcontent-%COMP%]{justify-content:center}.footer-bottom-inner[_ngcontent-%COMP%]{flex-direction:column;text-align:center}}@media(prefers-reduced-motion:reduce){.footer-social[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{transition:none}}@media(forced-colors:active),print{.site-footer--world[_nghost-%COMP%]   .site-footer[_ngcontent-%COMP%]{background:var(--%NS%card)}.site-footer--world[_nghost-%COMP%]   .footer-main[_ngcontent-%COMP%]{border-inline:0;box-shadow:none}.site-footer--world[_nghost-%COMP%]   .footer-bottom[_ngcontent-%COMP%]{background:var(--%NS%bg)}.site-footer--world[_nghost-%COMP%]   .footer-bottom-inner[_ngcontent-%COMP%]:before{display:none}}`]})};function jn(n,e){if(n&1){let t=cb();ns(0,`button`,1),_m(`click`,function(){Xd(t);return ef(vb().scrollToTop())}),Im(1,`gz-icon`,2),eu()}n&2&&(QD(),Em(`size`,24))}var qe=class n{platformId=v$2(EE);isBrowser=xr(this.platformId);destroyRef=v$2(De$1);SCROLL_THRESHOLD=400;isVisible=wi(!1);scrollListener;constructor(){Wh(()=>{this.scrollListener=()=>this.checkScroll(),window.addEventListener(`scroll`,this.scrollListener,{passive:!0}),this.checkScroll()}),this.destroyRef.onDestroy(()=>{this.scrollListener&&this.isBrowser&&window.removeEventListener(`scroll`,this.scrollListener)})}scrollToTop(){this.isBrowser&&window.scrollTo({top:0,behavior:`smooth`})}checkScroll(){let e=window.scrollY||document.documentElement.scrollTop;this.isVisible.set(e>this.SCROLL_THRESHOLD)}static ɵfac=function(t){return new(t||n)};static ɵcmp=Vw({type:n,selectors:[[`app-back-to-top`]],decls:1,vars:1,consts:[[`type`,`button`,`appCssTooltip`,`Back to top`,`aria-label`,`Scroll back to top of page`,1,`back-to-top`],[`type`,`button`,`appCssTooltip`,`Back to top`,`aria-label`,`Scroll back to top of page`,1,`back-to-top`,3,`click`],[`name`,`up`,3,`size`]],template:function(t,r){t&1&&ZC(0,jn,2,1,`button`,0),t&2&&YC(r.isVisible()?0:-1)},dependencies:[A,c],styles:[`.back-to-top[_ngcontent-%COMP%]{position:fixed;bottom:24px;right:24px;z-index:50;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;border:1px solid var(--%NS%border);background:var(--%NS%card);color:var(--%NS%text);cursor:pointer;box-shadow:0 4px 16px #0f172a26;transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease,opacity .3s ease;animation:_ngcontent-%COMP%_back-to-top-in .3s ease}.back-to-top[_ngcontent-%COMP%]:hover, .back-to-top[_ngcontent-%COMP%]:focus-visible{background:var(--%NS%link);color:var(--%NS%link-contrast);transform:translateY(-2px);box-shadow:0 6px 20px #156c384d}.back-to-top[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--%NS%link);outline-offset:2px}@keyframes _ngcontent-%COMP%_back-to-top-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.back-to-top[_ngcontent-%COMP%]{bottom:16px;right:16px;width:44px;height:44px}}`]})};fs(class n{title=wi(`tdFrontEnd`);artigoService=v$2(m$1);homeVisualShell=v$2(t);editorialVisualMode=`v4`;recentArticles$=this.artigoService.GetRecentArticleIds(1,5).pipe(nd(e=>e?.length?this.artigoService.GetArticlesByIds(e):ry([])),Us(()=>ry([])),Ny({bufferSize:1,refCount:!1}));tickerItems=F$4(this.recentArticles$.pipe(pt$1(e=>e.map(t=>({label:t.manuscriptTitle,link:this.articleLink(t)})))),{initialValue:[]});currentVolume=F$4(this.recentArticles$.pipe(pt$1(e=>e[0]?.volume??``)),{initialValue:``});currentEdition=F$4(this.recentArticles$.pipe(pt$1(e=>e[0]?.edition??``)),{initialValue:``});articleLink(e){let t=e.urlFriendly?.urlFriendly??e.sumarioId?.toString()??``;return t?`/archives/${t}`:`/archives`}static ɵfac=function(t){return new(t||n)};static ɵcmp=Vw({type:n,selectors:[[`app-root`]],hostVars:1,hostBindings:function(t,r){t&2&&ym(`data-editorial-visual`,r.editorialVisualMode)},decls:10,vars:4,consts:[[`href`,`#main`,1,`gz-skip-link`],[`aria-hidden`,`true`,1,`gz-read-progress`],[3,`tickerItems`,`volume`,`editionNumber`],[`id`,`main`,1,`app-main`],[3,`worldShell`]],template:function(t,r){t&1&&(ns(0,`a`,0),zb(1,`Skip to main content`),eu(),Im(2,`div`,1)(3,`gz-masthead`,2)(4,`gz-navbar`)(5,`gz-searchbar`),ns(6,`main`,3),Im(7,`router-outlet`),eu(),Im(8,`app-footer`,4)(9,`app-back-to-top`)),t&2&&(QD(3),Em(`tickerItems`,r.tickerItems())(`volume`,r.currentVolume())(`editionNumber`,r.currentEdition()),QD(5),Em(`worldShell`,r.homeVisualShell.worldFooterReady()))},dependencies:[wr,Be,je,Je,We,qe],styles:[`[_nghost-%COMP%]{min-height:100dvh;display:flex;flex-direction:column}gz-masthead[_ngcontent-%COMP%], gz-searchbar[_ngcontent-%COMP%], app-footer[_ngcontent-%COMP%]{flex:0 0 auto}app-footer[_ngcontent-%COMP%]{margin-top:auto}.app-main[_ngcontent-%COMP%]{flex:1 0 auto;display:flex;flex-direction:column;min-height:0}.gz-skip-link[_ngcontent-%COMP%]{position:absolute;
8left:var(--%NS%sp-2);top:-3rem;z-index:1100;background:var(--%NS%accent);color:var(--%NS%on-accent);font-family:var(--%NS%font-meta);font-weight:700;padding:var(--%NS%sp-2) var(--%NS%sp-3);border-radius:var(--%NS%r-2);transition:top .15s ease}.gz-skip-link[_ngcontent-%COMP%]:focus-visible{top:var(--%NS%sp-2)}.gz-read-progress[_ngcontent-%COMP%]{position:fixed;inset:0 0 auto;height:3px;transform:scaleX(0);transform-origin:0 50%;background:var(--%NS%accent);z-index:1000;animation:_ngcontent-%COMP%_gz-read-progress-grow linear both;animation-timeline:scroll(root block)}@keyframes _ngcontent-%COMP%_gz-read-progress-grow{to{transform:scaleX(1)}}@media(prefers-reduced-motion:reduce){.gz-skip-link[_ngcontent-%COMP%]{transition:none}.gz-read-progress[_ngcontent-%COMP%]{display:none}}`]})},un).catch(n=>console.error(n));export{mn$1 as $,q as A,E$1 as B,Y as C,de as D,be as E,ye as F,Vn$1 as G,Pt as H,m$1 as I,_n$1 as J,Vt as K,Cn$1 as L,ve as M,x as N,ee$1 as O,xe as P,je$2 as Q,Dn$1 as R,X$1 as S,_e as T,Tt as U,Mt as V,Ut as W,gn as X,fn$1 as Y,he$1 as Z,L as _,Re as a,t as at,Se as b,li as c,D$1 as ct,g as d,I$2 as dt,oe as et,Ae$1 as f,n as ft,Ie as g,E as h,Ne as i,o as it,te$1 as j,fe as k,te as l,I$1 as lt,De as m,s as n,yn$1 as nt,ee as o,u$1 as ot,Ce$1 as p,Y$1 as q,$e$1 as r,z as rt,hi as s,C$2 as st,A as t,pn$1 as tt,c as u,c$1 as ut,Me as v,Z$1 as w,Te as x,Oe$1 as y,Dt as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.