PageSourceSearch

https://www.webofscience.com/wos/static/456.c3cfeb66131ad1ba.js

js webofscience.com collected 2026-09-24 08:32:11 UTC 1,481,478 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkseed_app=self.webpackChunkseed_app||[]).push([[456],{56456:(iL,Ko,S)=>{S.r(Ko),S.d(Ko,{FullRecordModule:()=>U$});var ni=S(96850),Ha=S(5951),ye=S(89417),Jd=S(91657),A=S(60177),ot=S(7901),t=S(54438),Va=S(18617),B=S(53712),Wd=S(89479),ge=S(96697),Ee=S(56977),Ft=S(5964),Zo=S(88141),Tn=S(17675),za=S(21413),ts=S(7673),K=S(19494),Kd=S(16260),Qa=S(24658),Ua=S(41737),Li=S(97307),Ln=S(64519),Ja=S(32537),Zd=S(59034),ii=S(72132);class $ extends Error{constructor(n,e){var r,o,a="KaTeX parse error: "+n,s=e&&e.loc;if(s&&s.start<=s.end){var l=s.lexer.input;a+=(r=s.start)===l.length?" at end of input: ":" at position "+(r+1)+": ";var c=l.slice(r,o=s.end).replace(/[^]/g,"$&\u0332");a+=(r>15?"\u2026"+l.slice(r-15,r):l.slice(0,r))+c+(o+15<l.length?l.slice(o,o+15)+"\u2026":l.slice(o))}super(a),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,$.prototype),this.position=r,null!=r&&null!=o&&(this.length=o-r),this.rawMessage=n}}var tu=/([A-Z])/g,nu={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},iu=/[&><"']/g,ae=i=>String(i).replace(iu,n=>nu[n]),Ni=i=>"ordgroup"===i.type||"color"===i.type?1===i.body.length?Ni(i.body[0]):i:"font"===i.type?Ni(i.body):i,au=new Set(["mathord","textord","atom"]),Je=i=>au.has(Ni(i).type),Wa={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:i=>"#"+i},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(i,n)=>(n.push(i),n)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:i=>Math.max(0,i),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:i=>Math.max(0,i),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:i=>Math.max(0,i),cli:"-e, --max-expand <n>",cliProcessor:i=>"Infinity"===i?1/0:parseInt(i)},globalGroup:{type:"boolean",cli:!1}};function lu(i,n,e,a){var r=e[n];i[n]=void 0!==r?a.processor?a.processor(r):r:function su(i){return void 0!==i.default?i.default:function ou(i){if("string"!=typeof i)return i.enum[0];switch(i){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}(Array.isArray(i.type)?i.type[0]:i.type)}(a)}class Ka{constructor(n){for(var e of(void 0===n&&(n={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,n=n||{},Object.keys(Wa))){var a=Wa[e];a&&lu(this,e,n,a)}}reportNonstrict(n,e,a){var r=this.strict;if("function"==typeof r&&(r=r(n,e,a)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new $("LaTeX-incompatible input and strict mode is set to 'error': "+e+" ["+n+"]",a);"warn"===r?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+n+"]"):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+e+" ["+n+"]")}}useStrictBehavior(n,e,a){var r=this.strict;if("function"==typeof r)try{r=r(n,e,a)}catch{r="error"}return!(!r||"ignore"===r||!0!==r&&"error"!==r&&("warn"===r?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+e+" ["+n+"]"),1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+e+" ["+n+"]"),1)))}isTrusted(n){if("url"in n&&n.url&&!n.protocol){var e=(i=>{var n=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(i);return n?":"===n[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?n[1].toLowerCase():null:"_relative"})(n.url);if(null==e)return!1;n.protocol=e}return!!("function"==typeof this.trust?this.trust(n):this.trust)}}class cn{constructor(n,e,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=n,this.size=e,this.cramped=a}sup(){return Xe[cu[this.id]]}sub(){return Xe[du[this.id]]}fracNum(){return Xe[uu[this.id]]}fracDen(){return Xe[_u[this.id]]}cramp(){return Xe[pu[this.id]]}text(){return Xe[hu[this.id]]}isTight(){return this.size>=2}}var Xe=[new cn(0,0,!1),new cn(1,0,!0),new cn(2,1,!1),new cn(3,1,!0),new cn(4,2,!1),new cn(5,2,!0),new cn(6,3,!1),new cn(7,3,!0)],cu=[4,5,4,5,6,7,
16,7],du=[5,5,5,5,7,7,7,7],uu=[2,3,4,5,6,7,6,7],_u=[3,3,5,5,7,7,7,7],pu=[1,1,3,3,5,5,7,7],hu=[0,1,2,3,2,3,2,3],at={DISPLAY:Xe[0],TEXT:Xe[2],SCRIPT:Xe[4],SCRIPTSCRIPT:Xe[6]},tr=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],Oi=[];function es(i){for(var n=0;n<Oi.length;n+=2)if(i>=Oi[n]&&i<=Oi[n+1])return!0;return!1}tr.forEach(i=>i.blocks.forEach(n=>Oi.push(...n)));var Wt=i=>i+" "+i,ns={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:Wt("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Wt("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Wt("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Wt("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:Wt("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h1
17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:Wt("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Wt("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Wt
vendor: 6,697 bytes, line 1
1("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class 
1Bn{constructor(n){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=n,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(n){return this.classes.includes(n)}toNode(){for(var n=document.createDocumentFragment(),e=0;e<this.children.length;e++)n.appendChild(this.children[e].toNode());return n}toMarkup(){for(var n="",e=0;e<this.children.length;e++)n+=this.children[e].toMarkup();return n}toText(){return this.children.map(n=>{if(function ku(i){return"toText"in i}(n))return n.toText();throw new Error("Expected MathDomNode with toText, got "+n.constructor.name)}).join("")}}var er={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Fu={ex:!0,em:!0,mu:!0},is=function(n){return"string"!=typeof n&&(n=n.unit),n in er||n in Fu||"ex"===n},Et=function(n,e){var a;if(n.unit in er)a=er[n.unit]/e.fontMetrics().ptPerEm/e.sizeMultiplier;else if("mu"===n.unit)a=e.fontMetrics().cssEmPerMu;else{var r;if(r=e.style.isTight()?e.havingStyle(e.style.text()):e,"ex"===n.unit)a=r.fontMetrics().xHeight;else{if("em"!==n.unit)throw new $("Invalid unit: '"+n.unit+"'");a=r.fontMetrics().quad}r!==e&&(a*=r.sizeMultiplier/e.sizeMultiplier)}return Math.min(n.number*a,e.maxSize)},j=function(n){return+n.toFixed(4)+"em"},dn=function(n){return n.filter(e=>e).join(" ")},nr=function(n){var e="";for(var a of Object.keys(n)){var r=n[a];void 0!==r&&(e+=a.replace(tu,"-$1").toLowerCase()+":"+r+";")}return e},as=function(n,e,a){if(this.classes=n||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},e){e.style.isTight()&&this.classes.push("mtight");var r=e.getColor();r&&(this.style.color=r)}},rs=function(n){var e=document.createElement(n);for(var a of(e.className=dn(this.classes),Object.assign(e.style,this.style),Object.keys(this.attributes)))e.setAttribute(a,this.attributes[a]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e},wu=/[\s"'>/=\x00-\x1f]/,os=function(n){var e="<"+n;this.classes.length&&(e+=' class="'+ae(dn(this.classes))+'"');var a=nr(this.style);for(var r of(a&&(e+=' style="'+ae(a)+'"'),Object.keys(this.attributes))){if(wu.test(r))throw new $("Invalid attribute name '"+r+"'");e+=" "+r+'="'+ae(this.attributes[r])+'"'}e+=">";for(var o=0;o<this.children.length;o++)e+=this.children[o].toMarkup();return e+"</"+n+">"};class Yn{constructor(n,e,a,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,as.call(this,n,a,r),this.children=e||[]}setAttribute(n,e){this.attributes[n]=e}hasClass(n){return this.classes.includes(n)}toNode(){return rs.call(this,"span")}toMarkup(){return os.call(this,"span")}}class Bi{constructor(n,e,a,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,as.call(this,e,r),this.children=a||[],this.setAttribute("href",n)}setAttribute(n,e){this.attributes[n]=e}hasClass(n){return this.classes.includes(n)}toNode(){return rs.call(this,"a")}toMarkup(){return os.call(this,"a")}}class Mu{constructor(n,e,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=e,this.src=n,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=a}hasClass(n){return this.classes.includes(n)}toNode(){var n=document.createElement("img");return n.src=this.src,n.alt=this.alt,n.className="mord",Object.assign(n.style,this.style),n}toMarkup(){var n='<img src="'+ae(this.src)+'" alt="'+ae(this.alt)+'"',e=nr(this.style);return e&&(n+=' style="'+ae(e)+'"'),n+"'/>"}}var Su={\u00ee:"\u0131\u0302",\u00ef:"\u0131\u0308",\u00ed:"\u0131\u0301",\u00ec:"\u0131\u0300"};class Te{constructor(n,e,a,r,o,s,l,c){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=n,this.height=e||0,this.depth=a||0,this.italic=r||0,this.skew=o||0,this.width=s||0,this.classes=l||[],this.style=c||{},this.maxFontSize=0;var d=function mu(i){for(var n=0;n<tr.length;n++)for(var e=tr[n],a=0;a<e.blocks.length;a++){var r=e.blocks[a];if(i>=r[0]&&i<=r[1])return e.name}return null}(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=Su[this.text])}hasClass(n){return this.classes.includes(n)}toNode(){var n=document.createTextNode(this.text),e=null;return this.italic>0&&((e=document.createElement("span")).style.marginRight=j(this.italic)),this.classes.length>0&&((e=e||document.createElement("span")).className=dn(this.classes)),Object.keys(this.style).length>0&&(e=e||document.createElement("span"),Object.assign(e.style,this.style)),e?(e.appendChild(n),e):n}toMarkup(){var n=!1,e="<span";this.classes.length&&(n=!0,e+=' class="',e+=ae(dn(this.classes)),e+='"');var a="";this.italic>0&&(a+="margin-right:"+j(this.italic)+";"),(a+=nr(this.style))&&(n=!0,e+=' style="'+ae(a)+'"');var r=ae(this.text);return n?(e+=">",e+=r,e+="</span>"):r}}class Ke{constructor(n,e){this.children=void 0,this.attributes=void 0,this.children=n||[],this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var a of Object.keys(this.attributes))e.setAttribute(a,this.attributes[a]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var n='<svg xmlns="http://www.w3.org/2000/svg"';for(var e of Object.keys(this.attributes))n+=" "+e+'="'+ae(this.attributes[e])+'"';n+=">";for(var a=0;a<this.children.length;a++)n+=this.children[a].toMarkup();return n+"</svg>"}}class un{constructor(n,e){this.pathName=void 0,this.alternate=void 0,this.pathName=n,this.alternate=e}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",this.alternate?this.alternate:ns[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+ae(this.alternate)+'"/>':'<path d="'+ae(ns[this.pathName])+'"/>'}}class ir{constructor(n){this.attributes=void 0,this.attributes=n||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var a of Object.keys(this.attributes))e.setAttribute(a,this.attributes[a]);return e}toMarkup(){var n="<line";for(var e of Object.keys(this.attributes))n+=" "+e+'="'+ae(this.attributes[e])+'"';return n+"/>"}}var qe
vendor: 20,502 bytes, line 1
1={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],
vendor: 37,127 bytes, line 1
1116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},
vendor: 6,872 bytes, line 1
1Yi={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},ss={\u00c5:"A",\u00d0:"D",\u00de:"o",\u00e5:"a",\u00f0:"d",\u00fe:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041a:"K",\u041b:"N",\u041c:"M",\u041d:"H",\u041e:"O",\u041f:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042a:"B",\u042b:"X",\u042c:"B",\u042d:"3",\u042e:"X",\u042f:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043a:"n",\u043b:"n",\u043c:"m",\u043d:"n",\u043e:"o",\u043f:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044a:"a",\u044b:"m",\u044c:"a",\u044d:"e",\u044e:"m",\u044f:"r"};function ar(i,n,e){if(!qe[n])throw new Error("Font metrics not found for font: "+n+".");var a=i.charCodeAt(0),r=qe[n][a];if(!r&&i[0]in ss&&(a=ss[i[0]].charCodeAt(0),r=qe[n][a]),!r&&"text"===e&&es(a)&&(r=qe[n][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}var rr={},wt={math:{},text:{}};function p(i,n,e,a,r,o){wt[i][r]={font:n,group:e,replace:a},o&&a&&(wt[i][a]=wt[i][r])}var m="math",G="text",f="main",y="ams",Mt="accent-token",q="bin",de="close",Xn="inner",W="mathord",qt="op-token",Ie="open",ri="punct",T="rel",Ze="spacing",I="textord";p(m,f,T,"\u2261","\\equiv",!0),p(m,f,T,"\u227a","\\prec",!0),p(m,f,T,"\u227b","\\succ",!0),p(m,f,T,"\u223c","\\sim",!0),p(m,f,T,"\u22a5","\\perp"),p(m,f,T,"\u2aaf","\\preceq",!0),p(m,f,T,"\u2ab0","\\succeq",!0),p(m,f,T,"\u2243","\\simeq",!0),p(m,f,T,"\u2223","\\mid",!0),p(m,f,T,"\u226a","\\ll",!0),p(m,f,T,"\u226b","\\gg",!0),p(m,f,T,"\u224d","\\asymp",!0),p(m,f,T,"\u2225","\\parallel"),p(m,f,T,"\u22c8","\\bowtie",!0),p(m,f,T,"\u2323","\\smile",!0),p(m,f,T,"\u2291","\\sqsubseteq",!0),p(m,f,T,"\u2292","\\sqsupseteq",!0),p(m,f,T,"\u2250","\\doteq",!0),p(m,f,T,"\u2322","\\frown",!0),p(m,f,T,"\u220b","\\ni",!0),p(m,f,T,"\u221d","\\propto",!0),p(m,f,T,"\u22a2","\\vdash",!0),p(m,f,T,"\u22a3","\\dashv",!0),p(m,f,T,"\u220b","\\owns"),p(m,f,ri,".","\\ldotp"),p(m,f,ri,"\u22c5","\\cdotp"),p(m,f,ri,"\u22c5","\xb7"),p(G,f,I,"\u22c5","\xb7"),p(m,f,I,"#","\\#"),p(G,f,I,"#","\\#"),p(m,f,I,"&","\\&"),p(G,f,I,"&","\\&"),p(m,f,I,"\u2135","\\aleph",!0),p(m,f,I,"\u2200","\\forall",!0),p(m,f,I,"\u210f","\\hbar",!0),p(m,f,I,"\u2203","\\exists",!0),p(m,f,I,"\u2207","\\nabla",!0),p(m,f,I,"\u266d","\\flat",!0),p(m,f,I,"\u2113","\\ell",!0),p(m,f,I,"\u266e","\\natural",!0),p(m,f,I,"\u2663","\\clubsuit",!0),p(m,f,I,"\u2118","\\wp",!0),p(m,f,I,"\u266f","\\sharp",!0),p(m,f,I,"\u2662","\\diamondsuit",!0),p(m,f,I,"\u211c","\\Re",!0),p(m,f,I,"\u2661","\\heartsuit",!0),p(m,f,I,"\u2111","\\Im",!0),p(m,f,I,"\u2660","\\spadesuit",!0),p(m,f,I,"\xa7","\\S",!0),p(G,f,I,"\xa7","\\S"),p(m,f,I,"\xb6","\\P",!0),p(G,f,I,"\xb6","\\P"),p(m,f,I,"\u2020","\\dag"),p(G,f,I,"\u2020","\\dag"),p(G,f,I,"\u2020","\\textdagger"),p(m,f,I,"\u2021","\\ddag"),p(G,f,I,"\u2021","\\ddag"),p(G,f,I,"\u2021","\\textdaggerdbl"),p(m,f,de,"\u23b1","\\rmoustache",!0),p(m,f,Ie,"\u23b0","\\lmoustache",!0),p(m,f,de,"\u27ef","\\rgroup",!0),p(m,f,Ie,"\u27ee","\\lgroup",!0),p(m,f,q,"\u2213","\\mp",!0),p(m,f,q,"\u2296","\\ominus",!0),p(m,f,q,"\u228e","\\uplus",!0),p(m,f,q,"\u2293","\\sqcap",!0),p(m,f,q,"\u2217","\\ast"),p(m,f,q,"\u2294","\\sqcup",!0),p(m,f,q,"\u25ef","\\bigcirc",!0),p(m,f,q,"\u2219","\\bullet",!0),p(m,f,q,"\u2021","\\ddagger"),p(m,f,q,"\u2240","\\wr",!0),p(m,f,q,"\u2a3f","\\amalg"),p(m,f,q,"&","\\And"),p(m,f,T,"\u27f5","\\longleftarrow",!0),p(m,f,T,"\u21d0","\\Leftarrow",!0),p(m,f,T,"\u27f8","\\Longleftarrow",!0),p(m,f,T,"\u27f6","\\longrightarrow",!0),p(m,f,T,"\u21d2","\\Rightarrow",!0),p(m,f,T,"\u27f9","\\Longrightarrow",!0),p(m,f,T,"\u2194","\\leftrightarrow",!0),p(m,f,T,"\u27f7","\\longleftrightarrow",!0),p(m,f,T,"\u21d4","\\Leftrightarrow",!0),p(m,f,T,"\u27fa","\\Longleftrightarrow",!0),p(m,f,T,"\u21a6","\\mapsto",!0),p(m,f,T,"\u27fc","\\longmapsto",!0),p(m,f,T,"\u2197","\\nearrow",!0),p(m,f,T,"\u21a9","\\hookleftarrow",!0),p(m,f,T,"\u21aa","\\hookrightarrow",!0),p(m,f,T,"\u2198","\\searrow",!0),p(m,f,T,"\u21bc","\\leftharpoonup",!0),p(m,f,T,"\u21c0","\\rightharpoonup",!0),p(m,f,T,"\u2199","\\swarrow",!0),p(m,f,T,"\u21bd","\\leftharpoondown",!0),p(m,f,T,"\u21c1","\\rightharpoondown",!0),p(m,f,T,"\u2196","\\nwarrow",!0),p(m,f,T,"\u21cc","\\rightleftharpoons",!0),p(m,y,T,"\u226e","\\nless",!0),p(m,y,T,"\ue010","\\@nleqslant"),p(m,y,T,"\ue011","\\@nleqq"),p(m,y,T,"\u2a87","\\lneq",!0),p(m,y,T,"\u2268","\\lneqq",!0),p(m,y,T,"\ue00c","\\@lvertneqq"),p(m,y,T,"\u22e6","\\lnsim",!0),p(m,y,T,"\u2a89","\\lnapprox",!0),p(m,y,T,"\u2280","\\nprec",!0),p(m,y,T,"\u22e0","\\npreceq",!0),p(m,y,T,"\u22e8","\\precnsim",!0),p(m,y,T,"\u2ab9","\\precnapprox",!0),p(m,y,T,"\u2241","\\nsim",!0),p(m,y,T,"\ue006","\\@nshortmid"),p(m,y,T,"\u2224","\\nmid",!0),p(m,y,T,"\u22ac","\\nvdash",!0),p(m,y,T,"\u22ad","\\nvDash",!0),p(m,y,T,"\u22ea","\\ntriangleleft"),p(m,y,T,"\u22ec","\\ntrianglelefteq",!0),p(m,y,T,"\u228a","\\subsetneq",!0),p(m,y,T,"\ue01a","\\@varsubsetneq"),p(m,y,T,"\u2acb","\\subsetneqq",!0),p(m,y,T,"\ue017","\\@varsubsetneqq"),p(m,y,T,"\u226f","\\ngtr",!0),p(m,y,T,"\ue00f","\\@ngeqslant"),p(m,y,T,"\ue00e","\\@ngeqq"),p(m,y,T,"\u2a88","\\gneq",!0),p(m,y,T,"\u2269","\\gneqq",!0),p(m,y,T,"\ue00d","\\@gvertneqq"),p(m,y,T,"\u22e7","\\gnsim",!0),p(m,y,T,"\u2a8a","\\gnapprox",!0),p(m,y,T,"\u2281","\\nsucc",!0),p(m,y,T,"\u22e1","\\nsucceq",!0),p(m,y,T,"\u22e9","\\succnsim",!0),p(m,y,T,"\u2aba","\\succnapprox",!0),p(m,y,T,"\u2246","\\ncong",!0),p(m,y,T,"\ue007","\\@nshortparallel"),p(m,y,T,"\u2226","\\nparallel",!0),p(m,y,T,"\u22af","\\nVDash",!0),p(m,y,T,"\u22eb","\\ntriangleright"),p(m,y,T,"\u22ed","\\ntrianglerighteq",!0),p(m,y,T,"\ue018","\\@nsupseteqq"),p(m,y,T,"\u228b","\\supsetneq",!0),p(m,y,T,"\ue01b","\\@varsupsetneq"),p(m,y,T,"\u2acc","\\supsetneqq",!0),p(m,y,T,"\ue019","\\@varsupsetneqq"),p(m,y,T,"\u22ae","\\nVdash",!0),p(m,y,T,"\u2ab5","\\precneqq",!0),p(m,y,T,"\u2ab6","\\succneqq",!0),p(m,y,T,"\ue016","\\@nsub
1seteqq"),p(m,y,q,"\u22b4","\\unlhd"),p(m,y,q,"\u22b5","\\unrhd"),p(m,y,T,"\u219a","\\nleftarrow",!0),p(m,y,T,"\u219b","\\nrightarrow",!0),p(m,y,T,"\u21cd","\\nLeftarrow",!0),p(m,y,T,"\u21cf","\\nRightarrow",!0),p(m,y,T,"\u21ae","\\nleftrightarrow",!0),p(m,y,T,"\u21ce","\\nLeftrightarrow",!0),p(m,y,T,"\u25b3","\\vartriangle"),p(m,y,I,"\u210f","\\hslash"),p(m,y,I,"\u25bd","\\triangledown"),p(m,y,I,"\u25ca","\\lozenge"),p(m,y,I,"\u24c8","\\circledS"),p(m,y,I,"\xae","\\circledR"),p(G,y,I,"\xae","\\circledR"),p(m,y,I,"\u2221","\\measuredangle",!0),p(m,y,I,"\u2204","\\nexists"),p(m,y,I,"\u2127","\\mho"),p(m,y,I,"\u2132","\\Finv",!0),p(m,y,I,"\u2141","\\Game",!0),p(m,y,I,"\u2035","\\backprime"),p(m,y,I,"\u25b2","\\blacktriangle"),p(m,y,I,"\u25bc","\\blacktriangledown"),p(m,y,I,"\u25a0","\\blacksquare"),p(m,y,I,"\u29eb","\\blacklozenge"),p(m,y,I,"\u2605","\\bigstar"),p(m,y,I,"\u2222","\\sphericalangle",!0),p(m,y,I,"\u2201","\\complement",!0),p(m,y,I,"\xf0","\\eth",!0),p(G,f,I,"\xf0","\xf0"),p(m,y,I,"\u2571","\\diagup"),p(m,y,I,"\u2572","\\diagdown"),p(m,y,I,"\u25a1","\\square"),p(m,y,I,"\u25a1","\\Box"),p(m,y,I,"\u25ca","\\Diamond"),p(m,y,I,"\xa5","\\yen",!0),p(G,y,I,"\xa5","\\yen",!0),p(m,y,I,"\u2713","\\checkmark",!0),p(G,y,I,"\u2713","\\checkmark"),p(m,y,I,"\u2136","\\beth",!0),p(m,y,I,"\u2138","\\daleth",!0),p(m,y,I,"\u2137","\\gimel",!0),p(m,y,I,"\u03dd","\\digamma",!0),p(m,y,I,"\u03f0","\\varkappa"),p(m,y,Ie,"\u250c","\\@ulcorner",!0),p(m,y,de,"\u2510","\\@urcorner",!0),p(m,y,Ie,"\u2514","\\@llcorner",!0),p(m,y,de,"\u2518","\\@lrcorner",!0),p(m,y,T,"\u2266","\\leqq",!0),p(m,y,T,"\u2a7d","\\leqslant",!0),p(m,y,T,"\u2a95","\\eqslantless",!0),p(m,y,T,"\u2272","\\lesssim",!0),p(m,y,T,"\u2a85","\\lessapprox",!0),p(m,y,T,"\u224a","\\approxeq",!0),p(m,y,q,"\u22d6","\\lessdot"),p(m,y,T,"\u22d8","\\lll",!0),p(m,y,T,"\u2276","\\lessgtr",!0),p(m,y,T,"\u22da","\\lesseqgtr",!0),p(m,y,T,"\u2a8b","\\lesseqqgtr",!0),p(m,y,T,"\u2251","\\doteqdot"),p(m,y,T,"\u2253","\\risingdotseq",!0),p(m,y,T,"\u2252","\\fallingdotseq",!0),p(m,y,T,"\u223d","\\backsim",!0),p(m,y,T,"\u22cd","\\backsimeq",!0),p(m,y,T,"\u2ac5","\\subseteqq",!0),p(m,y,T,"\u22d0","\\Subset",!0),p(m,y,T,"\u228f","\\sqsubset",!0),p(m,y,T,"\u227c","\\preccurlyeq",!0),p(m,y,T,"\u22de","\\curlyeqprec",!0),p(m,y,T,"\u227e","\\precsim",!0),p(m,y,T,"\u2ab7","\\precapprox",!0),p(m,y,T,"\u22b2","\\vartriangleleft"),p(m,y,T,"\u22b4","\\trianglelefteq"),p(m,y,T,"\u22a8","\\vDash",!0),p(m,y,T,"\u22aa","\\Vvdash",!0),p(m,y,T,"\u2323","\\smallsmile"),p(m,y,T,"\u2322","\\smallfrown"),p(m,y,T,"\u224f","\\bumpeq",!0),p(m,y,T,"\u224e","\\Bumpeq",!0),p(m,y,T,"\u2267","\\geqq",!0),p(m,y,T,"\u2a7e","\\geqslant",!0),p(m,y,T,"\u2a96","\\eqslantgtr",!0),p(m,y,T,"\u2273","\\gtrsim",!0),p(m,y,T,"\u2a86","\\gtrapprox",!0),p(m,y,q,"\u22d7","\\gtrdot"),p(m,y,T,"\u22d9","\\ggg",!0),p(m,y,T,"\u2277","\\gtrless",!0),p(m,y,T,"\u22db","\\gtreqless",!0),p(m,y,T,"\u2a8c","\\gtreqqless",!0),p(m,y,T,"\u2256","\\eqcirc",!0),p(m,y,T,"\u2257","\\circeq",!0),p(m,y,T,"\u225c","\\triangleq",!0),p(m,y,T,"\u223c","\\thicksim"),p(m,y,T,"\u2248","\\thickapprox"),p(m,y,T,"\u2ac6","\\supseteqq",!0),p(m,y,T,"\u22d1","\\Supset",!0),p(m,y,T,"\u2290","\\sqsupset",!0),p(m,y,T,"\u227d","\\succcurlyeq",!0),p(m,y,T,"\u22df","\\curlyeqsucc",!0),p(m,y,T,"\u227f","\\succsim",!0),p(m,y,T,"\u2ab8","\\succapprox",!0),p(m,y,T,"\u22b3","\\vartriangleright"),p(m,y,T,"\u22b5","\\trianglerighteq"),p(m,y,T,"\u22a9","\\Vdash",!0),p(m,y,T,"\u2223","\\shortmid"),p(m,y,T,"\u2225","\\shortparallel"),p(m,y,T,"\u226c","\\between",!0),p(m,y,T,"\u22d4","\\pitchfork",!0),p(m,y,T,"\u221d","\\varpropto"),p(m,y,T,"\u25c0","\\blacktriangleleft"),p(m,y,T,"\u2234","\\therefore",!0),p(m,y,T,"\u220d","\\backepsilon"),p(m,y,T,"\u25b6","\\blacktriangleright"),p(m,y,T,"\u2235","\\because",!0),p(m,y,T,"\u22d8","\\llless"),p(m,y,T,"\u22d9","\\gggtr"),p(m,y,q,"\u22b2","\\lhd"),p(m,y,q,"\u22b3","\\rhd"),p(m,y,T,"\u2242","\\eqsim",!0),p(m,f,T,"\u22c8","\\Join"),p(m,y,T,"\u2251","\\Doteq",!0),p(m,y,q,"\u2214","\\dotplus",!0),p(m,y,q,"\u2216","\\smallsetminus"),p(m,y,q,"\u22d2","\\Cap",!0),p(m,y,q,"\u22d3","\\Cup",!0),p(m,y,q,"\u2a5e","\\doublebarwedge",!0),p(m,y,q,"\u229f","\\boxminus",!0),p(m,y,q,"\u229e","\\boxplus",!0),p(m,y,q,"\u22c7","\\divi
1deontimes",!0),p(m,y,q,"\u22c9","\\ltimes",!0),p(m,y,q,"\u22ca","\\rtimes",!0),p(m,y,q,"\u22cb","\\leftthreetimes",!0),p(m,y,q,"\u22cc","\\rightthreetimes",!0),p(m,y,q,"\u22cf","\\curlywedge",!0),p(m,y,q,"\u22ce","\\curlyvee",!0),p(m,y,q,"\u229d","\\circleddash",!0),p(m,y,q,"\u229b","\\circledast",!0),p(m,y,q,"\u22c5","\\centerdot"),p(m,y,q,"\u22ba","\\intercal",!0),p(m,y,q,"\u22d2","\\doublecap"),p(m,y,q,"\u22d3","\\doublecup"),p(m,y,q,"\u22a0","\\boxtimes",!0),p(m,y,T,"\u21e2","\\dashrightarrow",!0),p(m,y,T,"\u21e0","\\dashleftarrow",!0),p(m,y,T,"\u21c7","\\leftleftarrows",!0),p(m,y,T,"\u21c6","\\leftrightarrows",!0),p(m,y,T,"\u21da","\\Lleftarrow",!0),p(m,y,T,"\u219e","\\twoheadleftarrow",!0),p(m,y,T,"\u21a2","\\leftarrowtail",!0),p(m,y,T,"\u21ab","\\looparrowleft",!0),p(m,y,T,"\u21cb","\\leftrightharpoons",!0),p(m,y,T,"\u21b6","\\curvearrowleft",!0),p(m,y,T,"\u21ba","\\circlearrowleft",!0),p(m,y,T,"\u21b0","\\Lsh",!0),p(m,y,T,"\u21c8","\\upuparrows",!0),p(m,y,T,"\u21bf","\\upharpoonleft",!0),p(m,y,T,"\u21c3","\\downharpoonleft",!0),p(m,f,T,"\u22b6","\\origof",!0),p(m,f,T,"\u22b7","\\imageof",!0),p(m,y,T,"\u22b8","\\multimap",!0),p(m,y,T,"\u21ad","\\leftrightsquigarrow",!0),p(m,y,T,"\u21c9","\\rightrightarrows",!0),p(m,y,T,"\u21c4","\\rightleftarrows",!0),p(m,y,T,"\u21a0","\\twoheadrightarrow",!0),p(m,y,T,"\u21a3","\\rightarrowtail",!0),p(m,y,T,"\u21ac","\\looparrowright",!0),p(m,y,T,"\u21b7","\\curvearrowright",!0),p(m,y,T,"\u21bb","\\circlearrowright",!0),p(m,y,T,"\u21b1","\\Rsh",!0),p(m,y,T,"\u21ca","\\downdownarrows",!0),p(m,y,T,"\u21be","\\upharpoonright",!0),p(m,y,T,"\u21c2","\\downharpoonright",!0),p(m,y,T,"\u21dd","\\rightsquigarrow",!0),p(m,y,T,"\u21dd","\\leadsto"),p(m,y,T,"\u21db","\\Rrightarrow",!0),p(m,y,T,"\u21be","\\restriction"),p(m,f,I,"\u2018","`"),p(m,f,I,"$","\\$"),p(G,f,I,"$","\\$"),p(G,f,I,"$","\\textdollar"),p(m,f,I,"%","\\%"),p(G,f,I,"%","\\%"),p(m,f,I,"_","\\_"),p(G,f,I,"_","\\_"),p(G,f,I,"_","\\textunderscore"),p(m,f,I,"\u2220","\\angle",!0),p(m,f,I,"\u221e","\\infty",!0),p(m,f,I,"\u2032","\\prime"),p(m,f,I,"\u25b3","\\triangle"),p(m,f,I,"\u0393","\\Gamma",!0),p(m,f,I,"\u0394","\\Delta",!0),p(m,f,I,"\u0398","\\Theta",!0),p(m,f,I,"\u039b","\\Lambda",!0),p(m,f,I,"\u039e","\\Xi",!0),p(m,f,I,"\u03a0","\\Pi",!0),p(m,f,I,"\u03a3","\\Sigma",!0),p(m,f,I,"\u03a5","\\Upsilon",!0),p(m,f,I,"\u03a6","\\Phi",!0),p(m,f,I,"\u03a8","\\Psi",!0),p(m,f,I,"\u03a9","\\Omega",!0),p(m,f,I,"A","\u0391"),p(m,f,I,"B","\u0392"),p(m,f,I,"E","\u0395"),p(m,f,I,"Z","\u0396"),p(m,f,I,"H","\u0397"),p(m,f,I,"I","\u0399"),p(m,f,I,"K","\u039a"),p(m,f,I,"M","\u039c"),p(m,f,I,"N","\u039d"),p(m,f,I,"O","\u039f"),p(m,f,I,"P","\u03a1"),p(m,f,I,"T","\u03a4"),p(m,f,I,"X","\u03a7"),p(m,f,I,"\xac","\\neg",!0),p(m,f,I,"\xac","\\lnot"),p(m,f,I,"\u22a4","\\top"),p(m,f,I,"\u22a5","\\bot"),p(m,f,I,"\u2205","\\emptyset"),p(m,y,I,"\u2205","\\varnothing"),p(m,f,W,"\u03b1","\\alpha",!0),p(m,f,W,"\u03b2","\\beta",!0),p(m,f,W,"\u03b3","\\gamma",!0),p(m,f,W,"\u03b4","\\delta",!0),p(m,f,W,"\u03f5","\\epsilon",!0),p(m,f,W,"\u03b6","\\zeta",!0),p(m,f,W,"\u03b7","\\eta",!0),p(m,f,W,"\u03b8","\\theta",!0),p(m,f,W,"\u03b9","\\iota",!0),p(m,f,W,"\u03ba","\\kappa",!0),p(m,f,W,"\u03bb","\\lambda",!0),p(m,f,W,"\u03bc","\\mu",!0),p(m,f,W,"\u03bd","\\nu",!0),p(m,f,W,"\u03be","\\xi",!0),p(m,f,W,"\u03bf","\\omicron",!0),p(m,f,W,"\u03c0","\\pi",!0),p(m,f,W,"\u03c1","\\rho",!0),p(m,f,W,"\u03c3","\\sigma",!0),p(m,f,W,"\u03c4","\\tau",!0),p(m,f,W,"\u03c5","\\upsilon",!0),p(m,f,W,"\u03d5","\\phi",!0),p(m,f,W,"\u03c7","\\chi",!0),p(m,f,W,"\u03c8","\\psi",!0),p(m,f,W,"\u03c9","\\omega",!0),p(m,f,W,"\u03b5","\\varepsilon",!0),p(m,f,W,"\u03d1","\\vartheta",!0),p(m,f,W,"\u03d6","\\varpi",!0),p(m,f,W,"\u03f1","\\varrho",!0),p(m,f,W,"\u03c2","\\varsigma",!0),p(m,f,W,"\u03c6","\\varphi",!0),p(m,f,q,"\u2217","*",!0),p(m,f,q,"+","+"),p(m,f,q,"\u2212","-",!0),p(m,f,q,"\u22c5","\\cdot",!0),p(m,f,q,"\u2218","\\circ",!0),p(m,f,q,"\xf7","\\div",!0),p(m,f,q,"\xb1","\\pm",!0),p(m,f,q,"\xd7","\\times",!0),p(m,f,q,"\u2229","\\cap",!0),p(m,f,q,"\u222a","\\cup",!0),p(m,f,q,"\u2216","\\setminus",!0),p(m,f,q,"\u2227","\\land"),p(m,f,q,"\u2228","\\lor"),p(m,f,q,"\u2227","\\wedge",!0),p(m,f,q,"\u2228","\\vee",!0),p(m,f,I,"\u221a","\\surd"),p(m,f,Ie,"\u27e8","\\langle",!0),p(m,f,Ie,"\u2223","\\lvert"),p(m,f,Ie,"\u2225","\\lVert"),p(m,f,de,"?","?"),p(m,f,de,"!","!"),p(m,f,de,"\u27e9","\\rangle",!0),p(m,f,de,"\u2223","\\rvert"),p(m,f,de,"\u2225","\\rVert"),p(m,f,T,"=","="),p(m,f,T,":",":"),p(m,f,T,"\u2248","\\approx",!0),p(m,f,T,"\u2245","\\cong",!0),p(m,f,T,"\u2265","\\ge"),p(m,f,T,"\u2265","\\geq",!0),p(m,f,T,"\u2190","\\gets"),p(m,f,T,">","\\gt",!0),p(m,f,T,"\u2208","\\in",!0),p(m,f,T,"\ue020","\\@not"),p(m,f,T,"\u2282","\\subset",!0),p(m,f,T,"\u2283","\\supset",!0),p(m,f,T,"\u2286","\\subseteq",!0),p(m,f,T,"\u2287","\\supseteq",!0),p(m,y,T,"\u2288","\\nsubseteq",!0),p(m,y,T,"\u2289","\\nsupseteq",!0),p(m,f,T,"\u22a8","\\models"),p(m,f,T,"\u2190","\\leftarrow",!0),p(m,f,T,"\u2264","\\le"),p(m,f,T,"\u2264","\\leq",!0),p(m,f,T,"<","\\lt",!0),p(m,f,T,"\u2192","\\rightarrow",!0),p(m,f,T,"\u2192","\\to"),p(m,y,T,"\u2271","\\ngeq",!0),p(m,y,T,"\u2270","\\nleq",!0),p(m,f,Ze,"\xa0","\\ "),p(m,f,Ze,"\xa0","\\space"),p(m,f,Ze,"\xa0","\\nobreakspace"),p(G,f,Ze,"\xa0","\\ "),p(G,f,Ze,"\xa0"," "),p(G,f,Ze,"\xa0","\\space"),p(G,f,Ze,"\xa0","\\nobreakspace"),p(m,f,Ze,"","\\n
1obreak"),p(m,f,Ze,"","\\allowbreak"),p(m,f,ri,",",","),p(m,f,ri,";",";"),p(m,y,q,"\u22bc","\\barwedge",!0),p(m,y,q,"\u22bb","\\veebar",!0),p(m,f,q,"\u2299","\\odot",!0),p(m,f,q,"\u2295","\\oplus",!0),p(m,f,q,"\u2297","\\otimes",!0),p(m,f,I,"\u2202","\\partial",!0),p(m,f,q,"\u2298","\\oslash",!0),p(m,y,q,"\u229a","\\circledcirc",!0),p(m,y,q,"\u22a1","\\boxdot",!0),p(m,f,q,"\u25b3","\\bigtriangleup"),p(m,f,q,"\u25bd","\\bigtriangledown"),p(m,f,q,"\u2020","\\dagger"),p(m,f,q,"\u22c4","\\diamond"),p(m,f,q,"\u22c6","\\star"),p(m,f,q,"\u25c3","\\triangleleft"),p(m,f,q,"\u25b9","\\triangleright"),p(m,f,Ie,"{","\\{"),p(G,f,I,"{","\\{"),p(G,f,I,"{","\\textbraceleft"),p(m,f,de,"}","\\}"),p(G,f,I,"}","\\}"),p(G,f,I,"}","\\textbraceright"),p(m,f,Ie,"{","\\lbrace"),p(m,f,de,"}","\\rbrace"),p(m,f,Ie,"[","\\lbrack",!0),p(G,f,I,"[","\\lbrack",!0),p(m,f,de,"]","\\rbrack",!0),p(G,f,I,"]","\\rbrack",!0),p(m,f,Ie,"(","\\lparen",!0),p(m,f,de,")","\\rparen",!0),p(G,f,I,"<","\\textless",!0),p(G,f,I,">","\\textgreater",!0),p(m,f,Ie,"\u230a","\\lfloor",!0),p(m,f,de,"\u230b","\\rfloor",!0),p(m,f,Ie,"\u2308","\\lceil",!0),p(m,f,de,"\u2309","\\rceil",!0),p(m,f,I,"\\","\\backslash"),p(m,f,I,"\u2223","|"),p(m,f,I,"\u2223","\\vert"),p(G,f,I,"|","\\textbar",!0),p(m,f,I,"\u2225","\\|"),p(m,f,I,"\u2225","\\Vert"),p(G,f,I,"\u2225","\\textbardbl"),p(G,f,I,"~","\\textasciitilde"),p(G,f,I,"\\","\\textbackslash"),p(G,f,I,"^","\\textasciicircum"),p(m,f,T,"\u2191","\\uparrow",!0),p(m,f,T,"\u21d1","\\Uparrow",!0),p(m,f,T,"\u2193","\\downarrow",!0),p(m,f,T,"\u21d3","\\Downarrow",!0),p(m,f,T,"\u2195","\\updownarrow",!0),p(m,f,T,"\u21d5","\\Updownarrow",!0),p(m,f,qt,"\u2210","\\coprod"),p(m,f,qt,"\u22c1","\\bigvee"),p(m,f,qt,"\u22c0","\\bigwedge"),p(m,f,qt,"\u2a04","\\biguplus"),p(m,f,qt,"\u22c2","\\bigcap"),p(m,f,qt,"\u22c3","\\bigcup"),p(m,f,qt,"\u222b","\\int"),p(m,f,qt,"\u222b","\\intop"),p(m,f,qt,"\u222c","\\iint"),p(m,f,qt,"\u222d","\\iiint"),p(m,f,qt,"\u220f","\\prod"),p(m,f,qt,"\u2211","\\sum"),p(m,f,qt,"\u2a02","\\bigotimes"),p(m,f,qt,"\u2a01","\\bigoplus"),p(m,f,qt,"\u2a00","\\bigodot"),p(m,f,qt,"\u222e","\\oint"),p(m,f,qt,"\u222f","\\oiint"),p(m,f,qt,"\u2230","\\oiiint"),p(m,f,qt,"\u2a06","\\bigsqcup"),p(m,f,qt,"\u222b","\\smallint"),p(G,f,Xn,"\u2026","\\textellipsis"),p(m,f,Xn,"\u2026","\\mathellipsis"),p(G,f,Xn,"\u2026","\\ldots",!0),p(m,f,Xn,"\u2026","\\ldots",!0),p(m,f,Xn,"\u22ef","\\@cdots",!0),p(m,f,Xn,"\u22f1","\\ddots",!0),p(m,f,I,"\u22ee","\\varvdots"),p(G,f,I,"\u22ee","\\varvdots"),p(m,f,Mt,"\u02ca","\\acute"),p(m,f,Mt,"\u02cb","\\grave"),p(m,f,Mt,"\xa8","\\ddot"),p(m,f,Mt,"~","\\tilde"),p(m,f,Mt,"\u02c9","\\bar"),p(m,f,Mt,"\u02d8","\\breve"),p(m,f,Mt,"\u02c7","\\check"),p(m,f,Mt,"^","\\hat"),p(m,f,Mt,"\u20d7","\\vec"),p(m,f,Mt,"\u02d9","\\dot"),p(m,f,Mt,"\u02da","\\mathring"),p(m,f,W,"\ue131","\\@imath"),p(m,f,W,"\ue237","\\@jmath"),p(m,f,I,"\u0131","\u0131"),p(m,f,I,"\u0237","\u0237"),p(G,f,I,"\u0131","\\i",!0),p(G,f,I,"\u0237","\\j",!0),p(G,f,I,"\xdf","\\ss",!0),p(G,f,I,"\xe6","\\ae",!0),p(G,f,I,"\u0153","\\oe",!0),p(G,f,I,"\xf8","\\o",!0),p(G,f,I,"\xc6","\\AE",!0),p(G,f,I,"\u0152","\\OE",!0),p(G,f,I,"\xd8","\\O",!0),p(G,f,Mt,"\u02ca","\\'"),p(G,f,Mt,"\u02cb","\\`"),p(G,f,Mt,"\u02c6","\\^"),p(G,f,Mt,"\u02dc","\\~"),p(G,f,Mt,"\u02c9","\\="),p(G,f,Mt,"\u02d8","\\u"),p(G,f,Mt,"\u02d9","\\."),p(G,f,Mt,"\xb8","\\c"),p(G,f,Mt,"\u02da","\\r"),p(G,f,Mt,"\u02c7","\\v"),p(G,f,Mt,"\xa8",'\\"'),p(G,f,Mt,"\u02dd","\\H"),p(G,f,Mt,"\u25ef","\\textcircled");var ls={"--":!0,"---":!0,"``":!0,"''":!0};p(G,f,I,"\u2013","--",!0),p(G,f,I,"\u2013","\\textendash"),p(G,f,I,"\u2014","---",!0),p(G,f,I,"\u2014","\\textemdash"),p(G,f,I,"\u2018","`",!0),p(G,f,I,"\u2018","\\textquoteleft"),p(G,f,I,"\u2019","'",!0),p(G,f,I,"\u2019","\\textquoteright"),p(G,f,I,"\u201c","``",!0),p(G,f,I,"\u201c","\\textquotedblleft"),p(G,f,I,"\u201d","''",!0),p(G,f,I,"\u201d","\\textquotedblright"),p(m,f,I,"\xb0","\\degree",!0),p(G,f,I,"\xb0","\\degree"),p(G,f,I,"\xb0","\\textdegree",!0),p(m,f,I,"\xa3","\\pounds"),p(m,f,I,"\xa3","\\mathsterling",!0),p(G,f,I,"\xa3","\\pounds"),p(G,f,I,"\xa3","\\textsterling",!0),p(m,y,I,"\u2720","\\maltese"),p(G,y,I,"\u2720","\\maltese");for(var or=0;or<14;or++){var ds='0123456789/@."'.charAt(or);p(m,f,I,ds,ds)}for(var sr=0;sr<25;sr++){var _s='0123456789!@*()-=+";:?/.,'.charAt(sr);p(G,f,I,_s,_s)}for(var Xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",lr=0;lr<52;lr++){var qi=Xi.charAt(lr);p(m,f,W,qi,qi),p(G,f,I,qi,qi)}p(m,y,I,"C","\u2102"),p(G,y,I,"C","\u2102"),p(m,y,I,"H","\u210d"),p(G,y,I,"H","\u210d"),p(m,y,I,"N","\u2115"),p(G,y,I,"N","\u2115"),p(m,y,I,"P","\u2119"),p(G,y,I,"P","\u2119"),p(m,y,I,"Q","\u211a"),p(G,y,I,"Q","\u211a"),p(m,y,I,"R","\u211d"),p(G,y,I,"R","\u211d"),p(m,y,I,"Z","\u2124"),p(G,y,I,"Z","\u2124"),p(m,f,W,"h","\u210e"),p(G,f,W,"h","\u210e");for(var et,ue=0;ue<52;ue++){var Nt=Xi.charAt(ue);p(m,f,W,Nt,et=String.fromCharCode(55349,56320+ue)),p(G,f,I,Nt,et),p(m,f,W,Nt,et=String.fromCharCode(55349,56372+ue)),p(G,f,I,Nt,et),p(m,f,W,Nt,et=String.fromCharCode(55349,56424+ue)),p(G,f,I,Nt,et),p(m,f,W,Nt,et=String.fromCharCode(55349,56580+ue)),p(G,f,I,Nt,et),p(m,f,W,Nt,et=String.fromCharCode(55349,56684+ue)),p(G,f,I,Nt,et),p(m,f,W,Nt,et=String.fromCharCode(55349,56736+ue)),p(G,f,I,Nt,et),p(m,f,W,Nt,et=String.fromCharCode(55349,56788+ue)),p(G,f,I,Nt,et),p(m,f,W,Nt,et=String.fromCharCode(55349,56840+ue)),p(G,f,I,Nt,et),p(m,f,W,Nt,et=String.fromCharCode(55349,56944+ue)),p(G,f,I,Nt,et),ue<26&&
1(p(m,f,W,Nt,et=String.fromCharCode(55349,56632+ue)),p(G,f,I,Nt,et),p(m,f,W,Nt,et=String.fromCharCode(55349,56476+ue)),p(G,f,I,Nt,et))}p(m,f,W,"k",et="\u{1d55c}"),p(G,f,I,"k",et);for(var In=0;In<10;In++){var _n=In.toString();p(m,f,W,_n,et=String.fromCharCode(55349,57294+In)),p(G,f,I,_n,et),p(m,f,W,_n,et=String.fromCharCode(55349,57314+In)),p(G,f,I,_n,et),p(m,f,W,_n,et=String.fromCharCode(55349,57324+In)),p(G,f,I,_n,et),p(m,f,W,_n,et=String.fromCharCode(55349,57334+In)),p(G,f,I,_n,et)}for(var dr=0;dr<3;dr++){var Hi="\xd0\xde\xfe".charAt(dr);p(m,f,W,Hi,Hi),p(G,f,I,Hi,Hi)}var ur={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},ps={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},hs={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},kn={mathClass:"",textClass:"",font:""},ms={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},gs={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},fs={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},_r={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},pr={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},bs={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},hr={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},vs=[ur,ur,ps,ps,hs,hs,{mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},kn,kn,kn,ms,ms,gs,gs,fs,fs,_r,_r,pr,pr,bs,bs,kn,kn,hr,hr],Lu=[ur,kn,_r,pr,hr],Vi=function(n,e,a){if(wt[a][n]){var r=wt[a][n].replace;r&&(n=r)}return{value:n,metrics:ar(n,e,a)}},_e=function(n,e,a,r,o){var c,s=Vi(n,e,a),l=s.metrics;if(n=s.value,l){var d=l.italic;("text"===a||r&&"mathit"===r.font)&&(d=0),c=new Te(n,l.height,l.depth,d,l.skew,l.width,o)}else typeof console<"u"&&console.warn("No character metrics for '"+n+"' in style '"+e+"' and mode '"+a+"'"),c=new Te(n,0,0,0,0,0,o);if(r){c.maxFontSize=r.sizeMultiplier,r.style.isTight()&&c.classes.push("mtight");var u=r.getColor();u&&(c.style.color=u)}return c},mr=function(n,e,a,r){return void 0===r&&(r=[]),"boldsymbol"===a.font&&Vi(n,"Main-Bold",e).metrics?_e(n,"Main-Bold",e,a,r.concat(["mathbf"])):"\\"===n||"main"===wt[e][n].font?_e(n,"Main-Regular",e,a,r):_e(n,"AMS-Regular",e,a,r.concat(["amsrm"]))},zi=function(n,e,a){var r=n.mode,o=n.text,s=["mord"],{font:l,fontFamily:c,fontWeight:d,fontShape:u}=e,_="math"===r||"text"===r&&!!l,h=_?l:c,g="",b="";if(55349===o.charCodeAt(0)){var v=(i=>{var a=1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536;if(119808<=a&&a<120484){var r=Math.floor((a-119808)/26);return vs[r]}if(120782<=a&&a<=120831){var o=Math.floor((a-120782)/10);return Lu[o]}if(120485===a||120486===a)return vs[0];if(120486<a&&a<120782)return kn;throw new $("Unsupported character: "+i)})(o);g=v.font,b=v[r+"Class"]}if(g)return _e(o,g,r,e,s.concat(b));if(h){var R,C;if("boldsymbol"===h){var k=function(n,e,a){return"textord"!==a&&Vi(n,"Math-BoldItalic",e).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(o,r,a);R=k.fontName,C=[k.fontClass]}else _?(R=fr[l].fontName,C=[l]):(R=Qi(c,d,u),C=[c,d,u]);if(Vi(o,R,r).metrics)return _e(o,R,r,e,s.concat(C));if(ls.hasOwnProperty(o)&&"Typewriter"===R.slice(0,10)){for(var F=[],w=0;w<o.length;w++)F.push(_e(o[w],R,r,e,s.concat(C)));return tn(F)}}if("mathord"===a)return _e(o,"Math-Italic",r,e,s.concat(["mathnormal"]));if("textord"===a){var M=wt[r][o]&&wt[r][o].font;if("ams"===M){var E=Qi("amsrm",d,u);return _e(o,E,r,e,s.concat("amsrm",d,u))}if("main"!==M&&M){var N=Qi(M,d,u);return _e(o,N,r,e,s.concat(N,d,u))}var P=Qi("textrm",d,u);return _e(o,P,r,e,s.concat(d,u))}throw new Error("unexpected type: "+a+" in makeOrd")},Ou=(i,n)=>{if(dn(i.classes)!==dn(n.classes)||i.skew!==n.skew||i.maxFontSize!==n.maxFontSize||0!==i.italic&&i.hasClass("mathnormal"))return!1;if(1===i.classes.length){var e=i.classes[0];if("mbin"===e||"mord"===e)return!1}for(var a of Object.keys(i.style))if(i.style[a]!==n.style[a])return!1;for(var r of Object.keys(n.style))if(i.style[r]!==n.style[r])return!1;return!0},xs=i=>{for(var n=0;n<i.length-1;n++){var e=i[n],a=i[n+1];e instanceof Te&&a instanceof Te&&Ou(e,a)&&(e.text+=a.text,e.height=Math.max(e.height,a.height),e.depth=Math.max(e.depth,a.depth),e.italic=a.italic,i.splice(n+1,1),n--)}return i},gr=function(n){for(var e=0,a=0,r=0,o=0;o<n.children.length;o++){var s=n.children[o];s.height>e&&(e=s.height),s.depth>
1a&&(a=s.depth),s.maxFontSize>r&&(r=s.maxFontSize)}n.height=e,n.depth=a,n.maxFontSize=r},D=function(n,e,a,r){var o=new Yn(n,e,a,r);return gr(o),o},pn=(i,n,e,a)=>new Yn(i,n,e,a),qn=function(n,e,a){var r=D([n],[],e);return r.height=Math.max(a||e.fontMetrics().defaultRuleThickness,e.minRuleThickness),r.style.borderBottomWidth=j(r.height),r.maxFontSize=1,r},tn=function(n){var e=new Bn(n);return gr(e),e},Hn=function(n,e){return n instanceof Bn?D([],[n],e):n},ft=function(n,e){for(var{children:a,depth:r}=function(n){if("individualShift"===n.positionType){for(var e=n.children,a=[e[0]],r=-e[0].shift-e[0].elem.depth,o=r,s=1;s<e.length;s++){var l=-e[s].shift-o-e[s].elem.depth;o+=l,a.push({type:"kern",size:l-(e[s-1].elem.height+e[s-1].elem.depth)}),a.push(e[s])}return{children:a,depth:r}}var d;if("top"===n.positionType){for(var u=n.positionData,_=0;_<n.children.length;_++){var h=n.children[_];u-="kern"===h.type?h.size:h.elem.height+h.elem.depth}d=u}else if("bottom"===n.positionType)d=-n.positionData;else{var g=n.children[0];if("elem"!==g.type)throw new Error('First child must have type "elem".');if("shift"===n.positionType)d=-g.elem.depth-n.positionData;else{if("firstBaseline"!==n.positionType)throw new Error("Invalid positionType "+n.positionType+".");d=-g.elem.depth}}return{children:n.children,depth:d}}(n),o=0,s=0;s<a.length;s++){var l=a[s];if("elem"===l.type){var c=l.elem;o=Math.max(o,c.maxFontSize,c.height)}}o+=2;var d=D(["pstrut"],[]);d.style.height=j(o);for(var u=[],_=r,h=r,g=r,b=0;b<a.length;b++){var v=a[b];if("kern"===v.type)g+=v.size;else{var R=v.elem,F=D(v.wrapperClasses||[],[d,R],void 0,v.wrapperStyle||{});F.style.top=j(-o-g-R.depth),v.marginLeft&&(F.style.marginLeft=v.marginLeft),v.marginRight&&(F.style.marginRight=v.marginRight),u.push(F),g+=R.height+R.depth}_=Math.min(_,g),h=Math.max(h,g)}var M,w=D(["vlist"],u);if(w.style.height=j(h),_<0){var E=D([],[]),P=D(["vlist"],[E]);P.style.height=j(-_);var N=D(["vlist-s"],[new Te("\u200b")]);M=[D(["vlist-r"],[w,N]),D(["vlist-r"],[P])]}else M=[D(["vlist-r"],[w])];var O=D(["vlist-t"],M);return 2===M.length&&O.classes.push("vlist-t2"),O.height=h,O.depth=-_,O},Cs=(i,n)=>{var e=D(["mspace"],[],n),a=Et(i,n);return e.style.marginRight=j(a),e},Qi=(i,n,e)=>{var a;switch(i){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=i}return a+"-"+("textbf"===n&&"textit"===e?"BoldItalic":"textbf"===n?"Bold":"textit"===e?"Italic":"Regular")},fr={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Rs={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ys=function(n,e){var[a,r,o]=Rs[n],s=new un(a),l=new Ke([s],{width:j(r),height:j(o),style:"width:"+j(r),viewBox:"0 0 "+1e3*r+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),c=pn(["overlay"],[l],e);return c.height=o,c.style.height=j(o),c.style.width=j(r),c},Pt={number:3,unit:"mu"},Fn={number:4,unit:"mu"},en={number:5,unit:"mu"},Xu={mord:{mop:Pt,mbin:Fn,mrel:en,minner:Pt},mop:{mord:Pt,mop:Pt,mrel:en,minner:Pt},mbin:{mord:Fn,mop:Fn,mopen:Fn,minner:Fn},mrel:{mord:en,mop:en,mopen:en,minner:en},mopen:{},mclose:{mop:Pt,mbin:Fn,mrel:en,minner:Pt},mpunct:{mord:Pt,mop:Pt,mrel:en,mopen:Pt,mclose:Pt,mpunct:Pt,minner:Pt},minner:{mord:Pt,mop:Pt,mbin:Fn,mrel:en,mopen:Pt,mpunct:Pt,minner:Pt}},qu={mord:{mop:Pt},mop:{mord:Pt,mop:Pt},mbin:{},mrel:{},mopen:{},mclose:{mop:Pt},mpunct:{},minner:{mop:Pt}},Ts={},Ui={},Ji={};function Y(i){for(var{type:n,names:e,props:a,handler:r,htmlBuilder:o,mathmlBuilder:s}=i,l={type:n,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:void 0===a.allowedInMath||a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:r},c=0;c<e.length;++c)Ts[e[c]]=l;n&&(o&&(Ui[n]=o),s&&(Ji[n]=s))}
1function wn(i){var{type:n,htmlBuilder:e,mathmlBuilder:a}=i;Y({type:n,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:e,mathmlBuilder:a})}var Wi=function(n){return"ordgroup"===n.type&&1===n.body.length?n.body[0]:n},Ht=function(n){return"ordgroup"===n.type?n.body:[n]},Hu=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Vu=new Set(["rightmost","mrel","mclose","mpunct"]),zu={display:at.DISPLAY,text:at.TEXT,script:at.SCRIPT,scriptscript:at.SCRIPTSCRIPT},Qu={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Kt=function(n,e,a,r){void 0===r&&(r=[null,null]);for(var o=[],s=0;s<n.length;s++){var l=bt(n[s],e);l instanceof Bn?o.push(...l.children):o.push(l)}if(xs(o),!a)return o;var d=e;if(1===n.length){var u=n[0];"sizing"===u.type?d=e.havingSize(u.size):"styling"===u.type&&(d=e.havingStyle(zu[u.style]))}var _=D([r[0]||"leftmost"],[],e),h=D([r[1]||"rightmost"],[],e),g="root"===a;return br(o,(b,v)=>{var R=v.classes[0],C=b.classes[0];"mbin"===R&&Vu.has(C)?v.classes[0]="mord":"mbin"===C&&Hu.has(R)&&(b.classes[0]="mord")},{node:_},h,g),br(o,(b,v)=>{var R,C,k=xr(v),F=xr(b),w=k&&F?b.hasClass("mtight")?null==(R=qu[k])?void 0:R[F]:null==(C=Xu[k])?void 0:C[F]:null;if(w)return Cs(w,d)},{node:_},h,g),o},br=function(n,e,a,r,o){r&&n.push(r);for(var s=0;s<n.length;s++){var l=n[s],c=Is(l);if(c)br(c.children,e,a,null,o);else{var d=!l.hasClass("mspace");if(d){var u=e(l,a.node);u&&(a.insertAfter?a.insertAfter(u):(n.unshift(u),s++))}d?a.node=l:o&&l.hasClass("newline")&&(a.node=D(["leftmost"])),a.insertAfter=(_=>h=>{n.splice(_+1,0,h),s++})(s)}}r&&n.pop()},Is=function(n){return n instanceof Bn||n instanceof Bi||n instanceof Yn&&n.hasClass("enclosing")?n:null},vr=function(n,e){var a=Is(n);if(a){var r=a.children;if(r.length){if("right"===e)return vr(r[r.length-1],"right");if("left"===e)return vr(r[0],"left")}}return n},xr=function(n,e){return n?(e&&(n=vr(n,e)),Qu[n.classes[0]]||null):null},oi=function(n,e){var a=["nulldelimiter"].concat(n.baseSizingClasses());return D(e.concat(a))},bt=function(n,e,a){if(!n)return D();if(Ui[n.type]){var r=Ui[n.type](n,e);if(a&&e.size!==a.size){r=D(e.sizingClasses(a),[r],e);var o=e.sizeMultiplier/a.sizeMultiplier;r.height*=o,r.depth*=o}return r}throw new $("Got group of unknown type: '"+n.type+"'")};function Ki(i,n){var e=D(["base"],i,n),a=D(["strut"]);return a.style.height=j(e.height+e.depth),e.depth&&(a.style.verticalAlign=j(-e.depth)),e.children.unshift(a),e}function Cr(i,n){var e=null;1===i.length&&"tag"===i[0].type&&(e=i[0].tag,i=i[0].body);var r,d,a=Kt(i,n,"root");2===a.length&&a[1].hasClass("tag")&&(r=a.pop());for(var o=[],s=[],l=0;l<a.length;l++)if(s.push(a[l]),a[l].hasClass("mbin")||a[l].hasClass("mrel")||a[l].hasClass("allowbreak")){for(var c=!1;l<a.length-1&&a[l+1].hasClass("mspace")&&!a[l+1].hasClass("newline");)l++,s.push(a[l]),a[l].hasClass("nobreak")&&(c=!0);c||(o.push(Ki(s,n)),s=[])}else a[l].hasClass("newline")&&(s.pop(),s.length>0&&(o.push(Ki(s,n)),s=[]),o.push(a[l]));s.length>
10&&o.push(Ki(s,n)),e?((d=Ki(Kt(e,n,!0),n)).classes=["tag"],o.push(d)):r&&o.push(r);var u=D(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),d){var _=d.children[0];_.style.height=j(u.height+u.depth),u.depth&&(_.style.verticalAlign=j(-u.depth))}return u}function ks(i){return new Bn(i)}class L{constructor(n,e,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=n,this.attributes={},this.children=e||[],this.classes=a||[]}setAttribute(n,e){this.attributes[n]=e}getAttribute(n){return this.attributes[n]}toNode(){var n=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&n.setAttribute(e,this.attributes[e]);this.classes.length>0&&(n.className=dn(this.classes));for(var a=0;a<this.children.length;a++)if(this.children[a]instanceof Vt&&this.children[a+1]instanceof Vt){for(var r=this.children[a].toText()+this.children[++a].toText();this.children[a+1]instanceof Vt;)r+=this.children[++a].toText();n.appendChild(new Vt(r).toNode())}else n.appendChild(this.children[a].toNode());return n}toMarkup(){var n="<"+this.type;for(var e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&(n+=" "+e+'="',n+=ae(this.attributes[e]),n+='"');this.classes.length>0&&(n+=' class ="'+ae(dn(this.classes))+'"'),n+=">";for(var a=0;a<this.children.length;a++)n+=this.children[a].toMarkup();return n+"</"+this.type+">"}toText(){return this.children.map(n=>n.toText()).join("")}}class Vt{constructor(n){this.text=void 0,this.text=n}toNode(){return document.createTextNode(this.text)}toMarkup(){return ae(this.toText())}toText(){return this.text}}class Fs{constructor(n){this.width=void 0,this.character=void 0,this.width=n,this.character=n>=.05555&&n<=.05556?"\u200a":n>=.1666&&n<=.1667?"\u2009":n>=.2222&&n<=.2223?"\u2005":n>=.2777&&n<=.2778?"\u2005\u200a":n>=-.05556&&n<=-.05555?"\u200a\u2063":n>=-.1667&&n<=-.1666?"\u2009\u2063":n>=-.2223&&n<=-.2222?"\u205f\u2063":n>=-.2778&&n<=-.2777?"\u2005\u2063":null}toNode(){if(this.character)return document.createTextNode(this.character);var n=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return n.setAttribute("width",j(this.width)),n}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+j(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Uu=new Set(["\\imath","\\jmath"]),Ju=new Set(["mrow","mtable"]),Ge=function(n,e,a){return wt[e][n]&&wt[e][n].replace&&55349!==n.charCodeAt(0)&&!(ls.hasOwnProperty(n)&&a&&(a.fontFamily&&"tt"===a.fontFamily.slice(4,6)||a.font&&"tt"===a.font.slice(4,6)))&&(n=wt[e][n].replace),new Vt(n)},Rr=function(n){return 1===n.length?n[0]:new L("mrow",n)},Wu={mathit:"italic",boldsymbol:i=>"textord"===i.type?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},yr=(i,n)=>{if("text"===i.mode){if("texttt"===n.fontFamily)return"monospace";if("textsf"===n.fontFamily)return"textit"===n.fontShape&&"textbf"===n.fontWeight?"sans-serif-bold-italic":"textit"===n.fontShape?"sans-serif-italic":"textbf"===n.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===n.fontShape&&"textbf"===n.fontWeight)return"bold-italic";if("textit"===n.fontShape)return"italic";if("textbf"===n.fontWeight)return"bold"}var e=n.font;if(!e||"mathnormal"===e)return null;var a=i.mode,r=Wu[e];if(r)return"function"==typeof r?r(i):r;var o=i.text;if(Uu.has(o))return null;if(wt[a][o]){var s=wt[a][o].replace;s&&(o=s)}return ar(o,fr[e].fontName,a)?fr[e].variant:null};function Tr(i){if(!i)return!1;if("mi"===i.type&&1===i.children.length){var n=i.children[0];return n instanceof Vt&&"."===n.text}if("mo"===i.type&&1===i.children.length&&"true"===i.getAttribute("separator")&&"0em"===i.getAttribute("lspace")&&"0em"===i.getAttribute("rspace")){var e=i.children[0];return e instanceof Vt&&","===e.text}return!1}var ke=function(n,e,a){if(1===n.length){var r=Rt(n[0],e);return a&&r instanceof L&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var s,o=[],l=0;l<n.length;l++){var c=Rt(n[l],e);if(c instanceof L&&s instanceof L){if("mtext"===c.type&&"mtext"===s.type&&c.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...c.children);continue}if("mn"===c.type&&"mn"===s.type){s.children.push(...c.children);continue}if(Tr(c)&&"mn"===s.type){s.children.push(...c.children);continue}if("mn"===c.type&&Tr(s))c.children=[...s.children,...c.children],o.pop();else if(("msup"===c.type||"msub"===c.type)&&c.children.length>=1&&("mn"===s.type||Tr(s))){var d=c.children[0];d instanceof L&&"mn"===d.type&&(d.children=[...s.children,...d.children],o.pop())}else if("mi"===s.type&&1===s.children.length){var u=s.children[0];if(u instanceof Vt&&"\u0338"===u.text&&("mo"===c.type||"mi"===c.type||"mn"===c.type)){var _=c.children[0];_ instanceof Vt&&_.text.length>0&&(_.text=_.text.slice(0,1)+"\u0338"+_.text.slice(1),o.pop())}}}o.push(c),s=c}
1return o},hn=function(n,e,a){return Rr(ke(n,e,a))},Rt=function(n,e){if(!n)return new L("mrow");if(Ji[n.type])return Ji[n.type](n,e);throw new $("Got group of unknown type: '"+n.type+"'")};function ws(i,n,e,a,r){var s,o=ke(i,e);s=1===o.length&&o[0]instanceof L&&Ju.has(o[0].type)?o[0]:new L("mrow",o);var l=new L("annotation",[new Vt(n)]);l.setAttribute("encoding","application/x-tex");var c=new L("semantics",[s,l]),d=new L("math",[c]);return d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&d.setAttribute("display","block"),D([r?"katex":"katex-mathml"],[d])}var Ku=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ms=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ss=function(n,e){return e.size<2?n:Ku[n-1][e.size-1]};let Zu=(()=>{class i{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||i.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Ms[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var a={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(a,e),new i(a)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Ss(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Ms[e-1]})}havingBaseStyle(e){e=e||this.style.text();var a=Ss(i.BASESIZE,e);return this.size===a&&this.textSize===i.BASESIZE&&this.style===e?this:this.extend({style:e,size:a})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==i.BASESIZE?["sizing","reset-size"+this.size,"size"+i.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function Du(i){var n;if(!rr[n=i>=5?0:i>=3?1:2]){var e=rr[n]={cssEmPerMu:Yi.quad[n]/18};for(var a in Yi)Yi.hasOwnProperty(a)&&(e[a]=Yi[a][n])}return rr[n]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}return i.BASESIZE=6,i})();var n_={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",underbracket:"\u23b5",overbracket:"\u23b4",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Zi=function(n){var e=new L("mo",[new Vt(n_[n.replace(/^\\/,"")])]);return e.setAttribute("stretchy","true"),e},i_={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},a_=new Set(["widehat","widecheck","widetilde","utilde"]),ta=function(n,e){var{span:r,minWidth:o,height:s}=function a(){var l=4e5,c=n.label.slice(1);if(a_.has(c)&&"base"in n){var u,_,h,d="ordgroup"===n.base.type?n.base.body.length:1;if(d>5)"widehat"===c||"widecheck"===c?(u=420,l=2364,h=.42,_=c+"4"):(u=312,l=2340,h=.34,_="tilde4");else{var g=[1,1,2,2,3,3][d];"widehat"===c||"widecheck"===c?(l=[0,1062,2364,2364,2364][g],u=[0,239,300,360,420][g],h=[0,.24,.3,.3,.36,.42][g],_=c+g):(l=[0,600,
11033,2339,2340][g],u=[0,260,286,306,312][g],h=[0,.26,.286,.3,.306,.34][g],_="tilde"+g)}var b=new un(_),v=new Ke([b],{width:"100%",height:j(h),viewBox:"0 0 "+l+" "+u,preserveAspectRatio:"none"});return{span:pn([],[v],e),minWidth:0,height:h}}var R=[],C=i_[c];if(!C)throw new Error('No SVG data for "'+c+'".');var P,N,[k,F,w]=C,M=w/1e3,E=k.length;if(1===E){if(4!==C.length)throw new Error('Expected 4-tuple for single-path SVG data "'+c+'".');P=["hide-tail"],N=[C[3]]}else if(2===E)P=["halfarrow-left","halfarrow-right"],N=["xMinYMin","xMaxYMin"];else{if(3!==E)throw new Error("Correct katexImagesData or update code here to support\n                    "+E+" children.");P=["brace-left","brace-center","brace-right"],N=["xMinYMin","xMidYMin","xMaxYMin"]}for(var O=0;O<E;O++){var nt=new un(k[O]),Z=new Ke([nt],{width:"400em",height:j(M),viewBox:"0 0 "+l+" "+w,preserveAspectRatio:N[O]+" slice"}),rt=pn([P[O]],[Z],e);if(1===E)return{span:rt,minWidth:F,height:M};rt.style.height=j(M),R.push(rt)}return{span:D(["stretchy"],R,e),minWidth:F,height:M}}();return r.height=s,r.style.height=j(s),o>0&&(r.style.minWidth=j(o)),r},o_={bin:1,close:1,inner:1,open:1,punct:1,rel:1},s_={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function lt(i,n){if(!i||i.type!==n)throw new Error("Expected node of type "+n+", but got "+(i?"node of type "+i.type:String(i)));return i}function ea(i){var n=na(i);if(!n)throw new Error("Expected node of symbol group type, but got "+(i?"node of type "+i.type:String(i)));return n}function na(i){return i&&("atom"===i.type||s_.hasOwnProperty(i.type))?i:null}var Ps=i=>i instanceof Te?i:(i=>i instanceof Yn||i instanceof Bi||i instanceof Bn)(i)&&1===i.children.length?Ps(i.children[0]):void 0,Ir=(i,n)=>{var e,a,r;i&&"supsub"===i.type?(a=lt(i.base,"accent"),i.base=e=a.base,r=function Eu(i){if(i instanceof Yn)return i;throw new Error("Expected span<HtmlDomNode> but got "+String(i)+".")}(bt(i,n)),i.base=a):e=(a=lt(i,"accent")).base;var c,d,o=bt(e,n.havingCrampedStyle()),l=0;a.isShifty&&Je(e)&&(l=null!=(c=null==(d=Ps(o))?void 0:d.skew)?c:0);var h,u="\\c"===a.label,_=u?o.height+o.depth:Math.min(o.height,n.fontMetrics().xHeight);if(a.isStretchy)h=ta(a,n),h=ft({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+j(2*l)+")",marginLeft:j(2*l)}:void 0}]});else{var g,b;"\\vec"===a.label?(g=ys("vec",n),b=Rs.vec[1]):(g=function Au(i){if(i instanceof Te)return i;throw new Error("Expected symbolNode but got "+String(i)+".")}(g=zi({type:"textord",mode:a.mode,text:a.label},n,"textord")),g.italic=0,b=g.width,u&&(_+=g.depth)),h=D(["accent-body"],[g]);var v="\\textcircled"===a.label;v&&(h.classes.push("accent-full"),_=o.height);var R=l;v||(R-=b/2),h.style.left=j(R),"\\textcircled"===a.label&&(h.style.top=".2em"),h=ft({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-_},{type:"elem",elem:h}]})}var C=D(["mord","accent"],[h],n);return r?(r.children[0]=C,r.height=Math.max(C.height,r.height),r.classes[0]="mord",r):C},Gs=(i,n)=>{var e=i.isStretchy?Zi(i.label):new L("mo",[Ge(i.label,i.mode)]),a=new L("mover",[Rt(i.base,n),e]);return a.setAttribute("accent","true"),a},c_=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(i=>"\\"+i).join("|"));Y({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(i,n)=>{var e=Wi(n[0]),a=!c_.test(i.funcName);return{type:"accent",mode:i.parser.mode,label:i.funcName,isStretchy:a,isShifty:!a||"\\widehat"===i.funcName||"\\widetilde"===i.funcName||"\\widecheck"===i.funcName,base:e}},htmlBuilder:Ir,mathmlBuilder:Gs}),Y({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(i,n)=>{var e=n[0],a=i.parser.mode;return"math"===a&&(i.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+i.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:i.funcName,isStretchy:!1,isShifty:!0,base:e}},htmlBuilder:Ir,mathmlBuilder:Gs}),Y({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(i,n)=>{var{parser:e,funcName:a}=i;return{type:"accentUnder",mode:e.mode,label:a,base:n[0]}},htmlBuilder:(i,n)=>{var e=bt(i.base,n),a=ta(i,n),o=ft({positionType:"top",positionData:e.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:"\\utilde"===i.label?.12:0},{type:"elem",elem:e}]});return D(["mord","accentunder"],[o],n)},mathmlBuilder:(i,n)=>{var e=Zi(i.label),a=new L("munder",[Rt(i.base,n),e]);return a.setAttribute("accentunder","true"),a}});var ia=i=>{var n=new L("mpadded",i?[i]:[]);return n.setAttribute("width","+0.6em"),n.setAttribute("lspace","0.3em"),n};function Ds(i,n){var e=Kt(i.body,n,!0);return D([i.mclass],e,n)}function $s(i,n){var e,a=ke(i.body,n);return"minner"===i.mclass?e=new L("mpadded",a):"mord"===i.mclass?i.isCharacterBox?(e=a[0]).type="mi":e=new L("mi",a):(i.isCharacterBox?(e=a[0]).type="mo":e=new L("mo",a),"mbin"===i.mclass?(e.attributes.lspace="0.22em",e.attributes.rspace="0.22em"):"mpunct"===i.mclass?(e.attributes.lspace="0em",e.attributes.rspace="0.17em"):"mopen"===i.mclass||"mclose"===i.mclass?(e.attributes.lspace="0em",e.attributes.rspace="0em"):"minner"===i.mclass&&(e.attributes.lspace="0.0556em",e.attributes.width="+0.1111em")),e}Y({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(i,n,e){var{parser:a,funcName:r}=i;return{type:"xArrow",mode:a.mode,label:r,body:n[0],below:e[0]}}
1,htmlBuilder(i,n){var s,e=n.style,a=n.havingStyle(e.sup()),r=Hn(bt(i.body,a,n),n),o="\\x"===i.label.slice(0,2)?"x":"cd";r.classes.push(o+"-arrow-pad"),i.below&&(a=n.havingStyle(e.sub()),(s=Hn(bt(i.below,a,n),n)).classes.push(o+"-arrow-pad"));var u,l=ta(i,n),c=-n.fontMetrics().axisHeight+.5*l.height,d=-n.fontMetrics().axisHeight-.5*l.height-.111;if((r.depth>.25||"\\xleftequilibrium"===i.label)&&(d-=r.depth),s){var _=-n.fontMetrics().axisHeight+s.height+.5*l.height+.111;u=ft({positionType:"individualShift",children:[{type:"elem",elem:r,shift:d},{type:"elem",elem:l,shift:c,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:_}]})}else u=ft({positionType:"individualShift",children:[{type:"elem",elem:r,shift:d},{type:"elem",elem:l,shift:c,wrapperClasses:["svg-align"]}]});return D(["mrel","x-arrow"],[u],n)},mathmlBuilder(i,n){var a,e=Zi(i.label);if(e.setAttribute("minsize","x"===i.label.charAt(0)?"1.75em":"3.0em"),i.body){var r=ia(Rt(i.body,n));if(i.below){var o=ia(Rt(i.below,n));a=new L("munderover",[e,o,r])}else a=new L("mover",[e,r])}else if(i.below){var s=ia(Rt(i.below,n));a=new L("munder",[e,s])}else a=ia(),a=new L("mover",[e,a]);return a}}),Y({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(i,n){var{parser:e,funcName:a}=i,r=n[0];return{type:"mclass",mode:e.mode,mclass:"m"+a.slice(5),body:Ht(r),isCharacterBox:Je(r)}},htmlBuilder:Ds,mathmlBuilder:$s});var aa=i=>{var n="ordgroup"===i.type&&i.body.length?i.body[0]:i;return"atom"!==n.type||"bin"!==n.family&&"rel"!==n.family?"mord":"m"+n.family};Y({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(i,n){var{parser:e}=i;return{type:"mclass",mode:e.mode,mclass:aa(n[0]),body:Ht(n[1]),isCharacterBox:Je(n[1])}}}),Y({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(i,n){var s,{parser:e,funcName:a}=i,r=n[1],o=n[0];s="\\stackrel"!==a?aa(r):"mrel";var l={type:"op",mode:r.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==a,body:Ht(r)},c={type:"supsub",mode:o.mode,base:l,sup:"\\underset"===a?null:o,sub:"\\underset"===a?o:null};return{type:"mclass",mode:e.mode,mclass:s,body:[c],isCharacterBox:Je(c)}},htmlBuilder:Ds,mathmlBuilder:$s}),Y({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(i,n){var{parser:e}=i;return{type:"pmb",mode:e.mode,mclass:aa(n[0]),body:Ht(n[0])}},htmlBuilder(i,n){var e=Kt(i.body,n,!0),a=D([i.mclass],e,n);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(i,n){var e=ke(i.body,n),a=new L("mstyle",e);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var d_={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ns=i=>"textord"===i.type&&"@"===i.text,u_=(i,n)=>("mathord"===i.type||"atom"===i.type)&&i.text===n;function __(i,n,e){var a=d_[i];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return e.callFunction(a,[n[0]],[n[1]]);case"\\uparrow":case"\\downarrow":var r=e.callFunction("\\\\cdleft",[n[0]],[]),s=e.callFunction("\\Big",[{type:"atom",text:a,mode:"math",family:"rel"}],[]),l=e.callFunction("\\\\cdright",[n[1]],[]);return e.callFunction("\\\\cdparent",[{type:"ordgroup",mode:"math",body:[r,s,l]}],[]);case"\\\\cdlongequal":return e.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return e.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}Y({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(i,n){var{parser:e,funcName:a}=i;return{type:"cdlabel",mode:e.mode,side:a.slice(4),label:n[0]}},htmlBuilder(i,n){var e=n.havingStyle(n.style.sup()),a=Hn(bt(i.label,e,n),n);return a.classes.push("cd-label-"+i.side),a.style.bottom=j(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(i,n){var e=new L("mrow",[Rt(i.label,n)]);return(e=new L("mpadded",[e])).setAttribute("width","0"),"left"===i.side&&e.setAttribute("lspace","-1width"),e.setAttribute("voffset","0.7em"),(e=new L("mstyle",[e])).setAttribute("displaystyle","false"),e.setAttribute("scriptlevel","1"),e}}),Y({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(i,n){var{parser:e}=i;return{type:"cdlabelparent",mode:e.mode,fragment:n[0]}},htmlBuilder(i,n){var e=Hn(bt(i.fragment,n),n);return e.classes.push("cd-vert-arrow"),e},mathmlBuilder:(i,n)=>new L("mrow",[Rt(i.fragment,n)])}),Y({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(i,n){for(var{parser:e}=i,r=lt(n[0],"ordgroup").body,o="",s=0;s<r.length;s++)o+=lt(r[s],"textord").text;var d,c=parseInt(o);if(isNaN(c))throw new $("\\@char has non-numeric argument "+o);if(c<0||c>
1=1114111)throw new $("\\@char with invalid code point "+o);return c<=65535?d=String.fromCharCode(c):(c-=65536,d=String.fromCharCode(55296+(c>>10),56320+(1023&c))),{type:"textord",mode:e.mode,text:d}}});var js=(i,n)=>{var e=Kt(i.body,n.withColor(i.color),!1);return tn(e)},Os=(i,n)=>{var e=ke(i.body,n.withColor(i.color)),a=new L("mstyle",e);return a.setAttribute("mathcolor",i.color),a};Y({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(i,n){var{parser:e}=i,a=lt(n[0],"color-token").color;return{type:"color",mode:e.mode,color:a,body:Ht(n[1])}},htmlBuilder:js,mathmlBuilder:Os}),Y({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(i,n){var{parser:e,breakOnTokenText:a}=i,r=lt(n[0],"color-token").color;e.gullet.macros.set("\\current@color",r);var o=e.parseExpression(!0,a);return{type:"color",mode:e.mode,color:r,body:o}},htmlBuilder:js,mathmlBuilder:Os}),Y({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(i,n,e){var{parser:a}=i,r="["===a.gullet.future().text?a.parseSizeGroup(!0):null,o=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:o,size:r&&lt(r,"size").value}},htmlBuilder(i,n){var e=D(["mspace"],[],n);return i.newLine&&(e.classes.push("newline"),i.size&&(e.style.marginTop=j(Et(i.size,n)))),e},mathmlBuilder(i,n){var e=new L("mspace");return i.newLine&&(e.setAttribute("linebreak","newline"),i.size&&e.setAttribute("height",j(Et(i.size,n)))),e}});var kr={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Bs=i=>{var n=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new $("Expected a control sequence",i);return n},Ys=(i,n,e,a)=>{var r=i.gullet.macros.get(e.text);null==r&&(e.noexpand=!0,r={tokens:[e],numArgs:0,unexpandable:!i.gullet.isExpandable(e.text)}),i.gullet.macros.set(n,r,a)};Y({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(i){var{parser:n,funcName:e}=i;n.consumeSpaces();var a=n.fetch();if(kr[a.text])return("\\global"===e||"\\\\globallong"===e)&&(a.text=kr[a.text]),lt(n.parseFunction(),"internal");throw new $("Invalid token after macro prefix",a)}}),Y({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(i){var{parser:n,funcName:e}=i,a=n.gullet.popToken(),r=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new $("Expected a control sequence",a);for(var s,o=0,l=[[]];"{"!==n.gullet.future().text;)if("#"===(a=n.gullet.popToken()).text){if("{"===n.gullet.future().text){s=n.gullet.future(),l[o].push("{");break}if(a=n.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new $('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==o+1)throw new $('Argument number "'+a.text+'" out of order');o++,l.push([])}else{if("EOF"===a.text)throw new $("Expected a macro definition");l[o].push(a.text)}var{tokens:c}=n.gullet.consumeArg();return s&&c.unshift(s),("\\edef"===e||"\\xdef"===e)&&(c=n.gullet.expandTokens(c)).reverse(),n.gullet.macros.set(r,{tokens:c,numArgs:o,delimiters:l},e===kr[e]),{type:"internal",mode:n.mode}}}),Y({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(i){var{parser:n,funcName:e}=i,a=Bs(n.gullet.popToken());n.gullet.consumeSpaces();var r=(i=>{var n=i.gullet.popToken();return"="===n.text&&" "===(n=i.gullet.popToken()).text&&(n=i.gullet.popToken()),n})(n);return Ys(n,a,r,"\\\\globallet"===e),{type:"internal",mode:n.mode}}}),Y({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(i){var{parser:n,funcName:e}=i,a=Bs(n.gullet.popToken()),r=n.gullet.popToken(),o=n.gullet.popToken();return Ys(n,a,o,"\\\\globalfuture"===e),n.gullet.pushToken(o),n.gullet.pushToken(r),{type:"internal",mode:n.mode}}});var si=function(n,e,a){var o=ar(wt.math[n]&&wt.math[n].replace||n,e,a);if(!o)throw new Error("Unsupported symbol "+n+" and font size "+e+".");return o},Fr=function(n,e,a,r){var o=a.havingBaseStyle(e),s=D(r.concat(o.sizingClasses(a)),[n],a),l=o.sizeMultiplier/a.sizeMultiplier;return s.height*=l,s.depth*=l,s.maxFontSize=o.sizeMultiplier,s},Xs=function(n,e,a){var r=e.havingBaseStyle(a),o=(1-e.sizeMultiplier/r.sizeMultiplier)*e.fontMetrics().axisHeight;n.classes.push("delimcenter"),n.style.top=j(o),n.height-=o,n.depth+=o},qs=function(n,e,a,r,o,s){var l=function(n,e,a,r){return _e(n,"Size"+e+"-Regular",a,r)}(n,e,o,r),c=Fr(D(["delimsizing","size"+e],[l],r),at.TEXT,r,s);return a&&Xs(c,r,at.TEXT),c},wr=function(n,e,a){return{type:"elem",elem:D(["delimsizinginner","Size1-Regular"===e?"delim-size1":"delim-size4"],[D([],[_e(n,e,a)])])}}
1,Mr=function(n,e,a){var r=qe["Size4-Regular"][n.charCodeAt(0)]?qe["Size4-Regular"][n.charCodeAt(0)][4]:qe["Size1-Regular"][n.charCodeAt(0)][4],o=new un("inner",function(n,e){switch(n){case"\u239c":return Wt("M291 0 H417 V"+e+" H291z");case"\u2223":return Wt("M145 0 H188 V"+e+" H145z");case"\u2225":return Wt("M145 0 H188 V"+e+" H145z")+Wt("M367 0 H410 V"+e+" H367z");case"\u239f":return Wt("M457 0 H583 V"+e+" H457z");case"\u23a2":return Wt("M319 0 H403 V"+e+" H319z");case"\u23a5":return Wt("M263 0 H347 V"+e+" H263z");case"\u23aa":return Wt("M384 0 H504 V"+e+" H384z");case"\u23d0":return Wt("M312 0 H355 V"+e+" H312z");case"\u2016":return Wt("M257 0 H300 V"+e+" H257z")+Wt("M478 0 H521 V"+e+" H478z");default:return""}}(n,Math.round(1e3*e))),s=new Ke([o],{width:j(r),height:j(e),style:"width:"+j(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*e),preserveAspectRatio:"xMinYMin"}),l=pn([],[s],a);return l.height=e,l.style.height=j(e),l.style.width=j(r),{type:"elem",elem:l}},ra={type:"kern",size:-.008},f_=new Set(["|","\\lvert","\\rvert","\\vert"]),b_=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Hs=function(n,e,a,r,o,s){var l,c,d,u,_="",h=0;l=d=u=n,c=null;var g="Size1-Regular";"\\uparrow"===n?d=u="\u23d0":"\\Uparrow"===n?d=u="\u2016":"\\downarrow"===n?l=d="\u23d0":"\\Downarrow"===n?l=d="\u2016":"\\updownarrow"===n?(l="\\uparrow",d="\u23d0",u="\\downarrow"):"\\Updownarrow"===n?(l="\\Uparrow",d="\u2016",u="\\Downarrow"):f_.has(n)?(d="\u2223",_="vert",h=333):b_.has(n)?(d="\u2225",_="doublevert",h=556):"["===n||"\\lbrack"===n?(l="\u23a1",d="\u23a2",u="\u23a3",g="Size4-Regular",_="lbrack",h=667):"]"===n||"\\rbrack"===n?(l="\u23a4",d="\u23a5",u="\u23a6",g="Size4-Regular",_="rbrack",h=667):"\\lfloor"===n||"\u230a"===n?(d=l="\u23a2",u="\u23a3",g="Size4-Regular",_="lfloor",h=667):"\\lceil"===n||"\u2308"===n?(l="\u23a1",d=u="\u23a2",g="Size4-Regular",_="lceil",h=667):"\\rfloor"===n||"\u230b"===n?(d=l="\u23a5",u="\u23a6",g="Size4-Regular",_="rfloor",h=667):"\\rceil"===n||"\u2309"===n?(l="\u23a4",d=u="\u23a5",g="Size4-Regular",_="rceil",h=667):"("===n||"\\lparen"===n?(l="\u239b",d="\u239c",u="\u239d",g="Size4-Regular",_="lparen",h=875):")"===n||"\\rparen"===n?(l="\u239e",d="\u239f",u="\u23a0",g="Size4-Regular",_="rparen",h=875):"\\{"===n||"\\lbrace"===n?(l="\u23a7",c="\u23a8",u="\u23a9",d="\u23aa",g="Size4-Regular"):"\\}"===n||"\\rbrace"===n?(l="\u23ab",c="\u23ac",u="\u23ad",d="\u23aa",g="Size4-Regular"):"\\lgroup"===n||"\u27ee"===n?(l="\u23a7",u="\u23a9",d="\u23aa",g="Size4-Regular"):"\\rgroup"===n||"\u27ef"===n?(l="\u23ab",u="\u23ad",d="\u23aa",g="Size4-Regular"):"\\lmoustache"===n||"\u23b0"===n?(l="\u23a7",u="\u23ad",d="\u23aa",g="Size4-Regular"):("\\rmoustache"===n||"\u23b1"===n)&&(l="\u23ab",u="\u23a9",d="\u23aa",g="Size4-Regular");var b=si(l,g,o),v=b.height+b.depth,R=si(d,g,o),C=R.height+R.depth,k=si(u,g,o),F=k.height+k.depth,w=0,M=1;if(null!==c){var E=si(c,g,o);w=E.height+E.depth,M=2}var P=v+F+w,O=P+Math.max(0,Math.ceil((e-P)/(M*C)))*M*C,nt=r.fontMetrics().axisHeight;a&&(nt*=r.sizeMultiplier);var Z=O/2-nt,rt=[];if(_.length>0){var kt=O-v-F,ut=Math.round(1e3*O),Tt=function(n,e){switch(n){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+e+" v1759 v84 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+e+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+e+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+e+" v1759 h84z";case"vert":return"M145 15 v585 v"+e+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-e+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+e+" v585 h43z";case"doublevert":return"M145 15 v585 v"+e+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-e+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+e+" v585 h43z\nM367 15 v585 v"+e+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-e+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+e+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+e+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+e+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+e+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+e+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+e+" v602 h84z\nM403 1759 V0 H319 V1759 v"+e+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+e+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+e+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(e+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\
1nl0,-"+(e+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(e+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(e+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(_,Math.round(1e3*kt)),H=new un(_,Tt),U=j(h/1e3),ee=j(ut/1e3),Ce=new Ke([H],{width:U,height:ee,viewBox:"0 0 "+h+" "+ut}),le=pn([],[Ce],r);le.height=ut/1e3,le.style.width=U,le.style.height=ee,rt.push({type:"elem",elem:le})}else{if(rt.push(wr(u,g,o)),rt.push(ra),null===c)rt.push(Mr(d,O-v-F+.016,r));else{var At=(O-v-F-w)/2+.016;rt.push(Mr(d,At,r)),rt.push(ra),rt.push(wr(c,g,o)),rt.push(ra),rt.push(Mr(d,At,r))}rt.push(ra),rt.push(wr(l,g,o))}var gt=r.havingBaseStyle(at.TEXT),Ye=ft({positionType:"bottom",positionData:Z,children:rt});return Fr(D(["delimsizing","mult"],[Ye],gt),at.TEXT,r,s)},Pr=function(n,e,a,r,o){var s=function(n,e,a){e*=1e3;var r="";switch(n){case"sqrtMain":r=function(n){return"M95,"+(622+n+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+n/2.075+" -"+n+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+n)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+n)+" 80h400000v"+(40+n)+"h-400000z"}(e);break;case"sqrtSize1":r=function(n){return"M263,"+(601+n+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+n/2.084+" -"+n+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+n)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+n)+" 80h400000v"+(40+n)+"h-400000z"}(e);break;case"sqrtSize2":r=function(n){return"M983 "+(10+n+80)+"\nl"+n/3.13+" -"+n+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+n)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+n)+" 80h400000v"+(40+n)+"h-400000z"}(e);break;case"sqrtSize3":r=function(n){return"M424,"+(2398+n+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+n/4.223+" -"+n+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+n)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+n)+" 80\nh400000v"+(40+n)+"h-400000z"}(e);break;case"sqrtSize4":r=function(n){return"M473,"+(2713+n+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+n/5.298+" -"+n+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+n)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+n)+" 80h400000v"+(40+n)+"H1017.7z"}(e);break;case"sqrtTall":r=function(n,e,a){return"M702 "+(n+80)+"H400000"+(40+n)+"\nH742v"+(a-54-80-n)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+n)+"H742z"}(e,0,a)}return r}(n,r,a),l=new un(n,s),c=new Ke([l],{width:"400em",height:j(e),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return pn(["hide-tail"],[c],o)},Vs=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),x_=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1"]),zs=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),li=[0,1.2,1.8,2.4,3],Qs=function(n,e,a,r,o){if("<"===n||"\\lt"===n||"\u27e8"===n?n="\\langle":(">"===n||"\\gt"===n||"\u27e9"===n)&&(n="\\rangle"),Vs.has(n)||zs.has(n))return qs(n,e,!1,a,r,o);if(x_.has(n))return Hs(n,li[e],!1,a,r,o);throw new $("Illegal delimiter: '"+n+"'")},C_=[{type:"small",style:at.SCRIPTSCRIPT},{type:"small",style:at.SCRIPT},{type:"small",style:at.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],R_=[{type:"small",style:at.SCRIPTSCRIPT},{type:"small",style:at.SCRIPT},{type:"small",style:at.TEXT},{type:"stack"}],Us=[{type:"small",style:at.SCRIPTSCRIPT},{type:"small",style:at.SCRIPT},{type:"small",style:at.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],y_=function(n){if("small"===n.type)return"Main-Regular";if("large"===n.type)return"Size"+n.size+"-Regular";if("stack"===n.type)return"Size4-Regular";throw new Error("Add support for delim type '"+n.type+"' here.")},Js=function(n,e,a,r){for(var s=Math.min(2,3-r.style.size);s<a.length;s++){var l=a[s];if("stack"===l.type)break;var c=si(n,y_(l),"math"),d=c.height+c.depth;if("small"===l.type&&(d*=r.havingBaseStyle(l.style).sizeMultiplier),d>e)return l}return a[a.length-1]},Gr=function(n,e,a,r,o,s){var l;"<"===n||"\\lt"===n||"\u27e8"===n?n="\\langle":(">"===n||"\\gt"===n||"\u27e9"===n)&&(n="\\rangle"),l=zs.has(n)?C_:Vs.has(n)?Us:R_;var c=Js(n,e,l,r);return"small"===c.type?function(n,e,a,r,o,s){var l=_e(n,"Main-Regular",o,r),c=Fr(l,e,r,s);return a&&Xs(c,r,e),c}(n,c.style,a,r,o,s):"large"===c.type?qs(n,c.size,a,r,o,s):Hs(n,e,a,r,o,s)},Dr=function(n,e,a,r,o,s){var l=r.fontMetrics().axisHeight*r.sizeMultiplier,d=5/r.fontMetrics().ptPerEm,u=Math.max(e-l,a+l),_=
1Math.max(u/500*901,2*u-d);return Gr(n,_,!0,r,o,s)},Ws={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},T_=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Ks(i){return"isMiddle"in i}function oa(i,n){var e=na(i);if(e&&T_.has(e.text))return e;throw new $(e?"Invalid delimiter '"+e.text+"' after '"+n.funcName+"'":"Invalid delimiter type '"+i.type+"'",i)}function Zs(i){if(!i.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Y({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(i,n)=>{var e=oa(n[0],i);return{type:"delimsizing",mode:i.parser.mode,size:Ws[i.funcName].size,mclass:Ws[i.funcName].mclass,delim:e.text}},htmlBuilder:(i,n)=>"."===i.delim?D([i.mclass]):Qs(i.delim,i.size,n,i.mode,[i.mclass]),mathmlBuilder:i=>{var n=[];"."!==i.delim&&n.push(Ge(i.delim,i.mode));var e=new L("mo",n);e.setAttribute("fence","mopen"===i.mclass||"mclose"===i.mclass?"true":"false"),e.setAttribute("stretchy","true");var a=j(li[i.size]);return e.setAttribute("minsize",a),e.setAttribute("maxsize",a),e}}),Y({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(i,n)=>{var e=i.parser.gullet.macros.get("\\current@color");
1if(e&&"string"!=typeof e)throw new $("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:i.parser.mode,delim:oa(n[0],i).text,color:e}}}),Y({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(i,n)=>{var e=oa(n[0],i),a=i.parser;++a.leftrightDepth;var r=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var o=lt(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:r,left:e.text,right:o.delim,rightColor:o.color}},htmlBuilder:(i,n)=>{Zs(i);for(var e=Kt(i.body,n,!0,["mopen","mclose"]),a=0,r=0,o=!1,s=0;s<e.length;s++)Ks(e[s])?o=!0:(a=Math.max(e[s].height,a),r=Math.max(e[s].depth,r));var c,h;if(a*=n.sizeMultiplier,r*=n.sizeMultiplier,c="."===i.left?oi(n,["mopen"]):Dr(i.left,a,r,n,i.mode,["mopen"]),e.unshift(c),o)for(var d=1;d<e.length;d++){var u=e[d];if(Ks(u)){var _=u.isMiddle;e[d]=Dr(_.delim,a,r,_.options,i.mode,[])}}if("."===i.right)h=oi(n,["mclose"]);else{var g=i.rightColor?n.withColor(i.rightColor):n;h=Dr(i.right,a,r,g,i.mode,["mclose"])}return e.push(h),D(["minner"],e,n)},mathmlBuilder:(i,n)=>{Zs(i);var e=ke(i.body,n);if("."!==i.left){var a=new L("mo",[Ge(i.left,i.mode)]);a.setAttribute("fence","true"),e.unshift(a)}if("."!==i.right){var r=new L("mo",[Ge(i.right,i.mode)]);r.setAttribute("fence","true"),i.rightColor&&r.setAttribute("mathcolor",i.rightColor),e.push(r)}return Rr(e)}}),Y({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(i,n)=>{var e=oa(n[0],i);if(!i.parser.leftrightDepth)throw new $("\\middle without preceding \\left",e);return{type:"middle",mode:i.parser.mode,delim:e.text}},htmlBuilder:(i,n)=>{var e;return"."===i.delim?e=oi(n,[]):(e=Qs(i.delim,1,n,i.mode,[])).isMiddle={delim:i.delim,options:n},e},mathmlBuilder:(i,n)=>{var e="\\vert"===i.delim||"|"===i.delim?Ge("|","text"):Ge(i.delim,i.mode),a=new L("mo",[e]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var sa=(i,n)=>{var o,s,k,e=Hn(bt(i.body,n),n),a=i.label.slice(1),r=n.sizeMultiplier,l=Je(i.body);if("sout"===a)(o=D(["stretchy","sout"])).height=n.fontMetrics().defaultRuleThickness/r,s=-.5*n.fontMetrics().xHeight;else if("phase"===a){var c=Et({number:.6,unit:"pt"},n),d=Et({number:.35,unit:"ex"},n);r/=n.havingBaseSizing().sizeMultiplier;var _=e.height+e.depth+c+d;e.style.paddingLeft=j(_/2+c);var h=Math.floor(1e3*_*r),g=function(n){return"M400000 "+n+" H0 L"+n/2+" 0 l65 45 L145 "+(n-80)+" H400000z"}(h),b=new Ke([new un("phase",g)],{width:"400em",height:j(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});(o=pn(["hide-tail"],[b],n)).style.height=j(_),s=e.depth+c+d}else{/cancel/.test(a)?l||e.classes.push("cancel-pad"):e.classes.push("angl"===a?"anglpad":"boxpad");var v,R,C=0;/box/.test(a)?(C=Math.max(n.fontMetrics().fboxrule,n.minRuleThickness),R=v=n.fontMetrics().fboxsep+("colorbox"===a?0:C)):"angl"===a?(v=4*(C=Math.max(n.fontMetrics().defaultRuleThickness,n.minRuleThickness)),R=Math.max(0,.25-e.depth)):R=v=l?.2:0,o=function(n,e,a,r,o){var s,l=n.height+n.depth+a+r;if(/fbox|color|angl/.test(e)){if(s=D(["stretchy",e],[],o),"fbox"===e){var c=o.color&&o.getColor();c&&(s.style.borderColor=c)}}else{var d=[];/^[bx]cancel$/.test(e)&&d.push(new ir({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(e)&&d.push(new ir({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Ke(d,{width:"100%",height:j(l)});s=pn([],[u],o)}return s.height=l,s.style.height=j(l),s}(e,a,v,R,n),/fbox|boxed|fcolorbox/.test(a)?(o.style.borderStyle="solid",o.style.borderWidth=j(C)):"angl"===a&&.049!==C&&(o.style.borderTopWidth=j(C),o.style.borderRightWidth=j(C)),s=e.depth+R,i.backgroundColor&&(o.style.backgroundColor=i.backgroundColor,i.borderColor&&(o.style.borderColor=i.borderColor))}if(i.backgroundColor)k=ft({positionType:"individualShift",children:[{type:"elem",elem:o,shift:s},{type:"elem",elem:e,shift:0}]});
1else{var F=/cancel|phase/.test(a)?["svg-align"]:[];k=ft({positionType:"individualShift",children:[{type:"elem",elem:e,shift:0},{type:"elem",elem:o,shift:s,wrapperClasses:F}]})}return/cancel/.test(a)&&(k.height=e.height,k.depth=e.depth),/cancel/.test(a)&&!l?D(["mord","cancel-lap"],[k],n):D(["mord"],[k],n)},la=(i,n)=>{var e,a=new L(i.label.includes("colorbox")?"mpadded":"menclose",[Rt(i.body,n)]);switch(i.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(e=n.fontMetrics().fboxsep*n.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*e+"pt"),a.setAttribute("height","+"+2*e+"pt"),a.setAttribute("lspace",e+"pt"),a.setAttribute("voffset",e+"pt"),"\\fcolorbox"===i.label){var r=Math.max(n.fontMetrics().fboxrule,n.minRuleThickness);a.setAttribute("style","border: "+j(r)+" solid "+i.borderColor)}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return i.backgroundColor&&a.setAttribute("mathbackground",i.backgroundColor),a};Y({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(i,n,e){var{parser:a,funcName:r}=i,o=lt(n[0],"color-token").color;return{type:"enclose",mode:a.mode,label:r,backgroundColor:o,body:n[1]}},htmlBuilder:sa,mathmlBuilder:la}),Y({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(i,n,e){var{parser:a,funcName:r}=i,o=lt(n[0],"color-token").color,s=lt(n[1],"color-token").color;return{type:"enclose",mode:a.mode,label:r,backgroundColor:s,borderColor:o,body:n[2]}},htmlBuilder:sa,mathmlBuilder:la}),Y({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(i,n){var{parser:e}=i;return{type:"enclose",mode:e.mode,label:"\\fbox",body:n[0]}}}),Y({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(i,n){var{parser:e,funcName:a}=i;return{type:"enclose",mode:e.mode,label:a,body:n[0]}},htmlBuilder:sa,mathmlBuilder:la}),Y({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(i,n){var{parser:e,funcName:a}=i;return"math"===e.mode&&e.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode"),{type:"enclose",mode:e.mode,label:a,body:n[0]}},htmlBuilder:sa,mathmlBuilder:la}),Y({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(i,n){var{parser:e}=i;return{type:"enclose",mode:e.mode,label:"\\angl",body:n[0]}}});var tl={};function He(i){for(var{type:n,names:e,props:a,handler:r,htmlBuilder:o,mathmlBuilder:s}=i,l={type:n,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:r},c=0;c<e.length;++c)tl[e[c]]=l;o&&(Ui[n]=o),s&&(Ji[n]=s)}var el={};function x(i,n){el[i]=n}class fe{constructor(n,e,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=n,this.start=e,this.end=a}static range(n,e){return e?n&&n.loc&&e.loc&&n.loc.lexer===e.loc.lexer?new fe(n.loc.lexer,n.loc.start,e.loc.end):null:n&&n.loc}}class Fe{constructor(n,e){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=n,this.loc=e}range(n,e){return new Fe(e,fe.range(this,n))}}function nl(i){var n=[];i.consumeSpaces();var e=i.fetch().text;for("\\relax"===e&&(i.consume(),i.consumeSpaces(),e=i.fetch().text);"\\hline"===e||"\\hdashline"===e;)i.consume(),n.push("\\hdashline"===e),i.consumeSpaces(),e=i.fetch().text;return n}var ca=i=>{if(!i.parser.settings.displayMode)throw new $("{"+i.envName+"} can be used only in display mode.")},I_=new Set(["gather","gather*"]);function $r(i){if(!i.includes("ed"))return!i.includes("*")}function mn(i,n,e){var{hskipBeforeAndAfter:a,addJot:r,cols:o,arraystretch:s,colSeparationType:l,autoTag:c,singleRow:d,emptySingleRow:u,maxNumCols:_,leqno:h}=n;
1if(i.gullet.beginGroup(),d||i.gullet.macros.set("\\cr","\\\\\\relax"),!s){var g=i.gullet.expandMacroAsText("\\arraystretch");if(null==g)s=1;else if(!(s=parseFloat(g))||s<0)throw new $("Invalid \\arraystretch: "+g)}i.gullet.beginGroup();var b=[],v=[b],R=[],C=[],k=null!=c?[]:void 0;function F(){c&&i.gullet.macros.set("\\@eqnsw","1",!0)}function w(){k&&(i.gullet.macros.get("\\df@tag")?(k.push(i.subparse([new Fe("\\df@tag")])),i.gullet.macros.set("\\df@tag",void 0,!0)):k.push(!!c&&"1"===i.gullet.macros.get("\\@eqnsw")))}for(F(),C.push(nl(i));;){var M=i.parseExpression(!1,d?"\\end":"\\\\");i.gullet.endGroup(),i.gullet.beginGroup();var E={type:"ordgroup",mode:i.mode,body:M};e&&(E={type:"styling",mode:i.mode,style:e,resetFont:!0,body:[E]}),b.push(E);var P=i.fetch().text;if("&"===P){if(_&&b.length===_){if(d||l)throw new $("Too many tab characters: &",i.nextToken);i.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}i.consume()}else{if("\\end"===P){w(),1===b.length&&"styling"===E.type&&1===E.body.length&&"ordgroup"===E.body[0].type&&0===E.body[0].body.length&&(v.length>1||!u)&&v.pop(),C.length<v.length+1&&C.push([]);break}if("\\\\"!==P)throw new $("Expected & or \\\\ or \\cr or \\end",i.nextToken);i.consume();var N=void 0;" "!==i.gullet.future().text&&(N=i.parseSizeGroup(!0)),R.push(N?N.value:null),w(),C.push(nl(i)),v.push(b=[]),F()}}return i.gullet.endGroup(),i.gullet.endGroup(),{type:"array",mode:i.mode,addJot:r,arraystretch:s,body:v,cols:o,rowGaps:R,hskipBeforeAndAfter:a,hLinesBeforeRow:C,colSeparationType:l,tags:k,leqno:h}}function Lr(i){return"d"===i.slice(0,1)?"display":"text"}var Ve=function(n,e){var a,r,o=n.body.length,s=n.hLinesBeforeRow,l=0,c=new Array(o),d=[],u=Math.max(e.fontMetrics().arrayRuleWidth,e.minRuleThickness),_=1/e.fontMetrics().ptPerEm,h=5*_;n.colSeparationType&&"small"===n.colSeparationType&&(h=e.havingStyle(at.SCRIPT).sizeMultiplier/e.sizeMultiplier*.2778);var b="CD"===n.colSeparationType?Et({number:3,unit:"ex"},e):12*_,v=3*_,R=n.arraystretch*b,C=.7*R,k=.3*R,F=0;function w(Xa){for(var qa=0;qa<Xa.length;++qa)qa>0&&(F+=.25),d.push({pos:F,isDashed:Xa[qa]})}for(w(s[0]),a=0;a<n.body.length;++a){var M=n.body[a],E=C,P=k;l<M.length&&(l=M.length);var N={cells:new Array(M.length),height:0,depth:0,pos:0};for(r=0;r<M.length;++r){var O=bt(M[r],e);P<O.depth&&(P=O.depth),E<O.height&&(E=O.height),N.cells[r]=O}var nt=n.rowGaps[a],Z=0;nt&&(Z=Et(nt,e))>0&&(P<(Z+=k)&&(P=Z),Z=0),n.addJot&&a<n.body.length-1&&(P+=v),N.height=E,N.depth=P,N.pos=F+=E,F+=P+Z,c[a]=N,w(s[a+1])}var Tt,H,rt=F/2+e.fontMetrics().axisHeight,kt=n.cols||[],ut=[],U=[];if(n.tags&&n.tags.some(Xa=>Xa))for(a=0;a<o;++a){var ee=c[a],Ce=ee.pos-rt,le=n.tags[a],Xt=void 0;(Xt=!0===le?D(["eqn-num"],[],e):D([],!1===le?[]:Kt(le,e,!0),e)).depth=ee.depth,Xt.height=ee.height,U.push({type:"elem",elem:Xt,shift:Ce})}for(r=0,H=0;r<l||H<kt.length;++r,++H){for(var At,gt=kt[H],Ye=!0;"separator"===(null==(yn=gt)?void 0:yn.type);){var yn;if(Ye||((Tt=D(["arraycolsep"],[])).style.width=j(e.fontMetrics().doubleRuleSep),ut.push(Tt)),"|"!==gt.separator&&":"!==gt.separator)throw new $("Invalid separator type: "+gt.separator);var Re="|"===gt.separator?"solid":"dashed",vt=D(["vertical-separator"],[],e);vt.style.height=j(F),vt.style.borderRightWidth=j(u),vt.style.borderRightStyle=Re,vt.style.margin="0 "+j(-u/2);var Ae=F-rt;Ae&&(vt.style.verticalAlign=j(-Ae)),ut.push(vt),gt=kt[++H],Ye=!1}if(!(r>=l)){var ja,qd,ln=void 0;(r>0||n.hskipBeforeAndAfter)&&0!==(ln=null!=(ja=null==(qd=gt)?void 0:qd.pregap)?ja:h)&&((Tt=D(["arraycolsep"],[])).style.width=j(ln),ut.push(Tt));var Hd=[];for(a=0;a<o;++a){var Oa=c[a],Ba=Oa.cells[r];if(Ba){var J$=Oa.pos-rt;Ba.depth=Oa.depth,Ba.height=Oa.height,Hd.push({type:"elem",elem:Ba,shift:J$})}}var Vd,zd,W$=ft({positionType:"individualShift",children:Hd}),K$=D(["col-align-"+((null==(At=gt)?void 0:At.align)||"c")],[W$]);ut.push(K$),(r<l-1||n.hskipBeforeAndAfter)&&0!==(ln=null!=(Vd=null==(zd=gt)?void 0:zd.postgap)?Vd:h)&&((Tt=D(["arraycolsep"],[])).style.width=j(ln),ut.push(Tt))}}var Ya=D(["mtable"],ut);if(d.length>0){for(var Z$=qn("hline",e,u),tL=qn("hdashline",e,u),Wo=[{type:"elem",elem:Ya,shift:0}];d.length>0;){var Qd=d.pop(),Ud=Qd.pos-rt;Wo.push(Qd.isDashed?{type:"elem",elem:tL,shift:Ud}:{type:"elem",elem:Z$,shift:Ud})}Ya=ft({positionType:"individualShift",children:Wo})}if(0===U.length)return D(["mord"],[Ya],e);var eL=ft({positionType:"individualShift",children:U}),nL=D(["tag"],[eL],e);return tn([Ya,nL])},k_={c:"center ",l:"left ",r:"right "},ze=function(n,e){for(var a=[],r=new L("mtd",[],["mtr-glue"]),o=new L("mtd",[],["mml-eqn-num"]),s=0;s<n.body.length;s++){for(var l=n.body[s],c=[],d=0;d<l.length;d++)c.push(new L("mtd",[Rt(l[d],e)]));n.tags&&n.tags[s]&&(c.unshift(r),c.push(r),n.leqno?c.unshift(o):c.push(o)),a.push(new L("mtr",c))}var u=new L("mtable",a);u.setAttribute("rowspacing",j(.5===n.arraystretch?.1:.16+n.arraystretch-1+(n.addJot?.09:0)));var h="",g="";if(n.cols&&n.cols.length>0){var b=n.cols,v="",R=!1,C=0,k=b.length;"separator"===b[0].type&&(h+="top ",C=1),"separator"===b[b.length-1].type&&(h+="bottom ",k-=1);for(var F=C;F<k;F++){var w=b[F];
1"align"===w.type?(g+=k_[w.align],R&&(v+="none "),R=!0):"separator"===w.type&&R&&(v+="|"===w.separator?"solid ":"dashed ",R=!1)}u.setAttribute("columnalign",g.trim()),/[sd]/.test(v)&&u.setAttribute("columnlines",v.trim())}if("align"===n.colSeparationType){for(var M=n.cols||[],E="",P=1;P<M.length;P++)E+=P%2?"0em ":"1em ";u.setAttribute("columnspacing",E.trim())}else u.setAttribute("columnspacing","alignat"===n.colSeparationType||"gather"===n.colSeparationType?"0em":"small"===n.colSeparationType?"0.2778em":"CD"===n.colSeparationType?"0.5em":"1em");var N="",O=n.hLinesBeforeRow;h+=O[0].length>0?"left ":"",h+=O[O.length-1].length>0?"right ":"";for(var nt=1;nt<O.length-1;nt++)N+=0===O[nt].length?"none ":O[nt][0]?"dashed ":"solid ";return/[sd]/.test(N)&&u.setAttribute("rowlines",N.trim()),""!==h&&(u=new L("menclose",[u])).setAttribute("notation",h.trim()),n.arraystretch&&n.arraystretch<1&&(u=new L("mstyle",[u])).setAttribute("scriptlevel","1"),u},il=function(n,e){n.envName.includes("ed")||ca(n);var a=[],r=n.envName.includes("at")?"alignat":"align",o="split"===n.envName,s=mn(n.parser,{cols:a,addJot:!0,autoTag:o?void 0:$r(n.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:o?2:void 0,leqno:n.parser.settings.leqno},"display"),l=0,c=0,d={type:"ordgroup",mode:n.mode,body:[]};if(e[0]&&"ordgroup"===e[0].type){for(var u="",_=0;_<e[0].body.length;_++)u+=lt(e[0].body[_],"textord").text;l=Number(u),c=2*l}var g=!c;s.body.forEach(function(C){for(var k=1;k<C.length;k+=2){var F=lt(C[k],"styling");lt(F.body[0],"ordgroup").body.unshift(d)}if(g)c<C.length&&(c=C.length);else{var M=C.length/2;if(l<M)throw new $("Too many math in a row: expected "+l+", but got "+M,C[0])}});for(var b=0;b<c;++b){var v="r",R=0;b%2==1?v="l":b>0&&g&&(R=1),a[b]={type:"align",align:v,pregap:R,postgap:0}}return s.colSeparationType=g?"align":"alignat",s};He({type:"array",names:["array","darray"],props:{numArgs:1},handler(i,n){var r=(na(n[0])?[n[0]]:lt(n[0],"ordgroup").body).map(function(s){var c=ea(s).text;if("lcr".includes(c))return{type:"align",align:c};if("|"===c)return{type:"separator",separator:"|"};if(":"===c)return{type:"separator",separator:":"};throw new $("Unknown column alignment: "+c,s)});return mn(i.parser,{cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length},Lr(i.envName))},htmlBuilder:Ve,mathmlBuilder:ze}),He({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(i){var n={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[i.envName.replace("*","")],e="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:e}]};if("*"===i.envName.charAt(i.envName.length-1)){var r=i.parser;if(r.consumeSpaces(),"["===r.fetch().text){if(r.consume(),r.consumeSpaces(),e=r.fetch().text,!"lcr".includes(e))throw new $("Expected l or c or r",r.nextToken);r.consume(),r.consumeSpaces(),r.expect("]"),r.consume(),a.cols=[{type:"align",align:e}]}}var o=mn(i.parser,a,Lr(i.envName)),s=Math.max(0,...o.body.map(l=>l.length));return o.cols=new Array(s).fill({type:"align",align:e}),n?{type:"leftright",mode:i.mode,body:[o],left:n[0],right:n[1],rightColor:void 0}:o},htmlBuilder:Ve,mathmlBuilder:ze}),He({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(i){var e=mn(i.parser,{arraystretch:.5},"script");return e.colSeparationType="small",e},htmlBuilder:Ve,mathmlBuilder:ze}),He({type:"array",names:["subarray"],props:{numArgs:1},handler(i,n){var r=(na(n[0])?[n[0]]:lt(n[0],"ordgroup").body).map(function(l){var d=ea(l).text;if("lc".includes(d))return{type:"align",align:d};throw new $("Unknown column alignment: "+d,l)});if(r.length>1)throw new $("{subarray} can contain only one column");var s=mn(i.parser,{cols:r,hskipBeforeAndAfter:!1,arraystretch:.5},"script");if(s.body.length>0&&s.body[0].length>1)throw new $("{subarray} can contain only one column");return s},htmlBuilder:Ve,mathmlBuilder:ze}),He({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(i){var e=mn(i.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Lr(i.envName));return{type:"leftright",mode:i.mode,body:[e],left:i.envName.includes("r")?".":"\\{",right:i.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Ve,mathmlBuilder:ze}),He({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:il,htmlBuilder:Ve,mathmlBuilder:ze}),He({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(i){I_.has(i.envName)&&ca(i);var n={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:$r(i.envName),emptySingleRow:!0,leqno:i.parser.settings.leqno};return mn(i.parser,n,"display")},htmlBuilder:Ve,mathmlBuilder:ze}),He({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:il,htmlBuilder:Ve,mathmlBuilder:ze}),He({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(i){ca(i);var n={autoTag:$r(i.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:i.parser.settings.leqno};return mn(i.parser,n,"display")},htmlBuilder:Ve,mathmlBuilder:ze}),He({type:"array",names:["CD"],props:{numArgs:0},handler:i=>(ca(i),function p_(i){var n=[];for(i.gullet.beginGroup(),i.gullet.macros.set("\\cr","\\\\\\relax"),i.gullet.beginGroup();;){n.push(i.parseExpression(!1,"\\\\")),i.gullet.endGroup(),i.gullet.beginGroup();var e=i.fetch().text;if("&"!==e&&"\\\\"!==e){if("\\end"===e){0===n[n.length-1].length&&n.pop();break}throw new $("Expected \\\\ or \\cr or \\end",i.nextToken)}i.consume()}for(var a=[],r=[a],o=0;o<n.length;o++){for(var s=n[o],l={type:"styling",body:[],mode:"math",style:"display",resetFont:!0},c=0;c<s.length;c++)if(Ns(s[c])){a.push(l);var d=ea(s[c+=1]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(d)){if(!"<>AV".includes(d))throw new $('Expected one of "<>AV=|." after @',s[c]);for(var _=0;_<2;_++){for(var h=!0,g=c+1;g<s.length;g++){if(u_(s[g],d)){h=!1,c=g;break}if(Ns(s[g]))throw new $("Missing a "+d+" character to complete a CD arrow.",s[g]);u[_].body.push(s[g])}if(h)throw new $("Missing a "+d+" character to complete a CD arrow.",s[c])}}
1var b=__(d,u,i);a.push({type:"styling",body:[b],mode:"math",style:"display",resetFont:!0}),l={type:"styling",body:[],mode:"math",style:"display",resetFont:!0}}else l.body.push(s[c]);o%2==0?a.push(l):a.shift(),r.push(a=[])}return i.gullet.endGroup(),i.gullet.endGroup(),{type:"array",mode:"math",body:r,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(r[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(r.length+1).fill([])}}(i.parser)),htmlBuilder:Ve,mathmlBuilder:ze}),x("\\nonumber","\\gdef\\@eqnsw{0}"),x("\\notag","\\nonumber"),Y({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(i,n){throw new $(i.funcName+" valid only within array environment")}});var al=tl;Y({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(i,n){var{parser:e,funcName:a}=i,r=n[0];if("ordgroup"!==r.type)throw new $("Invalid environment name",r);for(var o="",s=0;s<r.body.length;++s)o+=lt(r.body[s],"textord").text;if("\\begin"===a){if(!al.hasOwnProperty(o))throw new $("No such environment: "+o,r);var l=al[o],{args:c,optArgs:d}=e.parseArguments("\\begin{"+o+"}",l),_=l.handler({mode:e.mode,envName:o,parser:e},c,d);e.expect("\\end",!1);var h=e.nextToken,g=lt(e.parseFunction(),"environment");if(g.name!==o)throw new $("Mismatch: \\begin{"+o+"} matched by \\end{"+g.name+"}",h);return _}return{type:"environment",mode:e.mode,name:o,nameGroup:r}}});var rl=(i,n)=>{var a=n.withFont(i.font);return bt(i.body,a)},ol=(i,n)=>{var a=n.withFont(i.font);return Rt(i.body,a)},sl={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Y({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(i,n)=>{var{parser:e,funcName:a}=i,r=Wi(n[0]),o=a;return o in sl&&(o=sl[o]),{type:"font",mode:e.mode,font:o.slice(1),body:r}},htmlBuilder:rl,mathmlBuilder:ol}),Y({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(i,n)=>{var{parser:e}=i,a=n[0];return{type:"mclass",mode:e.mode,mclass:aa(a),body:[{type:"font",mode:e.mode,font:"boldsymbol",body:a}],isCharacterBox:Je(a)}}}),Y({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(i,n)=>{var{parser:e,funcName:a,breakOnTokenText:r}=i,{mode:o}=e,s=e.parseExpression(!0,r);return{type:"font",mode:o,font:"math"+a.slice(1),body:{type:"ordgroup",mode:e.mode,body:s}}},htmlBuilder:rl,mathmlBuilder:ol});var ll=(i,n)=>n?{type:"styling",mode:i.mode,style:n,body:[i]}:i;Y({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(i,n)=>{var s,{parser:e,funcName:a}=i,r=n[0],o=n[1],l=null,c=null;switch(a){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,l="(",c=")";break;case"\\\\bracefrac":s=!1,l="\\{",c="\\}";break;case"\\\\brackfrac":s=!1,l="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}var d="\\cfrac"===a,u=null;return d||a.startsWith("\\d")?u="display":a.startsWith("\\t")&&(u="text"),ll({type:"genfrac",mode:e.mode,numer:r,denom:o,continued:d,hasBarLine:s,leftDelim:l,rightDelim:c,barSize:null},u)},htmlBuilder:(i,n)=>{var o,e=n.style,a=e.fracNum(),r=e.fracDen();o=n.havingStyle(a);var s=bt(i.numer,o,n);if(i.continued){var l=8.5/n.fontMetrics().ptPerEm,c=3.5/n.fontMetrics().ptPerEm;s.height=s.height<l?l:s.height,s.depth=s.depth<c?c:s.depth}o=n.havingStyle(r);var u,_,h,g,b,v,R,w,M,E,d=bt(i.denom,o,n);if(i.hasBarLine?(i.barSize?(_=Et(i.barSize,n),u=qn("frac-line",n,_)):u=qn("frac-line",n),_=u.height,h=u.height):(u=null,_=0,h=n.fontMetrics().defaultRuleThickness),e.size===at.DISPLAY.size?(g=n.fontMetrics().num1,b=_>0?3*h:7*h,v=n.fontMetrics().denom1):(_>0?(g=n.fontMetrics().num2,b=h):(g=n.fontMetrics().num3,b=3*h),v=n.fontMetrics().denom2),u){var k=n.fontMetrics().axisHeight;g-s.depth-(k+.5*_)<b&&(g+=b-(g-s.depth-(k+.5*_))),k-.5*_-(d.height-v)<b&&(v+=b-(k-.5*_-(d.height-v))),R=ft({positionType:"individualShift",children:[{type:"elem",elem:d,shift:v},{type:"elem",elem:u,shift:-(k-.5*_)},{type:"elem",elem:s,shift:-g}]})}else{var C=g-s.depth-(d.height-v);C<b&&(g+=.5*(b-C),v+=.5*(b-C)),R=ft({positionType:"individualShift",children:[{type:"elem",elem:d,shift:v},{type:"elem",elem:s,shift:-g}]})}return o=n.havingStyle(e),R.height*=o.sizeMultiplier/n.sizeMultiplier,R.depth*=o.sizeMultiplier/n.sizeMultiplier,w=e.size===at.DISPLAY.size?n.fontMetrics().delim1:e.size===at.SCRIPTSCRIPT.size?n.havingStyle(at.SCRIPT).fontMetrics().delim2:n.fontMetrics().delim2,M=null==i.leftDelim?oi(n,["mopen"]):Gr(i.leftDelim,w,!0,n.havingStyle(e),i.mode,["mopen"]),E=i.continued?D([]):null==i.rightDelim?oi(n,["mclose"]):Gr(i.rightDelim,w,!0,n.havingStyle(e),i.mode,["mclose"]),D(["mord"].concat(o.sizingClasses(n)),[M,D(["mfrac"],[R]),E],n)},mathmlBuilder:(i,n)=>{var e=new L("mfrac",[Rt(i.numer,n),Rt(i.denom,n)]);if(i.hasBarLine){if(i.barSize){var a=Et(i.barSize,n);e.setAttribute("linethickness",j(a))}}else e.setAttribute("linethickness","0px");if(null!=i.leftDelim||null!=i.rightDelim){var r=[];if(null!=i.leftDelim){var o=new L("mo",[new Vt(i.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),r.push(o)}if(r.push(e),null!=i.rightDelim){var s=new L("mo",[new Vt(i.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),r.push(s)}return Rr(r)}return e}}),Y({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(i){var r,{parser:n,funcName:e,token:a}=i;switch(e){case"\\over":r="\\frac";break;case"\\choose":r="\\binom";break;case"\\atop":r="\\\\atopfrac";break;case"\\brace":r="\\\\bracefrac";break;case"\\brack":r="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:r,token:a}}});var cl=["display","text","script","scriptscript"],dl=function(n){var e=null;return n.length>0&&(e="."===(e=n)?null:e),e};Y({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(i,n){var u,{parser:e}=i,a=n[4],r=n[5],o=Wi(n[0]),s="atom"===o.type&&"open"===o.family?dl(o.text):null,l=Wi(n[1]),c="atom"===l.type&&"close"===l.family?dl(l.text):null,d=lt(n[2],"size"),_=null;u=!!d.isBlank||(_=d.value).number>0;var h=null,g=n[3];if("ordgroup"===g.type){if(g.body.length>0){var b=lt(g.body[0],"textord");h=cl[Number(b.text)]}}else g=lt(g,"textord"),h=cl[Number(g.text)];return ll({type:"genfrac",mode:e.mode,numer:a,denom:r,continued:!1,hasBarLine:u,barSize:_,leftDelim:s,rightDelim:c},h)}}),Y({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infi
1x:!0},handler(i,n){var{parser:e,token:r}=i;return{type:"infix",mode:e.mode,replaceWith:"\\\\abovefrac",size:lt(n[0],"size").value,token:r}}}),Y({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(i,n)=>{var{parser:e}=i,r=n[0],o=lt(n[1],"infix").size;if(!o)throw new Error("\\\\abovefrac expected size, but got "+String(o));return{type:"genfrac",mode:e.mode,numer:r,denom:n[2],continued:!1,hasBarLine:o.number>0,barSize:o,leftDelim:null,rightDelim:null}}});var ul=(i,n)=>{var a,r,e=n.style;"supsub"===i.type?(a=i.sup?bt(i.sup,n.havingStyle(e.sup()),n):bt(i.sub,n.havingStyle(e.sub()),n),r=lt(i.base,"horizBrace")):r=lt(i,"horizBrace");var l,o=bt(r.base,n.havingBaseStyle(at.DISPLAY)),s=ta(r,n);if(l=ft(r.isOver?{positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}:{positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:o}]}),a){var c=D(["minner",r.isOver?"mover":"munder"],[l],n);l=ft(r.isOver?{positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:a}]}:{positionType:"bottom",positionData:c.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:c}]})}return D(["minner",r.isOver?"mover":"munder"],[l],n)};Y({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(i,n){var{parser:e,funcName:a}=i;return{type:"horizBrace",mode:e.mode,label:a,isOver:a.includes("\\over"),base:n[0]}},htmlBuilder:ul,mathmlBuilder:(i,n)=>{var e=Zi(i.label);return new L(i.isOver?"mover":"munder",[Rt(i.base,n),e])}}),Y({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(i,n)=>{var{parser:e}=i,a=n[1],r=lt(n[0],"url").url;return e.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:e.mode,href:r,body:Ht(a)}:e.formatUnsupportedCmd("\\href")},htmlBuilder:(i,n)=>{var e=Kt(i.body,n,!1);return function(n,e,a,r){var o=new Bi(n,[],a,r);return gr(o),o}(i.href,0,e,n)},mathmlBuilder:(i,n)=>{var e=hn(i.body,n);return e instanceof L||(e=new L("mrow",[e])),e.setAttribute("href",i.href),e}}),Y({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(i,n)=>{var{parser:e}=i,a=lt(n[0],"url").url;if(!e.settings.isTrusted({command:"\\url",url:a}))return e.formatUnsupportedCmd("\\url");for(var r=[],o=0;o<a.length;o++){var s=a[o];"~"===s&&(s="\\textasciitilde"),r.push({type:"textord",mode:"text",text:s})}return{type:"href",mode:e.mode,href:a,body:Ht({type:"text",mode:e.mode,font:"\\texttt",body:r})}}}),Y({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(i,n){var{parser:e}=i;return{type:"hbox",mode:e.mode,body:Ht(n[0])}},htmlBuilder(i,n){var e=Kt(i.body,n.withFont(""),!1);return tn(e)},mathmlBuilder:(i,n)=>new L("mrow",ke(i.body,n.withFont("")))}),Y({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(i,n)=>{var{parser:e,funcName:a}=i,o=lt(n[0],"raw").string,s=n[1];e.settings.strict&&e.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,c={};switch(a){case"\\htmlClass":c.class=o,l={command:"\\htmlClass",class:o};break;case"\\htmlId":c.id=o,l={command:"\\htmlId",id:o};break;case"\\htmlStyle":c.style=o,l={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var d=o.split(","),u=0;u<d.length;u++){var _=d[u],h=_.indexOf("=");if(h<0)throw new $("\\htmlData key/value '"+_+"' missing equals sign");var g=_.slice(0,h),b=_.slice(h+1);c["data-"+g.trim()]=b}l={command:"\\htmlData",attributes:c};break;default:throw new Error("Unrecognized html command")}return e.settings.isTrusted(l)?{type:"html",mode:e.mode,attributes:c,body:Ht(s)}:e.formatUnsupportedCmd(a)},htmlBuilder:(i,n)=>{var e=Kt(i.body,n,!1),a=["enclosing"];i.attributes.class&&a.push(...i.attributes.class.trim().split(/\s+/));var r=D(a,e,n);for(var o in i.attributes)"class"!==o&&i.attributes.hasOwnProperty(o)&&r.setAttribute(o,i.attributes[o]);return r},mathmlBuilder:(i,n)=>hn(i.body,n)}),Y({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(i,n)=>{var{parser:e}=i;return{type:"htmlmathml",mode:e.mode,html:Ht(n[0]),mathml:Ht(n[1])}},htmlBuilder:(i,n)=>{var e=Kt(i.html,n,!1);return tn(e)},mathmlBuilder:(i,n)=>hn(i.mathml,n)});var Nr=function(n){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(n))return{number:+n,unit:"bp"};var e=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n);if(!e)throw new $("Invalid size: '"+n+"' in \\includegraphics");var a={number:+(e[1]+e[2]),unit:e[3]};if(!is(a))throw new $("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};Y({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(i,n,e)=>{var{parser:a}=i,r={number:0,unit:"em"},o={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(e[0])for(var d=lt(e[0],"raw").string.split(","),u=0;u<d.length;u++){var _=d[u].split("=");if(2===_.length){var h=_[1].trim();switch(_[0].trim()){case"alt":l=h;break;case"width":r=Nr(h);break;case"height":o=Nr(h);break;case"totalheight":s=Nr(h);break;default:throw new $("Invalid key: '"+_[0]+"' in \\includegraphics.")}}}var g=lt(n[0],"url").url;return""===l&&(l=(l=(l=g).replace(/^.*[\\/]/,"")).substring(0,l.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:g})?{type:"includegraphics",mode:a.mode,alt:l,width:r,height:o,totalheight:s,src:g}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(i,n)=>{var e=Et(i.height,n),a=0;i.totalheight.number>0&&(a=Et(i.totalheight,n)-e);var r=0;i.width.number>0&&(r=Et(i.width,n));
1var o={height:j(e+a)};r>0&&(o.width=j(r)),a>0&&(o.verticalAlign=j(-a));var s=new Mu(i.src,i.alt,o);return s.height=e,s.depth=a,s},mathmlBuilder:(i,n)=>{var e=new L("mglyph",[]);e.setAttribute("alt",i.alt);var a=Et(i.height,n),r=0;if(i.totalheight.number>0&&(r=Et(i.totalheight,n)-a,e.setAttribute("valign",j(-r))),e.setAttribute("height",j(a+r)),i.width.number>0){var o=Et(i.width,n);e.setAttribute("width",j(o))}return e.setAttribute("src",i.src),e}}),Y({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(i,n){var{parser:e,funcName:a}=i,r=lt(n[0],"size");if(e.settings.strict){var s="mu"===r.value.unit;"m"===a[1]?(s||e.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, not "+r.value.unit+" units"),"math"!==e.mode&&e.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):s&&e.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:e.mode,dimension:r.value}},htmlBuilder:(i,n)=>Cs(i.dimension,n),mathmlBuilder(i,n){var e=Et(i.dimension,n);return new Fs(e)}}),Y({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(i,n)=>{var{parser:e,funcName:a}=i,r=n[0];return{type:"lap",mode:e.mode,alignment:a.slice(5),body:r}},htmlBuilder:(i,n)=>{var e;"clap"===i.alignment?(e=D([],[bt(i.body,n)]),e=D(["inner"],[e],n)):e=D(["inner"],[bt(i.body,n)]);var a=D(["fix"],[]),r=D([i.alignment],[e,a],n),o=D(["strut"]);return o.style.height=j(r.height+r.depth),r.depth&&(o.style.verticalAlign=j(-r.depth)),r.children.unshift(o),r=D(["thinbox"],[r],n),D(["mord","vbox"],[r],n)},mathmlBuilder:(i,n)=>{var e=new L("mpadded",[Rt(i.body,n)]);return"rlap"!==i.alignment&&e.setAttribute("lspace",("llap"===i.alignment?"-1":"-0.5")+"width"),e.setAttribute("width","0px"),e}}),Y({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(i,n){var{funcName:e,parser:a}=i,r=a.mode;a.switchMode("math");var o="\\("===e?"\\)":"$",s=a.parseExpression(!1,o);return a.expect(o),a.switchMode(r),{type:"styling",mode:a.mode,style:"text",resetFont:!0,body:s}}}),Y({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(i,n){throw new $("Mismatched "+i.funcName)}});var _l=(i,n)=>{switch(n.style.size){case at.DISPLAY.size:return i.display;case at.TEXT.size:return i.text;case at.SCRIPT.size:return i.script;case at.SCRIPTSCRIPT.size:return i.scriptscript;default:return i.text}};Y({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(i,n)=>{var{parser:e}=i;return{type:"mathchoice",mode:e.mode,display:Ht(n[0]),text:Ht(n[1]),script:Ht(n[2]),scriptscript:Ht(n[3])}},htmlBuilder:(i,n)=>{var e=_l(i,n),a=Kt(e,n,!1);return tn(a)},mathmlBuilder:(i,n)=>{var e=_l(i,n);return hn(e,n)}});var pl=(i,n,e,a,r,o,s)=>{i=D([],[i]);var c,d,h,l=e&&Je(e);if(n){var u=bt(n,a.havingStyle(r.sup()),a);d={elem:u,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-u.depth)}}if(e){var _=bt(e,a.havingStyle(r.sub()),a);c={elem:_,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-_.height)}}if(d&&c){var g=a.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+i.depth+s;h=ft({positionType:"bottom",positionData:g,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:j(-o)},{type:"kern",size:c.kern},{type:"elem",elem:i},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:j(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else if(c)h=ft({positionType:"top",positionData:i.height-s,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:j(-o)},{type:"kern",size:c.kern},{type:"elem",elem:i}]});else{if(!d)return i;h=ft({positionType:"bottom",positionData:i.depth+s,children:[{type:"elem",elem:i},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:j(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}var R=[h];if(c&&0!==o&&!l){var C=D(["mspace"],[],a);C.style.marginRight=j(o),R.unshift(C)}return D(["mop","op-limits"],R,a)},hl=new Set(["\\smallint"]),Vn=(i,n)=>{var e,a,o,r=!1;"supsub"===i.type?(e=i.sup,a=i.sub,o=lt(i.base,"op"),r=!0):o=lt(i,"op");var c,d,s=n.style,l=!1;if(s.size===at.DISPLAY.size&&o.symbol&&!hl.has(o.name)&&(l=!0),o.symbol){var u=l?"Size2-Regular":"Size1-Regular",_="";if(("\\oiint"===o.name||"\\oiiint"===o.name)&&(_=o.name.slice(1),o.name="oiint"===_?"\\iint":"\\iiint"),d=(c=_e(o.name,u,"math",n,["mop","op-symbol",l?"large-op":"small-op"])).italic,_.length>0){var h=ys(_+"Size"+(l?"2":"1"),n);c=ft({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:h,shift:l?.08:0}]}),o.name="\\"+_,c.classes.unshift("mop"),c.italic=d}}else if(o.body){var g=Kt(o.body,n,!0);1===g.length&&g[0]instanceof Te?(c=g[0]).classes[0]="mop":c=D(["mop"],g,n)}else{for(var b=[],v=1;v<o.name.length;v++)b.push(mr(o.name[v],o.mode,n));c=D(["mop"],b,n)}var k,R=0,C=0;return(c instanceof Te||"\\oiint"===o.name||"\\oiiint"===o.name)&&!o.suppressBaseShift&&(R=(c.height-c.depth)/2-n.fontMetrics().axisHeight,C=null!=(k=c.italic)?k:0),r?pl(c,e,a,n,s,C,R):(R&&(c.style.position="relative",c.style.top=j(R)),c)},ci=(i,n)=>{var e;if(i.symbol)e=new L("mo",[Ge(i.name,i.mode)]),hl.has(i.name)&&e.setAttribute("largeop","false");else if(i.body)e=new L("mo",ke(i.body,n));else{e=new L("mi",[new Vt(i.name.slice(1))]);var a=new L("mo",[Ge("\u2061","text")]);e=i.parentIsSupSub?new L("mrow",[e,a]):ks([e,a])}return e},S_={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a06":"\\bigsqcup"};Y({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:(i,n)=>{var{parser:e,funcName:a}=i,r=a;return 1===r.length&&(r=S_[r]),{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Vn,mathmlBuilder:ci}),Y({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(i,n)=>{var{parser:e}=i;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ht(n[0])}},htmlBuilder:Vn,mathmlBuilder:ci});var A_={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint"};Y({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(i){var{parser:n,funcName:e}=i;return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:e}},htmlBuilder:Vn,mathmlBuilder:ci}),Y({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(i){var{parser:n,funcName:e}=i;return{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:e}},htmlBuilder:Vn,mathmlBuilder:ci}),Y({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230"],props:{numArgs:0,allowedInArgument:!0},handler(i){var{parser:n,funcName:e}=i,a=e;return 1===a.length&&(a=A_[a]),{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Vn,mathmlBuilder:ci});var ml=(i,n)=>{var e,a,o,s,r=!1;if("supsub"===i.type?(e=i.sup,a=i.sub,o=lt(i.base,"operatorname"),r=!0):o=lt(i,"operatorname"),o.body.length>0){for(var l=(o.body.map(_=>{var h="text"in _?_.text:void 0;return"string"==typeof h?{type:"textord",mode:_.mode,text:h}:_})),c=Kt(l,n.withFont("mathrm"),!0),d=0;d<c.length;d++){var u=c[d];u instanceof Te&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=D(["mop"],c,n)}else s=D(["mop"],[],n);return r?pl(s,e,a,n,n.style,0,0):s};function gl(i,n,e){for(var a=Kt(i,n,!1),r=n.sizeMultiplier/e.sizeMultiplier,o=0;o<a.length;o++){var s=a[o].classes.indexOf("sizing");s<0?Array.prototype.push.apply(a[o].classes,n.sizingClasses(e)):a[o].classes[s+1]==="reset-size"+n.size&&(a[o].classes[s+1]="reset-size"+e.size),a[o].height*=r,a[o].depth*=r}return tn(a)}Y({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(i,n)=>{var{parser:e,funcName:a}=i;return{type:"operatorname",mode:e.mode,body:Ht(n[0]),alwaysHandleSupSub:"\\operatornamewithlimits"===a,limits:!1,parentIsSupSub:!1}},htmlBuilder:ml,mathmlBuilder:(i,n)=>{for(var e=ke(i.body,n.withFont("mathrm")),a=!0,r=0;r<e.length;r++){var o=e[r];if(!(o instanceof Fs))if(o instanceof L)switch(o.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":var s=o.children[0];1===o.children.length&&s instanceof Vt?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break;default:a=!1}else a=!1}if(a){var l=e.map(u=>u.toText()).join("");e=[new Vt(l)]}var c=new L("mi",e);c.setAttribute("mathvariant","normal");var d=new L("mo",[Ge("\u2061","text")]);return i.parentIsSupSub?new L("mrow",[c,d]):ks([c,d])}}),x("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),wn({type:"ordgroup",htmlBuilder:(i,n)=>i.semisimple?tn(Kt(i.body,n,!1)):D(["mord"],Kt(i.body,n,!0),n),mathmlBuilder:(i,n)=>hn(i.body,n,!0)}),Y({type:"overline",names:["\\overline"],props:{numArgs:1},handler(i,n){var{parser:e}=i;return{type:"overline",mode:e.mode,body:n[0]}},htmlBuilder(i,n){var e=bt(i.body,n.havingCrampedStyle()),a=qn("overline-line",n),r=n.fontMetrics().defaultRuleThickness,o=ft({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:3*r},{type:"elem",elem:a},{type:"kern",size:r}]});return D(["mord","overline"],[o],n)},mathmlBuilder(i,n){var e=new L("mo",[new Vt("\u203e")]);e.setAttribute("stretchy","true");var a=new L("mover",[Rt(i.body,n),e]);return a.setAttribute("accent","true"),a}}),Y({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(i,n)=>{var{parser:e}=i;return{type:"phantom",mode:e.mode,body:Ht(n[0])}},htmlBuilder:(i,n)=>{var e=Kt(i.body,n.withPhantom(),!1);return tn(e)},mathmlBuilder:(i,n)=>{var e=ke(i.body,n);return new L("mphantom",e)}}),x("\\hphantom","\\smash{\\phantom{#1}}"),Y({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(i,n)=>{var{parser:e}=i;return{type:"vphantom",mode:e.mode,body:n[0]}},htmlBuilder:(i,n)=>
1{var e=D(["inner"],[bt(i.body,n.withPhantom())]),a=D(["fix"],[]);return D(["mord","rlap"],[e,a],n)},mathmlBuilder:(i,n)=>{var e=ke(Ht(i.body),n),a=new L("mphantom",e),r=new L("mpadded",[a]);return r.setAttribute("width","0px"),r}}),Y({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(i,n){var{parser:e}=i,a=lt(n[0],"size").value;return{type:"raisebox",mode:e.mode,dy:a,body:n[1]}},htmlBuilder(i,n){var e=bt(i.body,n),a=Et(i.dy,n);return ft({positionType:"shift",positionData:-a,children:[{type:"elem",elem:e}]})},mathmlBuilder(i,n){var e=new L("mpadded",[Rt(i.body,n)]);return e.setAttribute("voffset",i.dy.number+i.dy.unit),e}}),Y({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(i){var{parser:n}=i;return{type:"internal",mode:n.mode}}}),Y({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(i,n,e){var{parser:a}=i,r=e[0],o=lt(n[0],"size"),s=lt(n[1],"size");return{type:"rule",mode:a.mode,shift:r&&lt(r,"size").value,width:o.value,height:s.value}},htmlBuilder(i,n){var e=D(["mord","rule"],[],n),a=Et(i.width,n),r=Et(i.height,n),o=i.shift?Et(i.shift,n):0;return e.style.borderRightWidth=j(a),e.style.borderTopWidth=j(r),e.style.bottom=j(o),e.width=a,e.height=r+o,e.depth=-o,e.maxFontSize=1.125*r*n.sizeMultiplier,e},mathmlBuilder(i,n){var e=Et(i.width,n),a=Et(i.height,n),r=i.shift?Et(i.shift,n):0,o=n.color&&n.getColor()||"black",s=new L("mspace");s.setAttribute("mathbackground",o),s.setAttribute("width",j(e)),s.setAttribute("height",j(a));var l=new L("mpadded",[s]);return r>=0?l.setAttribute("height",j(r)):(l.setAttribute("height",j(r)),l.setAttribute("depth",j(-r))),l.setAttribute("voffset",j(r)),l}});var fl=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];Y({type:"sizing",names:fl,props:{numArgs:0,allowedInText:!0},handler:(i,n)=>{var{breakOnTokenText:e,funcName:a,parser:r}=i,o=r.parseExpression(!1,e);return{type:"sizing",mode:r.mode,size:fl.indexOf(a)+1,body:o}},htmlBuilder:(i,n)=>{var e=n.havingSize(i.size);return gl(i.body,e,n)},mathmlBuilder:(i,n)=>{var e=n.havingSize(i.size),a=ke(i.body,e),r=new L("mstyle",a);return r.setAttribute("mathsize",j(e.sizeMultiplier)),r}}),Y({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(i,n,e)=>{var{parser:a}=i,r=!1,o=!1,s=e[0]&&lt(e[0],"ordgroup");if(s)for(var l,c=0;c<s.body.length;++c)if("t"===(l=ea(s.body[c]).text))r=!0;else{if("b"!==l){r=!1,o=!1;break}o=!0}else r=!0,o=!0;return{type:"smash",mode:a.mode,body:n[0],smashHeight:r,smashDepth:o}},htmlBuilder:(i,n)=>{var e=D([],[bt(i.body,n)]);if(!i.smashHeight&&!i.smashDepth)return e;if(i.smashHeight&&(e.height=0),i.smashDepth&&(e.depth=0),i.smashHeight&&i.smashDepth)return D(["mord","smash"],[e],n);if(e.children)for(var a=0;a<e.children.length;a++)i.smashHeight&&(e.children[a].height=0),i.smashDepth&&(e.children[a].depth=0);var r=ft({positionType:"firstBaseline",children:[{type:"elem",elem:e}]});return D(["mord"],[r],n)},mathmlBuilder:(i,n)=>{var e=new L("mpadded",[Rt(i.body,n)]);return i.smashHeight&&e.setAttribute("height","0px"),i.smashDepth&&e.setAttribute("depth","0px"),e}}),Y({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(i,n,e){var{parser:a}=i;return{type:"sqrt",mode:a.mode,body:n[0],index:e[0]}},htmlBuilder(i,n){var e=bt(i.body,n.havingCrampedStyle());0===e.height&&(e.height=n.fontMetrics().xHeight),e=Hn(e,n);var r=n.fontMetrics().defaultRuleThickness,o=r;
1n.style.id<at.TEXT.id&&(o=n.fontMetrics().xHeight);var s=r+o/4,l=e.height+e.depth+s+r,{span:c,ruleWidth:d,advanceWidth:u}=function(n,e){var l,c,d,u,_,a=e.havingBaseSizing(),r=Js("\\surd",n*a.sizeMultiplier,Us,a),o=a.sizeMultiplier,s=Math.max(0,e.minRuleThickness-e.fontMetrics().sqrtRuleThickness);return"small"===r.type?(n<1?o=1:n<1.4&&(o=.7),d=(1+s)/o,(l=Pr("sqrtMain",c=(1+s+.08)/o,u=1e3+1e3*s+80,s,e)).style.minWidth="0.853em",_=.833/o):"large"===r.type?(d=(li[r.size]+s)/o,(l=Pr("sqrtSize"+r.size,c=(li[r.size]+s+.08)/o,u=1080*li[r.size],s,e)).style.minWidth="1.02em",_=1/o):(c=n+s+.08,d=n+s,u=Math.floor(1e3*n+s)+80,(l=Pr("sqrtTall",c,u,s,e)).style.minWidth="0.742em",_=1.056),l.height=d,l.style.height=j(c),{span:l,advanceWidth:_,ruleWidth:(e.fontMetrics().sqrtRuleThickness+s)*o}}(l,n),_=c.height-d;_>e.height+e.depth+s&&(s=(s+_-e.height-e.depth)/2);var h=c.height-e.height-s-d;e.style.paddingLeft=j(u);var g=ft({positionType:"firstBaseline",children:[{type:"elem",elem:e,wrapperClasses:["svg-align"]},{type:"kern",size:-(e.height+h)},{type:"elem",elem:c},{type:"kern",size:d}]});if(i.index){var b=n.havingStyle(at.SCRIPTSCRIPT),v=bt(i.index,b,n),C=ft({positionType:"shift",positionData:-.6*(g.height-g.depth),children:[{type:"elem",elem:v}]}),k=D(["root"],[C]);return D(["mord","sqrt"],[k,g],n)}return D(["mord","sqrt"],[g],n)},mathmlBuilder(i,n){var{body:e,index:a}=i;return a?new L("mroot",[Rt(e,n),Rt(a,n)]):new L("msqrt",[Rt(e,n)])}});var jr={display:at.DISPLAY,text:at.TEXT,script:at.SCRIPT,scriptscript:at.SCRIPTSCRIPT};Y({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(i,n){var{breakOnTokenText:e,funcName:a,parser:r}=i,o=r.parseExpression(!0,e),s=a.slice(1,a.length-5);if(!function G_(i){return i in jr}(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:r.mode,style:s,body:o}},htmlBuilder(i,n){var a=n.havingStyle(jr[i.style]);return i.resetFont&&(a=a.withFont("")),gl(i.body,a,n)},mathmlBuilder(i,n){var a=n.havingStyle(jr[i.style]);i.resetFont&&(a=a.withFont(""));var r=ke(i.body,a),o=new L("mstyle",r),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[i.style];return o.setAttribute("scriptlevel",l[0]),o.setAttribute("displaystyle",l[1]),o}}),wn({type:"supsub",htmlBuilder(i,n){var e=function(n,e){var a=n.base;return a?"op"===a.type?a.limits&&(e.style.size===at.DISPLAY.size||a.alwaysHandleSupSub)?Vn:null:"operatorname"===a.type?a.alwaysHandleSupSub&&(e.style.size===at.DISPLAY.size||a.limits)?ml:null:"accent"===a.type?Je(a.base)?Ir:null:"horizBrace"===a.type&&!n.sub===a.isOver?ul:null:null}(i,n);if(e)return e(i,n);var l,c,v,{base:a,sup:r,sub:o}=i,s=bt(a,n),d=n.fontMetrics(),u=0,_=0,h=a&&Je(a);if(r){var g=n.havingStyle(n.style.sup());l=bt(r,g,n),h||(u=s.height-g.fontMetrics().supDrop*g.sizeMultiplier/n.sizeMultiplier)}if(o){var b=n.havingStyle(n.style.sub());c=bt(o,b,n),h||(_=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/n.sizeMultiplier)}v=n.style===at.DISPLAY?d.sup1:n.style.cramped?d.sup3:d.sup2;var w,M,C=j(.5/d.ptPerEm/n.sizeMultiplier),k=null;if(c&&(s instanceof Te||i.base&&"op"===i.base.type&&i.base.name&&("\\oiint"===i.base.name||"\\oiiint"===i.base.name))&&(k=j(-(null!=(w=s.italic)?w:0))),l&&c){u=Math.max(u,v,l.depth+.25*d.xHeight),_=Math.max(_,d.sub2);var P=4*d.defaultRuleThickness;if(u-l.depth-(c.height-_)<P){_=P-(u-l.depth)+c.height;var N=.8*d.xHeight-(u-l.depth);N>0&&(u+=N,_-=N)}M=ft({positionType:"individualShift",children:[{type:"elem",elem:c,shift:_,marginRight:C,marginLeft:k},{type:"elem",elem:l,shift:-u,marginRight:C}]})}else if(c)_=Math.max(_,d.sub1,c.height-.8*d.xHeight),M=ft({positionType:"shift",positionData:_,children:[{type:"elem",elem:c,marginLeft:k,marginRight:C}]});else{if(!l)throw new Error("supsub must have either sup or sub.");u=Math.max(u,v,l.depth+.25*d.xHeight),M=ft({positionType:"shift",positionData:-u,children:[{type:"elem",elem:l,marginRight:C}]})}var Z=xr(s,"right")||"mord";return D([Z],[s,D(["msupsub"],[M])],n)},mathmlBuilder(i,n){var a,e=!1;i.base&&"horizBrace"===i.base.type&&!!i.sup===i.base.isOver&&(e=!0,a=i.base.isOver),i.base&&("op"===i.base.type||"operatorname"===i.base.type)&&(i.base.parentIsSupSub=!0);var s,o=[Rt(i.base,n)];if(i.sub&&o.push(Rt(i.sub,n)),i.sup&&o.push(Rt(i.sup,n)),e)s=a?"mover":"munder";else if(i.sub)if(i.sup){var d=i.base;s=d&&"op"===d.type&&d.limits&&n.style===at.DISPLAY||d&&"operatorname"===d.type&&d.alwaysHandleSupSub&&(n.style===at.DISPLAY||d.limits)?"munderover":"msubsup"}else{var c=i.base;s=c&&"op"===c.type&&c.limits&&(n.style===at.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||n.style===at.DISPLAY)?"munder":"msub"}else{var l=i.base;s=l&&"op"===l.type&&l.limits&&(n.style===at.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||n.style===at.DISPLAY)?"mover":"msup"}return new L(s,o)}}),wn({type:"atom",htmlBuilder:(i,n)=>mr(i.text,i.mode,n,["m"+i.family]),mathmlBuilder(i,n){var e=new L("mo",[Ge(i.text,i.mode)]);if("bin"===i.family){var a=yr(i,n);"bold-italic"===a&&e.setAttribute("mathvariant",a)}else"punct"===i.family?e.setAttribute("separator","true"):("open"===i.family||"close"===i.family)&&e.setAttribute("stretchy","false");return e}});var bl={mi:"italic",mn:"normal",mtext:"normal"};wn({type:"mathord",htmlBuilder:(i,n)=>zi(i,n,"mathord"),mathmlBuilder(i,n){var e=new L("mi",[Ge(i.text,i.mode,n)]),a=yr(i,n)||"italic";return a!==bl[e.type]&&e.setAttribute("mathvariant",a),e}}),wn({type:"textord",htmlBuilder:(i,n)=>zi(i,n,"textord"),mathmlBuilder(i,n){var r,e=Ge(i.text,i.mode,n),a=yr(i,n)||"normal";return r="text"===i.mode?new L("mtext",[e]):/[0-9]/.test(i.text)?new L("mn",[e]):new L("\\prime"===i.text?"mo":"mi",[e]),a!==bl[r.type]&&r.setAttribute("mathvariant",a),r}});var Or={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Br={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};
1wn({type:"spacing",htmlBuilder(i,n){if(Br.hasOwnProperty(i.text)){var e=Br[i.text].className||"";if("text"===i.mode){var a=zi(i,n,"textord");return a.classes.push(e),a}return D(["mspace",e],[mr(i.text,i.mode,n)],n)}if(Or.hasOwnProperty(i.text))return D(["mspace",Or[i.text]],[],n);throw new $('Unknown type of space "'+i.text+'"')},mathmlBuilder(i,n){if(!Br.hasOwnProperty(i.text)){if(Or.hasOwnProperty(i.text))return new L("mspace");throw new $('Unknown type of space "'+i.text+'"')}return new L("mtext",[new Vt("\xa0")])}});var vl=()=>{var i=new L("mtd",[]);return i.setAttribute("width","50%"),i};wn({type:"tag",mathmlBuilder(i,n){var e=new L("mtable",[new L("mtr",[vl(),new L("mtd",[hn(i.body,n)]),vl(),new L("mtd",[hn(i.tag,n)])])]);return e.setAttribute("width","100%"),e}});var xl={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Cl={"\\textbf":"textbf","\\textmd":"textmd"},$_={"\\textit":"textit","\\textup":"textup"},Rl=(i,n)=>{var e=i.font;return e?xl[e]?n.withTextFontFamily(xl[e]):Cl[e]?n.withTextFontWeight(Cl[e]):n.withTextFontShape("\\emph"===e?"textit"===n.fontShape?"textup":"textit":$_[e]):n};Y({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(i,n){var{parser:e,funcName:a}=i;return{type:"text",mode:e.mode,body:Ht(n[0]),font:a}},htmlBuilder(i,n){var e=Rl(i,n),a=Kt(i.body,e,!0);return D(["mord","text"],a,e)},mathmlBuilder(i,n){var e=Rl(i,n);return hn(i.body,e)}}),Y({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(i,n){var{parser:e}=i;return{type:"underline",mode:e.mode,body:n[0]}},htmlBuilder(i,n){var e=bt(i.body,n),a=qn("underline-line",n),r=n.fontMetrics().defaultRuleThickness,o=ft({positionType:"top",positionData:e.height,children:[{type:"kern",size:r},{type:"elem",elem:a},{type:"kern",size:3*r},{type:"elem",elem:e}]});return D(["mord","underline"],[o],n)},mathmlBuilder(i,n){var e=new L("mo",[new Vt("\u203e")]);e.setAttribute("stretchy","true");var a=new L("munder",[Rt(i.body,n),e]);return a.setAttribute("accentunder","true"),a}}),Y({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(i,n){var{parser:e}=i;return{type:"vcenter",mode:e.mode,body:n[0]}},htmlBuilder(i,n){var e=bt(i.body,n),a=n.fontMetrics().axisHeight;return ft({positionType:"shift",positionData:.5*(e.height-a-(e.depth+a)),children:[{type:"elem",elem:e}]})},mathmlBuilder(i,n){var e=new L("mpadded",[Rt(i.body,n)],["vcenter"]);return new L("mrow",[e])}}),Y({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(i,n,e){throw new $("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(i,n){for(var e=yl(i),a=[],r=n.havingStyle(n.style.text()),o=0;o<e.length;o++){var s=e[o];"~"===s&&(s="\\textasciitilde"),a.push(_e(s,"Typewriter-Regular",i.mode,r,["mord","texttt"]))}return D(["mord","text"].concat(r.sizingClasses(n)),xs(a),r)},mathmlBuilder(i,n){var e=new Vt(yl(i)),a=new L("mtext",[e]);return a.setAttribute("mathvariant","monospace"),a}});var yl=i=>i.body.replace(/ /g,i.star?"\u2423":"\xa0"),gn=Ts,B_=new RegExp("[\u0300-\u036f]+$");class Il{constructor(n,e){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=n,this.settings=e,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff][\u0300-\u036f]*|[\ud800-\udbff][\udc00-\udfff][\u0300-\u036f]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}
1setCatcode(n,e){this.catcodes[n]=e}lex(){var n=this.input,e=this.tokenRegex.lastIndex;if(e===n.length)return new Fe("EOF",new fe(this,e,e));var a=this.tokenRegex.exec(n);if(null===a||a.index!==e)throw new $("Unexpected character: '"+n[e]+"'",new Fe(n[e],new fe(this,e,e+1)));var r=a[6]||a[3]||(a[2]?"\\ ":" ");if(14===this.catcodes[r]){var o=n.indexOf("\n",this.tokenRegex.lastIndex);return-1===o?(this.tokenRegex.lastIndex=n.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new Fe(r,new fe(this,e,this.tokenRegex.lastIndex))}}class X_{constructor(n,e){void 0===n&&(n={}),void 0===e&&(e={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=e,this.builtins=n,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new $("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var n=this.undefStack.pop();for(var e in n)n.hasOwnProperty(e)&&(null==n[e]?delete this.current[e]:this.current[e]=n[e])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(n){return this.current.hasOwnProperty(n)||this.builtins.hasOwnProperty(n)}get(n){return this.current.hasOwnProperty(n)?this.current[n]:this.builtins[n]}set(n,e,a){if(void 0===a&&(a=!1),a){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][n];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][n]=e)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(n)&&(o[n]=this.current[n])}null==e?delete this.current[n]:this.current[n]=e}}var q_=el;x("\\noexpand",function(i){var n=i.popToken();return i.isExpandable(n.text)&&(n.noexpand=!0,n.treatAsRelax=!0),{tokens:[n],numArgs:0}}),x("\\expandafter",function(i){var n=i.popToken();return i.expandOnce(!0),{tokens:[n],numArgs:0}}),x("\\@firstoftwo",function(i){return{tokens:i.consumeArgs(2)[0],numArgs:0}}),x("\\@secondoftwo",function(i){return{tokens:i.consumeArgs(2)[1],numArgs:0}}),x("\\@ifnextchar",function(i){var n=i.consumeArgs(3);i.consumeSpaces();var e=i.future();return 1===n[0].length&&n[0][0].text===e.text?{tokens:n[1],numArgs:0}:{tokens:n[2],numArgs:0}}),x("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),x("\\TextOrMath",function(i){var n=i.consumeArgs(2);return"text"===i.mode?{tokens:n[0],numArgs:0}:{tokens:n[1],numArgs:0}});var kl={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};x("\\char",function(i){var e,n=i.popToken(),a=0;if("'"===n.text)e=8,n=i.popToken();else if('"'===n.text)e=16,n=i.popToken();else if("`"===n.text)if("\\"===(n=i.popToken()).text[0])a=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new $("\\char` missing argument");a=n.text.charCodeAt(0)}else e=10;if(e){if(null==(a=kl[n.text])||a>=e)throw new $("Invalid base-"+e+" digit "+n.text);for(var r;null!=(r=kl[i.future().text])&&r<e;)a*=e,a+=r,i.popToken()}return"\\@char{"+a+"}"});var Xr=(i,n,e,a)=>{var r=i.consumeArg().tokens;if(1!==r.length)throw new $("\\newcommand's first argument must be a macro name");var o=r[0].text,s=i.isDefined(o);if(s&&!n)throw new $("\\newcommand{"+o+"} attempting to redefine "+o+"; use \\renewcommand");if(!s&&!e)throw new $("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var l=0;if(1===(r=i.consumeArg().tokens).length&&"["===r[0].text){for(var c="",d=i.expandNextToken();"]"!==d.text&&"EOF"!==d.text;)c+=d.text,d=i.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new $("Invalid number of arguments: "+c);l=parseInt(c),r=i.consumeArg().tokens}return s&&a||i.macros.set(o,{tokens:r,numArgs:l}),""};x("\\newcommand",i=>Xr(i,!1,!0,!1)),x("\\renewcommand",i=>Xr(i,!0,!1,!1)),x("\\providecommand",i=>Xr(i,!0,!0,!0)),x("\\message",i=>{var n=i.consumeArgs(1)[0];return console.log(n.reverse().map(e=>e.text).join("")),""}),x("\\errmessage",i=>{var n=i.consumeArgs(1)[0];return console.error(n.reverse().map(e=>e.text).join("")),""}),x("\\show",i=>{var n=i.popToken(),e=n.text;return console.log(n,i.macros.get(e),gn[e],wt.math[e],wt.text[e]),""}),x("\\bgroup","{"),x("\\egroup","}
1"),x("~","\\nobreakspace"),x("\\lq","`"),x("\\rq","'"),x("\\aa","\\r a"),x("\\AA","\\r A"),x("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xa9}"),x("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),x("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}"),x("\u212c","\\mathscr{B}"),x("\u2130","\\mathscr{E}"),x("\u2131","\\mathscr{F}"),x("\u210b","\\mathscr{H}"),x("\u2110","\\mathscr{I}"),x("\u2112","\\mathscr{L}"),x("\u2133","\\mathscr{M}"),x("\u211b","\\mathscr{R}"),x("\u212d","\\mathfrak{C}"),x("\u210c","\\mathfrak{H}"),x("\u2128","\\mathfrak{Z}"),x("\\Bbbk","\\Bbb{k}"),x("\\llap","\\mathllap{\\textrm{#1}}"),x("\\rlap","\\mathrlap{\\textrm{#1}}"),x("\\clap","\\mathclap{\\textrm{#1}}"),x("\\mathstrut","\\vphantom{(}"),x("\\underbar","\\underline{\\text{#1}}"),x("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),x("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),x("\\ne","\\neq"),x("\u2260","\\neq"),x("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}
1"),x("\u2209","\\notin"),x("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),x("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),x("\u225a","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225a}}"),x("\u225b","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225b}}"),x("\u225d","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225d}}"),x("\u225e","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225e}}"),x("\u225f","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225f}}"),x("\u27c2","\\perp"),x("\u203c","\\mathclose{!\\mkern-0.8mu!}"),x("\u220c","\\notni"),x("\u231c","\\ulcorner"),x("\u231d","\\urcorner"),x("\u231e","\\llcorner"),x("\u231f","\\lrcorner"),x("\xa9","\\copyright"),x("\xae","\\textregistered"),x("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),x("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),x("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),x("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),x("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),x("\u22ee","\\vdots"),x("\\varGamma","\\mathit{\\Gamma}"),x("\\varDelta","\\mathit{\\Delta}"),x("\\varTheta","\\mathit{\\Theta}"),x("\\varLambda","\\mathit{\\Lambda}"),x("\\varXi","\\mathit{\\Xi}"),x("\\varPi","\\mathit{\\Pi}"),x("\\varSigma","\\mathit{\\Sigma}"),x("\\varUpsilon","\\mathit{\\Upsilon}"),x("\\varPhi","\\mathit{\\Phi}"),x("\\varPsi","\\mathit{\\Psi}"),x("\\varOmega","\\mathit{\\Omega}"),x("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),x("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),x("\\boxed","\\fbox{$\\displaystyle{#1}$}"),x("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),x("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),x("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),x("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),x("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Fl={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},H_=new Set(["bin","rel"]);x("\\dots",function(i){var n="\\dotso",e=i.expandAfterFuture().text;return e in Fl?n=Fl[e]:("\\not"===e.slice(0,4)||e in wt.math&&H_.has(wt.math[e].group))&&(n="\\dotsb"),n});var qr={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};x("\\dotso",function(i){return i.future().text in qr?"\\ldots\\,":"\\ldots"}),x("\\dotsc",function(i){var n=i.future().text;return n in qr&&","!==n?"\\ldots\\,":"\\ldots"}),x("\\cdots",function(i){return i.future().text in qr?"\\@cdots\\,":"\\@cdots"}),x("\\dotsb","\\cdots"),x("\\dotsm","\\cdots"),x("\\dotsi","\\!\\cdots"),x("\\dotsx","\\ldots\\,"),x("\\DOTSI","\\relax"),x("\\DOTSB","\\relax"),x("\\DOTSX","\\relax"),x("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),x("\\,","\\tmspace+{3mu}{.1667em}"),x("\\thinspace","\\,"),x("\\>","\\mskip{4mu}"),x("\\:","\\tmspace+{4mu}{.2222em}"),x("\\medspace","\\:"),x("\\;","\\tmspace+{5mu}{.2777em}"),x("\\thickspace","\\;"),x("\\!","\\tmspace-{3mu}{.1667em}"),x("\\negthinspace","\\!"),x("\\negmedspace","\\tmspace-{4mu}{.2222em}"),x("\\negthickspace","\\tmspace-{5mu}{.277em}"),x("\\enspace","\\kern.5em "),x("\\enskip","\\hskip.5em\\relax"),x("\\quad","\\hskip1em\\relax"),x("\\qquad","\\hskip2em\\relax"),x("\\tag","\\@ifstar\\tag@literal\\tag@paren"),x("\\tag@paren","\\tag@literal{({#1})}"),x("\\tag@literal",i=>{if(i.macros.get("\\df@tag"))throw new $("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),x("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),x("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),x("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),x("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),x("\\newline","\\\\\\relax"),x("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var wl=j(qe["Main-Regular"][84][1]-.7*qe["Main-Regular"][65][1]);x("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+wl+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}
1"),x("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+wl+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),x("\\hspace","\\@ifstar\\@hspacer\\@hspace"),x("\\@hspace","\\hskip #1\\relax"),x("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),x("\\ordinarycolon",":"),x("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),x("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),x("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),x("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),x("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),x("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),x("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),x("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),x("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),x("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),x("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),x("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),x("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),x("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),x("\u2237","\\dblcolon"),x("\u2239","\\eqcolon"),x("\u2254","\\coloneqq"),x("\u2255","\\eqqcolon"),x("\u2a74","\\Coloneqq"),x("\\ratio","\\vcentcolon"),x("\\coloncolon","\\dblcolon"),x("\\colonequals","\\coloneqq"),x("\\coloncolonequals","\\Coloneqq"),x("\\equalscolon","\\eqqcolon"),x("\\equalscoloncolon","\\Eqqcolon"),x("\\colonminus","\\coloneq"),x("\\coloncolonminus","\\Coloneq"),x("\\minuscolon","\\eqcolon"),x("\\minuscoloncolon","\\Eqcolon"),x("\\coloncolonapprox","\\Colonapprox"),x("\\coloncolonsim","\\Colonsim"),x("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),x("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),x("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),x("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),x("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),x("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),x("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),x("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),x("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),x("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),x("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),x("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),x("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),x("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),x("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),x("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),x("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),x("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),x("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),x("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),x("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),x("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),x("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),x("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),x("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),x("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),x("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),x("\\imath","\\html@mathml{\\@imath}{\u0131}"),x("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),x("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}
1{\\mathopen{\\char`\u27e6}}"),x("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),x("\u27e6","\\llbracket"),x("\u27e7","\\rrbracket"),x("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),x("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),x("\u2983","\\lBrace"),x("\u2984","\\rBrace"),x("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29b5}}"),x("\u29b5","\\minuso"),x("\\darr","\\downarrow"),x("\\dArr","\\Downarrow"),x("\\Darr","\\Downarrow"),x("\\lang","\\langle"),x("\\rang","\\rangle"),x("\\uarr","\\uparrow"),x("\\uArr","\\Uparrow"),x("\\Uarr","\\Uparrow"),x("\\N","\\mathbb{N}"),x("\\R","\\mathbb{R}"),x("\\Z","\\mathbb{Z}"),x("\\alef","\\aleph"),x("\\alefsym","\\aleph"),x("\\Alpha","\\mathrm{A}"),x("\\Beta","\\mathrm{B}"),x("\\bull","\\bullet"),x("\\Chi","\\mathrm{X}"),x("\\clubs","\\clubsuit"),x("\\cnums","\\mathbb{C}"),x("\\Complex","\\mathbb{C}"),x("\\Dagger","\\ddagger"),x("\\diamonds","\\diamondsuit"),x("\\empty","\\emptyset"),x("\\Epsilon","\\mathrm{E}"),x("\\Eta","\\mathrm{H}"),x("\\exist","\\exists"),x("\\harr","\\leftrightarrow"),x("\\hArr","\\Leftrightarrow"),x("\\Harr","\\Leftrightarrow"),x("\\hearts","\\heartsuit"),x("\\image","\\Im"),x("\\infin","\\infty"),x("\\Iota","\\mathrm{I}"),x("\\isin","\\in"),x("\\Kappa","\\mathrm{K}"),x("\\larr","\\leftarrow"),x("\\lArr","\\Leftarrow"),x("\\Larr","\\Leftarrow"),x("\\lrarr","\\leftrightarrow"),x("\\lrArr","\\Leftrightarrow"),x("\\Lrarr","\\Leftrightarrow"),x("\\Mu","\\mathrm{M}"),x("\\natnums","\\mathbb{N}"),x("\\Nu","\\mathrm{N}"),x("\\Omicron","\\mathrm{O}"),x("\\plusmn","\\pm"),x("\\rarr","\\rightarrow"),x("\\rArr","\\Rightarrow"),x("\\Rarr","\\Rightarrow"),x("\\real","\\Re"),x("\\reals","\\mathbb{R}"),x("\\Reals","\\mathbb{R}"),x("\\Rho","\\mathrm{P}"),x("\\sdot","\\cdot"),x("\\sect","\\S"),x("\\spades","\\spadesuit"),x("\\sub","\\subset"),x("\\sube","\\subseteq"),x("\\supe","\\supseteq"),x("\\Tau","\\mathrm{T}"),x("\\thetasym","\\vartheta"),x("\\weierp","\\wp"),x("\\Zeta","\\mathrm{Z}"),x("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),x("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),x("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),x("\\bra","\\mathinner{\\langle{#1}|}"),x("\\ket","\\mathinner{|{#1}\\rangle}"),x("\\braket","\\mathinner{\\langle{#1}\\rangle}"),x("\\Bra","\\left\\langle#1\\right|"),x("\\Ket","\\left|#1\\right\\rangle");var Ml=i=>n=>{var e=n.consumeArg().tokens,a=n.consumeArg().tokens,r=n.consumeArg().tokens,o=n.consumeArg().tokens,s=n.macros.get("|"),l=n.macros.get("\\|");n.macros.beginGroup();var c=_=>h=>{i&&(h.macros.set("|",s),r.length&&h.macros.set("\\|",l));var g=_;return!_&&r.length&&"|"===h.future().text&&(h.popToken(),g=!0),{tokens:g?r:a,numArgs:0}};n.macros.set("|",c(!1)),r.length&&n.macros.set("\\|",c(!0));var d=n.consumeArg().tokens,u=n.expandTokens([...o,...d,...e]);return n.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};x("\\bra@ket",Ml(!1)),x("\\bra@set",Ml(!0)),x("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),x("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),x("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),x("\\angln","{\\angl n}"),x("\\blue","\\textcolor{##6495ed}{#1}"),x("\\orange","\\textcolor{##ffa500}{#1}"),x("\\pink","\\textcolor{##ff00af}{#1}"),x("\\red","\\textcolor{##df0030}{#1}"),x("\\green","\\textcolor{##28ae7b}{#1}"),x("\\gray","\\textcolor{gray}{#1}"),x("\\purple","\\textcolor{##9d38bd}{#1}"),x("\\blueA","\\textcolor{##ccfaff}{#1}"),x("\\blueB","\\textcolor{##80f6ff}{#1}"),x("\\blueC","\\textcolor{##63d9ea}{#1}"),x("\\blueD","\\textcolor{##11accd}{#1}"),x("\\blueE","\\textcolor{##0c7f99}{#1}"),x("\\tealA","\\textcolor{##94fff5}{#1}"),x("\\tealB","\\textcolor{##26edd5}{#1}"),x("\\tealC","\\textcolor{##01d1c1}{#1}"),x("\\tealD","\\textcolor{##01a995}{#1}"),x("\\tealE","\\textcolor{##208170}{#1}"),x("\\greenA","\\textcolor{##b6ffb0}{#1}
1"),x("\\greenB","\\textcolor{##8af281}{#1}"),x("\\greenC","\\textcolor{##74cf70}{#1}"),x("\\greenD","\\textcolor{##1fab54}{#1}"),x("\\greenE","\\textcolor{##0d923f}{#1}"),x("\\goldA","\\textcolor{##ffd0a9}{#1}"),x("\\goldB","\\textcolor{##ffbb71}{#1}"),x("\\goldC","\\textcolor{##ff9c39}{#1}"),x("\\goldD","\\textcolor{##e07d10}{#1}"),x("\\goldE","\\textcolor{##a75a05}{#1}"),x("\\redA","\\textcolor{##fca9a9}{#1}"),x("\\redB","\\textcolor{##ff8482}{#1}"),x("\\redC","\\textcolor{##f9685d}{#1}"),x("\\redD","\\textcolor{##e84d39}{#1}"),x("\\redE","\\textcolor{##bc2612}{#1}"),x("\\maroonA","\\textcolor{##ffbde0}{#1}"),x("\\maroonB","\\textcolor{##ff92c6}{#1}"),x("\\maroonC","\\textcolor{##ed5fa6}{#1}"),x("\\maroonD","\\textcolor{##ca337c}{#1}"),x("\\maroonE","\\textcolor{##9e034e}{#1}"),x("\\purpleA","\\textcolor{##ddd7ff}{#1}"),x("\\purpleB","\\textcolor{##c6b9fc}{#1}"),x("\\purpleC","\\textcolor{##aa87ff}{#1}"),x("\\purpleD","\\textcolor{##7854ab}{#1}"),x("\\purpleE","\\textcolor{##543b78}{#1}"),x("\\mintA","\\textcolor{##f5f9e8}{#1}"),x("\\mintB","\\textcolor{##edf2df}{#1}"),x("\\mintC","\\textcolor{##e0e5cc}{#1}"),x("\\grayA","\\textcolor{##f6f7f7}{#1}"),x("\\grayB","\\textcolor{##f0f1f2}{#1}"),x("\\grayC","\\textcolor{##e3e5e6}{#1}"),x("\\grayD","\\textcolor{##d6d8da}{#1}"),x("\\grayE","\\textcolor{##babec2}{#1}"),x("\\grayF","\\textcolor{##888d93}{#1}"),x("\\grayG","\\textcolor{##626569}{#1}"),x("\\grayH","\\textcolor{##3b3e40}{#1}"),x("\\grayI","\\textcolor{##21242c}{#1}"),x("\\kaBlue","\\textcolor{##314453}{#1}"),x("\\kaGreen","\\textcolor{##71B307}{#1}");var Sl={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class V_{constructor(n,e,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=e,this.expansionCount=0,this.feed(n),this.macros=new X_(q_,e.macros),this.mode=a,this.stack=[]}feed(n){this.lexer=new Il(n,this.settings)}switchMode(n){this.mode=n}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(n){this.stack.push(n)}pushTokens(n){this.stack.push(...n)}scanArgument(n){var e,a,r;if(n){if(this.consumeSpaces(),"["!==this.future().text)return null;e=this.popToken(),({tokens:r,end:a}=this.consumeArg(["]"]))}else({tokens:r,start:e,end:a}=this.consumeArg());return this.pushToken(new Fe("EOF",a.loc)),this.pushTokens(r),new Fe("",fe.range(e,a))}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArg(n){var e=[],a=n&&n.length>0;a||this.consumeSpaces();var o,r=this.future(),s=0,l=0;do{if(o=this.popToken(),e.push(o),"{"===o.text)++s;else if("}"===o.text){if(-1==--s)throw new $("Extra }",o)}else if("EOF"===o.text)throw new $("Unexpected end of input in a macro argument, expected '"+(n&&a?n[l]:"}")+"'",o);if(n&&a)if((0===s||1===s&&"{"===n[l])&&o.text===n[l]){if(++l===n.length){e.splice(-l,l);break}}else l=0}while(0!==s||a);return"{"===r.text&&"}"===e[e.length-1].text&&(e.pop(),e.shift()),e.reverse(),{tokens:e,start:r,end:o}}consumeArgs(n,e){if(e){if(e.length!==n+1)throw new $("The length of delimiters doesn't match the number of args!");for(var a=e[0],r=0;r<a.length;r++){var o=this.popToken();if(a[r]!==o.text)throw new $("Use of the macro doesn't match its definition",o)}}for(var s=[],l=0;l<n;l++)s.push(this.consumeArg(e&&e[l+1]).tokens);return s}countExpansion(n){if(this.expansionCount+=n,this.expansionCount>this.settings.maxExpand)throw new $("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(n){var e=this.popToken(),a=e.text,r=e.noexpand?null:this._getExpansion(a);if(null==r||n&&r.unexpandable){if(n&&null==r&&"\\"===a[0]&&!this.isDefined(a))throw new $("Undefined control sequence: "+a);return this.pushToken(e),!1}this.countExpansion(1);var o=r.tokens,s=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs)for(var l=(o=o.slice()).length-1;l>=0;--l){var c=o[l];if("#"===c.text){if(0===l)throw new $("Incomplete placeholder at end of macro body",c);if("#"===(c=o[--l]).text)o.splice(l+1,1);else{if(!/^[1-9]$/.test(c.text))throw new $("Not a valid argument number",c);o.splice(l,2,...s[+c.text-1])}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var n=this.stack.pop();return n.treatAsRelax&&(n.text="\\relax"),n}}expandMacro(n){return this.macros.has(n)?this.expandTokens([new Fe(n)]):void 0}expandTokens(n){var e=[],a=this.stack.length;for(this.pushTokens(n);this.stack.length>a;)if(!1===this.expandOnce(!0)){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),e.push(r)}return this.countExpansion(e.length),e}expandMacroAsText(n){var e=this.expandMacro(n);return e&&e.map(a=>a.text).join("")}_getExpansion(n){var e=this.macros.get(n);if(null==e)return e;if(1===n.length){var a=this.lexer.catcodes[n];if(null!=a&&13!==a)return}var r="function"==typeof e?e(this):e;if("string"==typeof r){var o=0;if(r.includes("#"))for(var s=r.replace(/##/g,"");s.includes("#"+(o+1));)++o;for(var l=new Il(r,this.settings),c=[],d=l.lex();"EOF"!==d.text;)c.push(d),d=l.lex();return c.reverse(),{tokens:c,numArgs:o}}return r}isDefined(n){return this.macros.has(n)||gn.hasOwnProperty(n)||wt.math.hasOwnProperty(n)||wt.text.hasOwnProperty(n)||Sl.hasOwnProperty(n)}isExpandable(n){var e=this.macros.get(n);return null!=e?"string"==typeof e||"function"==typeof e||!e.unexpandable:gn.hasOwnProperty(n)&&!gn[n].primitive}}var Al=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1
1d69\u1d6a]/,da=Object.freeze({"\u208a":"+","\u208b":"-","\u208c":"=","\u208d":"(","\u208e":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9",\u2090:"a",\u2091:"e",\u2095:"h",\u1d62:"i",\u2c7c:"j",\u2096:"k",\u2097:"l",\u2098:"m",\u2099:"n",\u2092:"o",\u209a:"p",\u1d63:"r",\u209b:"s",\u209c:"t",\u1d64:"u",\u1d65:"v",\u2093:"x",\u1d66:"\u03b2",\u1d67:"\u03b3",\u1d68:"\u03c1",\u1d69:"\u03d5",\u1d6a:"\u03c7","\u207a":"+","\u207b":"-","\u207c":"=","\u207d":"(","\u207e":")","\u2070":"0","\xb9":"1","\xb2":"2","\xb3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9",\u1d2c:"A",\u1d2e:"B",\u1d30:"D",\u1d31:"E",\u1d33:"G",\u1d34:"H",\u1d35:"I",\u1d36:"J",\u1d37:"K",\u1d38:"L",\u1d39:"M",\u1d3a:"N",\u1d3c:"O",\u1d3e:"P",\u1d3f:"R",\u1d40:"T",\u1d41:"U",\u2c7d:"V",\u1d42:"W",\u1d43:"a",\u1d47:"b",\u1d9c:"c",\u1d48:"d",\u1d49:"e",\u1da0:"f",\u1d4d:"g",\u02b0:"h",\u2071:"i",\u02b2:"j",\u1d4f:"k",\u02e1:"l",\u1d50:"m",\u207f:"n",\u1d52:"o",\u1d56:"p",\u02b3:"r",\u02e2:"s",\u1d57:"t",\u1d58:"u",\u1d5b:"v",\u02b7:"w",\u02e3:"x",\u02b8:"y",\u1dbb:"z",\u1d5d:"\u03b2",\u1d5e:"\u03b3",\u1d5f:"\u03b4",\u1d60:"\u03d5",\u1d61:"\u03c7",\u1dbf:"\u03b8"}),Hr={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},El={\u00e1:"a\u0301",\u00e0:"a\u0300",\u00e4:"a\u0308",\u01df:"a\u0308\u0304",\u00e3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1eaf:"a\u0306\u0301",\u1eb1:"a\u0306\u0300",\u1eb5:"a\u0306\u0303",\u01ce:"a\u030c",\u00e2:"a\u0302",\u1ea5:"a\u0302\u0301",\u1ea7:"a\u0302\u0300",\u1eab:"a\u0302\u0303",\u0227:"a\u0307",\u01e1:"a\u0307\u0304",\u00e5:"a\u030a",\u01fb:"a\u030a\u0301",\u1e03:"b\u0307",\u0107:"c\u0301",\u1e09:"c\u0327\u0301",\u010d:"c\u030c",\u0109:"c\u0302",\u010b:"c\u0307",\u00e7:"c\u0327",\u010f:"d\u030c",\u1e0b:"d\u0307",\u1e11:"d\u0327",\u00e9:"e\u0301",\u00e8:"e\u0300",\u00eb:"e\u0308",\u1ebd:"e\u0303",\u0113:"e\u0304",\u1e17:"e\u0304\u0301",\u1e15:"e\u0304\u0300",\u0115:"e\u0306",\u1e1d:"e\u0327\u0306",\u011b:"e\u030c",\u00ea:"e\u0302",\u1ebf:"e\u0302\u0301",\u1ec1:"e\u0302\u0300",\u1ec5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1e1f:"f\u0307",\u01f5:"g\u0301",\u1e21:"g\u0304",\u011f:"g\u0306",\u01e7:"g\u030c",\u011d:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1e27:"h\u0308",\u021f:"h\u030c",\u0125:"h\u0302",\u1e23:"h\u0307",\u1e29:"h\u0327",\u00ed:"i\u0301",\u00ec:"i\u0300",\u00ef:"i\u0308",\u1e2f:"i\u0308\u0301",\u0129:"i\u0303",\u012b:"i\u0304",\u012d:"i\u0306",\u01d0:"i\u030c",\u00ee:"i\u0302",\u01f0:"j\u030c",\u0135:"j\u0302",\u1e31:"k\u0301",\u01e9:"k\u030c",\u0137:"k\u0327",\u013a:"l\u0301",\u013e:"l\u030c",\u013c:"l\u0327",\u1e3f:"m\u0301",\u1e41:"m\u0307",\u0144:"n\u0301",\u01f9:"n\u0300",\u00f1:"n\u0303",\u0148:"n\u030c",\u1e45:"n\u0307",\u0146:"n\u0327",\u00f3:"o\u0301",\u00f2:"o\u0300",\u00f6:"o\u0308",\u022b:"o\u0308\u0304",\u00f5:"o\u0303",\u1e4d:"o\u0303\u0301",\u1e4f:"o\u0303\u0308",\u022d:"o\u0303\u0304",\u014d:"o\u0304",\u1e53:"o\u0304\u0301",\u1e51:"o\u0304\u0300",\u014f:"o\u0306",\u01d2:"o\u030c",\u00f4:"o\u0302",\u1ed1:"o\u0302\u0301",\u1ed3:"o\u0302\u0300",\u1ed7:"o\u0302\u0303",\u022f:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030b",\u1e55:"p\u0301",\u1e57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030c",\u1e59:"r\u0307",\u0157:"r\u0327",\u015b:"s\u0301",\u1e65:"s\u0301\u0307",\u0161:"s\u030c",\u1e67:"s\u030c\u0307",\u015d:"s\u0302",\u1e61:"s\u0307",\u015f:"s\u0327",\u1e97:"t\u0308",\u0165:"t\u030c",\u1e6b:"t\u0307",\u0163:"t\u0327",\u00fa:"u\u0301",\u00f9:"u\u0300",\u00fc:"u\u0308",\u01d8:"u\u0308\u0301",\u01dc:"u\u0308\u0300",\u01d6:"u\u0308\u0304",\u01da:"u\u0308\u030c",\u0169:"u\u0303",\u1e79:"u\u0303\u0301",\u016b:"u\u0304",\u1e7b:"u\u0304\u0308",\u016d:"u\u0306",\u01d4:"u\u030c",\u00fb:"u\u0302",\u016f:"u\u030a",\u0171:"u\u030b",\u1e7d:"v\u0303",\u1e83:"w\u0301",\u1e81:"w\u0300",\u1e85:"w\u0308",\u0175:"w\u0302",\u1e87:"w\u0307",\u1e98:"w\u030a",\u1e8d:"x\u0308",\u1e8b:"x\u0307",\u00fd:"y\u0301",\u1ef3:"y\u0300",\u00ff:"y\u0308",\u1ef9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1e8f:"y\u0307",\u1e99:"y\u030a",\u017a:"z\u0301",\u017e:"z\u030c",\u1e91:"z\u0302",\u017c:"z\u0307",\u00c1:"A\u0301",\u00c0:"A\u0300",\u00c4:"A\u0308",\u01de:"A\u0308\u0304",\u00c3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1eae:"A\u0306\u0301",\u1eb0:"A\u0306\u0300",\u1eb4:"A\u0306\u0303",\u01cd:"A\u030c",\u00c2:"A\u0302",\u1ea4:"A\u0302\u0301",\u1ea6:"A\u0302\u0300",\u1eaa:"A\u0302\u0303",\u0226:"A\u0307",\u01e0:"A\u0307\u0304",\u00c5:"A\u030a",\u01fa:"A\u030a\u0301",\u1e02:"B\u0307",\u0106:"C\u0301",\u1e08:"C\u0327\u0301",\u010c:"C\u030c",\u0108:"C\u0302",\u010a:"C\u0307",\u00c7:"C\u0327",\u010e:"D\u030c",\u1e0a:"D\u0307",\u1e10:"D\u0327",\u00c9:"E\u0301",\u00c8:"E\u0300",\u00cb:"E\u0308",\u1ebc:"E\u0303",\u0112:"E\u0304",\u1e16:"E\u0304\u0301",\u1e14:"E\u0304\u0300",\u0114:"E\u0306",\u1e1c:"E\u0327\u0306",\u011a:"E\u030c",\u00ca:"E\u0302",\u1ebe:"E\u0302\u0301",\u1ec0:"E\u0302\u0300",\u1ec4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1e1e:"F\u0307",\u01f4:"G\u0301",\u1e20:"G\u0304",\u011e:"G\u0306",\u01e6:"G\u030c",\u011c:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1e26:"H\u0308",\u021e:"H\u030c",\u0124:"H\u0302",\u1e22:"H\u0307",\u1e28:"H\u0327",\u00cd:"I\u0301",\u00cc:"I\u0300",\u00cf:"I\u0308",\u1e2e:"I\u0308\u0301",\u0128:"I\u0303",\u012a:"I\u0304",\u012c:"I\u0306",\u01cf:"I\u030c",\u00ce:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1e30:"K\u0301",\u01e8:"K\u030c",\u0136:"K\u0327",\u0139:"L\u0301",\u013d:"L\u030c",\u013b:"L\u0327",\u1e3e:"M\u0301",\u1e40:"M\u0307",\u0143:"N\u0301",\u01f8:"N\u0300",\u00d1:"N\u0303",\u0147:"N\u030c",\u1e44:"N\u0307",\u0145:"N\u0327",\u00d3:"O\u0301",\u00d2:"O\u0300",\u00d6:"O\u0308",\u022a:"O\u0308\u0304",\u00d5:"O\u0303",\u1e4c:"O\u0303\u0301",\u1e4e:"O\u0303\u0308",\u022c:"O\u0303\u0304",\u014c:"O\u0304",\u1e52:"O\u0304\u0301",\u1e50:"O\u0304\u0300",\u014e:"O\u0306",\u01d1:"O\u030c",\u00d4:"O\u0302",\u1ed0:"O\u0302\u0301",\u1ed2:"O\u0302\u0300",\u1ed6:"O\u0302\u0303",\u022e:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030b",\u1e54:"P\u0301",\u1e56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030c",\u1e58:"R\u0307",\u0156:"R\u0327",\u015a:"S\u0301",\u1e64:"S\u0301\u0307",\u0160:"S\u030c",\u1e66:"S\u030c\u0307",\u015c:"S\u0302",\u1e60:"S\u0307",\u015e:"S\u0327",\u0164:"T\u030c",\u1e6a:"T\u0307",\u0162:"T\u0327",\u00da:"U\u0301",\u00d9:"U\u0300",\u00dc:"U\u0308",\u01d7:"U\u0308\u0301",\u01db:"U\u0308\u0300",\u01d5:"U\u0308\u0304",\u01d9
1:"U\u0308\u030c",\u0168:"U\u0303",\u1e78:"U\u0303\u0301",\u016a:"U\u0304",\u1e7a:"U\u0304\u0308",\u016c:"U\u0306",\u01d3:"U\u030c",\u00db:"U\u0302",\u016e:"U\u030a",\u0170:"U\u030b",\u1e7c:"V\u0303",\u1e82:"W\u0301",\u1e80:"W\u0300",\u1e84:"W\u0308",\u0174:"W\u0302",\u1e86:"W\u0307",\u1e8c:"X\u0308",\u1e8a:"X\u0307",\u00dd:"Y\u0301",\u1ef2:"Y\u0300",\u0178:"Y\u0308",\u1ef8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1e8e:"Y\u0307",\u0179:"Z\u0301",\u017d:"Z\u030c",\u1e90:"Z\u0302",\u017b:"Z\u0307",\u03ac:"\u03b1\u0301",\u1f70:"\u03b1\u0300",\u1fb1:"\u03b1\u0304",\u1fb0:"\u03b1\u0306",\u03ad:"\u03b5\u0301",\u1f72:"\u03b5\u0300",\u03ae:"\u03b7\u0301",\u1f74:"\u03b7\u0300",\u03af:"\u03b9\u0301",\u1f76:"\u03b9\u0300",\u03ca:"\u03b9\u0308",\u0390:"\u03b9\u0308\u0301",\u1fd2:"\u03b9\u0308\u0300",\u1fd1:"\u03b9\u0304",\u1fd0:"\u03b9\u0306",\u03cc:"\u03bf\u0301",\u1f78:"\u03bf\u0300",\u03cd:"\u03c5\u0301",\u1f7a:"\u03c5\u0300",\u03cb:"\u03c5\u0308",\u03b0:"\u03c5\u0308\u0301",\u1fe2:"\u03c5\u0308\u0300",\u1fe1:"\u03c5\u0304",\u1fe0:"\u03c5\u0306",\u03ce:"\u03c9\u0301",\u1f7c:"\u03c9\u0300",\u038e:"\u03a5\u0301",\u1fea:"\u03a5\u0300",\u03ab:"\u03a5\u0308",\u1fe9:"\u03a5\u0304",\u1fe8:"\u03a5\u0306",\u038f:"\u03a9\u0301",\u1ffa:"\u03a9\u0300"};class ua{constructor(n,e){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new V_(n,e,this.mode),this.settings=e,this.leftrightDepth=0,this.nextToken=null}expect(n,e){if(void 0===e&&(e=!0),this.fetch().text!==n)throw new $("Expected '"+n+"', got '"+this.fetch().text+"'",this.fetch());e&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(n){this.mode=n,this.gullet.switchMode(n)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var n=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),n}finally{this.gullet.endGroups()}}subparse(n){var e=this.nextToken;this.consume(),this.gullet.pushToken(new Fe("}")),this.gullet.pushTokens(n);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=e,a}parseExpression(n,e){for(var a=[];;){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(ua.endOfExpression.has(r.text)||e&&r.text===e||n&&gn[r.text]&&gn[r.text].infix)break;var o=this.parseAtom(e);if(!o)break;"internal"!==o.type&&a.push(o)}return"text"===this.mode&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(n){for(var a,e=-1,r=0;r<n.length;r++){var o=n[r];if("infix"===o.type){if(-1!==e)throw new $("only one infix operator per group",o.token);e=r,a=o.replaceWith}}if(-1!==e&&a){var s,l,c=n.slice(0,e),d=n.slice(e+1);return s=1===c.length&&"ordgroup"===c[0].type?c[0]:{type:"ordgroup",mode:this.mode,body:c},l=1===d.length&&"ordgroup"===d[0].type?d[0]:{type:"ordgroup",mode:this.mode,body:d},[this.callFunction(a,"\\\\abovefrac"===a?[s,n[e],l]:[s,l],[])]}return n}handleSupSubscript(n){var r,e=this.fetch(),a=e.text;this.consume(),this.consumeSpaces();do{var o;r=this.parseGroup(n)}while("internal"===(null==(o=r)?void 0:o.type));if(!r)throw new $("Expected group after '"+a+"'",e);return r}formatUnsupportedCmd(n){for(var e=[],a=0;a<n.length;a++)e.push({type:"textord",mode:"text",text:n[a]});return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[{type:"text",mode:this.mode,body:e}]}}parseAtom(n){var a,r,e=this.parseGroup("atom",n);if("internal"===e?.type||"text"===this.mode)return e;for(;;){this.consumeSpaces();var o=this.fetch();if("\\limits"===o.text||"\\nolimits"===o.text){if(e&&"op"===e.type)e.limits="\\limits"===o.text,e.alwaysHandleSupSub=!0;else{if(!e||"operatorname"!==e.type)throw new $("Limit controls must follow a math operator",o);e.alwaysHandleSupSub&&(e.limits="\\limits"===o.text)}this.consume()}else if("^"===o.text){if(a)throw new $("Double superscript",o);a=this.handleSupSubscript("superscript")}else if("_"===o.text){if(r)throw new $("Double subscript",o);r=this.handleSupSubscript("subscript")}else if("'"===o.text){if(a)throw new $("Double superscript",o);var l={type:"textord",mode:this.mode,text:"\\prime"},c=[l];for(this.consume();"'"===this.fetch().text;)c.push(l),this.consume();"^"===this.fetch().text&&c.push(this.handleSupSubscript("superscript")),a={type:"ordgroup",mode:this.mode,body:c}}else{if(!da[o.text])break;var d=Al.test(o.text),u=[];for(u.push(new Fe(da[o.text])),this.consume();;){var _=this.fetch().text;if(!da[_]||Al.test(_)!==d)break;u.unshift(new Fe(da[_])),this.consume()}var h=this.subparse(u);d?r={type:"ordgroup",mode:"math",body:h}:a={type:"ordgroup",mode:"math",body:h}}}return a||r?{type:"supsub",mode:this.mode,base:e,sup:a,sub:r}:e}parseFunction(n,e){var a=this.fetch(),r=a.text,o=gn[r];if(!o)return null;if(this.consume(),e&&"atom"!==e&&!o.allowedInArgument)throw new $("Got function '"+r+"' with no arguments"+(e?" as "+e:""),a);if("text"===this.mode&&!o.allowedInText)throw new $("Can't use function '"+r+"' in text mode",a);if("math"===this.mode&&!1===o.allowedInMath)throw new $("Can't use function '"+r+"' in math mode",a);var{args:s,optArgs:l}=this.parseArguments(r,o);return this.callFunction(r,s,l,a,n)}callFunction(n,e,a,r,o){var l=gn[n];if(l&&l.handler)return l.handler({funcName:n,parser:this,token:r,breakOnTokenText:o},e,a);throw new $("No function handler for "+n)}parseArguments(n,e){var a=e.numArgs+e.numOptionalArgs;if(0===a)return{args:[],optArgs:[]};for(var r=[],o=[],s=0;s<a;s++){var l=e.argTypes&&e.argTypes[s],c=s<e.numOptionalArgs;("primitive"in e&&e.primitive&&null==l||"sqrt"===e.type&&1===s&&null==o[0])&&(l="primitive");var d=this.parseGroupOfType("argument to '"+n+"'",l,c);if(c)o.push(d);else{if(null==d)throw new $("Null argument, please report this as a bug");r.push(d)}}return{args:r,optArgs:o}}parseGroupOfType(n,e,a){switch(e){case"color":return this.parseColorGroup(a);case"size":return this.parseSizeGroup(a);case"url":return this.parseUrlGroup(a);case"math":case"text":return this.parseArgumentGroup(a,e);
1case"hbox":var r=this.parseArgumentGroup(a,"text");return null!=r?{type:"styling",mode:r.mode,body:[r],style:"text",resetFont:!0}:null;case"raw":var o=this.parseStringGroup("raw",a);return null!=o?{type:"raw",mode:"text",string:o.text}:null;case"primitive":if(a)throw new $("A primitive argument cannot be optional");var s=this.parseGroup(n);if(null==s)throw new $("Expected group as "+n,this.fetch());return s;case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new $("Unknown group type as "+n,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(n,e){var a=this.gullet.scanArgument(e);if(null==a)return null;for(var o,r="";"EOF"!==(o=this.fetch()).text;)r+=o.text,this.consume();return this.consume(),a.text=r,a}parseRegexGroup(n,e){for(var s,a=this.fetch(),r=a,o="";"EOF"!==(s=this.fetch()).text&&n.test(o+s.text);)o+=(r=s).text,this.consume();if(""===o)throw new $("Invalid "+e+": '"+a.text+"'",a);return a.range(r,o)}parseColorGroup(n){var e=this.parseStringGroup("color",n);if(null==e)return null;var a=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(e.text);if(!a)throw new $("Invalid color: '"+e.text+"'",e);var r=a[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}}parseSizeGroup(n){var e,a=!1;if(this.gullet.consumeSpaces(),!(e=n||"{"===this.gullet.future().text?this.parseStringGroup("size",n):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;!n&&0===e.text.length&&(e.text="0pt",a=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e.text);if(!r)throw new $("Invalid size: '"+e.text+"'",e);var o={number:+(r[1]+r[2]),unit:r[3]};if(!is(o))throw new $("Invalid unit: '"+o.unit+"'",e);return{type:"size",mode:this.mode,value:o,isBlank:a}}parseUrlGroup(n){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var e=this.parseStringGroup("url",n);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==e)return null;var a=e.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:a}}parseArgumentGroup(n,e){var a=this.gullet.scanArgument(n);if(null==a)return null;var r=this.mode;e&&this.switchMode(e),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:a.loc,body:o};return e&&this.switchMode(r),s}parseGroup(n,e){var o,a=this.fetch(),r=a.text;if("{"===r||"\\begingroup"===r){this.consume();var s="{"===r?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,s),c=this.fetch();this.expect(s),this.gullet.endGroup(),o={type:"ordgroup",mode:this.mode,loc:fe.range(a,c),body:l,semisimple:"\\begingroup"===r||void 0}}else if(null==(o=this.parseFunction(e,n)||this.parseSymbol())&&"\\"===r[0]&&!Sl.hasOwnProperty(r)){if(this.settings.throwOnError)throw new $("Undefined control sequence: "+r,a);o=this.formatUnsupportedCmd(r),this.consume()}return o}formLigatures(n){for(var e=n.length-1,a=0;a<e;++a){var r=n[a];if("textord"===r.type){var o=r.text,s=n[a+1];if(s&&"textord"===s.type){if("-"===o&&"-"===s.text){var l=n[a+2];a+1<e&&l&&"textord"===l.type&&"-"===l.text?(n.splice(a,3,{type:"textord",mode:"text",loc:fe.range(r,l),text:"---"}),e-=2):(n.splice(a,2,{type:"textord",mode:"text",loc:fe.range(r,s),text:"--"}),e-=1)}("'"===o||"`"===o)&&s.text===o&&(n.splice(a,2,{type:"textord",mode:"text",loc:fe.range(r,s),text:o+o}),e-=1)}}}}parseSymbol(){var n=this.fetch(),e=n.text;if(/^\\verb[^a-zA-Z]/.test(e)){this.consume();var a=e.slice(5),r="*"===a.charAt(0);if(r&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new $("\\verb assertion failed --\n                    please report what input caused this bug");return{type:"verb",mode:"text",body:a=a.slice(1,-1),star:r}}El.hasOwnProperty(e[0])&&!wt[this.mode][e[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+e[0]+'" used in math mode',n),e=El[e[0]]+e.slice(1));var s,o=B_.exec(e);if(o&&("i"===(e=e.substring(0,o.index))?e="\u0131":"j"===e&&(e="\u0237")),wt[this.mode][e]){this.settings.strict&&"math"===this.mode&&"\xd0\xde\xfe".includes(e)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+e[0]+'" used in math mode',n);var l=wt[this.mode][e].group,c=fe.range(n);s=function l_(i){return i in o_}(l)?{type:"atom",mode:this.mode,family:l,loc:c,text:e}:{type:l,mode:this.mode,loc:c,text:e}}else{if(!(e.charCodeAt(0)>=128))return null;this.settings.strict&&(es(e.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+e[0]+'" used in math mode',n):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+e[0]+'" ('+e.charCodeAt(0)+")",n)),s={type:"textord",mode:"text",loc:fe.range(n),text:e}}if(this.consume(),o)for(var u=0;u<o[0].length;u++){var _=o[0][u];if(!Hr[_])throw new $("Unknown accent ' "+_+"'",n);var h=Hr[_][this.mode]||Hr[_].text;if(!h)throw new $("Accent "+_+" unsupported in "+this.mode+" mode",n);s={type:"accent",mode:this.mode,loc:fe.range(n),label:h,isStretchy:!1,isShifty:!0,base:s}}return s}}ua.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);typeof document<"u"&&"CSS1Compat"!==document.compatMode&&typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.");var zr=function(n,e){var a=new Ka(e);try{return function(n,e,a){var o,r=function(n){return new Zu({style:n.displayMode?at.DISPLAY:at.TEXT,maxSize:n.maxSize,minRuleThickness:n.minRuleThickness})}(a);if("mathml"===a.output)return ws(n,e,r,a.displayMode,!0);if("html"===a.output){var s=Cr(n,r);o=D(["katex"],[s])}else{var l=ws(n,e,r,a.displayMode,!1),c=Cr(n,r);o=D(["katex"],[l,c])}return function(n,e){if(e.displayMode){var a=["katex-display"];e.leqno&&a.push("leqno"),e.fleqn&&a.push("fleqn"),n=D(a,[n])}return n}(o,a)}(function(n,e){if(!("string"==typeof n||n instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new ua(n,e);delete a.gullet.macros.current["\\df@tag"];var r=a.parse();if(delete a.gullet.macros.current["\\current@color"],delete a.gullet.macros.current["\\color"],a.gullet.macros.get("\\df@tag")){if(!e.displayMode)throw new $("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:a.subparse([new Fe("\\df@tag")])}]}return r}(n,a),n,a)}catch(o){return function(n,e,a){if(a.throwOnError||!(n instanceof $))throw n;var r=D(["katex-error"],[new Te(e)]);return r.setAttribute("title",n.toString()),r.setAttribute("style","color:"+a.errorColor),r}(o,n,a)}};
1const Qr=/\\\[([\s\S]*?)\\\]|\\\(([\s\S]*?)\\\)/g,Z_=["MATH","SCRIPT","STYLE","CODE","PRE"],t0={"\\hfill":"","\\hskip":"","\\vskip":"","\\noindent":""};let e0=(()=>{class i{render(e){if(!e||!this.containsMath(e))return e;let a;try{a=(new DOMParser).parseFromString(e,"text/html")}catch{return e}return this.collectTextNodes(a).forEach(r=>this.renderNode(a,r)),a.body.innerHTML}containsMath(e){return e.includes("\\[")||e.includes("\\(")}collectTextNodes(e){const a=e.createTreeWalker(e.body,NodeFilter.SHOW_TEXT),r=[];let o=a.nextNode();for(;o;)this.containsMath(o.nodeValue||"")&&!this.isSkipped(o)&&r.push(o),o=a.nextNode();return r}isSkipped(e){let a=e.parentElement;for(;a;){if(Z_.includes(a.tagName))return!0;a=a.parentElement}return!1}renderNode(e,a){const r=a.nodeValue||"",o=this.findSegments(r);if(!o.length)return;const s=e.createDocumentFragment();let l=0;o.forEach(c=>{c.start>l&&s.appendChild(e.createTextNode(r.slice(l,c.start))),s.appendChild(this.renderSegment(e,c,r)),l=c.end}),l<r.length&&s.appendChild(e.createTextNode(r.slice(l))),a.replaceWith(s)}findSegments(e){const a=[];Qr.lastIndex=0;let r=Qr.exec(e);for(;r;){const o=void 0!==r[1];a.push({latex:(o?r[1]:r[2]).trim(),displayMode:o,start:r.index,end:r.index+r[0].length}),r=Qr.exec(e)}return a}renderSegment(e,a,r){const o=r.slice(a.start,a.end);try{const s=e.createElement(a.displayMode?"div":"span");return s.className=a.displayMode?"proquest-math proquest-math--display":"proquest-math",s.innerHTML=function(n,e){return zr(n,e).toMarkup()}(a.latex,{displayMode:a.displayMode,throwOnError:!1,strict:!1,trust:!1,macros:{...t0}}),s}catch{const s=e.createElement("span");return s.className="proquest-math proquest-math--unrendered",s.textContent=o,s}}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Gt=S(84745),V=S(68018),_a=S(345),Dl=S(32626),n0=S(89563),mt=S(75351),Dt=S(56729),nn=S(96354),i0=S(99437),pa=S(21626);let a0=(()=>{class i{constructor(e){this.http=e}getFullText(e){return this.http.get(e).pipe((0,nn.T)(a=>this.toDisplayResponse(a)),(0,i0.W)(()=>(0,ts.of)(this.unavailableResponse(e))))}toDisplayResponse(e){const a=this.decodeTextInfo(e?.TextInfo);return a?{docId:e.DocId??"",displayHtml:a,mediaIndex:[],available:!0}:this.unavailableResponse(e?.DocId??"")}decodeTextInfo(e){if(!e)return"";const a=document.createElement("textarea");return a.innerHTML=e,a.value.trim()}unavailableResponse(e){return{docId:e,displayHtml:"",mediaIndex:[],available:!1,reasonCode:"FULL_TEXT_UNAVAILABLE"}}static{this.\u0275fac=function(a){return new(a||i)(t.KVO(pa.Qq))}}static{this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ur=S(15756),ie=S(18306),jt=S(99213),$t=S(28203),ht=S(88834),xt=S(14823),Lt=S(59115),r0=S(57030),Jr=S(30450),Wr=S(77737),$l=S(83801),o0=S(26364),Ot=S(8362),z=S(10467),di={d:(i,n)=>{for(var e in n)di.o(n,e)&&!di.o(i,e)&&Object.defineProperty(i,e,{enumerable:!0,get:n[e]})},o:(i,n)=>Object.prototype.hasOwnProperty.call(i,n)},it=globalThis.pdfjsLib={};di.d(it,{AbortException:()=>vn,AnnotationEditorLayer:()=>c1,AnnotationEditorParamsType:()=>pt,AnnotationEditorType:()=>ct,AnnotationEditorUIManager:()=>fi,AnnotationLayer:()=>i1,AnnotationMode:()=>fn,ColorPicker:()=>$e,DOMSVGFactory:()=>Co,DrawLayer:()=>me,FeatureTest:()=>pe,GlobalWorkerOptions:()=>xi,ImageKind:()=>ma,InvalidPDFException:()=>to,MissingPDFException:()=>_i,OPS:()=>je,OutputScale:()=>lo,PDFDataRangeTransport:()=>xc,PDFDateString:()=>Yl,PDFWorker:()=>ne,PasswordResponses:()=>d0,PermissionFlag:()=>c0,PixelsPerInch:()=>Qn,RenderingCancelledException:()=>ro,TextLayer:()=>he,TouchManager:()=>Ta,UnexpectedResponseException:()=>va,Util:()=>J,VerbosityLevel:()=>ga,XfaLayer:()=>Tc,build:()=>Lp,createValidAbsoluteUrl:()=>h0,fetchData:()=>Ca,getDocument:()=>wp,getFilenameFromUrl:()=>T0,getPdfFilenameFromUrl:()=>I0,getXfaPageViewport:()=>k0,isDataScheme:()=>Ra,isPdfFile:()=>oo,noContextMenu:()=>Oe,normalizeUnicode:()=>C0,setLayerDimensions:()=>Mn,shadow:()=>dt,stopEvent:()=>Me,version:()=>$p});const re=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type),Ll=[1,0,0,1,0,0],Kr=[.001,0,0,.001,0,0],fn={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},ct={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15}
1,pt={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35,DRAW_STEP:41},c0={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},ma={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},ga={ERRORS:0,WARNINGS:1,INFOS:5},je={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93},d0={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let fa=ga.WARNINGS;function _0(){return fa}function ba(i){fa>=ga.INFOS&&console.log(`Info: ${i}`)}function st(i){fa>=ga.WARNINGS&&console.log(`Warning: ${i}`)}function yt(i){throw new Error(i)}function zt(i,n){i||yt(n)}function h0(i,n=null,e=null){if(!i)return null;try{if(e&&"string"==typeof i&&(e.addDefaultProtocol&&i.startsWith("www.")&&i.match(/\./g)?.length>=2&&(i=`http://${i}`),e.tryConvertEncoding))try{i=function x0(i){return decodeURIComponent(escape(i))}(i)}catch{}const a=n?new URL(i,n):new URL(i);if(function p0(i){switch(i?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(a))return a}catch{}return null}function dt(i,n,e,a=!1){return Object.defineProperty(i,n,{value:e,enumerable:!a,configurable:!0,writable:!1}),e}const bn=function(){function n(e,a){this.message=e,this.name=a}return n.prototype=new Error,n.constructor=n,n}();class Nl extends bn{constructor(n,e){super(n,"PasswordException"),this.code=e}}class Zr extends bn{constructor(n,e){super(n,"UnknownErrorException"),this.details=e}}class to extends bn{constructor(n){super(n,"InvalidPDFException")}}class _i extends bn{constructor(n){super(n,"MissingPDFException")}}class va extends bn{constructor(n,e){super(n,"UnexpectedResponseException"),this.status=e}}class m0 extends bn{constructor(n){super(n,"FormatError")}}class vn extends bn{constructor(n){super(n,"AbortException")}}function jl(i){("object"!=typeof i||void 0===i?.length)&&yt("Invalid argument for bytesToString");const n=i.length,e=8192;if(n<e)return String.fromCharCode.apply(null,i);const a=[];for(let r=0;r<n;r+=e){const o=Math.min(r+e,n),s=i.subarray(r,o);a.push(String.fromCharCode.apply(null,s))}return a.join("")}function zn(i){"string"!=typeof i&&yt("Invalid argument for stringToBytes");const n=i.length,e=new Uint8Array(n);for(let a=0;a<n;++a)e[a]=255&i.charCodeAt(a);return e}function eo(i){const n=Object.create(null);for(const[e,a]of i)n[e]=a;return n}class pe{static get isLittleEndian(){return dt(this,"isLittleEndian",function f0(){const i=new Uint8Array(4);return i[0]=1,1===new Uint32Array(i.buffer,0,1)[0]}())}static get isEvalSupported(){return dt(this,"isEvalSupported",function b0(){try{return new Function(""),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return dt(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return dt(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get platform(){return typeof navigator<"u"&&"string"==typeof navigator?.platform?dt(this,"platform",{isMac:navigator.platform.includes("Mac"),isWindows:navigator.platform.includes("Win"),isFirefox:"string"==typeof navigator?.userAgent&&navigator.userAgent.includes("Firefox")}):dt(this,"platform",{isMac:!1,isWindows:!1,isFirefox:!1})}static get isCSSRoundSupported(){return dt(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}const xa=Array.from(Array(256).keys(),i=>i.toString(16).padStart(2,"0"));class J{static makeHexColor(n,e,a){return`#${xa[n]}${xa[e]}${xa[a]}`}static scaleMinMax(n,e){let a;
1n[0]?(n[0]<0&&(a=e[0],e[0]=e[2],e[2]=a),e[0]*=n[0],e[2]*=n[0],n[3]<0&&(a=e[1],e[1]=e[3],e[3]=a),e[1]*=n[3],e[3]*=n[3]):(a=e[0],e[0]=e[1],e[1]=a,a=e[2],e[2]=e[3],e[3]=a,n[1]<0&&(a=e[1],e[1]=e[3],e[3]=a),e[1]*=n[1],e[3]*=n[1],n[2]<0&&(a=e[0],e[0]=e[2],e[2]=a),e[0]*=n[2],e[2]*=n[2]),e[0]+=n[4],e[1]+=n[5],e[2]+=n[4],e[3]+=n[5]}static transform(n,e){return[n[0]*e[0]+n[2]*e[1],n[1]*e[0]+n[3]*e[1],n[0]*e[2]+n[2]*e[3],n[1]*e[2]+n[3]*e[3],n[0]*e[4]+n[2]*e[5]+n[4],n[1]*e[4]+n[3]*e[5]+n[5]]}static applyTransform(n,e){return[n[0]*e[0]+n[1]*e[2]+e[4],n[0]*e[1]+n[1]*e[3]+e[5]]}static applyInverseTransform(n,e){const a=e[0]*e[3]-e[1]*e[2];return[(n[0]*e[3]-n[1]*e[2]+e[2]*e[5]-e[4]*e[3])/a,(-n[0]*e[1]+n[1]*e[0]+e[4]*e[1]-e[5]*e[0])/a]}static getAxialAlignedBoundingBox(n,e){const a=this.applyTransform(n,e),r=this.applyTransform(n.slice(2,4),e),o=this.applyTransform([n[0],n[3]],e),s=this.applyTransform([n[2],n[1]],e);return[Math.min(a[0],r[0],o[0],s[0]),Math.min(a[1],r[1],o[1],s[1]),Math.max(a[0],r[0],o[0],s[0]),Math.max(a[1],r[1],o[1],s[1])]}static inverseTransform(n){const e=n[0]*n[3]-n[1]*n[2];return[n[3]/e,-n[1]/e,-n[2]/e,n[0]/e,(n[2]*n[5]-n[4]*n[3])/e,(n[4]*n[1]-n[5]*n[0])/e]}static singularValueDecompose2dScale(n){const e=[n[0],n[2],n[1],n[3]],a=n[0]*e[0]+n[1]*e[2],s=n[2]*e[1]+n[3]*e[3],l=(a+s)/2,c=Math.sqrt((a+s)**2-4*(a*s-(n[2]*e[0]+n[3]*e[2])*(n[0]*e[1]+n[1]*e[3])))/2,u=l-c||1;return[Math.sqrt(l+c||1),Math.sqrt(u)]}static normalizeRect(n){const e=n.slice(0);return n[0]>n[2]&&(e[0]=n[2],e[2]=n[0]),n[1]>n[3]&&(e[1]=n[3],e[3]=n[1]),e}static intersect(n,e){const a=Math.max(Math.min(n[0],n[2]),Math.min(e[0],e[2])),r=Math.min(Math.max(n[0],n[2]),Math.max(e[0],e[2]));if(a>r)return null;const o=Math.max(Math.min(n[1],n[3]),Math.min(e[1],e[3])),s=Math.min(Math.max(n[1],n[3]),Math.max(e[1],e[3]));return o>s?null:[a,o,r,s]}static#t(n,e,a,r,o,s,l,c,d,u){if(d<=0||d>=1)return;const _=1-d,h=d*d,g=h*d,b=_*(_*(_*n+3*d*e)+3*h*a)+g*r,v=_*(_*(_*o+3*d*s)+3*h*l)+g*c;u[0]=Math.min(u[0],b),u[1]=Math.min(u[1],v),u[2]=Math.max(u[2],b),u[3]=Math.max(u[3],v)}static#e(n,e,a,r,o,s,l,c,d,u,_,h){if(Math.abs(d)<1e-12)return void(Math.abs(u)>=1e-12&&this.#t(n,e,a,r,o,s,l,c,-_/u,h));const g=u**2-4*_*d;if(g<0)return;const b=Math.sqrt(g),v=2*d;this.#t(n,e,a,r,o,s,l,c,(-u+b)/v,h),this.#t(n,e,a,r,o,s,l,c,(-u-b)/v,h)}static bezierBoundingBox(n,e,a,r,o,s,l,c,d){return d?(d[0]=Math.min(d[0],n,l),d[1]=Math.min(d[1],e,c),d[2]=Math.max(d[2],n,l),d[3]=Math.max(d[3],e,c)):d=[Math.min(n,l),Math.min(e,c),Math.max(n,l),Math.max(e,c)],this.#e(n,a,o,l,e,r,s,c,3*(3*(a-o)-n+l),6*(n-2*a+o),3*(a-n),d),this.#e(n,a,o,l,e,r,s,c,3*(3*(r-s)-e+c),6*(e-2*r+s),3*(r-e),d),d}}let no=null,Ol=null;function C0(i){return no||(no=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,Ol=new Map([["\ufb05","\u017ft"]])),i.replaceAll(no,(n,e,a)=>e?e.normalize("NFKC"):Ol.get(a))}const io="pdfjs_internal_id_";"function"!=typeof Promise.try&&(Promise.try=function(i,...n){return new Promise(e=>{e(i(...n))})});const an="http://www.w3.org/2000/svg";class Qn{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}function Ca(i){return ao.apply(this,arguments)}function ao(){return(ao=(0,z.A)(function*(i,n="text"){if(hi(i,document.baseURI)){const e=yield fetch(i);if(!e.ok)throw new Error(e.statusText);switch(n){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"json":return e.json()}return e.text()}return new Promise((e,a)=>{const r=new XMLHttpRequest;r.open("GET",i,!0),r.responseType=n,r.onreadystatechange=()=>{if(r.readyState===XMLHttpRequest.DONE){if(200===r.status||0===r.status){switch(n){case"arraybuffer":case"blob":case"json":return void e(r.response)}return void e(r.responseText)}a(new Error(r.statusText))}},r.send(null)})})).apply(this,arguments)}class pi{constructor({viewBox:n,userUnit:e,scale:a,rotation:r,offsetX:o=0,offsetY:s=0,dontFlip:l=!1}){this.viewBox=n,this.userUnit=e,this.scale=a,this.rotation=r,this.offsetX=o,this.offsetY=s,a*=e;const c=(n[2]+n[0])/2,d=(n[3]+n[1])/2;let u,_,h,g,b,v,R,C;switch((r%=360)<0&&(r+=360),r){case 180:u=-1,_=0,h=0,g=1;break;case 90:u=0,_=1,h=1,g=0;break;case 270:u=0,_=-1,h=-1,g=0;break;case 0:u=1,_=0,h=0,g=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}l&&(h=-h,g=-g),0===u?(b=Math.abs(d-n[1])*a+o,v=Math.abs(c-n[0])*a+s,R=(n[3]-n[1])*a,C=(n[2]-n[0])*a):(b=
1Math.abs(c-n[0])*a+o,v=Math.abs(d-n[1])*a+s,R=(n[2]-n[0])*a,C=(n[3]-n[1])*a),this.transform=[u*a,_*a,h*a,g*a,b-u*a*c-h*a*d,v-_*a*c-g*a*d],this.width=R,this.height=C}get rawDims(){const{userUnit:n,viewBox:e}=this,a=e.map(r=>r*n);return dt(this,"rawDims",{pageWidth:a[2]-a[0],pageHeight:a[3]-a[1],pageX:a[0],pageY:a[1]})}clone({scale:n=this.scale,rotation:e=this.rotation,offsetX:a=this.offsetX,offsetY:r=this.offsetY,dontFlip:o=!1}={}){return new pi({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:n,rotation:e,offsetX:a,offsetY:r,dontFlip:o})}convertToViewportPoint(n,e){return J.applyTransform([n,e],this.transform)}convertToViewportRectangle(n){const e=J.applyTransform([n[0],n[1]],this.transform),a=J.applyTransform([n[2],n[3]],this.transform);return[e[0],e[1],a[0],a[1]]}convertToPdfPoint(n,e){return J.applyInverseTransform([n,e],this.transform)}}class ro extends bn{constructor(n,e=0){super(n,"RenderingCancelledException"),this.extraDelay=e}}function Ra(i){const n=i.length;let e=0;for(;e<n&&""===i[e].trim();)e++;return"data:"===i.substring(e,e+5).toLowerCase()}function oo(i){return"string"==typeof i&&/\.pdf$/i.test(i)}function T0(i){return[i]=i.split(/[#?]/,1),i.substring(i.lastIndexOf("/")+1)}function I0(i,n="document.pdf"){if("string"!=typeof i)return n;if(Ra(i))return st('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),n;const a=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(i);let o=a.exec(r[1])||a.exec(r[2])||a.exec(r[3]);if(o&&(o=o[0],o.includes("%")))try{o=a.exec(decodeURIComponent(o))[0]}catch{}return o||n}class Bl{started=Object.create(null);times=[];time(n){n in this.started&&st(`Timer is already running for ${n}`),this.started[n]=Date.now()}timeEnd(n){n in this.started||st(`Timer has not been started for ${n}`),this.times.push({name:n,start:this.started[n],end:Date.now()}),delete this.started[n]}toString(){const n=[];let e=0;for(const{name:a}of this.times)e=Math.max(a.length,e);for(const{name:a,start:r,end:o}of this.times)n.push(`${a.padEnd(e)} ${o-r}ms\n`);return n.join("")}}function hi(i,n){try{const{protocol:e}=n?new URL(i,n):new URL(i);return"http:"===e||"https:"===e}catch{return!1}}function Oe(i){i.preventDefault()}function Me(i){i.preventDefault(),i.stopPropagation()}class Yl{static#t;static toDateObject(n){if(!n||"string"!=typeof n)return null;this.#t||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const e=this.#t.exec(n);if(!e)return null;const a=parseInt(e[1],10);let r=parseInt(e[2],10);r=r>=1&&r<=12?r-1:0;let o=parseInt(e[3],10);o=o>=1&&o<=31?o:1;let s=parseInt(e[4],10);s=s>=0&&s<=23?s:0;let l=parseInt(e[5],10);l=l>=0&&l<=59?l:0;let c=parseInt(e[6],10);c=c>=0&&c<=59?c:0;const d=e[7]||"Z";let u=parseInt(e[8],10);u=u>=0&&u<=23?u:0;let _=parseInt(e[9],10)||0;return _=_>=0&&_<=59?_:0,"-"===d?(s+=u,l+=_):"+"===d&&(s-=u,l-=_),new Date(Date.UTC(a,r,o,s,l,c))}}function k0(i,{scale:n=1,rotation:e=0}){const{width:a,height:r}=i.attributes.style,o=[0,0,parseInt(a),parseInt(r)];return new pi({viewBox:o,userUnit:1,scale:n,rotation:e})}function so(i){if(i.startsWith("#")){const n=parseInt(i.slice(1),16);return[(16711680&n)>>16,(65280&n)>>8,255&n]}return i.startsWith("rgb(")?i.slice(4,-1).split(",").map(n=>parseInt(n)):i.startsWith("rgba(")?i.slice(5,-1).split(",").map(n=>parseInt(n)).slice(0,3):(st(`Not a valid color format: "${i}"`),[0,0,0])}function St(i){const{a:n,b:e,c:a,d:r,e:o,f:s}=i.getTransform();return[n,e,a,r,o,s]}function Qe(i){const{a:n,b:e,c:a,d:r,e:o,f:s}=i.getTransform().invertSelf();return[n,e,a,r,o,s]}function Mn(i,n,e=!1,a=!0){if(n instanceof pi){const{pageWidth:r,pageHeight:o}=n.rawDims,{style:s}=i,l=pe.isCSSRoundSupported,c=`var(--scale-factor) * ${r}px`,d=`var(--scale-factor) * ${o}px`,u=l?`round(down, ${c}, var(--scale-round-x, 1px))`:`calc(${c})`,_=l?`round(down, ${d}, var(--scale-round-y, 1px))`:`calc(${d})`;e&&n.rotation%180!=0?(s.width=_,s.height=u):(s.width=u,s.height=_)}a&&i.setAttribute("data-main-rotation",n.rotation)}class lo{constructor(){const n=window.devicePixelRatio||1;this.sx=n,this.sy=n}get scaled(){return 1!==this.sx||1!==this.sy}get symmetric(){return this.sx===this.sy}}class mi{#t=null;#e=null;#n;#i=null;#r=null;static#a=null;constructor(n){this.#n=n,mi.#a||=Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"})}render(){const n=this.#t=document.createElement("div");n.classList.add("editToolbar","hidden"),n.setAttribute("role","toolbar");const e=this.#n._uiManager._signal;n.addEventListener("contextmenu",Oe,{signal:e}),n.addEventListener("pointerdown",mi.#l,{signal:e});const a=this.#i=document.createElement("div");a.className="buttons",n.append(a);const r=this.#n.toolbarPosition;if(r){const{style:o}=n,s="ltr"===this.#n._uiManager.direction?1-r[0]:r[0];o.insetInlineEnd=100*s+"%",o.top=`calc(${100*r[1]}% + var(--editor-toolbar-vert-offset))`}return this.#_(),n}get div(){return this.#t}static#l(n){n.stopPropagation()}#s(n){this.#n._focusEventsAllowed=!1,Me(n)}#d(n){this.#n._focusEventsAllowed=!0,Me(n)}#c(n){const e=this.#n._uiManager._signal;n.addEventListener("focusin",this.#s.bind(this),{capture:!0,signal:e}),n.addEventListener("focusout",this.#d.bind(this),{capture:!0,signal:e}),n.addEventListener("contextmenu",Oe,{signal:e})}hide(){this.#t.classList.add("hidden"),this.#e?.hideDropdown()}show(){this.#t.classList.remove("hidden"),this.#r?.shown()}#_(){const{editorType:n,_uiManager:e}=this.#n,a=document.createElement("button");a.className="delete",a.tabIndex=0,a.setAttribute("data-l10n-id",mi.#a[n]),this.#c(a),a.addEventListener("click",r=>{e.delete()},{signal:e._signal}),this.#i.append(a)}get#u(){const n=document.createElement("div");return n.className="divider",n}addAltText(n){var e=this;return(0,z.A)(function*(){const a=yield n.render();e.#c(a),e.#i.prepend(a,e.#u),e.#r=n})()}addColorPicker(n){this.#e=n;const e=n.renderButton();this.#c(e),this.#i.prepend(e,this.#u)}
1remove(){this.#t.remove(),this.#e?.destroy(),this.#e=null}}class w0{#t=null;#e=null;#n;constructor(n){this.#n=n}#i(){const n=this.#e=document.createElement("div");n.className="editToolbar",n.setAttribute("role","toolbar"),n.addEventListener("contextmenu",Oe,{signal:this.#n._signal});const e=this.#t=document.createElement("div");return e.className="buttons",n.append(e),this.#a(),n}#r(n,e){let a=0,r=0;for(const o of n){const s=o.y+o.height;if(s<a)continue;const l=o.x+(e?o.width:0);s>a?(r=l,a=s):e?l>r&&(r=l):l<r&&(r=l)}return[e?1-r:r,a]}show(n,e,a){const[r,o]=this.#r(e,a),{style:s}=this.#e||=this.#i();n.append(this.#e),s.insetInlineEnd=100*r+"%",s.top=`calc(${100*o}% + var(--editor-toolbar-vert-offset))`}hide(){this.#e.remove()}#a(){const n=document.createElement("button");n.className="highlightButton",n.tabIndex=0,n.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const e=document.createElement("span");n.append(e),e.className="visuallyHidden",e.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label");const a=this.#n._signal;n.addEventListener("contextmenu",Oe,{signal:a}),n.addEventListener("click",()=>{this.#n.highlightSelection("floating_button")},{signal:a}),this.#t.append(n)}}function ya(i,n,e){for(const a of e)n.addEventListener(a,i[a].bind(i))}class M0{#t=0;get id(){return"pdfjs_internal_editor_"+this.#t++}}class co{#t=function R0(){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();const i=new Uint8Array(32);return crypto.getRandomValues(i),jl(i)}();#e=0;#n=null;static get _isSVGFittingCanvas(){const a=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),r=new Image;return r.src='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',dt(this,"_isSVGFittingCanvas",r.decode().then(()=>(a.drawImage(r,0,0,1,1,0,0,1,3),0===new Uint32Array(a.getImageData(0,0,1,1).data.buffer)[0])))}#i(n,e){var a=this;return(0,z.A)(function*(){a.#n||=new Map;let r=a.#n.get(n);if(null===r)return null;if(r?.bitmap)return r.refCounter+=1,r;try{let o;if(r||={bitmap:null,id:`image_${a.#t}_${a.#e++}`,refCounter:0,isSvg:!1},"string"==typeof e?(r.url=e,o=yield Ca(e,"blob")):e instanceof File?o=r.file=e:e instanceof Blob&&(o=e),"image/svg+xml"===o.type){const s=co._isSVGFittingCanvas,l=new FileReader,c=new Image,d=new Promise((u,_)=>{c.onload=()=>{r.bitmap=c,r.isSvg=!0,u()},l.onload=(0,z.A)(function*(){const h=r.svgUrl=l.result;c.src=(yield s)?`${h}#svgView(preserveAspectRatio(none))`:h}),c.onerror=l.onerror=_});l.readAsDataURL(o),yield d}else r.bitmap=yield createImageBitmap(o);r.refCounter=1}catch(o){st(o),r=null}return a.#n.set(n,r),r&&a.#n.set(r.id,r),r})()}getFromFile(n){var e=this;return(0,z.A)(function*(){const{lastModified:a,name:r,size:o,type:s}=n;return e.#i(`${a}_${r}_${o}_${s}`,n)})()}getFromUrl(n){var e=this;return(0,z.A)(function*(){return e.#i(n,n)})()}getFromBlob(n,e){var a=this;return(0,z.A)(function*(){const r=yield e;return a.#i(n,r)})()}getFromId(n){var e=this;return(0,z.A)(function*(){e.#n||=new Map;const a=e.#n.get(n);if(!a)return null;if(a.bitmap)return a.refCounter+=1,a;if(a.file)return e.getFromFile(a.file);if(a.blobPromise){const{blobPromise:r}=a;return delete a.blobPromise,e.getFromBlob(a.id,r)}return e.getFromUrl(a.url)})()}getFromCanvas(n,e){this.#n||=new Map;let a=this.#n.get(n);if(a?.bitmap)return a.refCounter+=1,a;const r=new OffscreenCanvas(e.width,e.height);return r.getContext("2d").drawImage(e,0,0),a={bitmap:r.transferToImageBitmap(),id:`image_${this.#t}_${this.#e++}`,refCounter:1,isSvg:!1},this.#n.set(n,a),this.#n.set(a.id,a),a}getSvgUrl(n){const e=this.#n.get(n);return e?.isSvg?e.svgUrl:null}deleteId(n){this.#n||=new Map;const e=this.#n.get(n);if(!e||(e.refCounter-=1,0!==e.refCounter))return;const{bitmap:a}=e;if(!e.url&&!e.file){const r=new OffscreenCanvas(a.width,a.height);r.getContext("bitmaprenderer").transferFromImageBitmap(a),e.blobPromise=r.convertToBlob()}a.close?.(),e.bitmap=null}isValidId(n){return n.startsWith(`image_${this.#t}_`)}}class S0{#t=[];#e=!1;#n;#i=-1;constructor(n=128){this.#n=n}add({cmd:n,undo:e,post:a,mustExec:r,type:o=NaN,overwriteIfSameType:s=!1,keepUndo:l=!1}){if(r&&n(),this.#e)return;const c={cmd:n,undo:e,post:a,type:o};if(-1===this.#i)return this.#t.length>0&&(this.#t.length=0),this.#i=0,void this.#t.push(c);if(s&&this.#t[this.#i].type===o)return l&&(c.undo=this.#t[this.#i].undo),void(this.#t[this.#i]=c);const d=this.#i+1;d===this.#n?this.#t.splice(0,1):(this.#i=d,d<this.#t.length&&this.#t.splice(d)),this.#t.push(c)}undo(){if(-1===this.#i)return;this.#e=!0;const{undo:n,post:e}=this.#t[this.#i];n(),e?.(),this.#e=!1,this.#i-=1}redo(){if(this.#i<this.#t.length-1){this.#i+=1,this.#e=!0;const{cmd:n,post:e}=this.#t[this.#i];n(),e?.(),this.#e=!1}}hasSomethingToUndo(){return-1!==this.#i}hasSomethingToRedo(){return this.#i<this.#t.length-1}cleanType(n){if(-1!==this.#i){for(let e=this.#i;e>=0;e--)if(this.#t[e].type!==n)return this.#t.splice(e+1,this.#i-e),void(this.#i=e);this.#t.length=0,this.#i=-1}}destroy(){this.#t=null}}class gi{constructor(n){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:e}=pe.platform;for(const[a,r,o={}]of n)for(const s of a){const l=s.startsWith("mac+");e&&l?(this.callbacks.set(s.slice(4),{callback:r,options:o}),this.allKeys.add(s.split("+").at(-1))):!e&&!l&&(this.callbacks.set(s,{callback:r,options:o}),this.allKeys.add(s.split("+").at(-1)))}}#t(n){n.altKey&&this.buffer.push("alt"),n.ctrlKey&&this.buffer.push("ctrl"),n.metaKey&&this.buffer.push("meta"),n.shiftKey&&this.buffer.push("shift"),this.buffer.push(n.key);const e=this.buffer.join("+");return this.buffer.length=0,e}exec(n,e){if(!this.allKeys.has(e.key))return;const a=this.callbacks.get(this.#t(e));if(!a)return;const{callback:r,options:{bubbles:o=!1,args:s=[],checker:l=null}}=a;l&&!l(n,e)||(r.bind(n,...s,e)(),o||Me(e))}}class uo{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const n=new Map([["CanvasText",null],["Canvas",null]]);return function F0(i){const n=document.createElement("span");n.style.visibility="hidden",document.body.append(n);for(const e of i.keys()){n.style.color=e;const a=window.getComputedStyle(n).color;i.set(e,so(a))}n.remove()}(n),dt(this,"_colors",n)}convert(n){const e=so(n);if(!window.matchMedia("(forced-colors: active)").matches)return e;for(const[a,r]of this._colors)if(r.every((o,s)=>o===e[s]))return uo._colorsMapping.get(a);return e}getHexCode(n){const e=this._colors.get(n);return e?J.makeHexColor(...e):n}}let fi=(()=>{class i{#t=new AbortController;#e=null;#n=new Map;#i=new Map;#r=null;#a=null;#l=null;#s=new S0;#d=null;#c=null;#_=0;#u=new Set;#p=null;#o=null;#h=new Set;_editorUndoBar=null;#g=!1;#m=!1;#f=!1;#x=null;
vendor: 1,089 bytes, line 1
1#b=null;#C=null;#y=null;#I=!1;#F=null;#M=new M0;#R=!1;#w=!1;#k=null;#A=null;#G=null;#$=null;#T=ct.NONE;#v=new Set;#P=null;#B=null;#Y=null;#X={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#L=[0,0];#D=null;#N=null;#q=null;#E=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const e=i.prototype,a=l=>l.#N.contains(document.activeElement)&&"BUTTON"!==document.activeElement.tagName&&l.hasSomethingToControl(),r=(l,{target:c})=>{if(c instanceof HTMLInputElement){const{type:d}=c;return"text"!==d&&"number"!==d}return!0},o=this.TRANSLATE_SMALL,s=this.TRANSLATE_BIG;return dt(this,"_keyboardManager",new gi([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:r}],[["ctrl+z","mac+meta+z"],e.undo,{checker:r}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:r}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:r}
vendor: 4,162 bytes, line 1
1],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:(l,{target:c})=>!(c instanceof HTMLButtonElement)&&l.#N.contains(c)&&!l.isEnterHandled}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:(l,{target:c})=>!(c instanceof HTMLButtonElement)&&l.#N.contains(document.activeElement)}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-o,0],checker:a}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-s,0],checker:a}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[o,0],checker:a}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[s,0],checker:a}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-o],checker:a}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-s],checker:a}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,o],checker:a}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,s],checker:a}]]))}constructor(e,a,r,o,s,l,c,d,u,_,h,g,b){const v=this._signal=this.#t.signal;this.#N=e,this.#q=a,this.#r=r,this._eventBus=o,o._on("editingaction",this.onEditingAction.bind(this),{signal:v}),o._on("pagechanging",this.onPageChanging.bind(this),{signal:v}),o._on("scalechanging",this.onScaleChanging.bind(this),{signal:v}),o._on("rotationchanging",this.onRotationChanging.bind(this),{signal:v}),o._on("setpreference",this.onSetPreference.bind(this),{signal:v}),o._on("switchannotationeditorparams",R=>this.updateParams(R.type,R.value),{signal:v}),this.#et(),this.#rt(),this.#Q(),this.#a=s.annotationStorage,this.#x=s.filterFactory,this.#B=l,this.#y=c||null,this.#g=d,this.#m=u,this.#f=_,this.#$=h||null,this.viewParameters={realScale:Qn.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=g||null,this._supportsPinchToZoom=!1!==b}destroy(){this.#E?.resolve(),this.#E=null,this.#t?.abort(),this.#t=null,this._signal=null;for(const e of this.#i.values())e.destroy();this.#i.clear(),this.#n.clear(),this.#h.clear(),this.#e=null,this.#v.clear(),this.#s.destroy(),this.#r?.destroy(),this.#F?.hide(),this.#F=null,this.#b&&(clearTimeout(this.#b),this.#b=null),this.#D&&(clearTimeout(this.#D),this.#D=null),this._editorUndoBar?.destroy()}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return this.#$}get useNewAltTextFlow(){return this.#m}get useNewAltTextWhenAddingImage(){return this.#f}get hcmFilter(){return dt(this,"hcmFilter",this.#B?this.#x.addHCMFilter(this.#B.foreground,this.#B.background):"none")}get direction(){return dt(this,"direction",getComputedStyle(this.#N).direction)}get highlightColors(){return dt(this,"highlightColors",this.#y?new Map(this.#y.split(",").map(e=>e.split("=").map(a=>a.trim()))):null)}get highlightColorNames(){return dt(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}setCurrentDrawingSession(e){e?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),this.#c=e}setMainHighlightColorPicker(e){this.#G=e}editAltText(e,a=!1){this.#r?.editAltText(this,e,a)}switchToMode(e,a){this._eventBus.on("annotationeditormodechanged",a,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:e})}setPreference(e,a){this._eventBus.dispatch("setpreference",{source:this,name:e,value:a})}onSetPreference({name:e,value:a}){"enableNewAltTextWhenAddingImage"===e&&(this.#f=a)}onPageChanging({pageNumber:e}){this.#_=e-1}focusMainContainer(){this.#N.focus()}findParent(e,a){for(const r of this.#i.values()){const{x:o,y:s,width:l,height:c}=r.div.getBoundingClientRect();if(e>=o&&e<=o+l&&a>=s&&a<=s+c)return r}return null}disableUserSelect(e=!1){this.#q.classList.toggle("noUserSelect",e)}addShouldRescale(e){this.#h.add(e)}removeShouldRescale(e){this.#h.delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*Qn.PDF_TO_CSS_UNITS;for(const a of this.#h)a.onScaleChanging();this.#c?.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}#j({anchorNode:e}
1){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}#z(e){const{currentLayer:a}=this;if(a.hasTextLayer(e))return a;for(const r of this.#i.values())if(r.hasTextLayer(e))return r;return null}highlightSelection(e=""){const a=document.getSelection();if(!a||a.isCollapsed)return;const{anchorNode:r,anchorOffset:o,focusNode:s,focusOffset:l}=a,c=a.toString(),u=this.#j(a).closest(".textLayer"),_=this.getSelectionBoxes(u);if(!_)return;a.empty();const h=this.#z(u),g=this.#T===ct.NONE,b=()=>{h?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:_,anchorNode:r,anchorOffset:o,focusNode:s,focusOffset:l,text:c}),g&&this.showAllEditors("highlight",!0,!0)};g?this.switchToMode(ct.HIGHLIGHT,b):b()}#Z(){const e=document.getSelection();if(!e||e.isCollapsed)return;const r=this.#j(e).closest(".textLayer"),o=this.getSelectionBoxes(r);o&&(this.#F||=new w0(this),this.#F.show(r,o,"ltr"===this.direction))}addToAnnotationStorage(e){!e.isEmpty()&&this.#a&&!this.#a.has(e.id)&&this.#a.setValue(e.id,e)}#tt(){const e=document.getSelection();if(!e||e.isCollapsed)return void(this.#P&&(this.#F?.hide(),this.#P=null,this.#S({hasSelectedText:!1})));const{anchorNode:a}=e;if(a===this.#P)return;const o=this.#j(e).closest(".textLayer");if(o){if(this.#F?.hide(),this.#P=a,this.#S({hasSelectedText:!0}),(this.#T===ct.HIGHLIGHT||this.#T===ct.NONE)&&(this.#T===ct.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#I=this.isShiftKeyDown,!this.isShiftKeyDown)){const s=this.#T===ct.HIGHLIGHT?this.#z(o):null;s?.toggleDrawing();const l=new AbortController,c=this.combinedSignal(l),d=u=>{"pointerup"===u.type&&0!==u.button||(l.abort(),s?.toggleDrawing(!0),"pointerup"===u.type&&this.#V("main_toolbar"))};window.addEventListener("pointerup",d,{signal:c}),window.addEventListener("blur",d,{signal:c})}}else this.#P&&(this.#F?.hide(),this.#P=null,this.#S({hasSelectedText:!1}))}#V(e=""){this.#T===ct.HIGHLIGHT?this.highlightSelection(e):this.#g&&this.#Z()}#et(){document.addEventListener("selectionchange",this.#tt.bind(this),{signal:this._signal})}#nt(){if(this.#C)return;this.#C=new AbortController;const e=this.combinedSignal(this.#C);window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})}#it(){this.#C?.abort(),this.#C=null}blur(){if(this.isShiftKeyDown=!1,this.#I&&(this.#I=!1,this.#V("main_toolbar")),!this.hasSelection)return;const{activeElement:e}=document;for(const a of this.#v)if(a.div.contains(e)){this.#A=[a,e],a._focusEventsAllowed=!1;break}}focus(){if(!this.#A)return;const[e,a]=this.#A;this.#A=null,a.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),a.focus()}#Q(){if(this.#k)return;this.#k=new AbortController;const e=this.combinedSignal(this.#k);window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})}#at(){this.#k?.abort(),this.#k=null}#U(){if(this.#d)return;this.#d=new AbortController;const e=this.combinedSignal(this.#d);document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})}#J(){this.#d?.abort(),this.#d=null}#rt(){const e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})}addEditListeners(){this.#Q(),this.#U()}removeEditListeners(){this.#at(),this.#J()}dragOver(e){for(const{type:a}of e.dataTransfer.items)for(const r of this.#o)if(r.isHandlingMimeForPasting(a))return e.dataTransfer.dropEffect="copy",void e.preventDefault()}drop(e){for(const a of e.dataTransfer.items)for(const r of this.#o)if(r.isHandlingMimeForPasting(a.type))return r.paste(a,this.currentLayer),void e.preventDefault()}copy(e){if(e.preventDefault(),this.#e?.commitOrRemove(),!this.hasSelection)return;const a=[];for(const r of this.#v){const o=r.serialize(!0);o&&a.push(o)}0!==a.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(a))}cut(e){this.copy(e),this.delete()}paste(e){var a=this;return(0,z.A)(function*(){e.preventDefault();const{clipboardData:r}=e;for(const l of r.items)for(const c of a.#o)if(c.isHandlingMimeForPasting(l.type))return void c.paste(l,a.currentLayer);let o=r.getData("application/pdfjs");if(!o)return;try{o=JSON.parse(o)}catch(l){return void st(`paste: "${l.message}".`)}if(!Array.isArray(o))return;a.unselectAll();const s=a.currentLayer;try{const l=[];for(const u of o){const _=yield s.deserialize(u);if(!_)return;l.push(_)}const c=()=>{for(const u of l)a.#W(u);a.#K(l)};a.addCommands({cmd:c,undo:()=>{for(const u of l)u.remove()},mustExec:!0})}catch(l){st(`paste: "${l.message}".`)}})()}keydown(e){!this.isShiftKeyDown&&"Shift"===e.key&&(this.isShiftKeyDown=!0),this.#T!==ct.NONE&&!this.isEditorHandlingKeyboard&&i._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&"Shift"===e.key&&(this.isShiftKeyDown=!1,this.#I&&(this.#I=!1,this.#V("main_toolbar")))}onEditingAction({name:e}){switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu")}}#S(e){Object.entries(e).some(([r,o])=>this.#X[r]!==o)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#X,e)}),this.#T===ct.HIGHLIGHT&&!1===e.hasSelectedEditor&&this.#O([[pt.HIGHLIGHT_FREE,!0]]))}#O(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#nt(),this.#U(),this.#S({isEditing:this.#T!==ct.NONE,isEmpty:this.#H(),hasSomethingToUndo:this.#s.hasSomethingToUndo(),hasSomethingToRedo:this.#s.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#it(),this.#J(),this.#S({isEditing:!1}),this.disableUserSelect(!1))}
1registerEditorTypes(e){if(!this.#o){this.#o=e;for(const a of this.#o)this.#O(a.defaultPropertiesToUpdate)}}getId(){return this.#M.id}get currentLayer(){return this.#i.get(this.#_)}getLayer(e){return this.#i.get(e)}get currentPageIndex(){return this.#_}addLayer(e){this.#i.set(e.pageIndex,e),this.#R?e.enable():e.disable()}removeLayer(e){this.#i.delete(e.pageIndex)}updateMode(e){var a=this;return(0,z.A)(function*(r,o=null,s=!1){if(a.#T!==r&&(!a.#E||(yield a.#E.promise,a.#E))){if(a.#E=Promise.withResolvers(),a.#T=r,r===ct.NONE)return a.setEditingState(!1),a.#st(),a._editorUndoBar?.hide(),void a.#E.resolve();a.setEditingState(!0),yield a.#ot(),a.unselectAll();for(const l of a.#i.values())l.updateMode(r);if(!o)return s&&a.addNewEditorFromKeyboard(),void a.#E.resolve();for(const l of a.#n.values())l.annotationElementId===o?(a.setSelected(l),l.enterInEditMode()):l.unselect();a.#E.resolve()}}).apply(this,arguments)}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e!==this.#T&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,a){if(this.#o){switch(e){case pt.CREATE:return void this.currentLayer.addNewEditor();case pt.HIGHLIGHT_DEFAULT_COLOR:this.#G?.updateColor(a);break;case pt.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#Y||=new Map).set(e,a),this.showAllEditors("highlight",a)}for(const r of this.#v)r.updateParams(e,a);for(const r of this.#o)r.updateDefaultParams(e,a)}}showAllEditors(e,a,r=!1){for(const s of this.#n.values())s.editorType===e&&s.show(a);(this.#Y?.get(pt.HIGHLIGHT_SHOW_ALL)??!0)!==a&&this.#O([[pt.HIGHLIGHT_SHOW_ALL,a]])}enableWaiting(e=!1){if(this.#w!==e){this.#w=e;for(const a of this.#i.values())e?a.disableClick():a.enableClick(),a.div.classList.toggle("waiting",e)}}#ot(){var e=this;return(0,z.A)(function*(){if(!e.#R){e.#R=!0;const a=[];for(const r of e.#i.values())a.push(r.enable());yield Promise.all(a);for(const r of e.#n.values())r.enable()}})()}#st(){if(this.unselectAll(),this.#R){this.#R=!1;for(const e of this.#i.values())e.disable();for(const e of this.#n.values())e.disable()}}getEditors(e){const a=[];for(const r of this.#n.values())r.pageIndex===e&&a.push(r);return a}getEditor(e){return this.#n.get(e)}addEditor(e){this.#n.set(e.id,e)}removeEditor(e){e.div.contains(document.activeElement)&&(this.#b&&clearTimeout(this.#b),this.#b=setTimeout(()=>{this.focusMainContainer(),this.#b=null},0)),this.#n.delete(e.id),this.unselect(e),(!e.annotationElementId||!this.#u.has(e.annotationElementId))&&this.#a?.remove(e.id)}addDeletedAnnotationElement(e){this.#u.add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return this.#u.has(e)}removeDeletedAnnotationElement(e){this.#u.delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}#W(e){const a=this.#i.get(e.pageIndex);a?a.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}setActiveEditor(e){this.#e!==e&&(this.#e=e,e&&this.#O(e.propertiesToUpdate))}get#lt(){let e=null;for(e of this.#v);return e}updateUI(e){this.#lt===e&&this.#O(e.propertiesToUpdate)}updateUIForDefaultProperties(e){this.#O(e.defaultPropertiesToUpdate)}toggleSelected(e){if(this.#v.has(e))return this.#v.delete(e),e.unselect(),void this.#S({hasSelectedEditor:this.hasSelection});this.#v.add(e),e.select(),this.#O(e.propertiesToUpdate),this.#S({hasSelectedEditor:!0})}setSelected(e){this.#c?.commitOrRemove();for(const a of this.#v)a!==e&&a.unselect();this.#v.clear(),this.#v.add(e),e.select(),this.#O(e.propertiesToUpdate),this.#S({hasSelectedEditor:!0})}isSelected(e){return this.#v.has(e)}get firstSelectedEditor(){return this.#v.values().next().value}unselect(e){e.unselect(),this.#v.delete(e),this.#S({hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==this.#v.size}get isEnterHandled(){return 1===this.#v.size&&this.firstSelectedEditor.isEnterHandled}undo(){this.#s.undo(),this.#S({hasSomethingToUndo:this.#s.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#H()}),this._editorUndoBar?.hide()}redo(){this.#s.redo(),this.#S({hasSomethingToUndo:!0,hasSomethingToRedo:this.#s.hasSomethingToRedo(),isEmpty:this.#H()})}addCommands(e){this.#s.add(e),this.#S({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#H()})}cleanUndoStack(e){this.#s.cleanType(e)}#H(){if(0===this.#n.size)return!0;
vendor: 4,613 bytes, line 1
1if(1===this.#n.size)for(const e of this.#n.values())return e.isEmpty();return!1}delete(){this.commitOrRemove();const e=this.currentLayer?.endDrawingSession(!0);if(!this.hasSelection&&!e)return;const a=e?[e]:[...this.#v],o=()=>{for(const s of a)this.#W(s)};this.addCommands({cmd:()=>{this._editorUndoBar?.show(o,1===a.length?a[0].editorType:a.length);for(const s of a)s.remove()},undo:o,mustExec:!0})}commitOrRemove(){this.#e?.commitOrRemove()}hasSomethingToControl(){return this.#e||this.hasSelection}#K(e){for(const a of this.#v)a.unselect();this.#v.clear();for(const a of e)a.isEmpty()||(this.#v.add(a),a.select());this.#S({hasSelectedEditor:this.hasSelection})}selectAll(){for(const e of this.#v)e.commit();this.#K(this.#n.values())}unselectAll(){if((!this.#e||(this.#e.commitOrRemove(),this.#T===ct.NONE))&&!this.#c?.commitOrRemove()&&this.hasSelection){for(const e of this.#v)e.unselect();this.#v.clear(),this.#S({hasSelectedEditor:!1})}}translateSelectedEditors(e,a,r=!1){if(r||this.commitOrRemove(),!this.hasSelection)return;this.#L[0]+=e,this.#L[1]+=a;const[o,s]=this.#L,l=[...this.#v];this.#D&&clearTimeout(this.#D),this.#D=setTimeout(()=>{this.#D=null,this.#L[0]=this.#L[1]=0,this.addCommands({cmd:()=>{for(const d of l)this.#n.has(d.id)&&d.translateInPage(o,s)},undo:()=>{for(const d of l)this.#n.has(d.id)&&d.translateInPage(-o,-s)},mustExec:!1})},1e3);for(const d of l)d.translateInPage(e,a)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#p=new Map;for(const e of this.#v)this.#p.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#p)return!1;this.disableUserSelect(!1);const e=this.#p;this.#p=null;let a=!1;for(const[{x:o,y:s,pageIndex:l},c]of e)c.newX=o,c.newY=s,c.newPageIndex=l,a||=o!==c.savedX||s!==c.savedY||l!==c.savedPageIndex;if(!a)return!1;const r=(o,s,l,c)=>{if(this.#n.has(o.id)){const d=this.#i.get(c);d?o._setParentAndPosition(d,s,l):(o.pageIndex=c,o.x=s,o.y=l)}};return this.addCommands({cmd:()=>{for(const[o,{newX:s,newY:l,newPageIndex:c}]of e)r(o,s,l,c)},undo:()=>{for(const[o,{savedX:s,savedY:l,savedPageIndex:c}]of e)r(o,s,l,c)},mustExec:!0}),!0}dragSelectedEditors(e,a){if(this.#p)for(const r of this.#p.keys())r.drag(e,a)}rebuild(e){if(null===e.parent){const a=this.getLayer(e.pageIndex);a?(a.changeParent(e),a.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||1===this.#v.size&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return this.#e===e}getActive(){return this.#e}getMode(){return this.#T}get imageManager(){return dt(this,"imageManager",new co)}getSelectionBoxes(e){if(!e)return null;const a=document.getSelection();for(let u=0,_=a.rangeCount;u<_;u++)if(!e.contains(a.getRangeAt(u).commonAncestorContainer))return null;const{x:r,y:o,width:s,height:l}=e.getBoundingClientRect();let c;switch(e.getAttribute("data-main-rotation")){case"90":c=(u,_,h,g)=>({x:(_-o)/l,y:1-(u+h-r)/s,width:g/l,height:h/s});break;case"180":c=(u,_,h,g)=>({x:1-(u+h-r)/s,y:1-(_+g-o)/l,width:h/s,height:g/l});break;case"270":c=(u,_,h,g)=>({x:1-(_+g-o)/l,y:(u-r)/s,width:g/l,height:h/s});break;default:c=(u,_,h,g)=>({x:(u-r)/s,y:(_-o)/l,width:h/s,height:g/l})}const d=[];for(let u=0,_=a.rangeCount;u<_;u++){const h=a.getRangeAt(u);if(!h.collapsed)for(const{x:g,y:b,width:v,height:R}of h.getClientRects())0===v||0===R||d.push(c(g,b,v,R))}return 0===d.length?null:d}addChangedExistingAnnotation({annotationElementId:e,id:a}){(this.#l||=new Map).set(e,a)}removeChangedExistingAnnotation({annotationElementId:e}){this.#l?.delete(e)}renderAnnotationElement(e){const a=this.#l?.get(e.data.id);if(!a)return;const r=this.#a.getRawValue(a);r&&(this.#T===ct.NONE&&!r.hasBeenModified||r.renderAnnotationElement(e))}}return i})(),Xl=(()=>{class i{#t=null;#e=!1;#n=null;#i=null;#r=null;#a=null;#l=!1;#s=null;#d=null;#c=null;#_=null;#u=!1;static#p=null;static _l10n=null;constructor(e){this.#d=e,this.#u=e._uiManager.useNewAltTextFlow,i.#p||=Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"})}static initialize(e){i._l10n??=e}render(){var e=this;return(0,z.A)(function*(){const a=e.#n=document.createElement("button");a.className="altText",a.tabIndex="0";
1const r=e.#i=document.createElement("span");a.append(r),e.#u?(a.classList.add("new"),a.setAttribute("data-l10n-id",i.#p.missing),r.setAttribute("data-l10n-id",i.#p["missing-label"])):(a.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),r.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));const o=e.#d._uiManager._signal;a.addEventListener("contextmenu",Oe,{signal:o}),a.addEventListener("pointerdown",l=>l.stopPropagation(),{signal:o});const s=l=>{l.preventDefault(),e.#d._uiManager.editAltText(e.#d),e.#u&&e.#d._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:e.#o}})};return a.addEventListener("click",s,{capture:!0,signal:o}),a.addEventListener("keydown",l=>{l.target===a&&"Enter"===l.key&&(e.#l=!0,s(l))},{signal:o}),yield e.#h(),a})()}get#o(){return(this.#t?"added":null===this.#t&&this.guessedText&&"review")||"missing"}finish(){this.#n&&(this.#n.focus({focusVisible:this.#l}),this.#l=!1)}isEmpty(){return this.#u?null===this.#t:!this.#t&&!this.#e}hasData(){return this.#u?null!==this.#t||!!this.#c:this.isEmpty()}get guessedText(){return this.#c}setGuessedText(e){var a=this;return(0,z.A)(function*(){null===a.#t&&(a.#c=e,a.#_=yield i._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:e}),a.#h())})()}toggleAltTextBadge(e=!1){if(!this.#u||this.#t)return this.#s?.remove(),void(this.#s=null);if(!this.#s){const a=this.#s=document.createElement("div");a.className="noAltTextBadge",this.#d.div.append(a)}this.#s.classList.toggle("hidden",!e)}serialize(e){let a=this.#t;return!e&&this.#c===a&&(a=this.#_),{altText:a,decorative:this.#e,guessedText:this.#c,textWithDisclaimer:this.#_}}get data(){return{altText:this.#t,decorative:this.#e}}set data({altText:e,decorative:a,guessedText:r,textWithDisclaimer:o,cancel:s=!1}){r&&(this.#c=r,this.#_=o),(this.#t!==e||this.#e!==a)&&(s||(this.#t=e,this.#e=a),this.#h())}toggle(e=!1){this.#n&&(!e&&this.#a&&(clearTimeout(this.#a),this.#a=null),this.#n.disabled=!e)}shown(){this.#d._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:this.#o}})}destroy(){this.#n?.remove(),this.#n=null,this.#i=null,this.#r=null,this.#s?.remove(),this.#s=null}#h(){var e=this;return(0,z.A)(function*(){const a=e.#n;if(!a)return;if(e.#u){if(a.classList.toggle("done",!!e.#t),a.setAttribute("data-l10n-id",i.#p[e.#o]),e.#i?.setAttribute("data-l10n-id",i.#p[`${e.#o}-label`]),!e.#t)return void e.#r?.remove()}else{if(!e.#t&&!e.#e)return a.classList.remove("done"),void e.#r?.remove();a.classList.add("done"),a.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let r=e.#r;if(!r){e.#r=r=document.createElement("span"),r.className="tooltip",r.setAttribute("role","tooltip"),r.id=`alt-text-tooltip-${e.#d.id}`;const s=100,l=e.#d._uiManager._signal;l.addEventListener("abort",()=>{clearTimeout(e.#a),e.#a=null},{once:!0}),a.addEventListener("mouseenter",()=>{e.#a=setTimeout(()=>{e.#a=null,e.#r.classList.add("show"),e.#d._reportTelemetry({action:"alt_text_tooltip"})},s)},{signal:l}),a.addEventListener("mouseleave",()=>{e.#a&&(clearTimeout(e.#a),e.#a=null),e.#r?.classList.remove("show")},{signal:l})}e.#e?r.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(r.removeAttribute("data-l10n-id"),r.textContent=e.#t),r.parentNode||a.append(r),e.#d.getImageForAltText()?.setAttribute("aria-describedby",r.id)})()}}return i})();class Ta{#t;#e=!1;#n=null;#i;#r;#a;#l;#s;#d=null;#c;#_=null;constructor({container:n,isPinchingDisabled:e=null,isPinchingStopped:a=null,onPinchStart:r=null,onPinching:o=null,onPinchEnd:s=null,signal:l}){this.#t=n,this.#n=a,this.#i=e,this.#r=r,this.#a=o,this.#l=s,this.#c=new AbortController,this.#s=AbortSignal.any([l,this.#c.signal]),n.addEventListener("touchstart",this.#u.bind(this),{passive:!1,signal:this.#s})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return dt(this,"MIN_TOUCH_DISTANCE_TO_PINCH",35/(window.devicePixelRatio||1))}#u(n){if(this.#i?.()||n.touches.length<2)return;if(!this.#_){this.#_=new AbortController;const r=AbortSignal.any([this.#s,this.#_.signal]),o=this.#t,s={signal:r,passive:!1};o.addEventListener("touchmove",this.#p.bind(this),s),o.addEventListener("touchend",this.#o.bind(this),s),o.addEventListener("touchcancel",this.#o.bind(this),s),this.#r?.()}if(Me(n),2!==n.touches.length||this.#n?.())return void(this.#d=null);let[e,a]=n.touches;e.identifier>a.identifier&&([e,a]=[a,e]),this.#d={touch0X:e.screenX,touch0Y:e.screenY,touch1X:a.screenX,touch1Y:a.screenY}}#p(n){if(!this.#d||2!==n.touches.length)return;let[e,a]=n.touches;e.identifier>a.identifier&&([e,a]=[a,e]);const{screenX:r,screenY:o}=e,{screenX:s,screenY:l}=a,c=this.#d,{touch0X:d,touch0Y:u,touch1X:_,touch1Y:h}=c,g=_-d,b=h-u,C=Math.hypot(s-r,l-o)||1,k=Math.hypot(g,b)||1;if(!this.#e&&Math.abs(k-C)<=Ta.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(c.touch0X=r,c.touch0Y=o,c.touch1X=s,c.touch1Y=l,n.preventDefault(),!this.#e)return void(this.#e=!0);const F=[(r+s)/2,(o+l)/2];this.#a?.(F,k,C)}#o(n){this.#_.abort(),this.#_=null,this.#l?.(),this.#d&&(n.preventDefault(),this.#d=null,this.#e=!1)}destroy(){this.#c?.abort(),this.#c=null}}class tt{#t=null;#e=null;#n=null;#i=!1;#r=null;#a="";#l=!1;#s=null;#d=null;#c=null;#_=null;#u="";#p=!1;#o=null;#h=!1;#g=!1;#m=!1;#f=null;#x=0;#b=0;#C=null;#y=null;_editToolbar=null;_initialOptions=Object.create(null);_initialData=null;_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;static _l10n=null;static _l10nResizer=null;#I=!1;#F=tt._zIndex++;static _borderLineWidth=-1;static _colorManager=new uo;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){const n=tt.prototype._resizeWithKeyboard,e=fi.TRANSLATE_SMALL,a=fi.TRANSLATE_BIG;return dt(this,"_resizerKeyboardManager",new gi([[["ArrowLeft","mac+ArrowLeft"],n,{args:[-e,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],n,{args:[-a,0]}],[["ArrowRight","mac+ArrowRight"],n,{args:[e,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],n,{args:[a,0]}],[["ArrowUp","mac+ArrowUp"],n,{args:[0,-e]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],n,{args:[0,-a]}],[["ArrowDown","mac+ArrowDown"],n,{args:[0,e]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],n,{args:[0,a]}],[["Escape","mac+Escape"],tt.prototype._stopResizingWithKeyboard]]))}constructor(n){this.parent=n.parent,this.id=n.id,this.width=this.height=null,this.pageIndex=n.parent.pageIndex,this.name=n.name,this.div=null,this._uiManager=n.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=n.isCentered,this._structTreeParentId=null;const{rotation:e,rawDims:{pageWidth:a,pageHeight:r,pageX:o,pageY:s}}=this.parent.viewport;this.rotation=e,this.pageRotation=(360+e-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[a,r],this.pageTranslation=[o,s];const[l,c]=this.parentDimensions;this.x=n.x/l,this.y=n.y/c,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get isDrawer(){return!1}static get _defaultLineColor(){return dt(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(n){const e=new A0({id:n.parent.getNextId(),parent:n.parent,uiManager:n._uiManager});e.annotationElementId=n.annotationElementId,e.deleted=!0,e._uiManager.addToAnnotationStorage(e)}static initialize(n,e){if(tt._l10n??=n,tt._l10nResizer||=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"}),-1!==tt._borderLineWidth)return;const a=getComputedStyle(document.documentElement);tt._borderLineWidth=parseFloat(a.getPropertyValue("--outline-width"))||0}static updateDefaultParams(n,e){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(n){return!1}static paste(n,e){yt("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#I}set _isDraggable(n){this.#I=n,this.div?.classList.toggle("draggable",n)}get isEnterHandled(){return!0}center(){const[n,e]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*e/(2*n),this.y+=this.width*n/(2*e);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*e/(2*n),this.y-=this.width*n/(2*e);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(n){this._uiManager.addCommands(n)}get currentLayer(){return this._uiManager.currentLayer}
1setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#F}setParent(n){null!==n?(this.pageIndex=n.pageIndex,this.pageDimensions=n.pageDimensions):this.#j(),this.parent=n}focusin(n){this._focusEventsAllowed&&(this.#p?this.#p=!1:this.parent.setSelected(this))}focusout(n){!this._focusEventsAllowed||!this.isAttachedToDOM||n.relatedTarget?.closest(`#${this.id}`)||(n.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(n,e,a,r){const[o,s]=this.parentDimensions;[a,r]=this.screenToPageTranslation(a,r),this.x=(n+a)/o,this.y=(e+r)/s,this.fixAndSetPosition()}#M([n,e],a,r){[a,r]=this.screenToPageTranslation(a,r),this.x+=a/n,this.y+=r/e,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}translate(n,e){this.#M(this.parentDimensions,n,e)}translateInPage(n,e){this.#o||=[this.x,this.y,this.width,this.height],this.#M(this.pageDimensions,n,e),this.div.scrollIntoView({block:"nearest"})}drag(n,e){this.#o||=[this.x,this.y,this.width,this.height];const{div:a,parentDimensions:[r,o]}=this;if(this.x+=n/r,this.y+=e/o,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:_,y:h}=this.div.getBoundingClientRect();this.parent.findNewParent(this,_,h)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:s,y:l}=this;const[c,d]=this.getBaseTranslation();s+=c,l+=d;const{style:u}=a;u.left=`${(100*s).toFixed(2)}%`,u.top=`${(100*l).toFixed(2)}%`,this._onTranslating(s,l),a.scrollIntoView({block:"nearest"})}_onTranslating(n,e){}_onTranslated(n,e){}get _hasBeenMoved(){return!!this.#o&&(this.#o[0]!==this.x||this.#o[1]!==this.y)}get _hasBeenResized(){return!!this.#o&&(this.#o[2]!==this.width||this.#o[3]!==this.height)}getBaseTranslation(){const[n,e]=this.parentDimensions,{_borderLineWidth:a}=tt,r=a/n,o=a/e;switch(this.rotation){case 90:return[-r,o];case 180:return[r,o];case 270:return[r,-o];default:return[-r,-o]}}get _mustFixPosition(){return!0}fixAndSetPosition(n=this.rotation){const{div:{style:e},pageDimensions:[a,r]}=this;let{x:o,y:s,width:l,height:c}=this;if(l*=a,c*=r,o*=a,s*=r,this._mustFixPosition)switch(n){case 0:o=Math.max(0,Math.min(a-l,o)),s=Math.max(0,Math.min(r-c,s));break;case 90:o=Math.max(0,Math.min(a-c,o)),s=Math.min(r,Math.max(l,s));break;case 180:o=Math.min(a,Math.max(l,o)),s=Math.min(r,Math.max(c,s));break;case 270:o=Math.min(a,Math.max(c,o)),s=Math.max(0,Math.min(r-l,s))}this.x=o/=a,this.y=s/=r;const[d,u]=this.getBaseTranslation();o+=d,s+=u,e.left=`${(100*o).toFixed(2)}%`,e.top=`${(100*s).toFixed(2)}%`,this.moveInDOM()}static#R(n,e,a){switch(a){case 90:return[e,-n];case 180:return[-n,-e];case 270:return[-e,n];default:return[n,e]}}screenToPageTranslation(n,e){return tt.#R(n,e,this.parentRotation)}pageTranslationToScreen(n,e){return tt.#R(n,e,360-this.parentRotation)}#w(n){switch(n){case 90:{const[e,a]=this.pageDimensions;return[0,-e/a,a/e,0]}case 180:return[-1,0,0,-1];case 270:{const[e,a]=this.pageDimensions;return[0,e/a,-a/e,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:n,pageDimensions:[e,a]}=this;return[e*n,a*n]}setDims(n,e){const[a,r]=this.parentDimensions,{style:o}=this.div;o.width=`${(100*n/a).toFixed(2)}%`,this.#l||(o.height=`${(100*e/r).toFixed(2)}%`)}fixDims(){const{style:n}=this.div,{height:e,width:a}=n,r=a.endsWith("%"),o=!this.#l&&e.endsWith("%");if(r&&o)return;const[s,l]=this.parentDimensions;r||(n.width=`${(100*parseFloat(a)/s).toFixed(2)}%`),!this.#l&&!o&&(n.height=`${(100*parseFloat(e)/l).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#k(){if(this.#s)return;this.#s=document.createElement("div"),this.#s.classList.add("resizers");const n=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],e=this._uiManager._signal;for(const a of n){const r=document.createElement("div");this.#s.append(r),r.classList.add("resizer",a),r.setAttribute("data-resizer-name",a),r.addEventListener("pointerdown",this.#A.bind(this,a),{signal:e}),r.addEventListener("contextmenu",Oe,{signal:e}),r.tabIndex=-1}this.div.prepend(this.#s)}#A(n,e){e.preventDefault();const{isMac:a}=pe.platform;if(0!==e.button||e.ctrlKey&&a)return;this.#n?.toggle(!1);const r=this._isDraggable;this._isDraggable=!1,this.#d=[e.screenX,e.screenY];const o=new AbortController,s=this._uiManager.combinedSignal(o);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",this.#T.bind(this,n),{passive:!0,capture:!0,signal:s}),window.addEventListener("touchmove",Me,{passive:!1,signal:s}),window.addEventListener("contextmenu",Oe,{signal:s}),this.#c={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const l=this.parent.div.style.cursor,c=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(e.target).cursor;const d=()=>{o.abort(),this.parent.togglePointerEvents(!0),this.#n?.toggle(!0),this._isDraggable=r,this.parent.div.style.cursor=l,this.div.style.cursor=c,this.#$()};window.addEventListener("pointerup",d,{signal:s}),window.addEventListener("blur",d,{signal:s})}#G(n,e,a,r){this.width=a,this.height=r,this.x=n,this.y=e;const[o,s]=this.parentDimensions;this.setDims(o*a,s*r),this.fixAndSetPosition(),this._onResized()}_onResized(){}
1#$(){if(!this.#c)return;const{savedX:n,savedY:e,savedWidth:a,savedHeight:r}=this.#c;this.#c=null;const o=this.x,s=this.y,l=this.width,c=this.height;o===n&&s===e&&l===a&&c===r||this.addCommands({cmd:this.#G.bind(this,o,s,l,c),undo:this.#G.bind(this,n,e,a,r),mustExec:!0})}static _round(n){return Math.round(1e4*n)/1e4}#T(n,e){const[a,r]=this.parentDimensions,o=this.x,s=this.y,l=this.width,c=this.height,d=tt.MIN_SIZE/a,u=tt.MIN_SIZE/r,_=this.#w(this.rotation),h=(H,U)=>[_[0]*H+_[2]*U,_[1]*H+_[3]*U],g=this.#w(360-this.rotation);let v,R,C=!1,k=!1;switch(n){case"topLeft":C=!0,v=(H,U)=>[0,0],R=(H,U)=>[H,U];break;case"topMiddle":v=(H,U)=>[H/2,0],R=(H,U)=>[H/2,U];break;case"topRight":C=!0,v=(H,U)=>[H,0],R=(H,U)=>[0,U];break;case"middleRight":k=!0,v=(H,U)=>[H,U/2],R=(H,U)=>[0,U/2];break;case"bottomRight":C=!0,v=(H,U)=>[H,U],R=(H,U)=>[0,0];break;case"bottomMiddle":v=(H,U)=>[H/2,U],R=(H,U)=>[H/2,0];break;case"bottomLeft":C=!0,v=(H,U)=>[0,U],R=(H,U)=>[H,0];break;case"middleLeft":k=!0,v=(H,U)=>[0,U/2],R=(H,U)=>[H,U/2]}const F=v(l,c),w=R(l,c);let M=h(...w);const E=tt._round(o+M[0]),P=tt._round(s+M[1]);let nt,Z,N=1,O=1;if(e.fromKeyboard)({deltaX:nt,deltaY:Z}=e);else{const{screenX:H,screenY:U}=e,[ee,Ce]=this.#d;[nt,Z]=this.screenToPageTranslation(H-ee,U-Ce),this.#d[0]=H,this.#d[1]=U}if([nt,Z]=[g[0]*(H=nt/a)+g[2]*(U=Z/r),g[1]*H+g[3]*U],C){const H=Math.hypot(l,c);N=O=Math.max(Math.min(Math.hypot(w[0]-F[0]-nt,w[1]-F[1]-Z)/H,1/l,1/c),d/l,u/c)}else k?N=Math.max(d,Math.min(1,Math.abs(w[0]-F[0]-nt)))/l:O=Math.max(u,Math.min(1,Math.abs(w[1]-F[1]-Z)))/c;var H,U;const rt=tt._round(l*N),kt=tt._round(c*O);M=h(...R(rt,kt));const ut=E-M[0],Tt=P-M[1];this.#o||=[this.x,this.y,this.width,this.height],this.width=rt,this.height=kt,this.x=ut,this.y=Tt,this.setDims(a*rt,r*kt),this.fixAndSetPosition(),this._onResizing()}_onResizing(){}altTextFinish(){this.#n?.finish()}addEditToolbar(){var n=this;return(0,z.A)(function*(){return n._editToolbar||n.#g||(n._editToolbar=new mi(n),n.div.append(n._editToolbar.render()),n.#n&&(yield n._editToolbar.addAltText(n.#n))),n._editToolbar})()}removeEditToolbar(){this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,this.#n?.destroy())}addContainer(n){const e=this._editToolbar?.div;e?e.before(n):this.div.append(n)}getClientDimensions(){return this.div.getBoundingClientRect()}addAltTextButton(){var n=this;return(0,z.A)(function*(){n.#n||(Xl.initialize(tt._l10n),n.#n=new Xl(n),n.#t&&(n.#n.data=n.#t,n.#t=null),yield n.addEditToolbar())})()}get altTextData(){return this.#n?.data}set altTextData(n){this.#n&&(this.#n.data=n)}get guessedAltText(){return this.#n?.guessedText}setGuessedAltText(n){var e=this;return(0,z.A)(function*(){yield e.#n?.setGuessedText(n)})()}serializeAltText(n){return this.#n?.serialize(n)}hasAltText(){return!!this.#n&&!this.#n.isEmpty()}hasAltTextData(){return this.#n?.hasData()??!1}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=this.#i?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),this.#L();const[n,e]=this.parentDimensions;this.parentRotation%180!=0&&(this.div.style.maxWidth=`${(100*e/n).toFixed(2)}%`,this.div.style.maxHeight=`${(100*n/e).toFixed(2)}%`);const[a,r]=this.getInitialTranslation();return this.translate(a,r),ya(this,this.div,["pointerdown"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(this.#y||=new Ta({container:this.div,isPinchingDisabled:()=>!this.isSelected,onPinchStart:this.#v.bind(this),onPinching:this.#P.bind(this),onPinchEnd:this.#B.bind(this),signal:this._uiManager._signal})),this._uiManager._editorUndoBar?.hide(),this.div}
vendor: 11,834 bytes, line 1
1#v(){this.#c={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height},this.#n?.toggle(!1),this.parent.togglePointerEvents(!1)}#P(n,e,a){let o=a/e*.7+1-.7;if(1===o)return;const s=this.#w(this.rotation),l=(E,P)=>[s[0]*E+s[2]*P,s[1]*E+s[3]*P],[c,d]=this.parentDimensions,u=this.x,_=this.y,h=this.width,g=this.height,b=tt.MIN_SIZE/c,v=tt.MIN_SIZE/d;o=Math.max(Math.min(o,1/h,1/g),b/h,v/g);const R=tt._round(h*o),C=tt._round(g*o);if(R===h&&C===g)return;this.#o||=[u,_,h,g];const k=l(h/2,g/2),F=tt._round(u+k[0]),w=tt._round(_+k[1]),M=l(R/2,C/2);this.x=F-M[0],this.y=w-M[1],this.width=R,this.height=C,this.setDims(c*R,d*C),this.fixAndSetPosition(),this._onResizing()}#B(){this.#n?.toggle(!0),this.parent.togglePointerEvents(!0),this.#$()}pointerdown(n){const{isMac:e}=pe.platform;0!==n.button||n.ctrlKey&&e?n.preventDefault():(this.#p=!0,this._isDraggable?this.#X(n):this.#Y(n))}get isSelected(){return this._uiManager.isSelected(this)}#Y(n){const{isMac:e}=pe.platform;n.ctrlKey&&!e||n.shiftKey||n.metaKey&&e?this.parent.toggleSelected(this):this.parent.setSelected(this)}#X(n){const{isSelected:e}=this;this._uiManager.setUpDragSession();let a=!1;const r=new AbortController,o=this._uiManager.combinedSignal(r),s={capture:!0,passive:!1,signal:o},l=d=>{r.abort(),this.#r=null,this.#p=!1,this._uiManager.endDragSession()||this.#Y(d),a&&this._onStopDragging()};e&&(this.#x=n.clientX,this.#b=n.clientY,this.#r=n.pointerId,this.#a=n.pointerType,window.addEventListener("pointermove",d=>{a||(a=!0,this._onStartDragging());const{clientX:u,clientY:_,pointerId:h}=d;if(h!==this.#r)return void Me(d);const[g,b]=this.screenToPageTranslation(u-this.#x,_-this.#b);this.#x=u,this.#b=_,this._uiManager.dragSelectedEditors(g,b)},s),window.addEventListener("touchmove",Me,s),window.addEventListener("pointerdown",d=>{d.pointerType===this.#a&&(this.#y||d.isPrimary)&&l(d),Me(d)},s));const c=d=>{this.#r&&this.#r!==d.pointerId?Me(d):l(d)};window.addEventListener("pointerup",c,{signal:o}),window.addEventListener("blur",c,{signal:o})}_onStartDragging(){}_onStopDragging(){}moveInDOM(){this.#f&&clearTimeout(this.#f),this.#f=setTimeout(()=>{this.#f=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(n,e,a){n.changeParent(this),this.x=e,this.y=a,this.fixAndSetPosition(),this._onTranslated()}getRect(n,e,a=this.rotation){const r=this.parentScale,[o,s]=this.pageDimensions,[l,c]=this.pageTranslation,d=n/r,u=e/r,_=this.x*o,h=this.y*s,g=this.width*o,b=this.height*s;switch(a){case 0:return[_+d+l,s-h-u-b+c,_+d+g+l,s-h-u+c];case 90:return[_+u+l,s-h+d+c,_+u+b+l,s-h+d+g+c];case 180:return[_-d-g+l,s-h+u+c,_-d+l,s-h+u+b+c];case 270:return[_-u-b+l,s-h-d-g+c,_-u+l,s-h-d+c];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(n,e){const[a,r,o,s]=n,l=o-a,c=s-r;switch(this.rotation){case 0:return[a,e-s,l,c];case 90:return[a,e-r,c,l];case 180:return[o,e-r,l,c];case 270:return[o,e-s,c,l];default:throw new Error("Invalid rotation")}}onceAdded(n){}isEmpty(){return!1}enableEditMode(){this.#g=!0}disableEditMode(){this.#g=!1}isInEditMode(){return this.#g}shouldGetKeyboardEvents(){return this.#m}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){const{top:n,left:e,bottom:a,right:r}=this.getClientDimensions(),{innerHeight:o,innerWidth:s}=window;return e<s&&r>0&&n<o&&a>0}#L(){if(this.#_||!this.div)return;this.#_=new AbortController;const n=this._uiManager.combinedSignal(this.#_);this.div.addEventListener("focusin",this.focusin.bind(this),{signal:n}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:n})}rebuild(){this.#L()}rotate(n){}resize(){}serializeDeleted(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:this._initialData?.popupRef||""}}serialize(n=!1,e=null){yt("An editor must be serializable")}static deserialize(n,e,a){var r=this;return(0,z.A)(function*(){const o=new r.prototype.constructor({parent:e,id:e.getNextId(),uiManager:a});o.rotation=n.rotation,o.#t=n.accessibilityData;const[s,l]=o.pageDimensions,[c,d,u,_]=o.getRectInCurrentCoords(n.rect,l);return o.x=c/s,o.y=d/l,o.width=u/s,o.height=_/l,o})()}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||null!==this.serialize())}remove(){if(this.#_?.abort(),this.#_=null,this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#f&&(clearTimeout(this.#f),this.#f=null),this.#j(),this.removeEditToolbar(),this.#C){for(const n of this.#C.values())clearTimeout(n);this.#C=null}this.parent=null,this.#y?.destroy(),this.#y=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#k(),this.#s.classList.remove("hidden"),ya(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(n){if(!this.isResizable||n.target!==this.div||"Enter"!==n.key)return;this._uiManager.setSelected(this),this.#c={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const e=this.#s.children;if(!this.#e){this.#e=Array.from(e);const s=this.#D.bind(this),l=this.#N.bind(this),c=this._uiManager._signal;for(const d of this.#e){const u=d.getAttribute("data-resizer-name");d.setAttribute("role","spinbutton"),d.addEventListener("keydown",s,{signal:c}),d.addEventListener("blur",l,{signal:c}),d.addEventListener("focus",this.#q.bind(this,u),{signal:c}),d.setAttribute("data-l10n-id",tt._l10nResizer[u])}}const a=this.#e[0];let r=0;for(const s of e){if(s===a)break;r++}const o=(360-this.rotation+this.parentRotation)%360/90*(this.#e.length/4);if(o!==r){if(o<r)for(let l=0;l<r-o;l++)this.#s.append(this.#s.firstChild);else if(o>r)for(let l=0;l<o-r;l++)this.#s.firstChild.before(this.#s.lastChild);let s=0;for(const l of e){const d=this.#e[s++].getAttribute("data-resizer-name");l.setAttribute("data-l10n-id",tt._l10nResizer[d])}}this.#E(0),this.#m=!0,this.#s.firstChild.focus({focusVisible:!0}),n.preventDefault(),n.stopImmediatePropagation()}#D(n){tt._resizerKeyboardManager.exec(this,n)}#N(n){this.#m&&n.relatedTarget?.parentNode!==this.#s&&this.#j()}#q(n){this.#u=this.#m?n:""}#E(n){if(this.#e)for(const e of this.#e)e.tabIndex=n}_resizeWithKeyboard(n,e){this.#m&&this.#T(this.#u,{deltaX:n,deltaY:e,fromKeyboard:!0})}#j(){this.#m=!1,this.#E(-1),this.#$()}_stopResizingWithKeyboard(){this.#j(),this.div.focus()}select(){this.makeResizable(),this.div?.classList.add("selectedEditor"),this._editToolbar?(this._editToolbar?.show(),this.#n?.toggleAltTextBadge(!1)):this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this._editToolbar?.show()})}unselect(){this.#s?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),this.#n?.toggleAltTextBadge(!0)}updateParams(n,e){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return this.#h}set isEditing(n){this.#h=n,this.parent&&(n?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(n,e){this.#l=!0;const a=n/e,{style:r}=this.div;r.aspectRatio=a,r.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(n,e=!1){if(e){this.#C||=new Map;const{action:a}=n;let r=this.#C.get(a);return r&&clearTimeout(r),r=setTimeout(()=>{this._reportTelemetry(n),this.#C.delete(a),0===this.#C.size&&(this.#C=null)},tt._telemetryTimeout),void this.#C.set(a,r)}n.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:n}})}show(n=this._isVisible){this.div.classList.toggle("hidden",!n),this._isVisible=n}enable(){this.div&&(this.div.tabIndex=0),this.#i=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#i=!0}renderAnnotationElement(n){let e=n.container.querySelector(".annotationContent");if(e){if("CANVAS"===e.nodeName){const a=e;e=document.createElement("div"),e.classList.add("annotationContent",this.editorType),a.before(e)}}else e=document.createElement("div"),e.classList.add("annotationContent",this.editorType),n.container.prepend(e);return e}resetAnnotationElement(n){const{firstChild:e}=n.container;"DIV"===e?.nodeName&&e.classList.contains("annotationContent")&&e.remove()}}class A0 extends tt{constructor(n){super(n),this.annotationElementId=n.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const ql=3285377520,De=4294901760,Ue=65535;class Hl{constructor(n){this.h1=n?4294967295&n:ql,this.h2=n?4294967295&n:ql}update(n){let e,a;if("string"==typeof n){e=new Uint8Array(2*n.length),a=0;for(let v=0,R=n.length;v<R;v++){const C=n.charCodeAt(v);C<=255?e[a++]=C:(e[a++]=C>>>8,e[a++]=255&C)}}else{if(!ArrayBuffer.isView(n))throw new Error("Invalid data format, must be a string or TypedArray.");e=n.slice(),a=e.byteLength}const r=a>>2,o=a-4*r,s=new Uint32Array(e.buffer,0,r);let l=0,c=0,d=this.h1,u=this.h2;const _=3432918353,h=461845907,g=_&Ue,b=h&Ue;for(let v=0;v<r;v++)1&v?(l=s[v],l=l*_&De|l*g&Ue,l=l<<15|l>>>17,l=l*h&De|l*b&Ue,d^=l,d=d<<13|d>>>19,d=5*d+3864292196):(c=s[v],c=c*_&De|c*g&Ue,c=c<<15|c>>>17,c=c*h&De|c*b&Ue,u^=c,u=u<<13|u>>>19,u=5*u+3864292196);switch(l=0,o){case 3:l^=e[4*r+2]<<16;case 2:l^=e[4*r+1]<<8;case 1:l^=e[4*r],l=l*_&De|l*g&Ue,l=l<<15|l>>>17,l=l*h&De|l*b&Ue,1&r?d^=l:u^=l}this.h1=d,this.h2=u}hexdigest(){let n=this.h1,e=this.h2;return n^=e>>>1,n=3981806797*n&De|36045*n&Ue,e=4283543511*e&De|(2950163797*(e<<16|n>>>16)&De)>>>16,n^=e>>>1,n=444984403*n&De|60499*n&Ue,e=3301882366*e&De|(3120437893*(e<<16|n>>>16)&De)>>>16,n^=e>>>1,(n>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}}const _o=Object.freeze({map:null,hash:"",transfer:void 0});class po{#t=!1;#e=null;#n=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(n,e){const a=this.#n.get(n);return void 0===a?e:Object.assign(e,a)}getRawValue(n){return this.#n.get(n)}remove(n){if(this.#n.delete(n),0===this.#n.size&&this.resetModified(),"function"==typeof this.onAnnotationEditor){for(const e of this.#n.values())if(e instanceof tt)return;this.onAnnotationEditor(null)}}setValue(n,e){const a=this.#n.get(n);let r=!1;if(void 0!==a)for(const[o,s]of Object.entries(e))a[o]!==s&&(r=!0,a[o]=s);else r=!0,this.#n.set(n,e);r&&this.#i(),e instanceof tt&&"function"==typeof this.onAnnotationEditor&&this.onAnnotationEditor(e.constructor._type)}has(n){return this.#n.has(n)}getAll(){return this.#n.size>0?eo(this.#n):null}setAll(n){for(const[e,a]of Object.entries(n))this.setValue(e,a)}get size(){return this.#n.size}#i(){this.#t||(this.#t=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this.#t&&(this.#t=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get print(){return new Vl(this)}get serializable(){if(0===this.#n.size)return _o;const n=new Map,e=new Hl,a=[],r=Object.create(null);let o=!1;for(const[s,l]of this.#n){const c=l instanceof tt?l.serialize(!1,r):l;c&&(n.set(s,c),e.update(`${s}:${JSON.stringify(c)}`),o||=!!c.bitmap)}if(o)for(const s of n.values())s.bitmap&&a.push(s.bitmap);return n.size>0?{map:n,hash:e.hexdigest(),transfer:a}:_o}get editorStats(){let n=null;const e=new Map;for(const a of this.#n.values()){if(!(a instanceof tt))continue;const r=a.telemetryFinalData;if(!r)continue;const{type:o}=r;e.has(o)||e.set(o,Object.getPrototypeOf(a).constructor),n||=Object.create(null);const s=n[o]||=new Map;for(const[l,c]of Object.entries(r)){if("type"===l)continue;let d=s.get(l);d||(d=new Map,s.set(l,d));const u=d.get(c)??0;d.set(c,u+1)}}for(const[a,r]of e)n[a]=r.computeTelemetryFinalData(n[a]);return n}resetModifiedIds(){this.#e=null}get modifiedIds(){if(this.#e)return this.#e;
1const n=[];for(const e of this.#n.values())!(e instanceof tt)||!e.annotationElementId||!e.serialize()||n.push(e.annotationElementId);return this.#e={ids:new Set(n),hash:n.join(",")}}}class Vl extends po{#t;constructor(n){super();const{map:e,hash:a,transfer:r}=n.serializable,o=structuredClone(e,r?{transfer:r}:null);this.#t={map:o,hash:a,transfer:r}}get print(){yt("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#t}get modifiedIds(){return dt(this,"modifiedIds",{ids:new Set,hash:""})}}class E0{#t=new Set;constructor({ownerDocument:n=globalThis.document,styleElement:e=null}){this._document=n,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(n){this.nativeFontFaces.add(n),this._document.fonts.add(n)}removeNativeFontFace(n){this.nativeFontFaces.delete(n),this._document.fonts.delete(n)}insertRule(n){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const e=this.styleElement.sheet;e.insertRule(n,e.cssRules.length)}clear(){for(const n of this.nativeFontFaces)this._document.fonts.delete(n);this.nativeFontFaces.clear(),this.#t.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}loadSystemFont(n){var e=this;return(0,z.A)(function*({systemFontInfo:a,_inspectFont:r}){if(a&&!e.#t.has(a.loadedName)){if(zt(!e.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),e.isFontLoadingAPISupported){const{loadedName:o,src:s,style:l}=a,c=new FontFace(o,s,l);e.addNativeFontFace(c);try{yield c.load(),e.#t.add(o),r?.(a)}catch{st(`Cannot load system font: ${a.baseFontName}, installing it could help to improve PDF rendering.`),e.removeNativeFontFace(c)}return}yt("Not implemented: loadSystemFont without the Font Loading API.")}}).apply(this,arguments)}bind(n){var e=this;return(0,z.A)(function*(){if(n.attached||n.missingFile&&!n.systemFontInfo)return;if(n.attached=!0,n.systemFontInfo)return void(yield e.loadSystemFont(n));if(e.isFontLoadingAPISupported){const r=n.createNativeFontFace();if(r){e.addNativeFontFace(r);try{yield r.loaded}catch(o){throw st(`Failed to load font '${r.family}': '${o}'.`),n.disableFontFace=!0,o}}return}const a=n.createFontFaceRule();if(a){if(e.insertRule(a),e.isSyncFontLoadingSupported)return;yield new Promise(r=>{const o=e._queueLoadingCallback(r);e._prepareFontLoadEvent(n,o)})}})()}get isFontLoadingAPISupported(){return dt(this,"isFontLoadingAPISupported",!!this._document?.fonts)}get isSyncFontLoadingSupported(){let n=!1;return(re||typeof navigator<"u"&&"string"==typeof navigator?.userAgent&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(n=!0),dt(this,"isSyncFontLoadingSupported",n)}_queueLoadingCallback(n){const{loadingRequests:a}=this,r={done:!1,complete:function e(){for(zt(!r.done,"completeRequest() cannot be called twice."),r.done=!0;a.length>0&&a[0].done;){const o=a.shift();setTimeout(o.callback,0)}},callback:n};return a.push(r),r}get _loadTestFont(){return dt(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}
1_prepareFontLoadEvent(n,e){function a(w,M){return w.charCodeAt(M)<<24|w.charCodeAt(M+1)<<16|w.charCodeAt(M+2)<<8|255&w.charCodeAt(M+3)}function r(w,M,E,P){return w.substring(0,M)+P+w.substring(M+E)}let o,s;const l=this._document.createElement("canvas");l.width=1,l.height=1;const c=l.getContext("2d");let d=0;const _=`lt${Date.now()}${this.loadTestFontId++}`;let h=this._loadTestFont;h=r(h,976,_.length,_);const v=1482184792;let R=a(h,16);for(o=0,s=_.length-3;o<s;o+=4)R=R-v+a(_,o)|0;o<_.length&&(R=R-v+a(_+"XXX",o)|0),h=r(h,16,4,function g0(i){return String.fromCharCode(i>>24&255,i>>16&255,i>>8&255,255&i)}(R));const C=`url(data:font/opentype;base64,${btoa(h)});`;this.insertRule(`@font-face {font-family:"${_}";src:${C}}`);const F=this._document.createElement("div");F.style.visibility="hidden",F.style.width=F.style.height="10px",F.style.position="absolute",F.style.top=F.style.left="0px";for(const w of[n.loadedName,_]){const M=this._document.createElement("span");M.textContent="Hi",M.style.fontFamily=w,F.append(M)}this._document.body.append(F),function u(w,M){if(++d>30)return st("Load test font never loaded."),void M();c.font="30px "+w,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?M():setTimeout(u.bind(null,w,M))}(_,()=>{F.remove(),e.complete()})}}class P0{constructor(n,{disableFontFace:e=!1,fontExtraProperties:a=!1,inspectFont:r=null}){this.compiledGlyphs=Object.create(null);for(const o in n)this[o]=n[o];this.disableFontFace=!0===e,this.fontExtraProperties=!0===a,this._inspectFont=r}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let n;if(this.cssFontInfo){const e={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(e.style=`oblique ${this.cssFontInfo.italicAngle}deg`),n=new FontFace(this.cssFontInfo.fontFamily,this.data,e)}else n=new FontFace(this.loadedName,this.data,{});return this._inspectFont?.(this),n}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const n=`url(data:${this.mimetype};base64,${function y0(i){return Uint8Array.prototype.toBase64?i.toBase64():btoa(jl(i))}(this.data)});`;let e;if(this.cssFontInfo){let a=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(a+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),e=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${a}src:${n}}`}else e=`@font-face {font-family:"${this.loadedName}";src:${n}}`;return this._inspectFont?.(this,n),e}getPathGenerator(n,e){if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];const a=this.loadedName+"_path_"+e;let r;try{r=n.get(a)}catch(s){st(`getPathGenerator - ignoring character: "${s}".`)}const o=new Path2D(r||"");return this.fontExtraProperties||n.delete(a),this.compiledGlyphs[e]=o}}function zl(){}function be(i){if(i instanceof vn||i instanceof to||i instanceof _i||i instanceof Nl||i instanceof va||i instanceof Zr)return i;switch(i instanceof Error||"object"==typeof i&&null!==i||yt('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),i.name){case"AbortException":return new vn(i.message);case"InvalidPDFException":return new to(i.message);case"MissingPDFException":return new _i(i.message);case"PasswordException":return new Nl(i.message,i.code);case"UnexpectedResponseException":return new va(i.message,i.status);case"UnknownErrorException":return new Zr(i.message,i.details)}return new Zr(i.message,i.toString())}class bi{#t=new AbortController;constructor(n,e,a){this.sourceName=n,this.targetName=e,this.comObj=a,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),a.addEventListener("message",this.#e.bind(this),{signal:this.#t.signal})}#e({data:n}){if(n.targetName!==this.sourceName)return;if(n.stream)return void this.#i(n);if(n.callback){const a=n.callbackId,r=this.callbackCapabilities[a];if(!r)throw new Error(`Cannot resolve callback ${a}`);if(delete this.callbackCapabilities[a],1===n.callback)r.resolve(n.data);else{if(2!==n.callback)throw new Error("Unexpected callback case");r.reject(be(n.reason))}return}const e=this.actionHandler[n.action];if(!e)throw new Error(`Unknown action from worker: ${n.action}`);if(n.callbackId){const a=this.sourceName,r=n.sourceName,o=this.comObj;Promise.try(e,n.data).then(function(s){o.postMessage({sourceName:a,targetName:r,callback:1,callbackId:n.callbackId,data:s})},function(s){o.postMessage({sourceName:a,targetName:r,callback:2,callbackId:n.callbackId,reason:be(s)})})}else n.streamId?this.#n(n):e(n.data)}on(n,e){const a=this.actionHandler;if(a[n])throw new Error(`There is already an actionName called "${n}"`);a[n]=e}send(n,e,a){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:n,data:e},a)}
1sendWithPromise(n,e,a){const r=this.callbackId++,o=Promise.withResolvers();this.callbackCapabilities[r]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:n,callbackId:r,data:e},a)}catch(s){o.reject(s)}return o.promise}sendWithStream(n,e,a,r){const o=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:d=>{const u=Promise.withResolvers();return this.streamControllers[o]={controller:d,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:l,action:n,streamId:o,data:e,desiredSize:d.desiredSize},r),u.promise},pull:d=>{const u=Promise.withResolvers();return this.streamControllers[o].pullCall=u,c.postMessage({sourceName:s,targetName:l,stream:6,streamId:o,desiredSize:d.desiredSize}),u.promise},cancel:d=>{zt(d instanceof Error,"cancel must have a valid reason");const u=Promise.withResolvers();return this.streamControllers[o].cancelCall=u,this.streamControllers[o].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:1,streamId:o,reason:be(d)}),u.promise}},a)}#n(n){const e=n.streamId,a=this.sourceName,r=n.sourceName,o=this.comObj,s=this,l=this.actionHandler[n.action],c={enqueue(d,u=1,_){if(this.isCancelled)return;const h=this.desiredSize;this.desiredSize-=u,h>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:a,targetName:r,stream:4,streamId:e,chunk:d},_)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:a,targetName:r,stream:3,streamId:e}),delete s.streamSinks[e])},error(d){zt(d instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,o.postMessage({sourceName:a,targetName:r,stream:5,streamId:e,reason:be(d)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:n.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[e]=c,Promise.try(l,n.data,c).then(function(){o.postMessage({sourceName:a,targetName:r,stream:8,streamId:e,success:!0})},function(d){o.postMessage({sourceName:a,targetName:r,stream:8,streamId:e,reason:be(d)})})}#i(n){const e=n.streamId,a=this.sourceName,r=n.sourceName,o=this.comObj,s=this.streamControllers[e],l=this.streamSinks[e];switch(n.stream){case 8:n.success?s.startCall.resolve():s.startCall.reject(be(n.reason));break;case 7:n.success?s.pullCall.resolve():s.pullCall.reject(be(n.reason));break;case 6:if(!l){o.postMessage({sourceName:a,targetName:r,stream:7,streamId:e,success:!0});break}l.desiredSize<=0&&n.desiredSize>0&&l.sinkCapability.resolve(),l.desiredSize=n.desiredSize,Promise.try(l.onPull||zl).then(function(){o.postMessage({sourceName:a,targetName:r,stream:7,streamId:e,success:!0})},function(d){o.postMessage({sourceName:a,targetName:r,stream:7,streamId:e,reason:be(d)})});break;case 4:if(zt(s,"enqueue should have stream controller"),s.isClosed)break;s.controller.enqueue(n.chunk);break;case 3:if(zt(s,"close should have stream controller"),s.isClosed)break;s.isClosed=!0,s.controller.close(),this.#r(s,e);break;case 5:zt(s,"error should have stream controller"),s.controller.error(be(n.reason)),this.#r(s,e);break;case 2:n.success?s.cancelCall.resolve():s.cancelCall.reject(be(n.reason)),this.#r(s,e);break;case 1:if(!l)break;const c=be(n.reason);Promise.try(l.onCancel||zl,c).then(function(){o.postMessage({sourceName:a,targetName:r,stream:2,streamId:e,success:!0})},function(d){o.postMessage({sourceName:a,targetName:r,stream:2,streamId:e,reason:be(d)})}),l.sinkCapability.reject(c),l.isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}#r(n,e){var a=this;return(0,z.A)(function*(){yield Promise.allSettled([n.startCall?.promise,n.pullCall?.promise,n.cancelCall?.promise]),delete a.streamControllers[e]})()}destroy(){this.#t?.abort(),this.#t=null}}class Ql{#t=!1;constructor({enableHWA:n=!1}){this.#t=n}create(n,e){if(n<=0||e<=0)throw new Error("Invalid canvas size");const a=this._createCanvas(n,e);return{canvas:a,context:a.getContext("2d",{willReadFrequently:!this.#t})}}reset(n,e,a){if(!n.canvas)throw new Error("Canvas is not specified");if(e<=0||a<=0)throw new Error("Invalid canvas size");n.canvas.width=e,n.canvas.height=a}destroy(n){if(!n.canvas)throw new Error("Canvas is not specified");n.canvas.width=0,n.canvas.height=0,n.canvas=null,n.context=null}_createCanvas(n,e){yt("Abstract method `_createCanvas` called.")}}class Ul{constructor({baseUrl:n=null,isCompressed:e=!0}){this.baseUrl=n,this.isCompressed=e}fetch(n){var e=this;return(0,z.A)(function*({name:a}){if(!e.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!a)throw new Error("CMap name must be specified.");const r=e.baseUrl+a+(e.isCompressed?".bcmap":"");return e._fetch(r).then(o=>({cMapData:o,isCompressed:e.isCompressed})).catch(o=>{throw new Error(`Unable to load ${e.isCompressed?"binary ":""}CMap at: ${r}`)})}).apply(this,arguments)}_fetch(n){return(0,z.A)(function*(){yt("Abstract method `_fetch` called.")})()}}class Jl extends Ul{_fetch(n){var e=this;return(0,z.A)(function*(){const a=yield Ca(n,e.isCompressed?"arraybuffer":"text");return a instanceof ArrayBuffer?new Uint8Array(a):zn(a)})()}}class Wl{addFilter(n){return"none"}addHCMFilter(n,e){return"none"}addAlphaFilter(n){return"none"}addLuminosityFilter(n){return"none"}addHighlightHCMFilter(n,e,a,r,o){return"none"}destroy(n=!1){}}class Kl{constructor({baseUrl:n=null}){this.baseUrl=n}fetch(n){var e=this;return(0,z.A)(function*({filename:a}){if(!e.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!a)throw new Error("Font filename must be specified.");const r=`${e.baseUrl}${a}`;return e._fetch(r).catch(o=>{throw new Error(`Unable to load font data at: ${r}`)})}).apply(this,arguments)}_fetch(n){return(0,z.A)(function*(){yt("Abstract method `_fetch` called.")})()}}class Zl extends Kl{_fetch(n){return(0,z.A)(function*(){const e=yield Ca(n,"arraybuffer");return new Uint8Array(e)})()}}function tc(i){return ho.apply(this,arguments)}
1function ho(){return(ho=(0,z.A)(function*(i){const e=yield process.getBuiltinModule("fs").promises.readFile(i);return new Uint8Array(e)})).apply(this,arguments)}re&&st("Please use the `legacy` build in Node.js environments.");function mo(i,n){if(!n)return;const e=n[2]-n[0],a=n[3]-n[1],r=new Path2D;r.rect(n[0],n[1],e,a),i.clip(r)}class go{getPattern(){yt("Abstract method `getPattern` called.")}}class O0 extends go{constructor(n){super(),this._type=n[1],this._bbox=n[2],this._colorStops=n[3],this._p0=n[4],this._p1=n[5],this._r0=n[6],this._r1=n[7],this.matrix=null}_createGradient(n){let e;"axial"===this._type?e=n.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(e=n.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const a of this._colorStops)e.addColorStop(a[0],a[1]);return e}getPattern(n,e,a,r){let o;if("Stroke"===r||"Fill"===r){const s=e.current.getClippedPathBoundingBox(r,St(n))||[0,0,0,0],l=Math.ceil(s[2]-s[0])||1,c=Math.ceil(s[3]-s[1])||1,d=e.cachedCanvases.getCanvas("pattern",l,c),u=d.context;u.clearRect(0,0,u.canvas.width,u.canvas.height),u.beginPath(),u.rect(0,0,u.canvas.width,u.canvas.height),u.translate(-s[0],-s[1]),a=J.transform(a,[1,0,0,1,s[0],s[1]]),u.transform(...e.baseTransform),this.matrix&&u.transform(...this.matrix),mo(u,this._bbox),u.fillStyle=this._createGradient(u),u.fill(),o=n.createPattern(d.canvas,"no-repeat");const _=new DOMMatrix(a);o.setTransform(_)}else mo(n,this._bbox),o=this._createGradient(n);return o}}function fo(i,n,e,a,r,o,s,l){const c=n.coords,d=n.colors,u=i.data,_=4*i.width;let h;c[e+1]>c[a+1]&&(h=e,e=a,a=h,h=o,o=s,s=h),c[a+1]>c[r+1]&&(h=a,a=r,r=h,h=s,s=l,l=h),c[e+1]>c[a+1]&&(h=e,e=a,a=h,h=o,o=s,s=h);const g=(c[e]+n.offsetX)*n.scaleX,b=(c[e+1]+n.offsetY)*n.scaleY,v=(c[a]+n.offsetX)*n.scaleX,R=(c[a+1]+n.offsetY)*n.scaleY,C=(c[r]+n.offsetX)*n.scaleX,k=(c[r+1]+n.offsetY)*n.scaleY;if(b>=k)return;const F=d[o],w=d[o+1],M=d[o+2],E=d[s],P=d[s+1],N=d[s+2],O=d[l],nt=d[l+1],Z=d[l+2],rt=Math.round(b),kt=Math.round(k);let ut,Tt,H,U,ee,Ce,le,Xt;for(let At=rt;At<=kt;At++){if(At<R){const vt=At<b?0:(b-At)/(b-R);ut=g-(g-v)*vt,Tt=F-(F-E)*vt,H=w-(w-P)*vt,U=M-(M-N)*vt}else{let vt;vt=At>k?1:R===k?0:(R-At)/(R-k),ut=v-(v-C)*vt,Tt=E-(E-O)*vt,H=P-(P-nt)*vt,U=N-(N-Z)*vt}let gt;gt=At<b?0:At>k?1:(b-At)/(b-k),ee=g-(g-C)*gt,Ce=F-(F-O)*gt,le=w-(w-nt)*gt,Xt=M-(M-Z)*gt;const Ye=Math.round(Math.min(ut,ee)),yn=Math.round(Math.max(ut,ee));let Re=_*At+4*Ye;for(let vt=Ye;vt<=yn;vt++)gt=(ut-vt)/(ut-ee),gt<0?gt=0:gt>1&&(gt=1),u[Re++]=Tt-(Tt-Ce)*gt|0,u[Re++]=H-(H-le)*gt|0,u[Re++]=U-(U-Xt)*gt|0,u[Re++]=255}}function B0(i,n,e){const a=n.coords,r=n.colors;let o,s;switch(n.type){case"lattice":const l=n.verticesPerRow,c=Math.floor(a.length/l)-1,d=l-1;for(o=0;o<c;o++){let u=o*l;for(let _=0;_<d;_++,u++)fo(i,e,a[u],a[u+1],a[u+l],r[u],r[u+1],r[u+l]),fo(i,e,a[u+l+1],a[u+1],a[u+l],r[u+l+1],r[u+1],r[u+l])}break;case"triangles":for(o=0,s=a.length;o<s;o+=3)fo(i,e,a[o],a[o+1],a[o+2],r[o],r[o+1],r[o+2]);break;default:throw new Error("illegal figure")}}class Y0 extends go{constructor(n){super(),this._coords=n[2],this._colors=n[3],this._figures=n[4],this._bounds=n[5],this._bbox=n[7],this._background=n[8],this.matrix=null}_createMeshCanvas(n,e,a){const l=Math.floor(this._bounds[0]),c=Math.floor(this._bounds[1]),d=Math.ceil(this._bounds[2])-l,u=Math.ceil(this._bounds[3])-c,_=Math.min(Math.ceil(Math.abs(d*n[0]*1.1)),3e3),h=Math.min(Math.ceil(Math.abs(u*n[1]*1.1)),3e3),g=d/_,b=u/h,v={coords:this._coords,colors:this._colors,offsetX:-l,offsetY:-c,scaleX:1/g,scaleY:1/b},k=a.getCanvas("mesh",_+4,h+4),F=k.context,w=F.createImageData(_,h);if(e){const E=w.data;for(let P=0,N=E.length;P<N;P+=4)E[P]=e[0],E[P+1]=e[1],E[P+2]=e[2],E[P+3]=255}for(const E of this._figures)B0(w,E,v);return F.putImageData(w,2,2),{canvas:k.canvas,offsetX:l-2*g,offsetY:c-2*b,scaleX:g,scaleY:b}}getPattern(n,e,a,r){let o;if(mo(n,this._bbox),"Shading"===r)o=J.singularValueDecompose2dScale(St(n));else if(o=J.singularValueDecompose2dScale(e.baseTransform),this.matrix){const l=J.singularValueDecompose2dScale(this.matrix
1);o=[o[0]*l[0],o[1]*l[1]]}const s=this._createMeshCanvas(o,"Shading"===r?null:this._background,e.cachedCanvases);return"Shading"!==r&&(n.setTransform(...e.baseTransform),this.matrix&&n.transform(...this.matrix)),n.translate(s.offsetX,s.offsetY),n.scale(s.scaleX,s.scaleY),n.createPattern(s.canvas,"no-repeat")}}class X0 extends go{getPattern(){return"hotpink"}}let H0=(()=>{class i{static MAX_PATTERN_SIZE=3e3;constructor(e,a,r,o,s){this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=a,this.ctx=r,this.canvasGraphicsFactory=o,this.baseTransform=s}createPatternCanvas(e){const{bbox:a,operatorList:r,paintType:o,tilingType:s,color:l,canvasGraphicsFactory:c}=this;let{xstep:d,ystep:u}=this;d=Math.abs(d),u=Math.abs(u),ba("TilingType: "+s);const _=a[0],h=a[1],g=a[2],b=a[3],v=g-_,R=b-h,C=J.singularValueDecompose2dScale(this.matrix),k=J.singularValueDecompose2dScale(this.baseTransform),F=C[0]*k[0],w=C[1]*k[1];let M=v,E=R,P=!1,N=!1;const O=Math.ceil(d*F),nt=Math.ceil(u*w);O>=Math.ceil(v*F)?M=d:P=!0,nt>=Math.ceil(R*w)?E=u:N=!0;const kt=this.getSizeAndScale(M,this.ctx.canvas.width,F),ut=this.getSizeAndScale(E,this.ctx.canvas.height,w),Tt=e.cachedCanvases.getCanvas("pattern",kt.size,ut.size),H=Tt.context,U=c.createCanvasGraphics(H);if(U.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(U,o,l),H.translate(-kt.scale*_,-ut.scale*h),U.transform(kt.scale,0,0,ut.scale,0,0),H.save(),this.clipBbox(U,_,h,g,b),U.baseTransform=St(U.ctx),U.executeOperatorList(r),U.endDrawing(),H.restore(),P||N){const ee=Tt.canvas;P&&(M=d),N&&(E=u);const Ce=this.getSizeAndScale(M,this.ctx.canvas.width,F),le=this.getSizeAndScale(E,this.ctx.canvas.height,w),Xt=Ce.size,At=le.size,gt=e.cachedCanvases.getCanvas("pattern-workaround",Xt,At),Ye=gt.context,yn=P?Math.floor(v/d):0,Re=N?Math.floor(R/u):0;for(let vt=0;vt<=yn;vt++)for(let Ae=0;Ae<=Re;Ae++)Ye.drawImage(ee,Xt*vt,At*Ae,Xt,At,0,0,Xt,At);return{canvas:gt.canvas,scaleX:Ce.scale,scaleY:le.scale,offsetX:_,offsetY:h}}return{canvas:Tt.canvas,scaleX:kt.scale,scaleY:ut.scale,offsetX:_,offsetY:h}}getSizeAndScale(e,a,r){const o=Math.max(i.MAX_PATTERN_SIZE,a);let s=Math.ceil(e*r);return s>=o?s=o:r=s/e,{scale:r,size:s}}clipBbox(e,a,r,o,s){e.ctx.rect(a,r,o-a,s-r),e.current.updateRectMinMax(St(e.ctx),[a,r,o,s]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,a,r){const o=e.ctx,s=e.current;switch(a){case 1:const l=this.ctx;o.fillStyle=l.fillStyle,o.strokeStyle=l.strokeStyle,s.fillColor=l.fillStyle,s.strokeColor=l.strokeStyle;break;case 2:const c=J.makeHexColor(r[0],r[1],r[2]);o.fillStyle=c,o.strokeStyle=c,s.fillColor=c,s.strokeColor=c;break;default:throw new m0(`Unsupported paint type: ${a}`)}}getPattern(e,a,r,o){let s=r;"Shading"!==o&&(s=J.transform(s,a.baseTransform),this.matrix&&(s=J.transform(s,this.matrix)));const l=this.createPatternCanvas(a);let c=new DOMMatrix(s);c=c.translate(l.offsetX,l.offsetY),c=c.scale(1/l.scaleX,1/l.scaleY);const d=e.createPattern(l.canvas,"repeat");return d.setTransform(c),d}}return i})();function nc({src:i,srcPos:n=0,dest:e,width:a,height:r,nonBlackColor:o=4294967295,inverseDecode:s=!1}){const l=pe.isLittleEndian?4278190080:255,[c,d]=s?[o,l]:[l,o],u=a>>3,_=7&a,h=i.length;e=new Uint32Array(e.buffer);let g=0;for(let b=0;b<r;b++){for(const R=n+u;n<R;n++){const C=n<h?i[n]:255;e[g++]=128&C?d:c,e[g++]=64&C?d:c,e[g++]=32&C?d:c,e[g++]=16&C?d:c,e[g++]=8&C?d:c,e[g++]=4&C?d:c,e[g++]=2&C?d:c,e[g++]=1&C?d:c}if(0===_)continue;const v=n<h?i[n++]:255;for(let R=0;R<_;R++)e[g++]=v&1<<7-R?d:c}return{srcPos:n,destPos:g}}class U0{constructor(n){this.canvasFactory=n,this.cache=Object.create(null)}getCanvas(n,e,a){let r;return void 0!==this.cache[n]?(r=this.cache[n],this.canvasFactory.reset(r,e,a)):(r=this.canvasFactory.create(e,a),this.cache[n]=r),r}delete(n){delete this.cache[n]}clear(){for(const n in this.cache)this.canvasFactory.destroy(this.cache[n]),delete this.cache[n]}}function ka(i,n,e,a,r,o,s,l,c,d){const[u,_,h,g,b,v]=St(i);if(0===_&&0===h){const F=Math.round(s*u+b),M=Math.round(l*g+v),P=Math.abs(Math.round((s+c)*u+b)-F)||1,O=Math.abs(Math.round((l+d)*g+v)-M)||1;return i.setTransform(Math.sign(u),0,0,Math.sign(g),F,M),i.drawImage(n,e,a,r,o,0,0,P,O),i.setTransform(u,_,h,g,b,v),[P,O]}if(0===u&&0===g){const F=Math.round(l*h+b),M=Math.round(s*_+v),P=Math.abs(Math.round((l+d)*h+b)-F)||1,O=Math.abs(Math.round((s+c)*_+v)-M)||1;return i.setTransform(0,Math.sign(_),Math.sign(h),0,F,M),i.drawImage(n,e,a,r,o,0,0,O,P),i.setTransform(u,_,h,g,b,v),[O,P]}return i.drawImage(n,e,a,r,o,s,l,c,d),[Math.hypot(u,_)*c,Math.hypot(h,g)*d]}class sc{constructor(n,e){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=Ll,this.textMatrixScale=1,this.fontMatrix=Kr,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=0,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.patternStroke=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,n,e])}clone(){const n=Object.create(this);return n.clipBox=this.clipBox.slice(),n}setCurrentPoint(n,e){this.x=n,this.y=e}updatePathMinMax(n,e,a){[e,a]=J.applyTransform([e,a],n),this.minX=Math.min(this.minX,e),this.minY=Math.min(this.minY,a),this.maxX=Math.max(this.maxX,e),this.maxY=Math.max(this.maxY,a)}updateRectMinMax(n,e){const a=J.applyTransform(e,n),r=J.applyTransform(e.slice(2),n),o=J.applyTransform([e[0],e[3]],n),s=J.applyTransform([e[2],e[1]],n);this.minX=Math.min(this.minX,a[0],r[0],o[0],s[0]),this.minY=Math.min(this.minY,a[1],r[1],o[1],s[1]),this.maxX=Math.max(this.maxX,a[0],r[0],o[0],s[0]),this.maxY=Math.max(this.maxY,a[1],r[1],o[1],s[1])}updateScalingPathMinMax(n,e){J.scaleMinMax(n,e),this.minX=Math.min(this.minX,e[0]),this.minY=Math.min(this.minY,e[1]),this.maxX=Math.max(this.maxX,e[2]),this.maxY=Math.max(this.maxY,e[3])}updateCurvePathMinMax(n,e,a,r,o,s,l,c,d,u){const _=J.bezierBoundingBox(e,a,r,o,s,l,c,d,u);u||this.updateRectMinMax(n,_)}getPathBoundingBox(n="Fill",e=null){const a=[this.minX,this.minY,this.maxX,this.maxY];if("Stroke"===n){e||yt("Stroke bounding box must include transform.");const r=J.singularValueDecompose2dScale(e),o=r[0]*this.lineWidth/2,s=r[1]*this.lineWidth/2;a[0]-=o,a[1]-=s,a[2]+=o,a[3]+=s}return a}updateClipFromPath(){const n=J.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(n||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(n){this.clipBox=n,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(n="Fill",e=null){return J.intersect(this.clipBox,this.getPathBoundingBox(n,e))}}function lc(i,n){if(n instanceof ImageData)return void i.putImageData(n,0,0);const e=n.height,a=n.width,r=e%16,o=(e-r)/16,s=0===r?o:o+1,l=i.createImageData(a,16);let d,c=0;const u=n.data,_=l.data;let h,g,b,v;if(n.kind===ma.GRAYSCALE_1BPP){const R=u.byteLength,C=new Uint32Array(_.buffer,0,_.byteLength>>2),k=C.length,F=a+7>>3,w=4294967295,M=pe.isLittleEndian?4278190080:255;for(h=0;h<s;h++){for(b=h<o?16:r,d=0,g=0;g<b;g++){const E=R-c;let P=0;const N=E>F?a:8*E-7,O=-8&N;let nt=0,Z=0;for(;P<O;P+=8)Z=u[c++],C[d++]=128&Z?w:M,C[d++]=64&Z?w:M,C[d++]=32&Z?w:M,C[d++]=16&Z?w:M,C[d++]=8&Z?w:M,C[d++]=4&Z?w:M,C[d++]=2&Z?w:M,C[d++]=1&Z?w:M;for(;P<N;P++)0===nt&&(Z=u[c++],nt=128),C[d++]=Z&nt?w:M,nt>>=1}for(;d<k;)C[d++]=0;i.putImageData(l,0,16*h)}}else if(n.kind===ma.RGBA_32BPP){for(g=0,v=16*a*4,h=0;h<o;h++)_.set(u.subarray(c,c+v)),c+=v,i.putImageData(l,0,g),g+=16;h<s&&(v=a*r*4,_.set(u.subarray(c,c+v)),i.putImageData(l,0,g))}else{if(n.kind!==ma.RGB_24BPP)throw new Error(`bad image kind: ${n.kind}`);for(b=16,v=a*b,h=0;h<s;h++){for(h>=o&&(b=r,v=a*b),d=0,g=v;g--;)_[d++]=u[c++],_[d++]=u[c++],_[d++]=u[c++],_[d++]=255;i.putImageData(l,0,16*h)}}}function cc(i,n){if(n.bitmap)return void i.drawImage(n.bitmap,0,0);const e=n.height,a=n.width,r=e%16,o=(e-r)/16,s=0===r?o:o+1,l=i.createImageData(a,16);let c=0;const d=n.data,u=l.data;for(let _=0;_<s;_++){const h=_<o?16:r;({srcPos:c}=nc({src:d,srcPos:c,dest:u,width:a,height:h,nonBlackColor:0})),i.putImageData(l,0,16*_)}}function vi(i,n){const e=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const a of e)void 0!==i[a]&&(n[a]=i[a]);void 0!==i.setLineDash&&(n.setLineDash(i.getLineDash()),n.lineDashOffset=i.lineDashOffset)}function Fa(i){if(i.strokeStyle=i.fillStyle="#000000",i.fillRule="nonzero",i.globalAlpha=1,i.lineWidth=1,i.lineCap="butt",i.lineJoin="miter",i.miterLimit=10,i.globalCompositeOperation="source-over",i.font="10px sans-serif",void 0!==i.setLineDash&&(i.setLineDash([]),i.lineDashOffset=0),!re){const{filter:n}=i;"none"!==n&&""!==n&&(i.filter="none")}}function dc(i,n){if(n)return!0;const e=J.singularValueDecompose2dScale(i);e[0]=Math.fround(e[0]),e[1]=Math.fround(e[1]);const a=Math.fround((globalThis.devicePixelRatio||1)*Qn.PDF_TO_CSS_UNITS);return e[0]<=a&&e[1]<=a}const W0=["butt","round","square"],K0=["miter","round","bevel"],Z0={},uc={};class Un{constructor(n,e,a,r,o,{optionalContentConfig:s,markedContentStack:l=null}
1,c,d){this.ctx=n,this.current=new sc(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=e,this.objs=a,this.canvasFactory=r,this.filterFactory=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=l||[],this.optionalContentConfig=s,this.cachedCanvases=new U0(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=c,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=d,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(n,e=null){return"string"==typeof n?n.startsWith("g_")?this.commonObjs.get(n):this.objs.get(n):e}beginDrawing({transform:n,viewport:e,transparency:a=!1,background:r=null}){const o=this.ctx.canvas.width,s=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=r||"#ffffff",this.ctx.fillRect(0,0,o,s),this.ctx.fillStyle=l,a){const c=this.cachedCanvases.getCanvas("transparent",o,s);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform(...St(this.compositeCtx))}this.ctx.save(),Fa(this.ctx),n&&(this.ctx.transform(...n),this.outputScaleX=n[0],this.outputScaleY=n[0]),this.ctx.transform(...e.transform),this.viewportScale=e.scale,this.baseTransform=St(this.ctx)}executeOperatorList(n,e,a,r){const o=n.argsArray,s=n.fnArray;let l=e||0;const c=o.length;if(c===l)return l;const d=c-l>10&&"function"==typeof a,u=d?Date.now()+15:0;let _=0;const h=this.commonObjs,g=this.objs;let b;for(;;){if(void 0!==r&&l===r.nextBreakPoint)return r.breakIt(l,a),l;if(b=s[l],b!==je.dependency)this[b].apply(this,o[l]);else for(const v of o[l]){const R=v.startsWith("g_")?h:g;if(!R.has(v))return R.get(v,a),l}if(l++,l===c)return l;if(d&&++_>10){if(Date.now()>u)return a(),l;_=0}}}#t(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#t(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const n of this._cachedBitmapsMap.values()){for(const e of n.values())typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement&&(e.width=e.height=0);n.clear()}this._cachedBitmapsMap.clear(),this.#e()}#e(){if(this.pageColors){const n=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==n){const e=this.ctx.filter;this.ctx.filter=n,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=e}}}_scaleImage(n,e){const a=n.width??n.displayWidth,r=n.height??n.displayHeight;let u,_,o=Math.max(Math.hypot(e[0],e[1]),1),s=Math.max(Math.hypot(e[2],e[3]),1),l=a,c=r,d="prescale1";for(;o>2&&l>1||s>2&&c>1;){let h=l,g=c;o>2&&l>1&&(h=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),o/=l/h),s>2&&c>1&&(g=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2,s/=c/g),u=this.cachedCanvases.getCanvas(d,h,g),_=u.context,_.clearRect(0,0,h,g),_.drawImage(n,0,0,l,c,0,0,h,g),n=u.canvas,l=h,c=g,d="prescale1"===d?"prescale2":"prescale1"}return{img:n,paintWidth:l,paintHeight:c}}_createMaskCanvas(n){const e=this.ctx,{width:a,height:r}=n,o=this.current.fillColor,s=this.current.patternFill,l=St(e);let c,d,u,_;if((n.bitmap||n.data)&&n.count>1){const N=n.bitmap||n.data.buffer;d=JSON.stringify(s?l:[l.slice(0,4),o]),c=this._cachedBitmapsMap.get(N),c||(c=new Map,this._cachedBitmapsMap.set(N,c));const O=c.get(d);if(O&&!s)return{canvas:O,offsetX:Math.round(Math.min(l[0],l[2])+l[4]),offsetY:Math.round(Math.min(l[1],l[3])+l[5])};u=O}u||(_=this.cachedCanvases.getCanvas("maskCanvas",a,r),cc(_.context,n));let h=J.transform(l,[1/a,0,0,-1/r,0,0]);h=J.transform(h,[1,0,0,1,0,-r]);const[g,b,v,R]=J.getAxialAlignedBoundingBox([0,0,a,r],h),C=Math.round(v-g)||1,k=Math.round(R-b)||1,F=this.cachedCanvases.getCanvas("fillCanvas",C,k),w=F.context,M=g,E=b;w.translate(-M,-E),w.transform(...h),u||(u=this._scaleImage(_.canvas,Qe(w)),u=u.img,c&&s&&c.set(d,u)),w.imageSmoothingEnabled=dc(St(w),n.interpolate),ka(w,u,0,0,u.width,u.height,0,0,a,r),w.globalCompositeOperation="source-in";const P=J.transform(Qe(w),[1,0,0,1,-M,-E]);return w.fillStyle=s?o.getPattern(e,this,P,"Fill"):o,w.fillRect(0,0,a,r),c&&!s&&(this.cachedCanvases.delete("fillCanvas"),c.set(d,F.
1canvas)),{canvas:F.canvas,offsetX:Math.round(M),offsetY:Math.round(E)}}setLineWidth(n){n!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=n,this.ctx.lineWidth=n}setLineCap(n){this.ctx.lineCap=W0[n]}setLineJoin(n){this.ctx.lineJoin=K0[n]}setMiterLimit(n){this.ctx.miterLimit=n}setDash(n,e){const a=this.ctx;void 0!==a.setLineDash&&(a.setLineDash(n),a.lineDashOffset=e)}setRenderingIntent(n){}setFlatness(n){}setGState(n){for(const[e,a]of n)switch(e){case"LW":this.setLineWidth(a);break;case"LC":this.setLineCap(a);break;case"LJ":this.setLineJoin(a);break;case"ML":this.setMiterLimit(a);break;case"D":this.setDash(a[0],a[1]);break;case"RI":this.setRenderingIntent(a);break;case"FL":this.setFlatness(a);break;case"Font":this.setFont(a[0],a[1]);break;case"CA":this.current.strokeAlpha=a;break;case"ca":this.current.fillAlpha=a,this.ctx.globalAlpha=a;break;case"BM":this.ctx.globalCompositeOperation=a;break;case"SMask":this.current.activeSMask=a?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(a)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const n=this.inSMaskMode;this.current.activeSMask&&!n?this.beginSMaskMode():!this.current.activeSMask&&n&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const r=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,this.ctx.canvas.width,this.ctx.canvas.height);this.suspendedCtx=this.ctx,this.ctx=r.context;const o=this.ctx;o.setTransform(...St(this.suspendedCtx)),vi(this.suspendedCtx,o),function Q0(i,n){if(i._removeMirroring)throw new Error("Context is already forwarding operations.");i.__originalSave=i.save,i.__originalRestore=i.restore,i.__originalRotate=i.rotate,i.__originalScale=i.scale,i.__originalTranslate=i.translate,i.__originalTransform=i.transform,i.__originalSetTransform=i.setTransform,i.__originalResetTransform=i.resetTransform,i.__originalClip=i.clip,i.__originalMoveTo=i.moveTo,i.__originalLineTo=i.lineTo,i.__originalBezierCurveTo=i.bezierCurveTo,i.__originalRect=i.rect,i.__originalClosePath=i.closePath,i.__originalBeginPath=i.beginPath,i._removeMirroring=()=>{i.save=i.__originalSave,i.restore=i.__originalRestore,i.rotate=i.__originalRotate,i.scale=i.__originalScale,i.translate=i.__originalTranslate,i.transform=i.__originalTransform,i.setTransform=i.__originalSetTransform,i.resetTransform=i.__originalResetTransform,i.clip=i.__originalClip,i.moveTo=i.__originalMoveTo,i.lineTo=i.__originalLineTo,i.bezierCurveTo=i.__originalBezierCurveTo,i.rect=i.__originalRect,i.closePath=i.__originalClosePath,i.beginPath=i.__originalBeginPath,delete i._removeMirroring},i.save=function(){n.save(),this.__originalSave()},i.restore=function(){n.restore(),this.__originalRestore()},i.translate=function(a,r){n.translate(a,r),this.__originalTranslate(a,r)},i.scale=function(a,r){n.scale(a,r),this.__originalScale(a,r)},i.transform=function(a,r,o,s,l,c){n.transform(a,r,o,s,l,c),this.__originalTransform(a,r,o,s,l,c)},i.setTransform=function(a,r,o,s,l,c){n.setTransform(a,r,o,s,l,c),this.__originalSetTransform(a,r,o,s,l,c)},i.resetTransform=function(){n.resetTransform(),this.__originalResetTransform()},i.rotate=function(a){n.rotate(a),this.__originalRotate(a)},i.clip=function(a){n.clip(a),this.__originalClip(a)},i.moveTo=function(e,a){n.moveTo(e,a),this.__originalMoveTo(e,a)},i.lineTo=function(e,a){n.lineTo(e,a),this.__originalLineTo(e,a)},i.bezierCurveTo=function(e,a,r,o,s,l){n.bezierCurveTo(e,a,r,o,s,l),this.__originalBezierCurveTo(e,a,r,o,s,l)},i.rect=function(e,a,r,o){n.rect(e,a,r,o),this.__originalRect(e,a,r,o)},i.closePath=function(){n.closePath(),this.__originalClosePath()},i.beginPath=function(){n.beginPath(),this.__originalBeginPath()}}(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),vi(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(n){this.current.activeSMask&&(n?(n[0]=Math.floor(n[0]),n[1]=Math.floor(n[1]),n[2]=Math.ceil(n[2]),n[3]=Math.ceil(n[3])):n=[0,0,this.ctx.canvas.width,this.ctx.canvas.height],this.composeSMask(this.suspendedCtx,this.current.activeSMask,this.ctx,n),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore(
1))}composeSMask(n,e,a,r){const o=r[0],s=r[1],l=r[2]-o,c=r[3]-s;0===l||0===c||(this.genericComposeSMask(e.context,a,l,c,e.subtype,e.backdrop,e.transferMap,o,s,e.offsetX,e.offsetY),n.save(),n.globalAlpha=1,n.globalCompositeOperation="source-over",n.setTransform(1,0,0,1,0,0),n.drawImage(a.canvas,0,0),n.restore())}genericComposeSMask(n,e,a,r,o,s,l,c,d,u,_){let h=n.canvas,g=c-u,b=d-_;if(s){const R=J.makeHexColor(...s);if(g<0||b<0||g+a>h.width||b+r>h.height){const C=this.cachedCanvases.getCanvas("maskExtension",a,r),k=C.context;k.drawImage(h,-g,-b),k.globalCompositeOperation="destination-atop",k.fillStyle=R,k.fillRect(0,0,a,r),k.globalCompositeOperation="source-over",h=C.canvas,g=b=0}else{n.save(),n.globalAlpha=1,n.setTransform(1,0,0,1,0,0);const C=new Path2D;C.rect(g,b,a,r),n.clip(C),n.globalCompositeOperation="destination-atop",n.fillStyle=R,n.fillRect(g,b,a,r),n.restore()}}e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0),"Alpha"===o&&l?e.filter=this.filterFactory.addAlphaFilter(l):"Luminosity"===o&&(e.filter=this.filterFactory.addLuminosityFilter(l));const v=new Path2D;v.rect(c,d,a,r),e.clip(v),e.globalCompositeOperation="destination-in",e.drawImage(h,g,b,a,r,c,d,a,r),e.restore()}save(){this.inSMaskMode?(vi(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const n=this.current;this.stateStack.push(n),this.current=n.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),vi(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(n,e,a,r,o,s){this.ctx.transform(n,e,a,r,o,s),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(n,e,a){const r=this.ctx,o=this.current;let c,d,s=o.x,l=o.y;const u=St(r),_=0===u[0]&&0===u[3]||0===u[1]&&0===u[2],h=_?a.slice(0):null;for(let g=0,b=0,v=n.length;g<v;g++)switch(0|n[g]){case je.rectangle:s=e[b++],l=e[b++];const R=e[b++],C=e[b++],k=s+R,F=l+C;r.moveTo(s,l),0===R||0===C?r.lineTo(k,F):(r.lineTo(k,l),r.lineTo(k,F),r.lineTo(s,F)),_||o.updateRectMinMax(u,[s,l,k,F]),r.closePath();break;case je.moveTo:s=e[b++],l=e[b++],r.moveTo(s,l),_||o.updatePathMinMax(u,s,l);break;case je.lineTo:s=e[b++],l=e[b++],r.lineTo(s,l),_||o.updatePathMinMax(u,s,l);break;case je.curveTo:c=s,d=l,s=e[b+4],l=e[b+5],r.bezierCurveTo(e[b],e[b+1],e[b+2],e[b+3],s,l),o.updateCurvePathMinMax(u,c,d,e[b],e[b+1],e[b+2],e[b+3],s,l,h),b+=6;break;case je.curveTo2:c=s,d=l,r.bezierCurveTo(s,l,e[b],e[b+1],e[b+2],e[b+3]),o.updateCurvePathMinMax(u,c,d,s,l,e[b],e[b+1],e[b+2],e[b+3],h),s=e[b+2],l=e[b+3],b+=4;break;case je.curveTo3:c=s,d=l,s=e[b+2],l=e[b+3],r.bezierCurveTo(e[b],e[b+1],s,l,s,l),o.updateCurvePathMinMax(u,c,d,e[b],e[b+1],s,l,s,l,h),b+=4;break;case je.closePath:r.closePath()}_&&o.updateScalingPathMinMax(u,h),o.setCurrentPoint(s,l)}closePath(){this.ctx.closePath()}stroke(n=!0){const e=this.ctx,a=this.current.strokeColor;e.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"==typeof a&&a?.getPattern?(e.save(),e.strokeStyle=a.getPattern(e,this,Qe(e),"Stroke"),this.rescaleAndStroke(!1),e.restore()):this.rescaleAndStroke(!0)),n&&this.consumePath(this.current.getClippedPathBoundingBox()),e.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(n=!0){const e=this.ctx,a=this.current.fillColor;let o=!1;this.current.patternFill&&(e.save(),e.fillStyle=a.getPattern(e,this,Qe(e),"Fill"),o=!0);const s=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==s&&(this.pendingEOFill?(e.fill("evenodd"),this.pendingEOFill=!1):e.fill()),o&&e.restore(),n&&this.consumePath(s)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=Z0}eoClip(){this.pendingClip=uc}beginText(){this.current.textMatrix=Ll,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const n=this.pendingTextPaths,e=this.ctx;if(void 0===n)return void e.beginPath();const a=new Path2D,r=e.getTransform().invertSelf();for(const{transform:o,x:s,y:l,fontSize:c,path:d}of n)a.addPath(d,new DOMMatrix(o).preMultiplySelf(r).translate(s,l).scale(c,-c));e.clip(a),e.beginPath(),delete this.pendingTextPaths}setCharSpacing(n){this.current.charSpacing=n}setWordSpacing(n){this.current.wordSpacing=n}setHScale(n){this.current.textHScale=n/100}setLeading(n){this.current.leading=-n}setFont(n,e){const a=this.commonObjs.get(n),r=this.current;if(!a)throw new Error(`Can't find font for ${n}`);if(r.fontMatrix=a.fontMatrix||Kr,(0===r.fontMatrix[0]||0===r.fontMatrix[3])&&st("Invalid font matrix for font "+n),e<0?(e=-e,r.fontDirection=-1):r.fontDirection=1,this.current.font=a,this.current.fontSize=e,a.isType3Font)return;const o=a.loadedName||"sans-serif",s=a.systemFontInfo?.css||`"${o}", ${a.fallbackName}`;let l="normal";a.black?l="900":a.bold&&(l="bold");const c=a.italic?"italic":"normal";let d=e;e<16?d=16:e>100&&(d=100),this.current.fontSizeScale=e/d,this.ctx.font=`${c} ${l} ${d}px ${s}`}setTextRenderingMode(n){this.current.textRenderingMode=n}setTextRise(n){this.current.textRise=n}moveText(n,e){this.current.x=this.current.lineX+=n,this.current.y=this.current.lineY+=e}setLeadingMoveText(n,e){this.setLeading(-e),this.moveText(n,e)}setTextMatrix(n,e,a,r,o,s){this.current.textMatrix=[n,e,a,r,o,s],this.current.textMatrixScale=Math.hypot(n,e),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}#n(n,e,a){const r=new Path2D;return r.addPath(n,new DOMMatrix(a).invertSelf().multiplySelf(e)),r}paintChar(n,e,a,r,o){const s=this.ctx,l=this.current,c=l.font,d=l.textRenderingMode,u=l.fontSize/l.fontSizeScale,_=3&d,h=!!(4&d),g=l.patternFill&&!c.missingFile,b=l.patternStroke&&!c.missingFile;let v;if((c.disableFontFace||h||g||b)&&(v=c.getPathGenerator(this.commonObjs,n)),c.disableFontFace||g||b){if(s.save(),s.translate(e,a),s.scale(u,-u),0===_||2===_)if(r){const R=s.getTransform();s.setTransform(...r),s.fill(this.#n(v,R,r))}else s.fill(v);
1if(1===_||2===_)if(o){const R=s.getTransform();s.setTransform(...o),s.stroke(this.#n(v,R,o))}else s.lineWidth/=u,s.stroke(v);s.restore()}else(0===_||2===_)&&s.fillText(n,e,a),(1===_||2===_)&&s.strokeText(n,e,a);h&&(this.pendingTextPaths||=[]).push({transform:St(s),x:e,y:a,fontSize:u,path:v})}get isFontSubpixelAAEnabled(){const{context:n}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);n.scale(1.5,1),n.fillText("I",0,10);const e=n.getImageData(0,0,10,10).data;let a=!1;for(let r=3;r<e.length;r+=4)if(e[r]>0&&e[r]<255){a=!0;break}return dt(this,"isFontSubpixelAAEnabled",a)}showText(n){const e=this.current,a=e.font;if(a.isType3Font)return this.showType3Text(n);const r=e.fontSize;if(0===r)return;const o=this.ctx,s=e.fontSizeScale,l=e.charSpacing,c=e.wordSpacing,d=e.fontDirection,u=e.textHScale*d,_=n.length,h=a.vertical,g=h?1:-1,b=a.defaultVMetrics,v=r*e.fontMatrix[0],R=0===e.textRenderingMode&&!a.disableFontFace&&!e.patternFill;let C,k;if(o.save(),o.transform(...e.textMatrix),o.translate(e.x,e.y+e.textRise),o.scale(u,d>0?-1:1),e.patternFill){o.save();const P=e.fillColor.getPattern(o,this,Qe(o),"Fill");C=St(o),o.restore(),o.fillStyle=P}if(e.patternStroke){o.save();const P=e.strokeColor.getPattern(o,this,Qe(o),"Stroke");k=St(o),o.restore(),o.strokeStyle=P}let F=e.lineWidth;const w=e.textMatrixScale;if(0===w||0===F){const P=3&e.textRenderingMode;(1===P||2===P)&&(F=this.getSinglePixelWidth())}else F/=w;if(1!==s&&(o.scale(s,s),F/=s),o.lineWidth=F,a.isInvalidPDFjsFont){const P=[];let N=0;for(const O of n)P.push(O.unicode),N+=O.width;
1return o.fillText(P.join(""),0,0),e.x+=N*v*u,o.restore(),void this.compose()}let E,M=0;for(E=0;E<_;++E){const P=n[E];if("number"==typeof P){M+=g*P*r/1e3;continue}let N=!1;const O=(P.isSpace?c:0)+l,nt=P.fontChar,Z=P.accent;let rt,kt,ut=P.width;if(h){const H=P.vmetric||b,U=-(P.vmetric?H[1]:.5*ut)*v;ut=H?-H[0]:ut,rt=U/s,kt=(M+H[2]*v)/s}else rt=M/s,kt=0;if(a.remeasure&&ut>0){const H=1e3*o.measureText(nt).width/r*s;if(ut<H&&this.isFontSubpixelAAEnabled){const U=ut/H;N=!0,o.save(),o.scale(U,1),rt/=U}else ut!==H&&(rt+=(ut-H)/2e3*r/s)}this.contentVisible&&(P.isInFont||a.missingFile)&&(R&&!Z?o.fillText(nt,rt,kt):(this.paintChar(nt,rt,kt,C,k),Z&&this.paintChar(Z.fontChar,rt+r*Z.offset.x/s,kt-r*Z.offset.y/s,C,k))),M+=h?ut*v-O*d:ut*v+O*d,N&&o.restore()}h?e.y-=M:e.x+=M*u,o.restore(),this.compose()}showType3Text(n){const e=this.ctx,a=this.current,r=a.font,o=a.fontSize,s=a.fontDirection,l=r.vertical?1:-1,c=a.charSpacing,d=a.wordSpacing,u=a.textHScale*s,_=a.fontMatrix||Kr,h=n.length;let b,v,R,C;if(3!==a.textRenderingMode&&0!==o){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,e.save(),e.transform(...a.textMatrix),e.translate(a.x,a.y),e.scale(u,s),b=0;b<h;++b){if(v=n[b],"number"==typeof v){C=l*v*o/1e3,this.ctx.translate(C,0),a.x+=C*u;continue}const k=(v.isSpace?d:0)+c,F=r.charProcOperatorList[v.operatorListId];F?(this.contentVisible&&(this.processingType3=v,this.save(),e.scale(o,o),e.transform(..._),this.executeOperatorList(F),this.restore()),R=J.applyTransform([v.width,0],_)[0]*o+k,e.translate(R,0),a.x+=R*u):st(`Type3 character "${v.operatorListId}" is not available.`)}e.restore(),this.processingType3=null}}setCharWidth(n,e){}setCharWidthAndBounds(n,e,a,r,o,s){this.ctx.rect(a,r,o-a,s-r),this.ctx.clip(),this.endPath()}getColorN_Pattern(n){let e;if("TilingPattern"===n[0]){const a=n[1],r=this.baseTransform||St(this.ctx);e=new H0(n,a,this.ctx,{createCanvasGraphics:s=>new Un(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})},r)}else e=this._getPattern(n[1],n[2]);return e}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments),this.current.patternStroke=!0}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(n,e,a){this.ctx.strokeStyle=this.current.strokeColor=J.makeHexColor(n,e,a),this.current.patternStroke=!1}
1setStrokeTransparent(){this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(n,e,a){this.ctx.fillStyle=this.current.fillColor=J.makeHexColor(n,e,a),this.current.patternFill=!1}setFillTransparent(){this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(n,e=null){let a;return this.cachedPatterns.has(n)?a=this.cachedPatterns.get(n):(a=function q0(i){switch(i[0]){case"RadialAxial":return new O0(i);case"Mesh":return new Y0(i);case"Dummy":return new X0}throw new Error(`Unknown IR type: ${i[0]}`)}(this.getObject(n)),this.cachedPatterns.set(n,a)),e&&(a.matrix=e),a}shadingFill(n){if(!this.contentVisible)return;const e=this.ctx;this.save();const a=this._getPattern(n);e.fillStyle=a.getPattern(e,this,Qe(e),"Shading");const r=Qe(e);if(r){const{width:o,height:s}=e.canvas,[l,c,d,u]=J.getAxialAlignedBoundingBox([0,0,o,s],r);this.ctx.fillRect(l,c,d-l,u-c)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){yt("Should not call beginInlineImage")}beginImageData(){yt("Should not call beginImageData")}paintFormXObjectBegin(n,e){this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),n&&this.transform(...n),this.baseTransform=St(this.ctx),e)&&(this.ctx.rect(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.current.updateRectMinMax(St(this.ctx),e),this.clip(),this.endPath())}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(n){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const e=this.ctx;n.isolated||ba("TODO: Support non-isolated groups."),n.knockout&&st("Knockout groups not supported.");const a=St(e);if(n.matrix&&e.transform(...n.matrix),!n.bbox)throw new Error("Bounding box is required.");let r=J.getAxialAlignedBoundingBox(n.bbox,St(e));r=J.intersect(r,[0,0,e.canvas.width,e.canvas.height])||[0,0,0,0];const s=Math.floor(r[0]),l=Math.floor(r[1]),c=Math.max(Math.ceil(r[2])-s,1),d=Math.max(Math.ceil(r[3])-l,1);this.current.startNewPathAndClipBox([0,0,c,d]);let u="groupAt"+this.groupLevel;n.smask&&(u+="_smask_"+this.smaskCounter++%2);const _=this.cachedCanvases.getCanvas(u,c,d),h=_.context;h.translate(-s,-l),h.transform(...a),n.smask?this.smaskStack.push({canvas:_.canvas,context:h,offsetX:s,offsetY:l,subtype:n.smask.subtype,backdrop:n.smask.backdrop,transferMap:n.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(s,l),e.save()),vi(e,h),this.ctx=h,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++}endGroup(n){if(!this.contentVisible)return;this.groupLevel--;const e=this.ctx,a=this.groupStack.pop();if(this.ctx=a,this.ctx.imageSmoothingEnabled=!1,n.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const r=St(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...r);const o=J.getAxialAlignedBoundingBox([0,0,e.canvas.width,e.canvas.height],r);this.ctx.drawImage(e.canvas,0,0),this.ctx.restore(),this.compose(o)}}beginAnnotation(n,e,a,r,o){if(this.#t(),Fa(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),e){const s=e[2]-e[0],l=e[3]-e[1];if(o&&this.annotationCanvasMap){(a=a.slice())[4]-=e[0],a[5]-=e[1],(e=e.slice())[0]=e[1]=0,e[2]=s,e[3]=l;const[c,d]=J.singularValueDecompose2dScale(St(this.ctx)),{viewportScale:u}=this,_=Math.ceil(s*this.outputScaleX*u),h=Math.ceil(l*this.outputScaleY*u);this.annotationCanvas=this.canvasFactory.create(_,h);const{canvas:g,context:b}=this.annotationCanvas;this.annotationCanvasMap.set(n,g),this.annotationCanvas.savedCtx=this.ctx,this.ctx=b,this.ctx.save(),this.ctx.setTransform(c,0,0,-d,0,l*d),Fa(this.ctx)}else Fa(this.ctx),this.endPath(),this.ctx.rect(e[0],e[1],s,l),this.ctx.clip(),this.ctx.beginPath()}this.current=new sc(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...a),this.transform(...r)}
1endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#e(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(n){if(!this.contentVisible)return;const e=n.count;(n=this.getObject(n.data,n)).count=e;const a=this.ctx,r=this.processingType3;if(r&&(void 0===r.compiled&&(r.compiled=function J0(i){const{width:n,height:e}=i;if(n>1e3||e>1e3)return null;const r=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),o=n+1;let l,c,d,s=new Uint8Array(o*(e+1));const u=n+7&-8;let _=new Uint8Array(u*e),h=0;for(const C of i.data){let k=128;for(;k>0;)_[h++]=C&k?0:255,k>>=1}let g=0;for(h=0,0!==_[h]&&(s[0]=1,++g),c=1;c<n;c++)_[h]!==_[h+1]&&(s[c]=_[h]?2:1,++g),h++;for(0!==_[h]&&(s[c]=2,++g),l=1;l<e;l++){h=l*u,d=l*o,_[h-u]!==_[h]&&(s[d]=_[h]?1:8,++g);let C=(_[h]?4:0)+(_[h-u]?8:0);for(c=1;c<n;c++)C=(C>>2)+(_[h+1]?4:0)+(_[h-u+1]?8:0),r[C]&&(s[d+c]=r[C],++g),h++;if(_[h-u]!==_[h]&&(s[d+c]=_[h]?2:4,++g),g>1e3)return null}for(h=u*(e-1),d=l*o,0!==_[h]&&(s[d]=8,++g),c=1;c<n;c++)_[h]!==_[h+1]&&(s[d+c]=_[h]?4:8,++g),h++;if(0!==_[h]&&(s[d+c]=4,++g),g>1e3)return null;const b=new Int32Array([0,o,-1,0,-o,0,0,0,1]),v=new Path2D;for(l=0;g&&l<=e;l++){let C=l*o;const k=C+n;for(;C<k&&!s[C];)C++;if(C===k)continue;v.moveTo(C%o,l);const F=C;let w=s[C];do{const M=b[w];do{C+=M}while(!s[C]);const E=s[C];5!==E&&10!==E?(w=E,s[C]=0):(w=E&51*w>>4,s[C]&=w>>2|w<<2),v.lineTo(C%o,C/o|0),s[C]||--g}while(F!==C);--l}return _=null,s=null,function(C){C.save(),C.scale(1/n,-1/e),C.translate(0,-e),C.fill(v),C.beginPath(),C.restore()}}(n)),r.compiled))return void r.compiled(a);const o=this._createMaskCanvas(n),s=o.canvas;a.save(),a.setTransform(1,0,0,1,0,0),a.drawImage(s,o.offsetX,o.offsetY),a.restore(),this.compose()}paintImageMaskXObjectRepeat(n,e,a=0,r=0,o,s){if(!this.contentVisible)return;n=this.getObject(n.data,n);const l=this.ctx;l.save();const c=St(l);l.transform(e,a,r,o,0,0);const d=this._createMaskCanvas(n);l.setTransform(1,0,0,1,d.offsetX-c[4],d.offsetY-c[5]);for(let u=0,_=s.length;u<_;u+=2){const h=J.transform(c,[e,a,r,o,s[u],s[u+1]]),[g,b]=J.applyTransform([0,0],h);l.drawImage(d.canvas,g,b)}l.restore(),this.compose()}paintImageMaskXObjectGroup(n){if(!this.contentVisible)return;const e=this.ctx,a=this.current.fillColor,r=this.current.patternFill;for(const o of n){const{data:s,width:l,height:c,transform:d}=o,u=this.cachedCanvases.getCanvas("maskCanvas",l,c),_=u.context;_.save(),cc(_,this.getObject(s,o)),_.globalCompositeOperation="source-in",_.fillStyle=r?a.getPattern(_,this,Qe(e),"Fill"):a,_.fillRect(0,0,l,c),_.restore(),e.save(),e.transform(...d),e.scale(1,-1),ka(e,u.canvas,0,0,l,c,0,-1,1,1),e.restore()}this.compose()}paintImageXObject(n){if(!this.contentVisible)return;const e=this.getObject(n);e?this.paintInlineImageXObject(e):st("Dependent image isn't ready yet")}paintImageXObjectRepeat(n,e,a,r){if(!this.contentVisible)return;const o=this.getObject(n);if(!o)return void st("Dependent image isn't ready yet");const s=o.width,l=o.height,c=[];for(let d=0,u=r.length;d<u;d+=2)c.push({transform:[e,0,0,a,r[d],r[d+1]],x:0,y:0,w:s,h:l});this.paintInlineImageXObjectGroup(o,c)}applyTransferMapsToCanvas(n){return"none"!==this.current.transferMaps&&(n.filter=this.current.transferMaps,n.drawImage(n.canvas,0,0),n.filter="none"),n.canvas}applyTransferMapsToBitmap(n){if("none"===this.current.transferMaps)return n.bitmap;const{bitmap:e,width:a,height:r}=n,o=this.cachedCanvases.getCanvas("inlineImage",a,r),s=o.context;return s.filter=this.current.transferMaps,s.drawImage(e,0,0),s.filter="none",o.canvas}paintInlineImageXObject(n){if(!this.contentVisible)return;const e=n.width,a=n.height,r=this.ctx;if(this.save(),!re){const{filter:l}=r;"none"!==l&&""!==l&&(r.filter="none")}let o;if(r.scale(1/e,-1/a),n.bitmap)o=this.applyTransferMapsToBitmap(n);else if("function"==typeof HTMLElement&&n instanceof HTMLElement||!n.data)o=n;else{const c=this.cachedCanvases.getCanvas("inlineImage",e,a).context;lc(c,n),o=this.applyTransferMapsToCanvas(c)}const s=this._scaleImage(o,Qe(r));r.imageSmoothingEnabled=dc(St(r),n.interpolate),ka(r,s.img,0,0,s.paintWidth,s.paintHeight,0,-a,e,a),this.compose(),this.restore(
1)}paintInlineImageXObjectGroup(n,e){if(!this.contentVisible)return;const a=this.ctx;let r;if(n.bitmap)r=n.bitmap;else{const c=this.cachedCanvases.getCanvas("inlineImage",n.width,n.height).context;lc(c,n),r=this.applyTransferMapsToCanvas(c)}for(const o of e)a.save(),a.transform(...o.transform),a.scale(1,-1),ka(a,r,o.x,o.y,o.w,o.h,0,-1,1,1),a.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(n){}markPointProps(n,e){}beginMarkedContent(n){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(n,e){this.markedContentStack.push("OC"===n?{visible:this.optionalContentConfig.isVisible(e)}:{visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(n){const e=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(n);const a=this.ctx;this.pendingClip&&(e||(this.pendingClip===uc?a.clip("evenodd"):a.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),a.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const n=St(this.ctx);if(0===n[1]&&0===n[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(n[0]),Math.abs(n[3]));else{const e=Math.abs(n[0]*n[3]-n[2]*n[1]),a=Math.hypot(n[0],n[2]),r=Math.hypot(n[1],n[3]);this._cachedGetSinglePixelWidth=Math.max(a,r)/e}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(-1===this._cachedScaleForStroking[0]){const{lineWidth:n}=this.current,{a:e,b:a,c:r,d:o}=this.ctx.getTransform();let s,l;if(0===a&&0===r){const c=Math.abs(e),d=Math.abs(o);if(c===d)if(0===n)s=l=1/c;else{const u=c*n;s=l=u<1?1/u:1}else if(0===n)s=1/c,l=1/d;else{const u=c*n,_=d*n;s=u<1?1/u:1,l=_<1?1/_:1}}else{const c=Math.abs(e*o-a*r),d=Math.hypot(e,a),u=Math.hypot(r,o);if(0===n)s=u/c,l=d/c;else{const _=n*c;s=u>_?u/_:1,l=d>_?d/_:1}}this._cachedScaleForStroking[0]=s,this._cachedScaleForStroking[1]=l}return this._cachedScaleForStroking}rescaleAndStroke(n){const{ctx:e}=this,{lineWidth:a}=this.current,[r,o]=this.getScaleForStroking();if(e.lineWidth=a||1,1===r&&1===o)return void e.stroke();const s=e.getLineDash();if(n&&e.save(),e.scale(r,o),s.length>0){const l=Math.max(r,o);e.setLineDash(s.map(c=>c/l)),e.lineDashOffset/=l}e.stroke(),n&&e.restore()}isContentVisible(){for(let n=this.markedContentStack.length-1;n>=0;n--)if(!this.markedContentStack[n].visible)return!1;return!0}}for(const i in je)void 0!==Un.prototype[i]&&(Un.prototype[je[i]]=Un.prototype[i]);class xi{static#t=null;static#e="";static get workerPort(){return this.#t}static set workerPort(n){if(!(typeof Worker<"u"&&n instanceof Worker)&&null!==n)throw new Error("Invalid `workerPort` type.");this.#t=n}static get workerSrc(){return this.#e}static set workerSrc(n){if("string"!=typeof n)throw new Error("Invalid `workerSrc` type.");this.#e=n}}class tp{#t;#e;constructor({parsedData:n,rawData:e}){this.#t=n,this.#e=e}getRaw(){return this.#e}get(n){return this.#t.get(n)??null}getAll(){return eo(this.#t)}has(n){return this.#t.has(n)}}const Jn=Symbol("INTERNAL");class ep{#t=!1;#e=!1;#n=!1;#i=!0;constructor(n,{name:e,intent:a,usage:r,rbGroups:o}){this.#t=!!(2&n),this.#e=!!(4&n),this.name=e,this.intent=a,this.usage=r,this.rbGroups=o}get visible(){if(this.#n)return this.#i;if(!this.#i)return!1;const{print:n,view:e}=this.usage;return this.#t?"OFF"!==e?.viewState:!this.#e||"OFF"!==n?.printState}_setVisible(n,e,a=!1){n!==Jn&&yt("Internal method `_setVisible` called."),this.#n=a,this.#i=e}}class np{#t=null;#e=new Map;#n=null;#i=null;constructor(n,e=2){if(this.renderingIntent=e,this.name=null,this.creator=null,null!==n){this.name=n.name,this.creator=n.creator,this.#i=n.order;for(const a of n.groups)this.#e.set(a.id,new ep(e,a));if("OFF"===n.baseState)for(const a of this.#e.values())a._setVisible(Jn,!1);for(const a of n.on)this.#e.get(a)._setVisible(Jn,!0);for(const a of n.off)this.#e.get(a)._setVisible(Jn,!1);this.#n=this.getHash()}}#r(n){const e=n.length;if(e<2)return!0;const a=n[0];for(let r=1;r<e;r++){const o=n[r];let s;if(Array.isArray(o))s=this.#r(o);else{if(!this.#e.has(o))return st(`Optional content group not found: ${o}`),!0;s=this.#e.get(o).visible}switch(a){case"And":if(!s)return!1;break;case"Or":if(s)return!0;break;case"Not":return!s;default:return!0}}return"And"===a}isVisible(n){if(0===this.#e.size)return!0;
vendor: 4,429 bytes, line 1
1if(!n)return ba("Optional content group not defined."),!0;if("OCG"===n.type)return this.#e.has(n.id)?this.#e.get(n.id).visible:(st(`Optional content group not found: ${n.id}`),!0);if("OCMD"===n.type){if(n.expression)return this.#r(n.expression);if(!n.policy||"AnyOn"===n.policy){for(const e of n.ids){if(!this.#e.has(e))return st(`Optional content group not found: ${e}`),!0;if(this.#e.get(e).visible)return!0}return!1}if("AllOn"===n.policy){for(const e of n.ids){if(!this.#e.has(e))return st(`Optional content group not found: ${e}`),!0;if(!this.#e.get(e).visible)return!1}return!0}if("AnyOff"===n.policy){for(const e of n.ids){if(!this.#e.has(e))return st(`Optional content group not found: ${e}`),!0;if(!this.#e.get(e).visible)return!0}return!1}if("AllOff"===n.policy){for(const e of n.ids){if(!this.#e.has(e))return st(`Optional content group not found: ${e}`),!0;if(this.#e.get(e).visible)return!1}return!0}return st(`Unknown optional content policy ${n.policy}.`),!0}return st(`Unknown group type ${n.type}.`),!0}setVisibility(n,e=!0,a=!0){const r=this.#e.get(n);if(r){if(a&&e&&r.rbGroups.length)for(const o of r.rbGroups)for(const s of o)s!==n&&this.#e.get(s)?._setVisible(Jn,!1,!0);r._setVisible(Jn,!!e,!0),this.#t=null}else st(`Optional content group not found: ${n}`)}setOCGState({state:n,preserveRB:e}){let a;for(const r of n){switch(r){case"ON":case"OFF":case"Toggle":a=r;continue}const o=this.#e.get(r);if(o)switch(a){case"ON":this.setVisibility(r,!0,e);break;case"OFF":this.setVisibility(r,!1,e);break;case"Toggle":this.setVisibility(r,!o.visible,e)}}this.#t=null}get hasInitialVisibility(){return null===this.#n||this.getHash()===this.#n}getOrder(){return this.#e.size?this.#i?this.#i.slice():[...this.#e.keys()]:null}getGroups(){return this.#e.size>0?eo(this.#e):null}getGroup(n){return this.#e.get(n)||null}getHash(){if(null!==this.#t)return this.#t;const n=new Hl;for(const[e,a]of this.#e)n.update(`${e}:${a.visible}`);return this.#t=n.hexdigest()}}class ip{constructor(n,{disableRange:e=!1,disableStream:a=!1}){zt(n,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:r,initialData:o,progressiveDone:s,contentDispositionFilename:l}=n;if(this._queuedChunks=[],this._progressiveDone=s,this._contentDispositionFilename=l,o?.length>0){const c=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(c)}this._pdfDataRangeTransport=n,this._isStreamingSupported=!a,this._isRangeSupported=!e,this._contentLength=r,this._fullRequestReader=null,this._rangeReaders=[],n.addRangeListener((c,d)=>{this._onReceiveData({begin:c,chunk:d})}),n.addProgressListener((c,d)=>{this._onProgress({loaded:c,total:d})}),n.addProgressiveReadListener(c=>{this._onReceiveData({chunk:c})}),n.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),n.transportReady()}_onReceiveData({begin:n,chunk:e}){const a=e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer;void 0===n?this._fullRequestReader?this._fullRequestReader._enqueue(a):this._queuedChunks.push(a):zt(this._rangeReaders.some(function(o){return o._begin===n&&(o._enqueue(a),!0)}),"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(n){void 0===n.total?this._rangeReaders[0]?.onProgress?.({loaded:n.loaded}):this._fullRequestReader?.onProgress?.({loaded:n.loaded,total:n.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(n){const e=this._rangeReaders.indexOf(n);e>=0&&this._rangeReaders.splice(e,1)}getFullReader(){zt(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const n=this._queuedChunks;return this._queuedChunks=null,new ap(this,n,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(n,e){if(e<=this._progressiveDataLength)return null;const a=new rp(this,n,e);return this._pdfDataRangeTransport.requestDataRange(n,e),this._rangeReaders.push(a),a}cancelAllRequests(n){this._fullRequestReader?.cancel(n);for(const e of this._rangeReaders.slice(0))e.cancel(n);this._pdfDataRangeTransport.abort()}}class ap{constructor(n,e,a=!1,r=null){this._stream=n,this._done=a||!1,this._filename=oo(r)?r:null,this._queuedChunks=e||[],this._loaded=0;for(const o of this._queuedChunks)this._loaded+=o.byteLength;
1this._requests=[],this._headersReady=Promise.resolve(),n._fullRequestReader=this,this.onProgress=null}_enqueue(n){this._done||(this._requests.length>0?this._requests.shift().resolve({value:n,done:!1}):this._queuedChunks.push(n),this._loaded+=n.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}read(){var n=this;return(0,z.A)(function*(){if(n._queuedChunks.length>0)return{value:n._queuedChunks.shift(),done:!1};if(n._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return n._requests.push(e),e.promise})()}cancel(n){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class rp{constructor(n,e,a){this._stream=n,this._begin=e,this._end=a,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(n){if(!this._done){if(0===this._requests.length)this._queuedChunk=n;else{this._requests.shift().resolve({value:n,done:!1});for(const a of this._requests)a.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}read(){var n=this;return(0,z.A)(function*(){if(n._queuedChunk){const a=n._queuedChunk;return n._queuedChunk=null,{value:a,done:!1}}if(n._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return n._requests.push(e),e.promise})()}cancel(n){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function _c(i,n){const e=new Headers;if(!i||!n||"object"!=typeof n)return e;for(const a in n){const r=n[a];void 0!==r&&e.append(a,r)}return e}function wa(i){try{return new URL(i).origin}catch{}return null}function pc({responseHeaders:i,isHttp:n,rangeChunkSize:e,disableRange:a}){const r={allowRangeRequests:!1,suggestedLength:void 0},o=parseInt(i.get("Content-Length"),10);return!Number.isInteger(o)||(r.suggestedLength=o,o<=2*e)||a||!n||"bytes"!==i.get("Accept-Ranges")||"identity"!==(i.get("Content-Encoding")||"identity")||(r.allowRangeRequests=!0),r}function hc(i){const n=i.get("Content-Disposition");if(n){let e=function op(i){let n=!0,e=a("filename\\*","i").exec(i);if(e){e=e[1];let u=l(e);return u=unescape(u),u=c(u),u=d(u),o(u)}if(e=function s(u){const _=[];let h;const g=a("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(h=g.exec(u));){let[,v,R,C]=h;if(v=parseInt(v,10),v in _){if(0===v)break}else _[v]=[R,C]}const b=[];for(let v=0;v<_.length&&v in _;++v){let[R,C]=_[v];C=l(C),R&&(C=unescape(C),0===v&&(C=c(C))),b.push(C)}return b.join("")}(i),e)return o(d(e));if(e=a("filename","i").exec(i),e){e=e[1];let u=l(e);return u=d(u),o(u)}function a(u,_){return new RegExp("(?:^|;)\\s*"+u+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',_)}function r(u,_){if(u){if(!/^[\x00-\xFF]+$/.test(_))return _;try{const h=new TextDecoder(u,{fatal:!0}),g=zn(_);_=h.decode(g),n=!1}catch{}}return _}function o(u){return n&&/[\x80-\xff]/.test(u)&&(u=r("utf-8",u),n&&(u=r("iso-8859-1",u))),u}function l(u){if(u.startsWith('"')){const _=u.slice(1).split('\\"');for(let h=0;h<_.length;++h){const g=_[h].indexOf('"');-1!==g&&(_[h]=_[h].slice(0,g),_.length=h+1),_[h]=_[h].replaceAll(/\\(.)/g,"$1")}u=_.join('"')}return u}function c(u){const _=u.indexOf("'");return-1===_?u:r(u.slice(0,_),u.slice(_+1).replace(/^[^']*'/,""))}function d(u){return!u.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(u)?u:u.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(_,h,g,b){if("q"===g||"Q"===g)return r(h,b=(b=b.replaceAll("_"," ")).replaceAll(/=([0-9a-fA-F]{2})/g,function(v,R){return String.fromCharCode(parseInt(R,16))}));try{b=atob(b)}catch{}return r(h,b)})}return""}(n);if(e.includes("%"))try{e=decodeURIComponent(e)}catch{}if(oo(e))return e}return null}function Ma(i,n){return 404===i||0===i&&n.startsWith("file:")?new _i('Missing PDF "'+n+'".'):new va(`Unexpected server response 
1(${i}) while retrieving PDF "${n}".`,i)}function mc(i){return 200===i||206===i}function gc(i,n,e){return{method:"GET",headers:i,signal:e.signal,mode:"cors",credentials:n?"include":"same-origin",redirect:"follow"}}function fc(i){return i instanceof Uint8Array?i.buffer:i instanceof ArrayBuffer?i:(st(`getArrayBuffer - unexpected data format: ${i}`),new Uint8Array(i).buffer)}class bc{_responseOrigin=null;constructor(n){this.source=n,this.isHttp=/^https?:/i.test(n.url),this.headers=_c(this.isHttp,n.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return zt(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new sp(this),this._fullRequestReader}getRangeReader(n,e){if(e<=this._progressiveDataLength)return null;const a=new lp(this,n,e);return this._rangeRequestReaders.push(a),a}cancelAllRequests(n){this._fullRequestReader?.cancel(n);for(const e of this._rangeRequestReaders.slice(0))e.cancel(n)}}class sp{constructor(n){this._stream=n,this._reader=null,this._loaded=0,this._filename=null;const e=n.source;this._withCredentials=e.withCredentials||!1,this._contentLength=e.length,this._headersCapability=Promise.withResolvers(),this._disableRange=e.disableRange||!1,this._rangeChunkSize=e.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange;const a=new Headers(n.headers),r=e.url;fetch(r,gc(a,this._withCredentials,this._abortController)).then(o=>{if(n._responseOrigin=wa(o.url),!mc(o.status))throw Ma(o.status,r);this._reader=o.body.getReader(),this._headersCapability.resolve();const s=o.headers,{allowRangeRequests:l,suggestedLength:c}=pc({responseHeaders:s,isHttp:n.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=l,this._contentLength=c||this._contentLength,this._filename=hc(s),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new vn("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var n=this;return(0,z.A)(function*(){yield n._headersCapability.promise;const{value:e,done:a}=yield n._reader.read();return a?{value:e,done:a}:(n._loaded+=e.byteLength,n.onProgress?.({loaded:n._loaded,total:n._contentLength}),{value:fc(e),done:!1})})()}cancel(n){this._reader?.cancel(n),this._abortController.abort()}}class lp{constructor(n,e,a){this._stream=n,this._reader=null,this._loaded=0;const r=n.source;this._withCredentials=r.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!r.disableStream,this._abortController=new AbortController;const o=new Headers(n.headers);o.append("Range",`bytes=${e}-${a-1}`);const s=r.url;fetch(s,gc(o,this._withCredentials,this._abortController)).then(l=>{const c=wa(l.url);if(c!==n._responseOrigin)throw new Error(`Expected range response-origin "${c}" to match "${n._responseOrigin}".`);if(!mc(l.status))throw Ma(l.status,s);this._readCapability.resolve(),this._reader=l.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){var n=this;return(0,z.A)(function*(){yield n._readCapability.promise;const{value:e,done:a}=yield n._reader.read();return a?{value:e,done:a}:(n._loaded+=e.byteLength,n.onProgress?.({loaded:n._loaded}),{value:fc(e),done:!1})})()}cancel(n){this._reader?.cancel(n),this._abortController.abort()}}class dp{_responseOrigin=null;constructor({url:n,httpHeaders:e,withCredentials:a}){this.url=n,this.isHttp=/^https?:/i.test(n),this.headers=_c(this.isHttp,e),this.withCredentials=a||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(n){const e=new XMLHttpRequest,a=this.currXhrId++,r=this.pendingRequests[a]={xhr:e};e.open("GET",this.url),e.withCredentials=this.withCredentials;for(const[o,s]of this.headers)e.setRequestHeader(o,s);return this.isHttp&&"begin"in n&&"end"in n?(e.setRequestHeader("Range",`bytes=${n.begin}-${n.end-1}`),r.expectedStatus=206):r.expectedStatus=200,e.responseType="arraybuffer",zt(n.onError,"Expected `onError` callback to be provided."),e.onerror=()=>{n.onError(e.status)},e.onreadystatechange=this.onStateChange.bind(this,a),e.onprogress=this.onProgress.bind(this,a),r.onHeadersReceived=n.onHeadersReceived,r.onDone=n.onDone,r.onError=n.onError,r.onProgress=n.onProgress,e.send(null),a}onProgress(n,e){const a=this.pendingRequests[n];a&&a.onProgress?.(e)}onStateChange(n,e){const a=this.pendingRequests[n];if(!a)return;const r=a.xhr;if(r.readyState>=2&&a.onHeadersReceived&&(a.onHeadersReceived(),delete a.onHeadersReceived),4!==r.readyState||!(n in this.pendingRequests))return;if(delete this.pendingRequests[n],0===r.status&&this.isHttp)return void a.onError(r.status);const o=r.status||200;if((200!==o||206!==a.expectedStatus)&&o!==a.expectedStatus)return void a.onError(r.status);const l=function cp(i){const n=i.response;return"string"!=typeof n?n:zn(n).buffer}(r);if(206===o){const c=r.getResponseHeader("Content-Range"),d=/bytes (\d+)-(\d+)\/(\d+)/.exec(c);d?a.onDone({begin:parseInt(d[1],10),chunk:l}):(st('Missing or invalid "Content-Range" header.'),a.onError(0))}else l?a.onDone({begin:0,chunk:l}):a.onError(r.status)}getRequestXhr(n){return this.pendingRequests[n].xhr}isPendingRequest(n){return n in this.pendingRequests}
1abortRequest(n){const e=this.pendingRequests[n].xhr;delete this.pendingRequests[n],e.abort()}}class up{constructor(n){this._source=n,this._manager=new dp(n),this._rangeChunkSize=n.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(n){const e=this._rangeRequestReaders.indexOf(n);e>=0&&this._rangeRequestReaders.splice(e,1)}getFullReader(){return zt(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new _p(this._manager,this._source),this._fullRequestReader}getRangeReader(n,e){const a=new pp(this._manager,n,e);return a.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(a),a}cancelAllRequests(n){this._fullRequestReader?.cancel(n);for(const e of this._rangeRequestReaders.slice(0))e.cancel(n)}}class _p{constructor(n,e){this._manager=n,this._url=e.url,this._fullRequestId=n.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=e.disableRange||!1,this._contentLength=e.length,this._rangeChunkSize=e.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const n=this._fullRequestId,e=this._manager.getRequestXhr(n);this._manager._responseOrigin=wa(e.responseURL);const a=e.getAllResponseHeaders(),r=new Headers(a?a.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(l=>{const[c,...d]=l.split(": ");return[c,d.join(": ")]}):[]),{allowRangeRequests:o,suggestedLength:s}=pc({responseHeaders:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});o&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=hc(r),this._isRangeSupported&&this._manager.abortRequest(n),this._headersCapability.resolve()}_onDone(n){if(n&&(this._requests.length>0?this._requests.shift().resolve({value:n.chunk,done:!1}):this._cachedChunks.push(n.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(n){this._storedError=Ma(n,this._url),this._headersCapability.reject(this._storedError);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(n){this.onProgress?.({loaded:n.loaded,total:n.lengthComputable?n.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersCapability.promise}read(){var n=this;return(0,z.A)(function*(){if(yield n._headersCapability.promise,n._storedError)throw n._storedError;if(n._cachedChunks.length>0)return{value:n._cachedChunks.shift(),done:!1};if(n._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return n._requests.push(e),e.promise})()}cancel(n){this._done=!0,this._headersCapability.reject(n);for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class pp{constructor(n,e,a){this._manager=n,this._url=n.url,this._requestId=n.request({begin:e,end:a,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){const n=wa(this._manager.getRequestXhr(this._requestId)?.responseURL);n!==this._manager._responseOrigin&&(this._storedError=new Error(`Expected range response-origin "${n}" to match "${this._manager._responseOrigin}".`),this._onError(0))}_close(){this.onClosed?.(this)}_onDone(n){const e=n.chunk;this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0;for(const a of this._requests)a.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(n){this._storedError??=Ma(n,this._url);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(n){this.isStreamingSupported||this.onProgress?.({loaded:n.loaded})}get isStreamingSupported(){return!1}read(){var n=this;return(0,z.A)(function*(){if(n._storedError)throw n._storedError;if(null!==n._queuedChunk){const a=n._queuedChunk;return n._queuedChunk=null,{value:a,done:!1}}if(n._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return n._requests.push(e),e.promise})()}cancel(n){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest
1(this._requestId),this._close()}}const hp=/^[a-z][a-z0-9\-+.]+:/i;class gp{constructor(n){this.source=n,this.url=function mp(i){if(hp.test(i))return new URL(i);const n=process.getBuiltinModule("url");return new URL(n.pathToFileURL(i))}(n.url),zt("file:"===this.url.protocol,"PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return zt(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new fp(this),this._fullRequestReader}getRangeReader(n,e){if(e<=this._progressiveDataLength)return null;const a=new bp(this,n,e);return this._rangeRequestReaders.push(a),a}cancelAllRequests(n){this._fullRequestReader?.cancel(n);for(const e of this._rangeRequestReaders.slice(0))e.cancel(n)}}class fp{constructor(n){this._url=n.url,this._done=!1,this._storedError=null,this.onProgress=null;const e=n.source;this._contentLength=e.length,this._loaded=0,this._filename=null,this._disableRange=e.disableRange||!1,this._rangeChunkSize=e.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();const a=process.getBuiltinModule("fs");a.promises.lstat(this._url).then(r=>{this._contentLength=r.size,this._setReadableStream(a.createReadStream(this._url)),this._headersCapability.resolve()},r=>{"ENOENT"===r.code&&(r=new _i(`Missing PDF "${this._url}".`)),this._storedError=r,this._headersCapability.reject(r)})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var n=this;return(0,z.A)(function*(){if(yield n._readCapability.promise,n._done)return{value:void 0,done:!0};if(n._storedError)throw n._storedError;const e=n._readableStream.read();return null===e?(n._readCapability=Promise.withResolvers(),n.read()):(n._loaded+=e.length,n.onProgress?.({loaded:n._loaded,total:n._contentLength}),{value:new Uint8Array(e).buffer,done:!1})})()}cancel(n){this._readableStream?this._readableStream.destroy(n):this._error(n)}_error(n){this._storedError=n,this._readCapability.resolve()}_setReadableStream(n){this._readableStream=n,n.on("readable",()=>{this._readCapability.resolve()}),n.on("end",()=>{n.destroy(),this._done=!0,this._readCapability.resolve()}),n.on("error",e=>{this._error(e)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new vn("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class bp{constructor(n,e,a){this._url=n.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!n.source.disableStream;const o=process.getBuiltinModule("fs");this._setReadableStream(o.createReadStream(this._url,{start:e,end:a-1}))}get isStreamingSupported(){return this._isStreamingSupported}read(){var n=this;return(0,z.A)(function*(){if(yield n._readCapability.promise,n._done)return{value:void 0,done:!0};if(n._storedError)throw n._storedError;const e=n._readableStream.read();return null===e?(n._readCapability=Promise.withResolvers(),n.read()):(n._loaded+=e.length,n.onProgress?.({loaded:n._loaded}),{value:new Uint8Array(e).buffer,done:!1})})()}cancel(n){this._readableStream?this._readableStream.destroy(n):this._error(n)}_error(n){this._storedError=n,this._readCapability.resolve()}_setReadableStream(n){this._readableStream=n,n.on("readable",()=>{this._readCapability.resolve()}),n.on("end",()=>{n.destroy(),this._done=!0,this._readCapability.resolve()}),n.on("error",e=>{this._error(e)}),this._storedError&&this._readableStream.destroy(this._storedError)}}class he{#t=Promise.withResolvers();#e=null;#n=!1;#i=!!globalThis.FontInspector?.enabled;#r=null;#a=null;#l=0;#s=0;#d=null;#c=null;#_=0;#u=0;#p=Object.create(null);#o=[];#h=null;#g=[];#m=new WeakMap;#f=null;static#x=new Map;static#b=new Map;static#C=new WeakMap;static#y=null;static#I=new Set;
1constructor({textContentSource:n,container:e,viewport:a}){if(n instanceof ReadableStream)this.#h=n;else{if("object"!=typeof n)throw new Error('No "textContentSource" parameter specified.');this.#h=new ReadableStream({start(c){c.enqueue(n),c.close()}})}this.#e=this.#c=e,this.#u=a.scale*(globalThis.devicePixelRatio||1),this.#_=a.rotation,this.#a={div:null,properties:null,ctx:null};const{pageWidth:r,pageHeight:o,pageX:s,pageY:l}=a.rawDims;this.#f=[1,0,0,-1,-s,l+o],this.#s=r,this.#l=o,he.#A(),Mn(e,a),this.#t.promise.finally(()=>{he.#I.delete(this),this.#a=null,this.#p=null}).catch(()=>{})}static get fontFamilyMap(){const{isWindows:n,isFirefox:e}=pe.platform;return dt(this,"fontFamilyMap",new Map([["sans-serif",(n&&e?"Calibri, ":"")+"sans-serif"],["monospace",(n&&e?"Lucida Console, ":"")+"monospace"]]))}render(){const n=()=>{this.#d.read().then(({value:e,done:a})=>{a?this.#t.resolve():(this.#r??=e.lang,Object.assign(this.#p,e.styles),this.#F(e.items),n())},this.#t.reject)};return this.#d=this.#h.getReader(),he.#I.add(this),n(),this.#t.promise}update({viewport:n,onBefore:e=null}){const a=n.scale*(globalThis.devicePixelRatio||1),r=n.rotation;if(r!==this.#_&&(e?.(),this.#_=r,Mn(this.#c,{rotation:r})),a!==this.#u){e?.(),this.#u=a;const o={div:null,properties:null,ctx:he.#w(this.#r)};for(const s of this.#g)o.properties=this.#m.get(s),o.div=s,this.#R(o)}}cancel(){const n=new vn("TextLayer task cancelled.");this.#d?.cancel(n).catch(()=>{}),this.#d=null,this.#t.reject(n)}get textDivs(){return this.#g}get textContentItemsStr(){return this.#o}#F(n){if(this.#n)return;this.#a.ctx??=he.#w(this.#r);const e=this.#g,a=this.#o;for(const r of n){if(e.length>1e5)return st("Ignoring additional textDivs for performance reasons."),void(this.#n=!0);if(void 0!==r.str)a.push(r.str),this.#M(r);else if("beginMarkedContentProps"===r.type||"beginMarkedContent"===r.type){const o=this.#e;this.#e=document.createElement("span"),this.#e.classList.add("markedContent"),null!==r.id&&this.#e.setAttribute("id",`${r.id}`),o.append(this.#e)}else"endMarkedContent"===r.type&&(this.#e=this.#e.parentNode)}}#M(n){const e=document.createElement("span"),a={angle:0,canvasWidth:0,hasText:""!==n.str,hasEOL:n.hasEOL,fontSize:0};this.#g.push(e);const r=J.transform(this.#f,n.transform);let o=Math.atan2(r[1],r[0]);const s=this.#p[n.fontName];s.vertical&&(o+=Math.PI/2);let l=this.#i&&s.fontSubstitution||s.fontFamily;l=he.fontFamilyMap.get(l)||l;const c=Math.hypot(r[2],r[3]),d=c*he.#G(l,this.#r);let u,_;0===o?(u=r[4],_=r[5]-d):(u=r[4]+d*Math.sin(o),_=r[5]-d*Math.cos(o));const h="calc(var(--scale-factor)*",g=e.style;this.#e===this.#c?(g.left=`${(100*u/this.#s).toFixed(2)}%`,g.top=`${(100*_/this.#l).toFixed(2)}%`):(g.left=`${h}${u.toFixed(2)}px)`,g.top=`${h}${_.toFixed(2)}px)`),g.fontSize=`${h}${(he.#y*c).toFixed(2)}px)`,g.fontFamily=l,a.fontSize=c,e.setAttribute("role","presentation"),e.textContent=n.str,e.dir=n.dir,this.#i&&(e.dataset.fontName=s.fontSubstitutionLoadedName||n.fontName),0!==o&&(a.angle=o*(180/Math.PI));let b=!1;if(n.str.length>1)b=!0;else if(" "!==n.str&&n.transform[0]!==n.transform[3]){const v=Math.abs(n.transform[0]),R=Math.abs(n.transform[3]);v!==R&&Math.max(v,R)/Math.min(v,R)>1.5&&(b=!0)}if(b&&(a.canvasWidth=s.vertical?n.height:n.width),this.#m.set(e,a),this.#a.div=e,this.#a.properties=a,this.#R(this.#a),a.hasText&&this.#e.append(e),a.hasEOL){const v=document.createElement("br");v.setAttribute("role","presentation"),this.#e.append(v)}}#R(n){const{div:e,properties:a,ctx:r}=n,{style:o}=e;let s="";if(he.#y>1&&(s=`scale(${1/he.#y})`),0!==a.canvasWidth&&a.hasText){const{fontFamily:l}=o,{canvasWidth:c,fontSize:d}=a;he.#k(r,d*this.#u,l);const{width:u}=r.measureText(e.textContent);u>0&&(s=`scaleX(${c*this.#u/u}) ${s}`)}0!==a.angle&&(s=`rotate(${a.angle}deg) ${s}`),s.length>0&&(o.transform=s)}static cleanup(){if(!(this.#I.size>0)){this.#x.clear();for(const{canvas:n}of this.#b.values())n.remove();this.#b.clear()}}static#w(n=null){let e=this.#b.get(n||="");if(!e){const a=document.createElement("canvas");a.className="hiddenCanvasElement",a.lang=n,document.body.append(a),e=a.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#b.set(n,e),this.#C.set(e,{size:0,family:""})}return e}static#k(n,e,a){const r=this.#C.get(n);e===r.size&&a===r.family||(n.font=`${e}px ${a}`,r.size=e,r.family=a)}static#A(){if(null!==this.#y)return;const n=document.createElement("div");n.style.opacity=0,n.style.lineHeight=1,n.style.fontSize="1px",n.style.position="absolute",n.textContent="X",document.body.append(n),this.#y=n.getBoundingClientRect().height,n.remove()}static#G(n,e){const a=this.#x.get(n);if(a)return a;const r=this.#w(e);r.canvas.width=r.canvas.height=30,this.#k(r,30,n);const o=r.measureText("");let s=o.fontBoundingBoxAscent,l=Math.abs(o.fontBoundingBoxDescent);if(s){const u=s/(s+l);return this.#x.set(n,u),r.canvas.width=r.canvas.height=0,u}r.strokeStyle="red",r.clearRect(0,0,30,30),r.strokeText("g",0,0);let c=r.getImageData(0,0,30,30).data;l=0;for(let u=c.length-1-3;u>=0;u-=4)if(c[u]>0){l=Math.ceil(u/4/30);break}r.clearRect(0,0,30,30),r.strokeText("A",0,30),c=r.getImageData(0,0,30,30).data,s=0;for(let u=0,_=c.length;u<_;u+=4)if(c[u]>0){s=30-Math.floor(u/4/30);break}r.canvas.width=r.canvas.height=0;const d=s?s/(s+l):.8;return this.#x.set(n,d),d}}class Ci{static textContent(n){const e=[],a={items:e,styles:Object.create(null)};return function r(o){if(!o)return;let s=null;const l=o.name;if("#text"===l)s=o.value;else{if(!Ci.shouldBuildText(l))return;o?.attributes?.textContent?s=o.attributes.textContent:o.value&&(s=o.value)}if(null!==s&&e.push({str:s}),o.children)for(const c of o.children)r(c)}(n),a}static shouldBuildText(n){return!("textarea"===n||"input"===n||"option"===n||"select"===n)}}const Cp=65536,Tp=re?class L0 extends Ql{_createCanvas(n,e){return process.getBuiltinModule("module").createRequire("file:///var/lib/jenkins/workspace/wos-nx-ui_master/node_modules/pdfjs-dist/build/pdf.mjs")("@napi-rs/canvas").createCanvas(n,e)}}:class G0 extends Ql{constructor({ownerDocument:n=globalThis.document,enableHWA:e=!1}){super({enableHWA:e}),this._document=n}_createCanvas(n,e){const a=this._document.createElement("canvas");return a.width=n,a.height=e,a}},Ip=re?class N0 extends Ul{_fetch(n){return(0,z.A)(function*(){return tc(n)})()}}:Jl,kp=re?class $0 extends Wl{}:class D0 extends Wl{#t;#e;#n;#i;#r;#a;#l=0;constructor({docId:n,ownerDocument:e=globalThis.document}){super(),this.#i=n,this.#r=e}get#s(){return this.#e||=new Map}get#d(){return this.#a||=new Map}get#c(){if(!this.#n){const n=this.#r.createElement("div"),{style:e}=n;e.visibility="hidden",e.contain="strict",e.width=e.height=0,e.position="absolute",e.top=e.left=0,e.zIndex=-1;const a=this.#r.createElementNS(an,"svg");a.setAttribute("width",0),a.setAttribute("height",0),this.#n=this.#r.createElementNS(an,"def
1s"),n.append(a),a.append(this.#n),this.#r.body.append(n)}return this.#n}#_(n){if(1===n.length){const c=n[0],d=new Array(256);for(let _=0;_<256;_++)d[_]=c[_]/255;const u=d.join(",");return[u,u,u]}const[e,a,r]=n,o=new Array(256),s=new Array(256),l=new Array(256);for(let c=0;c<256;c++)o[c]=e[c]/255,s[c]=a[c]/255,l[c]=r[c]/255;return[o.join(","),s.join(","),l.join(",")]}#u(n){if(void 0===this.#t){this.#t="";const e=this.#r.URL;e!==this.#r.baseURI&&(Ra(e)?st('#createUrl: ignore "data:"-URL for performance reasons.'):this.#t=e.split("#",1)[0])}return`url(${this.#t}#${n})`}addFilter(n){if(!n)return"none";let e=this.#s.get(n);if(e)return e;const[a,r,o]=this.#_(n),s=1===n.length?a:`${a}${r}${o}`;if(e=this.#s.get(s),e)return this.#s.set(n,e),e;const l=`g_${this.#i}_transfer_map_${this.#l++}`,c=this.#u(l);this.#s.set(n,c),this.#s.set(s,c);const d=this.#h(l);return this.#m(a,r,o,d),c}addHCMFilter(n,e){const a=`${n}-${e}`,r="base";let o=this.#d.get(r);if(o?.key===a||(o?(o.filter?.remove(),o.key=a,o.url="none",o.filter=null):(o={key:a,url:"none",filter:null},this.#d.set(r,o)),!n||!e))return o.url;const s=this.#x(n);n=J.makeHexColor(...s);const l=this.#x(e);if(e=J.makeHexColor(...l),this.#c.style.color="","#000000"===n&&"#ffffff"===e||n===e)return o.url;const c=new Array(256);for(let g=0;g<=255;g++){const b=g/255;c[g]=b<=.03928?b/12.92:((b+.055)/1.055)**2.4}const d=c.join(","),u=`g_${this.#i}_hcm_filter`,_=o.filter=this.#h(u);this.#m(d,d,d,_),this.#o(_);const h=(g,b)=>{const v=s[g]/255,R=l[g]/255,C=new Array(b+1);for(let k=0;k<=b;k++)C[k]=v+k/b*(R-v);return C.join(",")};return this.#m(h(0,5),h(1,5),h(2,5),_),o.url=this.#u(u),o.url}addAlphaFilter(n){let e=this.#s.get(n);if(e)return e;const[a]=this.#_([n]),r=`alpha_${a}`;if(e=this.#s.get(r),e)return this.#s.set(n,e),e;const o=`g_${this.#i}_alpha_map_${this.#l++}`,s=this.#u(o);this.#s.set(n,s),this.#s.set(r,s);const l=this.#h(o);return this.#f(a,l),s}addLuminosityFilter(n){let a,r,e=this.#s.get(n||"luminosity");if(e)return e;if(n?([a]=this.#_([n]),r=`luminosity_${a}`):r="luminosity",e=this.#s.get(r),e)return this.#s.set(n,e),e;const o=`g_${this.#i}_luminosity_map_${this.#l++}`,s=this.#u(o);this.#s.set(n,s),this.#s.set(r,s);const l=this.#h(o);return this.#p(l),n&&this.#f(a,l),s}addHighlightHCMFilter(n,e,a,r,o){const s=`${e}-${a}-${r}-${o}`;let l=this.#d.get(n);if(l?.key===s||(l?(l.filter?.remove(),l.key=s,l.url="none",l.filter=null):(l={key:s,url:"none",filter:null},this.#d.set(n,l)),!e||!a))return l.url;const[c,d]=[e,a].map(this.#x.bind(this));let u=Math.round(.2126*c[0]+.7152*c[1]+.0722*c[2]),_=Math.round(.2126*d[0]+.7152*d[1]+.0722*d[2]),[h,g]=[r,o].map(this.#x.bind(this));_<u&&([u,_,h,g]=[_,u,g,h]),this.#c.style.color="";const b=(C,k,F)=>{const w=new Array(256),M=(_-u)/F,E=C/255,P=(k-C)/(255*F);let N=0;for(let O=0;O<=F;O++){const nt=Math.round(u+O*M),Z=E+O*P;for(let rt=N;rt<=nt;rt++)w[rt]=Z;N=nt+1}for(let O=N;O<256;O++)w[O]=w[N-1];return w.join(",")},v=`g_${this.#i}_hcm_${n}_filter`,R=l.filter=this.#h(v);return this.#o(R),this.#m(b(h[0],g[0],5),b(h[1],g[1],5),b(h[2],g[2],5),R),l.url=this.#u(v),l.url}destroy(n=!1){n&&this.#a?.size||(this.#n?.parentNode.parentNode.remove(),this.#n=null,this.#e?.clear(),this.#e=null,this.#a?.clear(),this.#a=null,this.#l=0)}#p(n){const e=this.#r.createElementNS(an,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),n.append(e)}#o(n){const e=this.#r.createElementNS(an,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),n.append(e)}#h(n){const e=this.#r.createElementNS(an,"filter");return e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("id",n),this.#c.append(e),e}#g(n,e,a){const r=this.#r.createElementNS(an,e);r.setAttribute("type","discrete"),r.setAttribute("tableValues",a),n.append(r)}#m(n,e,a,r){const o=this.#r.createElementNS(an,"feComponentTransfer");r.append(o),this.#g(o,"feFuncR",n),this.#g(o,"feFuncG",e),this.#g(o,"feFuncB",a)}#f(n,e){const a=this.#r.createElementNS(an,"feComponentTransfer");e.append(a),this.#g(a,"feFuncA",n)}#x(n){return this.#c.style.color=n,so(getComputedStyle(this.#c).getPropertyValue("color"))}},Fp=re?class j0 extends Kl{_fetch(n){return(0,z.A)(function*(){return tc(n)})()}}:Zl;function wp(i={}){"string"==typeof i||i instanceof URL?i={url:i}:(i instanceof ArrayBuffer||ArrayBuffer.isView(i))&&(i={data:i});const n=new xo,{docId:e}=n,a=i.url?function Mp(i){if(i instanceof URL)return i.href;try{return new URL(i,window.location).href}catch{if(re&&"string"==typeof i)return i}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}(i.url):null,r=i.data?function Sp(i){if(re&&typeof Buffer<"u"&&i instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(i instanceof Uint8Array&&i.byteLength===i.buffer.byteLength)return i;if("string"==typeof i)return zn(i);if(i instanceof ArrayBuffer||ArrayBuffer.isView(i)||"object"==typeof i&&!isNaN(i?.length))return new Uint8Array(i);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}(i.data):null,o=i.httpHeaders||null,s=!0===i.withCredentials,l=i.password??null,c=i.range instanceof xc?i.range:null,d=Number.isInteger(i.rangeChunkSize)&&i.rangeChunkSize>0?i.rangeChunkSize:Cp;let u=i.worker instanceof ne?i.worker:null;const _=i.verbosity,h="string"!=typeof i.docBaseUrl||Ra(i.docBaseUrl)?null:i.docBaseUrl,g="string"==typeof i.cMapUrl?i.cMapUrl:null,b=!1!==i.cMapPacked,v=i.CMapReaderFactory||Ip,R="string"==typeof i.standardFontDataUrl?i.standardFontDataUrl:null,C=i.StandardFontDataFactory||Fp,k=!0!==i.stopAtErrors,F=Number.isInteger(i.maxImageSize)&&i.maxImageSize>-1?i.maxImageSize:-1,w=!1!==i.isEvalSupported,M="boolean"==typeof i.isOffscreenCanvasSupported?i.isOffscreenCanvasSupported:!re,E="boolean"==typeof i.isImageDecoderSupported?i.isImageDecoderSupported:!re&&(pe.platform.isFirefox||!globalThis.chrome),P=Number.isInteger(i.canvasMaxAreaInBytes)?i.canvasMaxAreaInBytes:-1,N="boolean"==typeof i.disableFontFace?i.disableFontFace:re,O=!0===i.fontExtraProperties,nt=!0===i.enableXfa,Z=i.ownerDocument||globalThis.document,rt=!0===i.disableRange,kt=!0===i.disableStream,ut=!0===i.disableAutoFetch,Tt=!0===i.pdfBug,H=i.CanvasFactory||Tp,U=i.FilterFactory||kp,ee=!0===i.enableHWA,Ce=c?c.length:i.length??NaN,le="boolean"==typeof i.useSystemFonts?i.useSystemFonts:!re&&!N,Xt="boolean"==typeof i.useWorkerFetch?i.useWorkerFetch:v===Jl&&C===Zl&&g&&R&&hi(g,document.baseURI)&&hi(R,document.baseURI);!function u0(i){Number.isInteger(i)&&(fa=i)}(_);const gt={canvasFactory:new H({ownerDocument:Z,enableHWA:ee}),filterFactory:new U({docId:e,ownerDocument:Z}),cMapReaderFactory:Xt?null:new v({baseUrl:g,isCompressed:b}),standardFontDataFactory:Xt?null:new C({baseUrl:R})};if(!u){const Re={verbosity:_,port:xi.workerPort};u=Re.port?ne.fromPort(Re):new ne(Re),n._worker=u}const Ye={docId:e,apiVersion:"4.10.38",data:r,password:l,disableAutoFetch:ut,rangeChunkSize:d,length:Ce,docBaseUrl:h,enableXfa:nt,evaluatorOptions:{maxImageSize:F,disableFontFace:N,ignoreErrors:k,isEvalSupported:w,isOffscreenCanvasSupported:M,isImageDecoderSupported:E,canvasMaxAreaInBytes:P,fontExtraProperties:O,useSystemFonts:le,cMapUrl:Xt?g:null,standardFontDataUrl:Xt?R:null}},yn={disableFontFace:N,fontExtraProperties:O,ownerDocument:Z,pdfBug:Tt,styleElement:null,loadingParams:{disableAutoFetch:ut,enableXfa:nt}};return u.promise.then(function(){if(n.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");
1const Re=u.messageHandler.sendWithPromise("GetDocRequest",Ye,r?[r.buffer]:null);let vt;if(c)vt=new ip(c,{disableRange:rt,disableStream:kt});else if(!r){if(!a)throw new Error("getDocument - no `url` parameter provided.");let Ae;if(re)if(hi(a)){if(typeof fetch>"u"||typeof Response>"u"||!("body"in Response.prototype))throw new Error("getDocument - the Fetch API was disabled in Node.js, see `--no-experimental-fetch`.");Ae=bc}else Ae=gp;else Ae=hi(a)?bc:up;vt=new Ae({url:a,length:Ce,httpHeaders:o,withCredentials:s,rangeChunkSize:d,disableRange:rt,disableStream:kt})}return Re.then(Ae=>{if(n.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const ln=new bi(e,Ae,u.port),ja=new Gp(ln,n,vt,yn,gt);n._transport=ja,ln.send("Ready",null)})}).catch(n._capability.reject),n}function vc(i){return"object"==typeof i&&Number.isInteger(i?.num)&&i.num>=0&&Number.isInteger(i?.gen)&&i.gen>=0}class xo{static#t=0;constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId="d"+xo.#t++,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}destroy(){var n=this;return(0,z.A)(function*(){n.destroyed=!0;try{n._worker?.port&&(n._worker._pendingDestroy=!0),yield n._transport?.destroy()}catch(e){throw n._worker?.port&&delete n._worker._pendingDestroy,e}n._transport=null,n._worker?.destroy(),n._worker=null})()}}class xc{constructor(n,e,a=!1,r=null){this.length=n,this.initialData=e,this.progressiveDone=a,this.contentDispositionFilename=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(n){this._rangeListeners.push(n)}addProgressListener(n){this._progressListeners.push(n)}addProgressiveReadListener(n){this._progressiveReadListeners.push(n)}addProgressiveDoneListener(n){this._progressiveDoneListeners.push(n)}onDataRange(n,e){for(const a of this._rangeListeners)a(n,e)}onDataProgress(n,e){this._readyCapability.promise.then(()=>{for(const a of this._progressListeners)a(n,e)})}onDataProgressiveRead(n){this._readyCapability.promise.then(()=>{for(const e of this._progressiveReadListeners)e(n)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const n of this._progressiveDoneListeners)n()})}transportReady(){this._readyCapability.resolve()}requestDataRange(n,e){yt("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class Ap{constructor(n,e){this._pdfInfo=n,this._transport=e}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return dt(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(n){return this._transport.getPage(n)}getPageIndex(n){return this._transport.getPageIndex(n)}getDestinations(){return this._transport.getDestinations()}getDestination(n){return this._transport.getDestination(n)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:n="display"}={}){const{renderingIntent:e}=this._transport.getRenderingIntent(n);return this._transport.getOptionalContentConfig(e)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(n=!1){return this._transport.startCleanup(n||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(n){return this._transport.cachedPageNumber(n)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class Ep{#t=null;#e=!1;constructor(n,e,a,r=!1){this._pageIndex=n,this._pageInfo=e,this._transport=a,this._stats=r?new Bl:null,this._pdfBug=r,this.commonObjs=a.commonObjs,this.objs=new Cc,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:n,rotation:e=this.rotate,offsetX:a=0,offsetY:r=0,dontFlip:o=!1}={}){return new pi({viewBox:this.view,userUnit:this.userUnit,scale:n,rotation:e,offsetX:a,offsetY:r,dontFlip:o})}getAnnotations({intent:n="display"}={}){const{renderingIntent:e}
1=this._transport.getRenderingIntent(n);return this._transport.getAnnotations(this._pageIndex,e)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return dt(this,"isPureXfa",!!this._transport._htmlForXfa)}getXfa(){var n=this;return(0,z.A)(function*(){return n._transport._htmlForXfa?.children[n._pageIndex]||null})()}render({canvasContext:n,viewport:e,intent:a="display",annotationMode:r=fn.ENABLE,transform:o=null,background:s=null,optionalContentConfigPromise:l=null,annotationCanvasMap:c=null,pageColors:d=null,printAnnotationStorage:u=null,isEditing:_=!1}){this._stats?.time("Overall");const h=this._transport.getRenderingIntent(a,r,u,_),{renderingIntent:g,cacheKey:b}=h;this.#e=!1,this.#i(),l||=this._transport.getOptionalContentConfig(g);let v=this._intentStates.get(b);v||(v=Object.create(null),this._intentStates.set(b,v)),v.streamReaderCancelTimeout&&(clearTimeout(v.streamReaderCancelTimeout),v.streamReaderCancelTimeout=null);const R=!!(4&g);v.displayReadyCapability||(v.displayReadyCapability=Promise.withResolvers(),v.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(h));const C=w=>{v.renderTasks.delete(k),(this._maybeCleanupAfterRender||R)&&(this.#e=!0),this.#n(!R),w?(k.capability.reject(w),this._abortOperatorList({intentState:v,reason:w instanceof Error?w:new Error(w)})):k.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},k=new Wn({callback:C,params:{canvasContext:n,viewport:e,transform:o,background:s},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:c,operatorList:v.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!R,pdfBug:this._pdfBug,pageColors:d});(v.renderTasks||=new Set).add(k);const F=k.task;return Promise.all([v.displayReadyCapability.promise,l]).then(([w,M])=>{if(this.destroyed)C();else{if(this._stats?.time("Rendering"),!(M.renderingIntent&g))throw new Error("Mu
1st use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");k.initializeGraphics({transparency:w,optionalContentConfig:M}),k.operatorListChanged()}}).catch(C),F}getOperatorList({intent:n="display",annotationMode:e=fn.ENABLE,printAnnotationStorage:a=null,isEditing:r=!1}={}){const s=this._transport.getRenderingIntent(n,e,a,r,!0);let c,l=this._intentStates.get(s.cacheKey);return l||(l=Object.create(null),this._intentStates.set(s.cacheKey,l)),l.opListReadCapability||(c=Object.create(null),c.operatorListChanged=function o(){l.operatorList.lastChunk&&(l.opListReadCapability.resolve(l.operatorList),l.renderTasks.delete(c))},l.opListReadCapability=Promise.withResolvers(),(l.renderTasks||=new Set).add(c),l.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(s)),l.opListReadCapability.promise}streamTextContent({includeMarkedContent:n=!1,disableNormalization:e=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===n,disableNormalization:!0===e},{highWaterMark:100,size:r=>r.items.length})}getTextContent(n={}){if(this._transport._htmlForXfa)return this.getXfa().then(a=>Ci.textContent(a));const e=this.streamTextContent(n);return new Promise(function(a,r){const s=e.getReader(),l={items:[],styles:Object.create(null),lang:null};!function o(){s.read().then(function({value:c,done:d}){d?a(l):(l.lang??=c.lang,Object.assign(l.styles,c.styles),l.items.push(...c.items),o())},r)}()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const n=[];for(const e of this._intentStates.values())if(this._abortOperatorList({intentState:e,reason:new Error("Page was destroyed."),force:!0}),!e.opListReadCapability)for(const a of e.renderTasks)n.push(a.completed),a.cancel();return this.objs.clear(),this.#e=!1,this.#i(),Promise.all(n)}cleanup(n=!1){this.#e=!0;const e=this.#n(!1);return n&&e&&(this._stats&&=new Bl),e}#n(n=!1){if(this.#i(),!this.#e||this.destroyed)return!1;if(n)return this.#t=setTimeout(()=>{this.#t=null,this.#n(!1)},5e3),!1;for(const{renderTasks:e,operatorList:a}of this._intentStates.values())if(e.size>0||!a.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#e=!1,!0}#i(){this.#t&&(clearTimeout(this.#t),this.#t=null)}_startRenderPage(n,e){const a=this._intentStates.get(e);a&&(this._stats?.timeEnd("Page Request"),a.displayReadyCapability?.resolve(n))}_renderPageChunk(n,e){for(let a=0,r=n.length;a<r;a++)e.operatorList.fnArray.push(n.fnArray[a]),e.operatorList.argsArray.push(n.argsArray[a]);e.operatorList.lastChunk=n.lastChunk,e.operatorList.separateAnnots=n.separateAnnots;for(const a of e.renderTasks)a.operatorListChanged();n.lastChunk&&this.#n(!0)}_pumpOperatorList({renderingIntent:n,cacheKey:e,annotationStorageSerializable:a,modifiedIds:r}){const{map:o,transfer:s}=a,c=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:n,cacheKey:e,annotationStorage:o,modifiedIds:r},s).getReader(),d=this._intentStates.get(e);d.streamReader=c;const u=()=>{c.read().then(({value:_,done:h})=>{h?d.streamReader=null:this._transport.destroyed||(this._renderPageChunk(_,d),u())},_=>{if(d.streamReader=null,!this._transport.destroyed){if(d.operatorList){d.operatorList.lastChunk=!0;for(const h of d.renderTasks)h.operatorListChanged();this.#n(!0)}if(d.displayReadyCapability)d.displayReadyCapability.reject(_);else{if(!d.opListReadCapability)throw _;d.opListReadCapability.reject(_)}}})};u()}_abortOperatorList({intentState:n,reason:e,force:a=!1}){if(n.streamReader){if(n.streamReaderCancelTimeout&&(clearTimeout(n.streamReaderCancelTimeout),n.streamReaderCancelTimeout=null),!a){if(n.renderTasks.size>0)return;if(e instanceof ro){let r=100;return e.extraDelay>0&&e.extraDelay<1e3&&(r+=e.extraDelay),void(n.streamReaderCancelTimeout=setTimeout(()=>{n.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:n,reason:e,force:!0})},r))}}if(n.streamReader.cancel(new vn(e.message)).catch(()=>{}),n.streamReader=null,!this._transport.destroyed){for(const[r,o]of this._intentStates)if(o===n){this._intentStates.delete(r);break}this.cleanup()}}}get stats(){return this._stats}}class Pp{#t=new Map;#e=Promise.resolve();postMessage(n,e){const a={data:structuredClone(n,e?{transfer:e}:null)};this.#e.then(()=>{for(const[r]of this.#t)r.call(this,a)})}addEventListener(n,e,a=null){let r=null;if(a?.signal instanceof AbortSignal){const{signal:o}=a;if(o.aborted)return void st("LoopbackPort - cannot use an `aborted` signal.");const s=()=>this.removeEventListener(n,e);r=()=>o.removeEventListener("abort",s),o.addEventListener("abort",s)}this.#t.set(e,r)}removeEventListener(n,e){this.#t.get(e)?.(),this.#t.delete(e)}terminate(){for(const[,n]of this.#t)n?.();this.#t.clear()}}class ne{static#t=0;static#e=!1;static#n;static{re&&(this.#e=!0,xi.workerSrc||="./pdf.worker.mjs"),this._isSameOrigin=(n,e)=>{let a;try{if(a=new URL(n),!a.origin||"null"===a.origin)return!1}catch{return!1}
1const r=new URL(e,a);return a.origin===r.origin},this._createCDNWrapper=n=>URL.createObjectURL(new Blob([`await import("${n}");`],{type:"text/javascript"}))}constructor({name:n=null,port:e=null,verbosity:a=_0()}={}){if(this.name=n,this.destroyed=!1,this.verbosity=a,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,e){if(ne.#n?.has(e))throw new Error("Cannot use more than one PDFWorker per port.");return(ne.#n||=new WeakMap).set(e,this),void this._initializeFromPort(e)}this._initialize()}get promise(){return this._readyCapability.promise}#i(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(n){this._port=n,this._messageHandler=new bi("main","worker",n),this._messageHandler.on("ready",function(){}),this.#i()}_initialize(){if(ne.#e||ne.#r)return void this._setupFakeWorker();let{workerSrc:n}=ne;try{ne._isSameOrigin(window.location.href,n)||(n=ne._createCDNWrapper(new URL(n,window.location).href));const e=new Worker(n,{type:"module"}),a=new bi("main","worker",e),r=()=>{o.abort(),a.destroy(),e.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=new AbortController;e.addEventListener("error",()=>{this._webWorker||r()},{signal:o.signal}),a.on("test",l=>{o.abort(),!this.destroyed&&l?(this._messageHandler=a,this._port=e,this._webWorker=e,this.#i()):r()}),a.on("ready",l=>{if(o.abort(),this.destroyed)r();else try{s()}catch{this._setupFakeWorker()}});const s=()=>{const l=new Uint8Array;a.send("test",l,[l.buffer])};return void s()}catch{ba("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){ne.#e||(st("Setting up fake worker."),ne.#e=!0),ne._setupFakeWorkerGlobal.then(n=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const e=new Pp;this._port=e;const a="fake"+ne.#t++,r=new bi(a+"_worker",a,e);n.setup(r,e),this._messageHandler=new bi(a,a+"_worker",e),this.#i()}).catch(n=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${n.message}".`))})}destroy(){this.destroyed=!0,this._webWorker?.terminate(),this._webWorker=null,ne.#n?.delete(this._port),this._port=null,this._messageHandler?.destroy(),this._messageHandler=null}static fromPort(n){if(!n?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const e=this.#n?.get(n.port);if(e){if(e._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return e}return new ne(n)}static get workerSrc(){if(xi.workerSrc)return xi.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#r(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){var n=this;return dt(this,"_setupFakeWorkerGlobal",function(){var a=(0,z.A)(function*(){return n.#r?n.#r:(yield import(n.workerSrc)).WorkerMessageHandler});return function(){return a.apply(this,arguments)}}()())}}class Gp{#t=new Map;#e=new Map;#n=new Map;#i=new Map;#r=null;constructor(n,e,a,r,o){this.messageHandler=n,this.loadingTask=e,this.commonObjs=new Cc,this.fontLoader=new E0({ownerDocument:r.ownerDocument,styleElement:r.styleElement}),this.loadingParams=r.loadingParams,this._params=r,this.canvasFactory=o.canvasFactory,this.filterFactory=o.filterFactory,this.cMapReaderFactory=o.cMapReaderFactory,this.standardFontDataFactory=o.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=a,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}#a(n,e=null){const a=this.#t.get(n);if(a)return a;const r=this.messageHandler.sendWithPromise(n,e);return this.#t.set(n,r),r}get annotationStorage(){return dt(this,"annotationStorage",new po)}getRenderingIntent(n,e=fn.ENABLE,a=null,r=!1,o=!1){let s=2,l=_o;switch(n){case"any":s=1;break;case"display":break;case"print":s=4;break;default:st(`getRenderingIntent - invalid intent: ${n}`)}const c=4&s&&a instanceof Vl?a:this.annotationStorage;switch(e){case fn.DISABLE:s+=64;break;case fn.ENABLE:break;case fn.ENABLE_FORMS:s+=16;break;case fn.ENABLE_STORAGE:s+=32,l=c.serializable;break;default:st(`getRenderingIntent - invalid annotationMode: ${e}`)}r&&(s+=128),o&&(s+=256);const{ids:d,hash:u}=c.modifiedIds;return{renderingIntent:s,cacheKey:[s,l.hash,u].join("_"),annotationStorageSerializable:l,modifiedIds:d}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#r?.reject(new Error("Worker was destroyed during onPassword callback"));const n=[];for(const a of this.#e.values())n.push(a._destroy());this.#e.clear(),this.#n.clear(),this.#i.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();
1const e=this.messageHandler.sendWithPromise("Terminate",null);return n.push(e),Promise.all(n).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#t.clear(),this.filterFactory.destroy(),he.cleanup(),this._networkStream?.cancelAllRequests(new vn("Worker was terminated.")),this.messageHandler?.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){var n=this;const{messageHandler:e,loadingTask:a}=this;e.on("GetReader",(r,o)=>{zt(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=s=>{this._lastProgress={loaded:s.loaded,total:s.total}},o.onPull=()=>{this._fullReader.read().then(function({value:s,done:l}){l?o.close():(zt(s instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),o.enqueue(new Uint8Array(s),1,[s]))}).catch(s=>{o.error(s)})},o.onCancel=s=>{this._fullReader.cancel(s),o.ready.catch(l=>{if(!this.destroyed)throw l})}}),e.on("ReaderHeadersReady",function(){var r=(0,z.A)(function*(o){yield n._fullReader.headersReady;const{isStreamingSupported:s,isRangeSupported:l,contentLength:c}=n._fullReader;return(!s||!l)&&(n._lastProgress&&a.onProgress?.(n._lastProgress),n._fullReader.onProgress=d=>{a.onProgress?.({loaded:d.loaded,total:d.total})}),{isStreamingSupported:s,isRangeSupported:l,contentLength:c}});return function(o){return r.apply(this,arguments)}}()),e.on("GetRangeReader",(r,o)=>{zt(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const s=this._networkStream.getRangeReader(r.begin,r.end);s?(o.onPull=()=>{s.read().then(function({value:l,done:c}){c?o.close():(zt(l instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),o.enqueue(new Uint8Array(l),1,[l]))}).catch(l=>{o.error(l)})},o.onCancel=l=>{s.cancel(l),o.ready.catch(c=>{if(!this.destroyed)throw c})}):o.close()}),e.on("GetDoc",({pdfInfo:r})=>{this._numPages=r.numPages,this._htmlForXfa=r.htmlForXfa,delete r.htmlForXfa,a._capability.resolve(new Ap(r,this))}),e.on("DocException",r=>{a._capability.reject(be(r))}),e.on("PasswordRequest",r=>{this.#r=Promise.withResolvers();try{if(!a.onPassword)throw be(r);a.onPassword(s=>{s instanceof Error?this.#r.reject(s):this.#r.resolve({password:s})},r.code)}catch(o){this.#r.reject(o)}return this.#r.promise}),e.on("DataLoaded",r=>{a.onProgress?.({loaded:r.length,total:r.length}),this.downloadInfoCapability.resolve(r)}),e.on("StartRenderPage",r=>{this.destroyed||this.#e.get(r.pageIndex)._startRenderPage(r.transparency,r.cacheKey)}),e.on("commonobj",([r,o,s])=>{if(this.destroyed||this.commonObjs.has(r))return null;switch(o){case"Font":const{disableFontFace:l,fontExtraProperties:c,pdfBug:d}=this._params;if("error"in s){const g=s.error;st(`Error during font loading: ${g}`),this.commonObjs.resolve(r,g);break}const u=d&&globalThis.FontInspector?.enabled?(g,b)=>globalThis.FontInspector.fontAdded(g,b):null,_=new P0(s,{disableFontFace:l,fontExtraProperties:c,inspectFont:u});this.fontLoader.bind(_).catch(()=>e.sendWithPromise("FontFallback",{id:r})).finally(()=>{!c&&_.data&&(_.data=null),this.commonObjs.resolve(r,_)});break;case"CopyLocalImage":const{imageRef:h}=s;zt(h,"The imageRef must be defined.");for(const g of this.#e.values())for(const[,b]of g.objs)if(b?.ref===h)return b.dataLen?(this.commonObjs.resolve(r,structuredClone(b)),b.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(r,s);break;default:throw new Error(`Got unknown common object type ${o}`)}return null}),e.on("obj",([r,o,s,l])=>{if(this.destroyed)return;const c=this.#e.get(o);if(!c.objs.has(r)){if(0===c._intentStates.size)return void l?.bitmap?.close();switch(s){case"Image":c.objs.resolve(r,l),l?.dataLen>1e7&&(c._maybeCleanupAfterRender=!0);break;case"Pattern":c.objs.resolve(r,l);break;default:throw new Error(`Got unknown object type ${s}`)}}}),e.on("DocProgress",r=>{this.destroyed||a.onProgress?.({loaded:r.loaded,total:r.total})}),e.on("FetchBuiltInCMap",function(){var r=(0,z.A)(function*(o){if(n.destroyed)throw new Error("Worker was destroyed.");if(!n.cMapReaderFactory)throw new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.");return n.cMapReaderFactory.fetch(o)});return function(o){return r.apply(this,arguments)}}()),e.on("FetchStandardFontData",function(){var r=(0,z.A)(function*(o){if(n.destroyed)throw new Error("Worker was destroyed.");if(!n.standardFontDataFactory)throw new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.");return n.standardFontDataFactory.fetch(o)});return function(o){return r.apply(this,arguments)}}())}
1getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&st("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:n,transfer:e}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:n,filename:this._fullReader?.filename??null},e).finally(()=>{this.annotationStorage.resetModified()})}getPage(n){if(!Number.isInteger(n)||n<=0||n>this._numPages)return Promise.reject(new Error("Invalid page request."));const e=n-1,a=this.#n.get(e);if(a)return a;const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:e}).then(o=>{if(this.destroyed)throw new Error("Transport destroyed");o.refStr&&this.#i.set(o.refStr,n);const s=new Ep(e,o,this,this._params.pdfBug);return this.#e.set(e,s),s});return this.#n.set(e,r),r}getPageIndex(n){return vc(n)?this.messageHandler.sendWithPromise("GetPageIndex",{num:n.num,gen:n.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(n,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:n,intent:e})}getFieldObjects(){return this.#a("GetFieldObjects")}hasJSActions(){return this.#a("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(n){return"string"!=typeof n?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:n})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#a("GetDocJSActions")}getPageJSActions(n){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:n})}getStructTree(n){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:n})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(n){return this.#a("GetOptionalContentConfig").then(e=>new np(e,n))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const n="GetMetadata",e=this.#t.get(n);if(e)return e;const a=this.messageHandler.sendWithPromise(n,null).then(r=>({info:r[0],metadata:r[1]?new tp(r[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#t.set(n,a),a}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}startCleanup(){var n=this;return(0,z.A)(function*(e=!1){if(!n.destroyed){yield n.messageHandler.sendWithPromise("Cleanup",null);for(const a of n.#e.values())if(!a.cleanup())throw new Error(`startCleanup: Page ${a.pageNumber} is currently rendering.`);n.commonObjs.clear(),e||n.fontLoader.clear(),n.#t.clear(),n.filterFactory.destroy(!0),he.cleanup()}}).apply(this,arguments)}cachedPageNumber(n){return vc(n)?this.#i.get(0===n.gen?`${n.num}R`:`${n.num}R${n.gen}`)??null:null}}const Ri=Symbol("INITIAL_DATA");class Cc{#t=Object.create(null);#e(n){return this.#t[n]||={...Promise.withResolvers(),data:Ri}}get(n,e=null){if(e){const r=this.#e(n);return r.promise.then(()=>e(r.data)),null}const a=this.#t[n];if(!a||a.data===Ri)throw new Error(`Requesting object that isn't resolved yet ${n}.`);return a.data}has(n){const e=this.#t[n];return!!e&&e.data!==Ri}delete(n){const e=this.#t[n];return!(!e||e.data===Ri||(delete this.#t[n],0))}resolve(n,e=null){const a=this.#e(n);a.data=e,a.resolve()}clear(){for(const n in this.#t){const{data:e}=this.#t[n];e?.bitmap?.close()}this.#t=Object.create(null)}*[Symbol.iterator](){for(const n in this.#t){const{data:e}=this.#t[n];e!==Ri&&(yield[n,e])}}}class Dp{#t=null;constructor(n){this.#t=n,this.onContinue=null}get promise(){return this.#t.capability.promise}cancel(n=0){this.#t.cancel(null,n)}get separateAnnots(){const{separateAnnots:n}=this.#t.operatorList;if(!n)return!1;const{annotationCanvasMap:e}=this.#t;return n.form||n.canvas&&e?.size>0}}
1class Wn{#t=null;static#e=new WeakSet;constructor({callback:n,params:e,objs:a,commonObjs:r,annotationCanvasMap:o,operatorList:s,pageIndex:l,canvasFactory:c,filterFactory:d,useRequestAnimationFrame:u=!1,pdfBug:_=!1,pageColors:h=null}){this.callback=n,this.params=e,this.objs=a,this.commonObjs=r,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=l,this.canvasFactory=c,this.filterFactory=d,this._pdfBug=_,this.pageColors=h,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===u&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new Dp(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=e.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:n=!1,optionalContentConfig:e}){if(this.cancelled)return;if(this._canvas){if(Wn.#e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");Wn.#e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:a,viewport:r,transform:o,background:s}=this.params;this.gfx=new Un(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:e},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:r,transparency:n,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(n=null,e=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#t&&(window.cancelAnimationFrame(this.#t),this.#t=null),Wn.#e.delete(this._canvas),this.callback(n||new ro(`Rendering cancelled, page ${this._pageIndex+1}`,e))}operatorListChanged(){this.graphicsReady?(this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()):this.graphicsReadyCallback||=this._continueBound}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#t=window.requestAnimationFrame(()=>{this.#t=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}_next(){var n=this;return(0,z.A)(function*(){n.cancelled||(n.operatorListIdx=n.gfx.executeOperatorList(n.operatorList,n.operatorListIdx,n._continueBound,n.stepper),n.operatorListIdx===n.operatorList.argsArray.length&&(n.running=!1,n.operatorList.lastChunk&&(n.gfx.endDrawing(),Wn.#e.delete(n._canvas),n.callback())))})()}}const $p="4.10.38",Lp="f9bea397f";function Rc(i){return Math.floor(255*Math.max(0,Math.min(1,i))).toString(16).padStart(2,"0")}function yi(i){return Math.max(0,Math.min(255,255*i))}class yc{static CMYK_G([n,e,a,r]){return["G",1-Math.min(1,.3*n+.59*a+.11*e+r)]}static G_CMYK([n]){return["CMYK",0,0,0,1-n]}static G_RGB([n]){return["RGB",n,n,n]}static G_rgb([n]){return[n=yi(n),n,n]}static G_HTML([n]){const e=Rc(n);return`#${e}${e}${e}`}static RGB_G([n,e,a]){return["G",.3*n+.59*e+.11*a]}static RGB_rgb(n){return n.map(yi)}static RGB_HTML(n){return`#${n.map(Rc).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([n,e,a,r]){return["RGB",1-Math.min(1,n+r),1-Math.min(1,a+r),1-Math.min(1,e+r)]}static CMYK_rgb([n,e,a,r]){return[yi(1-Math.min(1,n+r)),yi(1-Math.min(1,a+r)),yi(1-Math.min(1,e+r))]}static CMYK_HTML(n){const e=this.CMYK_RGB(n).slice(1);return this.RGB_HTML(e)}static RGB_CMYK([n,e,a]){const r=1-n,o=1-e,s=1-a;return["CMYK",r,o,s,Math.min(r,o,s)]}}class Np{create(n,e,a=!1){if(n<=0||e<=0)throw new Error("Invalid SVG dimensions");const r=this._createSVG("svg:svg");return r.setAttribute("version","1.1"),a||(r.setAttribute("width",`${n}px`),r.setAttribute("height",`${e}px`)),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox",`0 0 ${n} ${e}`),r}createElement(n){if("string"!=typeof n)throw new Error("Invalid SVG element type");return this._createSVG(n)}_createSVG(n){yt("Abstract method `_createSVG` called.")}}class Co extends Np{_createSVG(n){return document.createElementNS(an,n)}}class Tc{static setupStorage(n,e,a,r,o){const s=r.getValue(e,{value:null});switch(a.name){case"textarea":if(null!==s.value&&(n.textContent=s.value),"print"===o)break;n.addEventListener("input",l=>{r.setValue(e,{value:l.target.value})});break;case"input":if("radio"===a.attributes.type||"checkbox"===a.attributes.type){if(s.value===a.attributes.xfaOn?n.setAttribute("checked",!0):s.value===a.attributes.xfaOff&&n.removeAttribute("checked"),"print"===o)break;n.addEventListener("change",l=>{r.setValue(e,{value:l.target.getAttribute(l.target.checked?"xfaOn":"xfaOff")})})}else{if(null!==s.value&&n.setAttribute("value",s.value),"print"===o)break;n.addEventListener("input",l=>{r.setValue(e,{value:l.target.value})})}break;case"select":if(null!==s.value){n.setAttribute("value",s.value);for(const l of a.children)l.attributes.value===s.value?l.attributes.selected=!0:l.attributes.hasOwnProperty("selected")&&delete l.attributes.selected}n.addEventListener("input",l=>{const c=l.target.options;r.setValue(e,{value:-1===c.selectedIndex?"":c[c.selectedIndex].value})})}}static setAttributes({html:n,element:e,storage:a=null,intent:r,linkService:o}){const{attributes:s}=e,l=n instanceof HTMLAnchorElement;"radio"===s.type&&(s.name=`${s.name}-${r}`);for(const[c,d]of Object.entries(s))if(null!=d)switch(c){case"class":d.length&&n.setAttribute(c,d.join(" "));break;case"dataId":break;case"id":n.setAttribute("data-element-id",d);break;case"style":Object.assign(n.style,d);break;case"textContent":n.textContent=d;break;default:(!l||"href"!==c&&"newWindow"!==c)&&n.setAttribute(c,d)}l&&o.addLinkAttributes(n,s.href,s.newWindow),a&&s.dataId&&this.setupStorage(n,s.dataId,e,a)}static render(n){const e=n.annotationStorage,a=n.linkService,r=n.xfaHtml,o=n.intent||"display",s=document.createElement(r.name);r.attributes&&this.setAttributes({html:s,element:r,intent:o,linkService:a});const l="richText"!==o,c=n.div;if(c.append(s),n.viewport){const _=`matrix(${n.viewport.transform.join(",")})`;c.style.transform=_}l&&c.setAttribute("class","xfaLayer xfaFont");const d=[];if(0===r.children.length){if(r.value){const _=document.createTextNode(r.value);
1s.append(_),l&&Ci.shouldBuildText(r.name)&&d.push(_)}return{textDivs:d}}const u=[[r,-1,s]];for(;u.length>0;){const[_,h,g]=u.at(-1);if(h+1===_.children.length){u.pop();continue}const b=_.children[++u.at(-1)[1]];if(null===b)continue;const{name:v}=b;if("#text"===v){const C=document.createTextNode(b.value);d.push(C),g.append(C);continue}const R=b?.attributes?.xmlns?document.createElementNS(b.attributes.xmlns,v):document.createElement(v);if(g.append(R),b.attributes&&this.setAttributes({html:R,element:b,storage:e,intent:o,linkService:a}),b.children?.length>0)u.push([b,-1,R]);else if(b.value){const C=document.createTextNode(b.value);l&&Ci.shouldBuildText(v)&&d.push(C),R.append(C)}}for(const _ of c.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))_.setAttribute("readOnly",!0);return{textDivs:d}}static update(n){const e=`matrix(${n.viewport.transform.join(",")})`;n.div.style.transform=e,n.div.hidden=!1}}const Ti=1e3,Sn=new WeakSet;function xn(i){return{width:i[2]-i[0],height:i[3]-i[1]}}class Op{static create(n){switch(n.data.annotationType){case 2:return new Ic(n);case 1:return new Bp(n);case 20:switch(n.data.fieldType){case"Tx":return new Yp(n);case"Btn":return n.data.radioButton?new kc(n):n.data.checkBox?new qp(n):new Hp(n);case"Ch":return new Vp(n);case"Sig":return new Xp(n)}return new An(n);case 16:return new Ro(n);case 3:return new Fc(n);case 4:return new Qp(n);case 5:return new Up(n);case 6:return new Jp(n);case 8:return new wc(n);case 14:return new Kp(n);case 15:return new yo(n);case 7:return new Wp(n);case 9:return new Mc(n);case 10:return new Zp(n);case 11:return new t1(n);case 12:return new e1(n);case 13:return new Sc(n);case 17:return new n1(n);default:return new Bt(n)}}}class Bt{#t=null;#e=!1;#n=null;constructor(n,{isRenderable:e=!1,ignoreBorder:a=!1,createQuadrilaterals:r=!1}={}){this.isRenderable=e,this.data=n.data,this.layer=n.layer,this.linkService=n.linkService,this.downloadManager=n.downloadManager,this.imageResourcesPath=n.imageResourcesPath,this.renderForms=n.renderForms,this.svgFactory=n.svgFactory,this.annotationStorage=n.annotationStorage,this.enableScripting=n.enableScripting,this.hasJSActions=n.hasJSActions,this._fieldObjects=n.fieldObjects,this.parent=n.parent,e&&(this.container=this._createContainer(a)),r&&this._createQuadrilaterals()}static _hasPopupData({titleObj:n,contentsObj:e,richText:a}){return!!(n?.str||e?.str||a?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return Bt._hasPopupData(this.data)}updateEdited(n){if(!this.container)return;this.#t||={rect:this.data.rect.slice(0)};const{rect:e}=n;e&&this.#i(e),this.#n?.popup.updateEdited(n)}resetEdited(){this.#t&&(this.#i(this.#t.rect),this.#n?.popup.resetEdited(),this.#t=null)}#i(n){const{container:{style:e},data:{rect:a,rotation:r},parent:{viewport:{rawDims:{pageWidth:o,pageHeight:s,pageX:l,pageY:c}}}}=this;a?.splice(0,4,...n);const{width:d,height:u}=xn(n);e.left=100*(n[0]-l)/o+"%",e.top=100*(s-n[3]+c)/s+"%",0===r?(e.width=100*d/o+"%",e.height=100*u/s+"%"):this.setRotation(r)}_createContainer(n){const{data:e,parent:{page:a,viewport:r}}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",e.id),this instanceof An||(o.tabIndex=Ti);const{style:s}=o;if(s.zIndex=this.parent.zIndex++,e.alternativeText&&(o.title=e.alternativeText),e.noRotate&&o.classList.add("norotate"),!e.rect||this instanceof Ro){const{rotation:v}=e;return!e.hasOwnCanvas&&0!==v&&this.setRotation(v,o),o}const{width:l,height:c}=xn(e.rect);if(!n&&e.borderStyle.width>0){s.borderWidth=`${e.borderStyle.width}px`;const v=e.borderStyle.horizontalCornerRadius,R=e.borderStyle.verticalCornerRadius;switch(v>0||R>0?s.borderRadius=`calc(${v}px * var(--scale-factor)) / calc(${R}px * var(--scale-factor))`:this instanceof kc&&(s.borderRadius=`calc(${l}px * var(--scale-factor)) / calc(${c}px * var(--scale-factor))`),e.borderStyle.style){case 1:s.borderStyle="solid";break;case 2:s.borderStyle="dashed";break;case 3:st("Unimplemented border style: beveled");break;case 4:st("Unimplemented border style: inset");break;case 5:s.borderBottomStyle="solid"}const C=e.borderColor||null;C?(this.#e=!0,s.borderColor=J.makeHexColor(0|C[0],0|C[1],0|C[2])):s.borderWidth=0}const d=J.normalizeRect([e.rect[0],a.view[3]-e.rect[1]+a.view[1],e.rect[2],a.view[3]-e.rect[3]+a.view[1]]),{pageWidth:u,pageHeight:_,pageX:h,pageY:g}=r.rawDims;s.left=100*(d[0]-h)/u+"%",s.top=100*(d[1]-g)/_+"%";const{rotation:b}=e;return e.hasOwnCanvas||0===b?(s.width=100*l/u+"%",s.height=100*c/_+"%"):this.setRotation(b,o),o}setRotation(n,e=this.container){if(!this.data.rect)return;const{pageWidth:a,pageHeight:r}=this.parent.viewport.rawDims,{width:o,height:s}=xn(this.data.rect);let l,c;n%180==0?(l=100*o/a,c=100*s/r):(l=100*s/a,c=100*o/r),e.style.width=`${l}%`,e.style.height=`${c}%`,e.setAttribute("data-main-rotation",(360-n)%360)}get _commonActions(){const n=(e,a,r)=>{const o=r.detail[e],s=o[0],l=o.slice(1);r.target.style[a]=yc[`${s}_HTML`](l),this.annotationStorage.setValue(this.data.id,{[a]:yc[`${s}_rgb`](l)})};return dt(this,"_commonActions",{display:e=>{const{display:a}=e.detail,r=a%2==1;this.container.style.visibility=r?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:r,noPrint:1===a||2===a})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{const{hidden:a}=e.detail;this.container.style.visibility=a?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:a,noView:a})},focus:e=>{setTimeout(()=>
1e.target.focus({preventScroll:!1}),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:e=>{n("bgColor","backgroundColor",e)},fillColor:e=>{n("fillColor","backgroundColor",e)},fgColor:e=>{n("fgColor","color",e)},textColor:e=>{n("textColor","color",e)},borderColor:e=>{n("borderColor","borderColor",e)},strokeColor:e=>{n("strokeColor","borderColor",e)},rotation:e=>{const a=e.detail.rotation;this.setRotation(a),this.annotationStorage.setValue(this.data.id,{rotation:a})}})}_dispatchEventFromSandbox(n,e){const a=this._commonActions;for(const r of Object.keys(e.detail))(n[r]||a[r])?.(e)}_setDefaultPropertiesFromJS(n){if(!this.enableScripting)return;const e=this.annotationStorage.getRawValue(this.data.id);if(!e)return;const a=this._commonActions;for(const[r,o]of Object.entries(e)){const s=a[r];s&&(s({detail:{[r]:o},target:n}),delete e[r])}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:n}=this.data;if(!n)return;const[e,a,r,o]=this.data.rect.map(v=>Math.fround(v));if(8===n.length){const[v,R,C,k]=n.subarray(2,6);if(r===v&&o===R&&e===C&&a===k)return}const{style:s}=this.container;let l;if(this.#e){const{borderColor:v,borderWidth:R}=s;s.borderWidth=0,l=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${v}" stroke-width="${R}">`],this.container.classList.add("hasBorder")}const c=r-e,d=o-a,{svgFactory:u}=this,_=u.createElement("svg");_.classList.add("quadrilateralsContainer"),_.setAttribute("width",0),_.setAttribute("height",0);const h=u.createElement("defs");_.append(h);const g=u.createElement("clipPath"),b=`clippath_${this.data.id}`;g.setAttribute("id",b),g.setAttribute("clipPathUnits","objectBoundingBox"),h.append(g);for(let v=2,R=n.length;v<R;v+=8){const C=n[v],k=n[v+1],F=n[v+2],w=n[v+3],M=u.createElement("rect"),E=(F-e)/c,P=(o-k)/d,N=(C-F)/c,O=(k-w)/d;M.setAttribute("x",E),M.setAttribute("y",P),M.setAttribute("width",N),M.setAttribute("height",O),g.append(M),l?.push(`<rect vector-effect="non-scaling-stroke" x="${E}" y="${P}" width="${N}" height="${O}"/>`)}this.#e&&(l.push("</g></svg>')"),s.backgroundImage=l.join("")),this.container.append(_),this.container.style.clipPath=`url(#${b})`}_createPopup(){const{data:n}=this,e=this.#n=new Ro({data:{color:n.color,titleObj:n.titleObj,modificationDate:n.modificationDate,contentsObj:n.contentsObj,richText:n.richText,parentRect:n.rect,borderStyle:0,id:`popup_${n.id}`,rotation:n.rotation},parent:this.parent,elements:[this]});this.parent.div.append(e.render())}render(){yt("Abstract method `AnnotationElement.render` called")}_getElementsByName(n,e=null){const a=[];if(this._fieldObjects){const r=this._fieldObjects[n];if(r)for(const{page:o,id:s,exportValues:l}of r){if(-1===o||s===e)continue;const c="string"==typeof l?l:null,d=document.querySelector(`[data-element-id="${s}"]`);!d||Sn.has(d)?a.push({id:s,exportValue:c,domElement:d}):st(`_getElementsByName - element not allowed: ${s}`)}return a}for(const r of document.getElementsByName(n)){const{exportValue:o}=r,s=r.getAttribute("data-element-id");s!==e&&Sn.has(r)&&a.push({id:s,exportValue:o,domElement:r})}return a}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const n=this.getElementsToTriggerPopup();if(Array.isArray(n))for(const e of n)e.classList.add("highlightArea");else n.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:n,data:{id:e}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:n,editId:e})})}}class Ic extends Bt{constructor(n,e=null){super(n,{isRenderable:!0,ignoreBorder:!!e?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=n.data.isTooltipOnly}render(){const{data:n,linkService:e}=this,a=document.createElement("a");a.setAttribute("data-element-id",n.id);let r=!1;return n.url?(e.addLinkAttributes(a,n.url,n.newWindow),r=!0):n.action?(this._bindNamedAction(a,n.action),r=!0):n.attachment?(this.#e(a,n.attachment,n.attachmentDest),r=!0):n.setOCGState?(this.#n(a,n.setOCGState),r=!0):n.dest?(this._bindLink(a,n.dest),r=!0):(n.actions&&(n.actions.Action||n.actions["Mouse Up"]||n.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(a,n),r=!0),n.resetForm?(this._bindResetFormAction(a,n.resetForm),r=!0):this.isTooltipOnly&&!r&&(this._bindLink(a,""),r=!0)),this.container.classList.add("linkA
1nnotation"),r&&this.container.append(a),this.container}#t(){this.container.setAttribute("data-internal-link","")}_bindLink(n,e){n.href=this.linkService.getDestinationHash(e),n.onclick=()=>(e&&this.linkService.goToDestination(e),!1),(e||""===e)&&this.#t()}_bindNamedAction(n,e){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeNamedAction(e),!1),this.#t()}#e(n,e,a=null){n.href=this.linkService.getAnchorUrl(""),e.description&&(n.title=e.description),n.onclick=()=>(this.downloadManager?.openOrDownloadData(e.content,e.filename,a),!1),this.#t()}#n(n,e){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeSetOCGState(e),!1),this.#t()}_bindJSAction(n,e){n.href=this.linkService.getAnchorUrl("");const a=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const r of Object.keys(e.actions)){const o=a.get(r);o&&(n[o]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e.id,name:r}}),!1))}n.onclick||(n.onclick=()=>!1),this.#t()}_bindResetFormAction(n,e){const a=n.onclick;if(a||(n.href=this.linkService.getAnchorUrl("")),this.#t(),!this._fieldObjects)return st('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(a||(n.onclick=()=>!1));n.onclick=()=>{a?.();const{fields:r,refs:o,include:s}=e,l=[];if(0!==r.length||0!==o.length){const u=new Set(o);for(const _ of r){const h=this._fieldObjects[_]||[];for(const{id:g}of h)u.add(g)}for(const _ of Object.values(this._fieldObjects))for(const h of _)u.has(h.id)===s&&l.push(h)}else for(const u of Object.values(this._fieldObjects))l.push(...u);const c=this.annotationStorage,d=[];for(const u of l){const{id:_}=u;switch(d.push(_),u.type){case"text":case"combobox":case"listbox":c.setValue(_,{value:u.defaultValue||""});break;case"checkbox":case"radiobutton":c.setValue(_,{value:u.defaultValue===u.exportValues});break;default:continue}const h=document.querySelector(`[data-element-id="${_}"]`);h&&(Sn.has(h)?h.dispatchEvent(new Event("resetform")):st(`_bindResetFormAction - element not allowed: ${_}`))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:d,name:"ResetForm"}}),!1}}}class Bp extends Bt{constructor(n){super(n,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const n=document.createElement("img");return n.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",n.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),n.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(n),this.container}}class An extends Bt{render(){return this.container}showElementAndHideCanvas(n){this.data.hasOwnCanvas&&("CANVAS"===n.previousSibling?.nodeName&&(n.previousSibling.hidden=!0),n.hidden=!1)}_getKeyModifier(n){return pe.platform.isMac?n.metaKey:n.ctrlKey}_setEventListener(n,e,a,r,o){a.includes("mouse")?n.addEventListener(a,s=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:o(s),shift:s.shiftKey,modifier:this._getKeyModifier(s)}})}):n.addEventListener(a,s=>{if("blur"===a){if(!e.focused||!s.relatedTarget)return;e.focused=!1}else if("focus"===a){if(e.focused)return;e.focused=!0}o&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:o(s)}})})}_setEventListeners(n,e,a,r){for(const[o,s]of a)("Action"===s||this.data.actions?.[s])&&(("Focus"===s||"Blur"===s)&&(e||={focused:!1}),this._setEventListener(n,e,o,s,r),"Focus"!==s||this.data.actions?.Blur?"Blur"===s&&!this.data.actions?.Focus&&this._setEventListener(n,e,"focus","Focus",null):this._setEventListener(n,e,"blur","Blur",null))}_setBackgroundColor(n){const e=this.data.backgroundColor||null;n.style.backgroundColor=null===e?"transparent":J.makeHexColor(e[0],e[1],e[2])}_setTextStyle(n){const{fontColor:a}=this.data.defaultAppearanceData,r=this.data.defaultAppearanceData.fontSize||9,o=n.style;let s;const c=d=>Math.round(10*d)/10;if(this.data.multiLine){const d=Math.abs(this.data.rect[3]-this.data.rect[1]-2),u=Math.round(d/(1.35*r))||1;s=Math.min(r,c(d/u/1.35))}else{const d=Math.abs(this.data.rect[3]-this.data.rect[1]-2);s=Math.min(r,c(d/1.35))}o.fontSize=`calc(${s}px * var(--scale-factor))`,o.color=J.makeHexColor(a[0],a[1],a[2]),null!==this.data.textAlignment&&(o.textAlign=["left","center","right"][this.data.textAlignment])}_setRequired(n,e){e?n.setAttribute("required",!0):n.removeAttribute("required"),n.setAttribute("aria-required",e)}}class Yp extends An{constructor(n){super(n,{isRenderable:n.renderForms||n.data.hasOwnCanvas||!n.data.hasAppearance&&!!n.data.fieldValue})}setPropertyOnSiblings(n,e,a,r){const o=this.annotationStorage;
vendor: 7,829 bytes, line 1
1for(const s of this._getElementsByName(n.name,n.id))s.domElement&&(s.domElement[e]=a),o.setValue(s.id,{[r]:a})}render(){const n=this.annotationStorage,e=this.data.id;this.container.classList.add("textWidgetAnnotation");let a=null;if(this.renderForms){const r=n.getValue(e,{value:this.data.fieldValue});let o=r.value||"";const s=n.getValue(e,{charLimit:this.data.maxLen}).charLimit;s&&o.length>s&&(o=o.slice(0,s));let l=r.formattedValue||this.data.textContent?.join("\n")||null;l&&this.data.comb&&(l=l.replaceAll(/\s+/g,""));const c={userValue:o,formattedValue:l,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(a=document.createElement("textarea"),a.textContent=l??o,this.data.doNotScroll&&(a.style.overflowY="hidden")):(a=document.createElement("input"),a.type="text",a.setAttribute("value",l??o),this.data.doNotScroll&&(a.style.overflowX="hidden")),this.data.hasOwnCanvas&&(a.hidden=!0),Sn.add(a),a.setAttribute("data-element-id",e),a.disabled=this.data.readOnly,a.name=this.data.fieldName,a.tabIndex=Ti,this._setRequired(a,this.data.required),s&&(a.maxLength=s),a.addEventListener("input",u=>{n.setValue(e,{value:u.target.value}),this.setPropertyOnSiblings(a,"value",u.target.value,"value"),c.formattedValue=null}),a.addEventListener("resetform",u=>{a.value=c.userValue=this.data.defaultFieldValue??"",c.formattedValue=null});let d=u=>{const{formattedValue:_}=c;null!=_&&(u.target.value=_),u.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){a.addEventListener("focus",_=>{if(c.focused)return;const{target:h}=_;c.userValue&&(h.value=c.userValue),c.lastCommittedValue=h.value,c.commitKey=1,this.data.actions?.Focus||(c.focused=!0)}),a.addEventListener("updatefromsandbox",_=>{this.showElementAndHideCanvas(_.target),this._dispatchEventFromSandbox({value(g){c.userValue=g.detail.value??"",n.setValue(e,{value:c.userValue.toString()}),g.target.value=c.userValue},formattedValue(g){const{formattedValue:b}=g.detail;c.formattedValue=b,null!=b&&g.target!==document.activeElement&&(g.target.value=b),n.setValue(e,{formattedValue:b})},selRange(g){g.target.setSelectionRange(...g.detail.selRange)},charLimit:g=>{const{charLimit:b}=g.detail,{target:v}=g;if(0===b)return void v.removeAttribute("maxLength");v.setAttribute("maxLength",b);let R=c.userValue;!R||R.length<=b||(R=R.slice(0,b),v.value=c.userValue=R,n.setValue(e,{value:R}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:R,willCommit:!0,commitKey:1,selStart:v.selectionStart,selEnd:v.selectionEnd}}))}},_)}),a.addEventListener("keydown",_=>{c.commitKey=1;let h=-1;if("Escape"===_.key?h=0:"Enter"!==_.key||this.data.multiLine?"Tab"===_.key&&(c.commitKey=3):h=2,-1===h)return;const{value:g}=_.target;c.lastCommittedValue!==g&&(c.lastCommittedValue=g,c.userValue=g,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:g,willCommit:!0,commitKey:h,selStart:_.target.selectionStart,selEnd:_.target.selectionEnd}}))});const u=d;d=null,a.addEventListener("blur",_=>{if(!c.focused||!_.relatedTarget)return;this.data.actions?.Blur||(c.focused=!1);const{value:h}=_.target;c.userValue=h,c.lastCommittedValue!==h&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:h,willCommit:!0,commitKey:c.commitKey,selStart:_.target.selectionStart,selEnd:_.target.selectionEnd}}),u(_)}),this.data.actions?.Keystroke&&a.addEventListener("beforeinput",_=>{c.lastCommittedValue=null;const{data:h,target:g}=_,{value:b,selectionStart:v,selectionEnd:R}=g;let C=v,k=R;switch(_.inputType){case"deleteWordBackward":{const F=b.substring(0,v).match(/\w*[^\w]*$/);F&&(C-=F[0].length);break}case"deleteWordForward":{const F=b.substring(v).match(/^[^\w]*\w*/);F&&(k+=F[0].length);break}case"deleteContentBackward":v===R&&(C-=1);break;case"deleteContentForward":v===R&&(k+=1)}_.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:b,change:h||"",willCommit:!1,selStart:C,selEnd:k}})}),this._setEventListeners(a,c,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],_=>_.target.value)}if(d&&a.addEventListener("blur",d),this.data.comb){const _=(this.data.rect[2]-this.data.rect[0])/s;a.classList.add("comb"),a.style.letterSpacing=`calc(${_}px * var(--scale-factor) - 1ch)`}}else a=document.createElement("div"),a.textContent=this.data.fieldValue,a.style.verticalAlign="middle",a.style.display="table-cell",this.data.hasOwnCanvas&&(a.hidden=!0);return this._setTextStyle(a),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class Xp extends An{constructor(n){super(n,{isRenderable:!!n.data.hasOwnCanvas})}}class qp extends An{constructor(n){super(n,{isRenderable:n.renderForms})}render(){const n=this.annotationStorage,e=this.data,a=e.id;let r=n.getValue(a,{value:e.exportValue===e.fieldValue}).value;"string"==typeof r&&(r="Off"!==r,n.setValue(a,{value:r})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const o=document.createElement("input");return Sn.add(o),o.setAttribute("data-element-id",a),o.disabled=e.readOnly,this._setRequired(o,this.data.required),o.type="checkbox",o.name=e.fieldName,r&&o.setAttribute("checked",!0),o.setAttribute("exportValue",e.exportValue),o.tabIndex=Ti,o.addEventListener("change",s=>{const{name:l,checked:c}=s.target;for(const d of this._getElementsByName(l,a)){const u=c&&d.exportValue===e.exportValue;d.domElement&&(d.domElement.checked=u),n.setValue(d.id,{value:u})}n.setValue(a,{value:c})}),o.addEventListener("resetform",s=>{s.target.checked=(e.defaultFieldValue||"Off")===e.exportValue}),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",s=>{this._dispatchEventFromSandbox({value(c){c.target.checked="Off"!==c.detail.value,n.setValue(a,{value:c.target.checked})}},s)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],s=>s.target.checked)),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class kc extends An{constructor(n){super(n,{isRenderable:n.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const n=this.annotationStorage,e=this.data,a=e.id;let r=n.getValue(a,{value:e.fieldValue===e.buttonValue}).value;if("string"==typeof r&&(r=r!==e.buttonValue,n.setValue(a,{value:r})),r)for(const s of this._getElementsByName(e.fieldName,a))n.setValue(s.id,{value:!1});const o=document.createElement("input");if(Sn.add(o),o.setAttribute("data-element-id",a),o.disabled=e.readOnly,this._setRequired(o,this.data.required),o.type="radio",o.name=e.fieldName,r&&o.setAttribute("checked",!0),o.tabIndex=Ti,o.addEventListener("change",s=>{const{name:l,checked:c}=s.target;for(const d of this._getElementsByName(l,a))n.setValue(d.id,{value:!1});n.setValue(a,{value:c})}),o.addEventListener("resetform",s=>{const l=e.defaultFieldValue;s.target.checked=null!=l&&l===e.buttonValue}),this.enableScripting&&this.hasJSActions){const s=e.buttonValue;o.addEventListener("updatefromsandbox",l=>{this._dispatchEventFromSandbox({value:d=>{const u=s===d.detail.value;for(const _ of this._getElementsByName(d.target.name)){const h=u&&_.id===a;_.domElement&&(_.domElement.checked=h),n.setValue(_.id,{value:h})}}},l)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],l=>l.target.checked)}
1return this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class Hp extends Ic{constructor(n){super(n,{ignoreBorder:n.data.hasAppearance})}render(){const n=super.render();n.classList.add("buttonWidgetAnnotation","pushButton");const e=n.lastChild;return this.enableScripting&&this.hasJSActions&&e&&(this._setDefaultPropertiesFromJS(e),e.addEventListener("updatefromsandbox",a=>{this._dispatchEventFromSandbox({},a)})),n}}class Vp extends An{constructor(n){super(n,{isRenderable:n.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const n=this.annotationStorage,e=this.data.id,a=n.getValue(e,{value:this.data.fieldValue}),r=document.createElement("select");Sn.add(r),r.setAttribute("data-element-id",e),r.disabled=this.data.readOnly,this._setRequired(r,this.data.required),r.name=this.data.fieldName,r.tabIndex=Ti;let o=this.data.combo&&this.data.options.length>0;this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0)),r.addEventListener("resetform",u=>{const _=this.data.defaultFieldValue;for(const h of r.options)h.selected=h.value===_});for(const u of this.data.options){const _=document.createElement("option");_.textContent=u.displayValue,_.value=u.exportValue,a.value.includes(u.exportValue)&&(_.setAttribute("selected",!0),o=!1),r.append(_)}let s=null;if(o){const u=document.createElement("option");u.value=" ",u.setAttribute("hidden",!0),u.setAttribute("selected",!0),r.prepend(u),s=()=>{u.remove(),r.removeEventListener("input",s),s=null},r.addEventListener("input",s)}const l=u=>{const _=u?"value":"textContent",{options:h,multiple:g}=r;return g?Array.prototype.filter.call(h,b=>b.selected).map(b=>b[_]):-1===h.selectedIndex?null:h[h.selectedIndex][_]};let c=l(!1);const d=u=>Array.prototype.map.call(u.target.options,h=>({displayValue:h.textContent,exportValue:h.value}));return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",u=>{this._dispatchEventFromSandbox({value(h){s?.();const g=h.detail.value,b=new Set(Array.isArray(g)?g:[g]);for(const v of r.options)v.selected=b.has(v.value);n.setValue(e,{value:l(!0)}),c=l(!1)},multipleSelection(h){r.multiple=!0},remove(h){const g=r.options,b=h.detail.remove;g[b].selected=!1,r.remove(b),g.length>0&&-1===Array.prototype.findIndex.call(g,R=>R.selected)&&(g[0].selected=!0),n.setValue(e,{value:l(!0),items:d(h)}),c=l(!1)},clear(h){for(;0!==r.length;)r.remove(0);n.setValue(e,{value:null,items:[]}),c=l(!1)},insert(h){const{index:g,displayValue:b,exportValue:v}=h.detail.insert,R=r.children[g],C=document.createElement("option");C.textContent=b,C.value=v,R?R.before(C):r.append(C),n.setValue(e,{value:l(!0),items:d(h)}),c=l(!1)},items(h){const{items:g}=h.detail;for(;0!==r.length;)r.remove(0);for(const b of g){const{displayValue:v,exportValue:R}=b,C=document.createElement("option");C.textContent=v,C.value=R,r.append(C)}r.options.length>0&&(r.options[0].selected=!0),n.setValue(e,{value:l(!0),items:d(h)}),c=l(!1)},indices(h){const g=new Set(h.detail.indices);for(const b of h.target.options)b.selected=g.has(b.index);n.setValue(e,{value:l(!0)}),c=l(!1)},editable(h){h.target.disabled=!h.detail.editable}},u)}),r.addEventListener("input",u=>{const _=l(!0),h=l(!1);n.setValue(e,{value:_}),u.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:c,change:h,changeEx:_,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(r,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],u=>u.target.value)):r.addEventListener("input",function(u){n.setValue(e,{value:l(!0)})}),this.data.combo&&this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class Ro extends Bt{constructor(n){const{data:e,elements:a}=n;super(n,{isRenderable:Bt._hasPopupData(e)}),this.elements=a,this.popup=null}render(){this.container.classList.add("popupAnnotation");const n=this.popup=new zp({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),e=[];for(const a of this.elements)a.popup=n,a.container.ariaHasPopup="dialog",e.push(a.data.id),a.addHighlightArea();return this.container.setAttribute("aria-controls",e.map(a=>`${io}${a}`).join(",")),this.container}}
1class zp{#t=this.#F.bind(this);#e=this.#k.bind(this);#n=this.#w.bind(this);#i=this.#R.bind(this);#r=null;#a=null;#l=null;#s=null;#d=null;#c=null;#_=null;#u=!1;#p=null;#o=null;#h=null;#g=null;#m=null;#f=null;#x=!1;constructor({container:n,color:e,elements:a,titleObj:r,modificationDate:o,contentsObj:s,richText:l,parent:c,rect:d,parentRect:u,open:_}){this.#a=n,this.#m=r,this.#l=s,this.#g=l,this.#c=c,this.#r=e,this.#h=d,this.#_=u,this.#d=a,this.#s=Yl.toDateObject(o),this.trigger=a.flatMap(h=>h.getElementsToTriggerPopup());for(const h of this.trigger)h.addEventListener("click",this.#i),h.addEventListener("mouseenter",this.#n),h.addEventListener("mouseleave",this.#e),h.classList.add("popupTriggerArea");for(const h of a)h.container?.addEventListener("keydown",this.#t);this.#a.hidden=!0,_&&this.#R()}render(){if(this.#p)return;const n=this.#p=document.createElement("div");if(n.className="popup",this.#r){const o=n.style.outlineColor=J.makeHexColor(...this.#r);n.style.backgroundColor=CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?`color-mix(in srgb, ${o} 30%, white)`:J.makeHexColor(...this.#r.map(l=>Math.floor(.7*(255-l)+l)))}const e=document.createElement("span");e.className="header";const a=document.createElement("h1");if(e.append(a),({dir:a.dir,str:a.textContent}=this.#m),n.append(e),this.#s){const o=document.createElement("span");o.classList.add("popupDate"),o.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),o.setAttribute("data-l10n-args",JSON.stringify({dateObj:this.#s.valueOf()})),e.append(o)}const r=this.#b;if(r)Tc.render({xfaHtml:r,intent:"richText",div:n}),n.lastChild.classList.add("richText","popupContent");else{const o=this._formatContents(this.#l);n.append(o)}this.#a.append(n)}get#b(){const n=this.#g,e=this.#l;return n?.str&&(!e?.str||e.str===n.str)&&this.#g.html||null}get#C(){return this.#b?.attributes?.style?.fontSize||0}get#y(){return this.#b?.attributes?.style?.color||null}#I(n){const e=[],a={str:n,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:e}]}},r={style:{color:this.#y,fontSize:this.#C?`calc(${this.#C}px * var(--scale-factor))`:""}};for(const o of n.split("\n"))e.push({name:"span",value:o,attributes:r});return a}_formatContents({str:n,dir:e}){const a=document.createElement("p");a.classList.add("popupContent"),a.dir=e;const r=n.split(/(?:\r\n?|\n)/);for(let o=0,s=r.length;o<s;++o)a.append(document.createTextNode(r[o])),o<s-1&&a.append(document.createElement("br"));return a}#F(n){n.altKey||n.shiftKey||n.ctrlKey||n.metaKey||("Enter"===n.key||"Escape"===n.key&&this.#u)&&this.#R()}updateEdited({rect:n,popupContent:e}){this.#f||={contentsObj:this.#l,richText:this.#g},n&&(this.#o=null),e&&(this.#g=this.#I(e),this.#l=null),this.#p?.remove(),this.#p=null}resetEdited(){this.#f&&(({contentsObj:this.#l,richText:this.#g}=this.#f),this.#f=null,this.#p?.remove(),this.#p=null,this.#o=null)}#M(){if(null!==this.#o)return;const{page:{view:n},viewport:{rawDims:{pageWidth:e,pageHeight:a,pageX:r,pageY:o}}}=this.#c;let s=!!this.#_,l=s?this.#_:this.#h;for(const b of this.#d)if(!l||null!==J.intersect(b.data.rect,l)){l=b.data.rect,s=!0;break}const c=J.normalizeRect([l[0],n[3]-l[1]+n[1],l[2],n[3]-l[3]+n[1]]);this.#o=[100*(c[0]+(s?l[2]-l[0]+5:0)-r)/e,100*(c[1]-o)/a];const{style:g}=this.#a;g.left=`${this.#o[0]}%`,g.top=`${this.#o[1]}%`}#R(){this.#u=!this.#u,this.#u?(this.#w(),this.#a.addEventListener("click",this.#i),this.#a.addEventListener("keydown",this.#t)):(this.#k(),this.#a.removeEventListener("click",this.#i),this.#a.removeEventListener("keydown",this.#t))}#w(){this.#p||this.render(),this.isVisible?this.#u&&this.#a.classList.add("focused"):(this.#M(),this.#a.hidden=!1,this.#a.style.zIndex=parseInt(this.#a.style.zIndex)+1e3)}#k(){this.#a.classList.remove("focused"),!this.#u&&this.isVisible&&(this.#a.hidden=!0,this.#a.style.zIndex=parseInt(this.#a.style.zIndex)-1e3)}forceHide(){this.#x=this.isVisible,this.#x&&(this.#a.hidden=!0)}maybeShow(){this.#x&&(this.#p||this.#w(),this.#x=!1,this.#a.hidden=!1)}get isVisible(){return!1===this.#a.hidden}}class Fc extends Bt{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0}),this.textContent=n.data.textContent,this.textPosition=n.data.textPosition,this.annotationEditorType=ct.FREETEXT}
vendor: 6,293 bytes, line 1
1render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const n=document.createElement("div");n.classList.add("annotationTextContent"),n.setAttribute("role","comment");for(const e of this.textContent){const a=document.createElement("span");a.textContent=e,n.append(a)}this.container.append(n)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class Qp extends Bt{#t=null;constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");const n=this.data,{width:e,height:a}=xn(n.rect),r=this.svgFactory.create(e,a,!0),o=this.#t=this.svgFactory.createElement("svg:line");return o.setAttribute("x1",n.rect[2]-n.lineCoordinates[0]),o.setAttribute("y1",n.rect[3]-n.lineCoordinates[1]),o.setAttribute("x2",n.rect[2]-n.lineCoordinates[2]),o.setAttribute("y2",n.rect[3]-n.lineCoordinates[3]),o.setAttribute("stroke-width",n.borderStyle.width||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}}class Up extends Bt{#t=null;constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");const n=this.data,{width:e,height:a}=xn(n.rect),r=this.svgFactory.create(e,a,!0),o=n.borderStyle.width,s=this.#t=this.svgFactory.createElement("svg:rect");return s.setAttribute("x",o/2),s.setAttribute("y",o/2),s.setAttribute("width",e-o),s.setAttribute("height",a-o),s.setAttribute("stroke-width",o||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),r.append(s),this.container.append(r),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}}class Jp extends Bt{#t=null;constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");const n=this.data,{width:e,height:a}=xn(n.rect),r=this.svgFactory.create(e,a,!0),o=n.borderStyle.width,s=this.#t=this.svgFactory.createElement("svg:ellipse");return s.setAttribute("cx",e/2),s.setAttribute("cy",a/2),s.setAttribute("rx",e/2-o/2),s.setAttribute("ry",a/2-o/2),s.setAttribute("stroke-width",o||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),r.append(s),this.container.append(r),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}}class wc extends Bt{#t=null;constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:n,vertices:e,borderStyle:a,popupRef:r}}=this;if(!e)return this.container;const{width:o,height:s}=xn(n),l=this.svgFactory.create(o,s,!0);let c=[];for(let u=0,_=e.length;u<_;u+=2)c.push(`${e[u]-n[0]},${n[3]-e[u+1]}`);c=c.join(" ");const d=this.#t=this.svgFactory.createElement(this.svgElementName);return d.setAttribute("points",c),d.setAttribute("stroke-width",a.width||1),d.setAttribute("stroke","transparent"),d.setAttribute("fill","transparent"),l.append(d),this.container.append(l),!r&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}}class Wp extends wc{constructor(n){super(n),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class Kp extends Bt{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class yo extends Bt{#t=null;#e=[];constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType="InkHighlight"===this.data.it?ct.HIGHLIGHT:ct.INK}#n(n,e){switch(n){case 90:return{transform:`rotate(90) translate(${-e[0]},${e[1]}) scale(1,-1)`,width:e[3]-e[1],height:e[2]-e[0]};case 180:return{transform:`rotate(180) translate(${-e[2]},${e[1]}) scale(1,-1)`,width:e[2]-e[0],height:e[3]-e[1]};case 270:return{transform:`rotate(270) translate(${-e[2]},${e[3]}) scale(1,-1)`,width:e[3]-e[1],height:e[2]-e[0]};default:return{transform:`translate(${-e[0]},${e[3]}) scale(1,-1)`,width:e[2]-e[0],height:e[3]-e[1]}}}render(){this.container.classList.add(this.containerClassName);const{data:{rect:n,rotation:e,inkLists:a,borderStyle:r,popupRef:o}}=this,{transform:s,width:l,height:c}=this.#n(e,n),d=this.svgFactory.create(l,c,!0),u=this.#t=this.svgFactory.createElement("svg:g");d.append(u),u.setAttribute("stroke-width",r.width||1),u.setAttribute("stroke-linecap","round"),u.setAttribute("stroke-linejoin","round"),u.setAttribute("stroke-miterlimit",10),u.setAttribute("stroke","transparent"),u.setAttribute("fill","transparent"),u.setAttribute("transform",s);for(let _=0,h=a.length;_<h;_++){const g=this.svgFactory.createElement(this.svgElementName);this.#e.push(g),g.setAttribute("points",a[_].join(",")),u.append(g)}return!o&&this.hasPopupData&&this._createPopup(),this.container.append(d),this._editOnDoubleClick(),this.container}updateEdited(n){super.updateEdited(n);const{thickness:e,points:a,rect:r}=n,o=this.#t;if(e>=0&&o.setAttribute("stroke-width",e||1),a)for(let s=0,l=this.#e.length;s<l;s++)this.#e[s].setAttribute("points",a[s].join(","));if(r){const{transform:s,width:l,height:c}=this.#n(this.data.rotation,r);o.parentElement.setAttribute("viewBox",`0 0 ${l} ${c}`),o.setAttribute("transform",s)}}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class Mc extends Bt{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=ct.HIGHLIGHT}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),this.container}}
1class Zp extends Bt{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class t1 extends Bt{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class e1 extends Bt{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class Sc extends Bt{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=ct.STAMP}render(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class n1 extends Bt{#t=null;constructor(n){super(n,{isRenderable:!0});const{file:e}=this.data;this.filename=e.filename,this.content=e.content,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,...e})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:n,data:e}=this;let a;e.hasAppearance||0===e.fillAlpha?a=document.createElement("div"):(a=document.createElement("img"),a.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(e.name)?"paperclip":"pushpin"}.svg`,e.fillAlpha&&e.fillAlpha<1&&(a.style=`filter: opacity(${Math.round(100*e.fillAlpha)}%);`)),a.addEventListener("dblclick",this.#e.bind(this)),this.#t=a;const{isMac:r}=pe.platform;return n.addEventListener("keydown",o=>{"Enter"===o.key&&(r?o.metaKey:o.ctrlKey)&&this.#e()}),!e.popupRef&&this.hasPopupData?this._createPopup():a.classList.add("popupTriggerArea"),n.append(a),n}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}#e(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}}class i1{#t=null;#e=null;#n=new Map;#i=null;constructor({div:n,accessibilityManager:e,annotationCanvasMap:a,annotationEditorUIManager:r,page:o,viewport:s,structTreeLayer:l}){this.div=n,this.#t=e,this.#e=a,this.#i=l||null,this.page=o,this.viewport=s,this.zIndex=0,this._annotationEditorUIManager=r}hasEditableAnnotations(){return this.#n.size>0}#r(n,e){var a=this;return(0,z.A)(function*(){const r=n.firstChild||n,o=r.id=`${io}${e}`,s=yield a.#i?.getAriaAttributes(o);if(s)for(const[l,c]of s)r.setAttribute(l,c);a.div.append(n),a.#t?.moveElementInDOM(a.div,n,r,!1)})()}render(n){var e=this;return(0,z.A)(function*(){const{annotations:a}=n,r=e.div;Mn(r,e.viewport);const o=new Map,s={data:null,layer:r,linkService:n.linkService,downloadManager:n.downloadManager,imageResourcesPath:n.imageResourcesPath||"",renderForms:!1!==n.renderForms,svgFactory:new Co,annotationStorage:n.annotationStorage||new po,enableScripting:!0===n.enableScripting,hasJSActions:n.hasJSActions,fieldObjects:n.fieldObjects,parent:e,elements:null};for(const l of a){if(l.noHTML)continue;const c=16===l.annotationType;if(c){const _=o.get(l.id);if(!_)continue;s.elements=_}else{const{width:_,height:h}=xn(l.rect);if(_<=0||h<=0)continue}s.data=l;const d=Op.create(s);if(!d.isRenderable)continue;if(!c&&l.popupRef){const _=o.get(l.popupRef);_?_.push(d):o.set(l.popupRef,[d])}const u=d.render();l.hidden&&(u.style.visibility="hidden"),yield e.#r(u,l.id),d._isEditable&&(e.#n.set(d.data.id,d),e._annotationEditorUIManager?.renderAnnotationElement(d))}e.#a()})()}update({viewport:n}){const e=this.div;this.viewport=n,Mn(e,{rotation:n.rotation}),this.#a(),e.hidden=!1}#a(){if(!this.#e)return;const n=this.div;for(const[e,a]of this.#e){const r=n.querySelector(`[data-annotation-id="${e}"]`);if(!r)continue;a.className="annotationContent";const{firstChild:o}=r;o?"CANVAS"===o.nodeName?o.replaceWith(a):o.classList.contains("annotationContent")?o.after(a):o.before(a):r.append(a)}this.#e.clear()}getEditableAnnotations(){return Array.from(this.#n.values())}getEditableAnnotation(n){return this.#n.get(n)}}const Sa=/\r\n?|\n/g;class te extends tt{#t;#e="";#n=`${this.id}-editor`;#i=null;#r;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){const n=te.prototype,e=o=>o.isEmpty(),a=fi.TRANSLATE_SMALL,r=fi.TRANSLATE_BIG;return dt(this,"_keyboardManager",new gi([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],n.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],n.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],n._translateEmpty,{args:[-a,0],checker:e}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],n._translateEmpty,{args:[-r,0],checker:e}],[["ArrowRight","mac+ArrowRight"],n._translateEmpty,{args:[a,0],checker:e}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],n._translateEmpty,{args:[r,0],checker:e}],[["ArrowUp","mac+ArrowUp"],n._translateEmpty,{args:[0,-a],checker:e}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],n._translateEmpty,{args:[0,-r],checker:e}],[["ArrowDown","mac+ArrowDown"],n._translateEmpty,{args:[0,a],checker:e}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],n._translateEmpty,{args:[0,r],checker:e}]]))}static _type="freetext";static _editorType=ct.FREETEXT;constructor(n){super({...n,name:"freeTextEditor"}),this.#t=n.color||te._defaultColor||tt._defaultLineColor,this.#r=n.fontSize||te._defaultFontSize}static initialize(n,e){tt.initialize(n,e);const a=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(a.getPropertyValue("--freetext-padding"))}
vendor: 4,668 bytes, line 1
1static updateDefaultParams(n,e){switch(n){case pt.FREETEXT_SIZE:te._defaultFontSize=e;break;case pt.FREETEXT_COLOR:te._defaultColor=e}}updateParams(n,e){switch(n){case pt.FREETEXT_SIZE:this.#a(e);break;case pt.FREETEXT_COLOR:this.#l(e)}}static get defaultPropertiesToUpdate(){return[[pt.FREETEXT_SIZE,te._defaultFontSize],[pt.FREETEXT_COLOR,te._defaultColor||tt._defaultLineColor]]}get propertiesToUpdate(){return[[pt.FREETEXT_SIZE,this.#r],[pt.FREETEXT_COLOR,this.#t]]}#a(n){const e=r=>{this.editorDiv.style.fontSize=`calc(${r}px * var(--scale-factor))`,this.translate(0,-(r-this.#r)*this.parentScale),this.#r=r,this.#d()},a=this.#r;this.addCommands({cmd:e.bind(this,n),undo:e.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:pt.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#l(n){const e=r=>{this.#t=this.editorDiv.style.color=r},a=this.#t;this.addCommands({cmd:e.bind(this,n),undo:e.bind(this,a),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:pt.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(n,e){this._uiManager.translateSelectedEditors(n,e,!0)}getInitialTranslation(){const n=this.parentScale;return[-te._internalPadding*n,-(te._internalPadding+this.#r)*n]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(this.isInEditMode())return;this.parent.setEditingState(!1),this.parent.updateToolbar(ct.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.#i=new AbortController;const n=this._uiManager.combinedSignal(this.#i);this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:n}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:n}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:n}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:n}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:n})}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#n),this._isDraggable=!0,this.#i?.abort(),this.#i=null,this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}focusin(n){this._focusEventsAllowed&&(super.focusin(n),n.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(n){this.width||(this.enableEditMode(),n&&this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}#s(){const n=[];this.editorDiv.normalize();let e=null;for(const a of this.editorDiv.childNodes)e?.nodeType===Node.TEXT_NODE&&"BR"===a.nodeName||(n.push(te.#c(a)),e=a);return n.join("\n")}#d(){const[n,e]=this.parentDimensions;let a;if(this.isAttachedToDOM)a=this.div.getBoundingClientRect();else{const{currentLayer:r,div:o}=this,s=o.style.display,l=o.classList.contains("hidden");o.classList.remove("hidden"),o.style.display="hidden",r.div.append(this.div),a=o.getBoundingClientRect(),o.remove(),o.style.display=s,o.classList.toggle("hidden",l)}this.rotation%180==this.parentRotation%180?(this.width=a.width/n,this.height=a.height/e):(this.width=a.height/n,this.height=a.width/e),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const n=this.#e,e=this.#e=this.#s().trimEnd();if(n===e)return;const a=r=>{this.#e=r,r?(this.#_(),this._uiManager.rebuild(this),this.#d()):this.remove()};this.addCommands({cmd:()=>{a(e)},undo:()=>{a(n)},mustExec:!1}),this.#d()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(n){this.enterInEditMode()}keydown(n){n.target===this.div&&"Enter"===n.key&&(this.enterInEditMode(),n.preventDefault())}editorDivKeydown(n){te._keyboardManager.exec(this,n)}editorDivFocus(n){this.isEditing=!0}editorDivBlur(n){this.isEditing=!1}editorDivInput(n){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}
1render(){if(this.div)return this.div;let n,e;this.width&&(n=this.x,e=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#n),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;const{style:a}=this.editorDiv;if(a.fontSize=`calc(${this.#r}px * var(--scale-factor))`,a.color=this.#t,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),ya(this,this.div,["dblclick","keydown"]),this.width){const[r,o]=this.parentDimensions;if(this.annotationElementId){const{position:s}=this._initialData;let[l,c]=this.getInitialTranslation();[l,c]=this.pageTranslationToScreen(l,c);const[d,u]=this.pageDimensions,[_,h]=this.pageTranslation;let g,b;switch(this.rotation){case 0:g=n+(s[0]-_)/d,b=e+this.height-(s[1]-h)/u;break;case 90:g=n+(s[0]-_)/d,b=e-(s[1]-h)/u,[l,c]=[c,-l];break;case 180:g=n-this.width+(s[0]-_)/d,b=e-(s[1]-h)/u,[l,c]=[-l,-c];break;case 270:g=n+(s[0]-_-this.height*u)/d,b=e+(s[1]-h-this.width*d)/u,[l,c]=[-c,l]}this.setAt(g*r,b*o,l,c)}else this.setAt(n*r,e*o,this.width*r,this.height*o);this.#_(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#c(n){return(n.nodeType===Node.TEXT_NODE?n.nodeValue:n.innerText).replaceAll(Sa,"")}editorDivPaste(n){const e=n.clipboardData||window.clipboardData,{types:a}=e;if(1===a.length&&"text/plain"===a[0])return;n.preventDefault();const r=te.#p(e.getData("text")||"").replaceAll(Sa,"\n");if(!r)return;const o=window.getSelection();if(!o.rangeCount)return;this.editorDiv.normalize(),o.deleteFromDocument();const s=o.getRangeAt(0);if(!r.includes("\n"))return s.insertNode(document.createTextNode(r)),this.editorDiv.normalize(),void o.collapseToStart();const{startContainer:l,startOffset:c}=s,d=[],u=[];if(l.nodeType===Node.TEXT_NODE){const g=l.parentElement;if(u.push(l.nodeValue.slice(c).replaceAll(Sa,"")),g!==this.editorDiv){let b=d;for(const v of this.editorDiv.childNodes)v!==g?b.push(te.#c(v)):b=u}d.push(l.nodeValue.slice(0,c).replaceAll(Sa,""))}else if(l===this.editorDiv){let g=d,b=0;for(const v of this.editorDiv.childNodes)b++===c&&(g=u),g.push(te.#c(v))}this.#e=`${d.join("\n")}${r}${u.join("\n")}`,this.#_();const _=new Range;let h=d.reduce((g,b)=>g+b.length,0);for(const{firstChild:g}of this.editorDiv.childNodes)if(g.nodeType===Node.TEXT_NODE){const b=g.nodeValue.length;if(h<=b){_.setStart(g,h),_.setEnd(g,h);break}h-=b}o.removeAllRanges(),o.addRange(_)}#_(){if(this.editorDiv.replaceChildren(),this.#e)for(const n of this.#e.split("\n")){const e=document.createElement("div");e.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(e)}}#u(){return this.#e.replaceAll("\xa0"," ")}static#p(n){return n.replaceAll(" ","\xa0")}get contentDiv(){return this.editorDiv}static deserialize(n,e,a){var r=()=>super.deserialize,o=this;return(0,z.A)(function*(){let s=null;if(n instanceof Fc){const{data:{defaultAppearanceData:{fontSize:c,fontColor:d},rect:u,rotation:_,id:h,popupRef:g},textContent:b,textPosition:v,parent:{page:{pageNumber:R}}}=n;if(!b||0===b.length)return null;s=n={annotationType:ct.FREETEXT,color:Array.from(d),fontSize:c,value:b.join("\n"),position:v,pageIndex:R-1,rect:u.slice(0),rotation:_,id:h,deleted:!1,popupRef:g}}const l=yield r().call(o,n,e,a);return l.#r=n.fontSize,l.#t=J.makeHexColor(...n.color),l.#e=te.#p(n.value),l.annotationElementId=n.id||null,l._initialData=s,l})()}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const e=te._internalPadding*this.parentScale,a=this.getRect(e,e),r=tt._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.#t),o={annotationType:ct.FREETEXT,color:r,fontSize:this.#r,value:this.#u(),pageIndex:this.pageIndex,rect:a,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?o:this.annotationElementId&&!this.#o(o)?null:(o.id=this.annotationElementId,o)}
vendor: 5,071 bytes, line 1
1#o(n){const{value:e,fontSize:a,color:r,pageIndex:o}=this._initialData;return this._hasBeenMoved||n.value!==e||n.fontSize!==a||n.color.some((s,l)=>s!==r[l])||n.pageIndex!==o}renderAnnotationElement(n){const e=super.renderAnnotationElement(n);if(this.deleted)return e;const{style:a}=e;a.fontSize=`calc(${this.#r}px * var(--scale-factor))`,a.color=this.#t,e.replaceChildren();for(const o of this.#e.split("\n")){const s=document.createElement("div");s.append(o?document.createTextNode(o):document.createElement("br")),e.append(s)}const r=te._internalPadding*this.parentScale;return n.updateEdited({rect:this.getRect(r,r),popupContent:this.#e}),e}resetAnnotationElement(n){super.resetAnnotationElement(n),n.resetEdited()}}let Q=(()=>class i{static PRECISION=1e-4;toSVGPath(){yt("Abstract method `toSVGPath` must be implemented.")}get box(){yt("Abstract getter `box` must be implemented.")}serialize(e,a){yt("Abstract method `serialize` must be implemented.")}static _rescale(e,a,r,o,s,l){l||=new Float32Array(e.length);for(let c=0,d=e.length;c<d;c+=2)l[c]=a+e[c]*o,l[c+1]=r+e[c+1]*s;return l}static _rescaleAndSwap(e,a,r,o,s,l){l||=new Float32Array(e.length);for(let c=0,d=e.length;c<d;c+=2)l[c]=a+e[c+1]*o,l[c+1]=r+e[c]*s;return l}static _translate(e,a,r,o){o||=new Float32Array(e.length);for(let s=0,l=e.length;s<l;s+=2)o[s]=a+e[s],o[s+1]=r+e[s+1];return o}static svgRound(e){return Math.round(1e4*e)}static _normalizePoint(e,a,r,o,s){switch(s){case 90:return[1-a/r,e/o];case 180:return[1-e/r,1-a/o];case 270:return[a/r,1-e/o];default:return[e/r,a/o]}}static _normalizePagePoint(e,a,r){switch(r){case 90:return[1-a,e];case 180:return[1-e,1-a];case 270:return[a,1-e];default:return[e,a]}}static createBezierPoints(e,a,r,o,s,l){return[(e+5*r)/6,(a+5*o)/6,(5*r+s)/6,(5*o+l)/6,(r+s)/2,(o+l)/2]}})();class En{#t;#e=[];#n;#i;#r=[];#a=new Float32Array(18);#l;#s;#d;#c;#_;#u;#p=[];static#o=8;static#h=2;static#g=En.#o+En.#h;constructor({x:n,y:e},a,r,o,s,l=0){this.#t=a,this.#u=o*r,this.#i=s,this.#a.set([NaN,NaN,NaN,NaN,n,e],6),this.#n=l,this.#c=En.#o*r,this.#d=En.#g*r,this.#_=r,this.#p.push(n,e)}isEmpty(){return isNaN(this.#a[8])}#m(){const n=this.#a.subarray(4,6),e=this.#a.subarray(16,18),[a,r,o,s]=this.#t;return[(this.#l+(n[0]-e[0])/2-a)/o,(this.#s+(n[1]-e[1])/2-r)/s,(this.#l+(e[0]-n[0])/2-a)/o,(this.#s+(e[1]-n[1])/2-r)/s]}add({x:n,y:e}){this.#l=n,this.#s=e;const[a,r,o,s]=this.#t;let[l,c,d,u]=this.#a.subarray(8,12);const _=n-d,h=e-u,g=Math.hypot(_,h);if(g<this.#d)return!1;const b=g-this.#c,v=b/g,R=v*_,C=v*h;let k=l,F=c;l=d,c=u,d+=R,u+=C,this.#p?.push(n,e);const E=-C/b*this.#u,P=R/b*this.#u;return this.#a.set(this.#a.subarray(2,8),0),this.#a.set([d+E,u+P],4),this.#a.set(this.#a.subarray(14,18),12),this.#a.set([d-E,u-P],16),isNaN(this.#a[6])?(0===this.#r.length&&(this.#a.set([l+E,c+P],2),this.#r.push(NaN,NaN,NaN,NaN,(l+E-a)/o,(c+P-r)/s),this.#a.set([l-E,c-P],14),this.#e.push(NaN,NaN,NaN,NaN,(l-E-a)/o,(c-P-r)/s)),this.#a.set([k,F,l,c,d,u],6),!this.isEmpty()):(this.#a.set([k,F,l,c,d,u],6),Math.abs(Math.atan2(F-c,k-l)-Math.atan2(C,R))<Math.PI/2?([l,c,d,u]=this.#a.subarray(2,6),this.#r.push(NaN,NaN,NaN,NaN,((l+d)/2-a)/o,((c+u)/2-r)/s),[l,c,k,F]=this.#a.subarray(14,18),this.#e.push(NaN,NaN,NaN,NaN,((k+l)/2-a)/o,((F+c)/2-r)/s),!0):([k,F,l,c,d,u]=this.#a.subarray(0,6),this.#r.push(((k+5*l)/6-a)/o,((F+5*c)/6-r)/s,((5*l+d)/6-a)/o,((5*c+u)/6-r)/s,((l+d)/2-a)/o,((c+u)/2-r)/s),[d,u,l,c,k,F]=this.#a.subarray(12,18),this.#e.push(((k+5*l)/6-a)/o,((F+5*c)/6-r)/s,((5*l+d)/6-a)/o,((5*c+u)/6-r)/s,((l+d)/2-a)/o,((c+u)/2-r)/s),!0))}toSVGPath(){if(this.isEmpty())return"";const n=this.#r,e=this.#e;if(isNaN(this.#a[6])&&!this.isEmpty())return this.#f();const a=[];a.push(`M${n[4]} ${n[5]}`);for(let r=6;r<n.length;r+=6)isNaN(n[r])?a.push(`L${n[r+4]} ${n[r+5]}`):a.push(`C${n[r]} ${n[r+1]} ${n[r+2]} ${n[r+3]} ${n[r+4]} ${n[r+5]}`);this.#b(a);for(let r=e.length-6;r>=6;r-=6)isNaN(e[r])?a.push(`L${e[r+4]} ${e[r+5]}`):a.push(`C${e[r]} ${e[r+1]} ${e[r+2]} ${e[r+3]} ${e[r+4]} ${e[r+5]}`);return this.#x(a),a.join(" ")}#f(){const[n,e,a,r]=this.#t,[o,s,l,c]=this.#m();return`M${(this.#a[2]-n)/a} ${(this.#a[3]-e)/r} L${(this.#a[4]-n)/a} ${(this.#a[5]-e)/r} L${o} ${s} L${l} ${c} L${(this.#a[16]-n)/a} ${(this.#a[17]-e)/r} L${(this.#a[14]-n)/a} ${(this.#a[15]-e)/r} Z`}#x(n){const e=this.#e;n.push(`L${e[4]} ${e[5]} Z`)}#b(n){const[e,a,r,o]=this.#t,s=this.#a.subarray(4,6),l=this.#a.subarray(16,18),[c,d,u,_]=this.#m();n.push(`L${(s[0]-e)/r} ${(s[1]-a)/o} L${c} ${d} L${u} ${_} L${(l[0]-e)/r} ${(l[1]-a)/o}`)}newFreeDrawOutline(n,e,a,r,o,s){return new Ac(n,e,a,r,o,s)}getOutlines(){const n=this.#r,e=this.#e,a=this.#a,[r,o,s,l]=this.#t,c=new Float32Array((this.#p?.length??0)+2);for(let _=0,h=c.length-2;_<h;_+=2)c[_]=(this.#p[_]-r)/s,c[_+1]=(this.#p[_+1]-o)/l;if(c[c.length-2]=(this.#l-r)/s,c[c.length-1]=(this.#s-o)/l,isNaN(a[6])&&!this.isEmpty())return this.#C(c);const d=new Float32Array(this.#r.length+24+this.#e.length);let u=n.length;for(let _=0;_<u;_+=2)isNaN(n[_])?d[_]=d[_+1]=NaN:(d[_]=n[_],d[_+1]=n[_+1]);u=this.#I(d,u);for(let _=e.length-6;_>=6;_-=6)for(let h=0;h<6;
1h+=2)isNaN(e[_+h])?(d[u]=d[u+1]=NaN,u+=2):(d[u]=e[_+h],d[u+1]=e[_+h+1],u+=2);return this.#y(d,u),this.newFreeDrawOutline(d,c,this.#t,this.#_,this.#n,this.#i)}#C(n){const e=this.#a,[a,r,o,s]=this.#t,[l,c,d,u]=this.#m(),_=new Float32Array(36);return _.set([NaN,NaN,NaN,NaN,(e[2]-a)/o,(e[3]-r)/s,NaN,NaN,NaN,NaN,(e[4]-a)/o,(e[5]-r)/s,NaN,NaN,NaN,NaN,l,c,NaN,NaN,NaN,NaN,d,u,NaN,NaN,NaN,NaN,(e[16]-a)/o,(e[17]-r)/s,NaN,NaN,NaN,NaN,(e[14]-a)/o,(e[15]-r)/s],0),this.newFreeDrawOutline(_,n,this.#t,this.#_,this.#n,this.#i)}#y(n,e){const a=this.#e;return n.set([NaN,NaN,NaN,NaN,a[4],a[5]],e),e+6}#I(n,e){const a=this.#a.subarray(4,6),r=this.#a.subarray(16,18),[o,s,l,c]=this.#t,[d,u,_,h]=this.#m();return n.set([NaN,NaN,NaN,NaN,(a[0]-o)/l,(a[1]-s)/c,NaN,NaN,NaN,NaN,d,u,NaN,NaN,NaN,NaN,_,h,NaN,NaN,NaN,NaN,(r[0]-o)/l,(r[1]-s)/c],e),e+24}}class Ac extends Q{#t;#e=new Float32Array(4);#n;#i;#r;#a;#l;constructor(n,e,a,r,o,s){super(),this.#l=n,this.#r=e,this.#t=a,this.#a=r,this.#n=o,this.#i=s,this.lastPoint=[NaN,NaN],this.#s(s);const[l,c,d,u]=this.#e;for(let _=0,h=n.length;_<h;_+=2)n[_]=(n[_]-l)/d,n[_+1]=(n[_+1]-c)/u;for(let _=0,h=e.length;_<h;_+=2)e[_]=(e[_]-l)/d,e[_+1]=(e[_+1]-c)/u}toSVGPath(){const n=[`M${this.#l[4]} ${this.#l[5]}`];for(let e=6,a=this.#l.length;e<a;e+=6)isNaN(this.#l[e])?n.push(`L${this.#l[e+4]} ${this.#l[e+5]}`):n.push(`C${this.#l[e]} ${this.#l[e+1]} ${this.#l[e+2]} ${this.#l[e+3]} ${this.#l[e+4]} ${this.#l[e+5]}`);return n.push("Z"),n.join(" ")}serialize([n,e,a,r],o){const s=a-n,l=r-e;let c,d;switch(o){case 0:c=Q._rescale(this.#l,n,r,s,-l),d=Q._rescale(this.#r,n,r,s,-l);break;case 90:c=Q._rescaleAndSwap(this.#l,n,e,s,l),d=Q._rescaleAndSwap(this.#r,n,e,s,l);break;case 180:c=Q._rescale(this.#l,a,e,-s,l),d=Q._rescale(this.#r,a,e,-s,l);break;case 270:c=Q._rescaleAndSwap(this.#l,a,r,-s,-l),d=Q._rescaleAndSwap(this.#r,a,r,-s,-l)}return{outline:Array.from(c),points:[Array.from(d)]}}#s(n){const e=this.#l;let a=e[4],r=e[5],o=a,s=r,l=a,c=r,d=a,u=r;const _=n?Math.max:Math.min;for(let g=6,b=e.length;g<b;g+=6){if(isNaN(e[g]))o=Math.min(o,e[g+4]),s=Math.min(s,e[g+5]),l=Math.max(l,e[g+4]),c=Math.max(c,e[g+5]),u<e[g+5]?(d=e[g+4],u=e[g+5]):u===e[g+5]&&(d=_(d,e[g+4]));else{const v=J.bezierBoundingBox(a,r,...e.slice(g,g+6));o=Math.min(o,v[0]),s=Math.min(s,v[1]),l=Math.max(l,v[2]),c=Math.max(c,v[3]),u<v[3]?(d=v[2],u=v[3]):u===v[3]&&(d=_(d,v[2]))}a=e[g+4],r=e[g+5]}const h=this.#e;h[0]=o-this.#n,h[1]=s-this.#n,h[2]=l-o+2*this.#n,h[3]=c-s+2*this.#n,this.lastPoint=[d,u]}get box(){return this.#e}newOutliner(n,e,a,r,o,s=0){return new En(n,e,a,r,o,s)}getNewOutline(n,e){const[a,r,o,s]=this.#e,[l,c,d,u]=this.#t,_=o*d,h=s*u,g=a*d+l,b=r*u+c,v=this.newOutliner({x:this.#r[0]*_+g,y:this.#r[1]*h+b},this.#t,this.#a,n,this.#i,e??this.#n);for(let R=2;R<this.#r.length;R+=2)v.add({x:this.#r[R]*_+g,y:this.#r[R+1]*h+b});return v.getOutlines()}}class To{#t;#e;#n=[];#i=[];constructor(n,e=0,a=0,r=!0){let o=1/0,s=-1/0,l=1/0,c=-1/0;const u=10**-4;for(const{x:C,y:k,width:F,height:w}of n){const M=Math.floor((C-e)/u)*u,E=Math.ceil((C+F+e)/u)*u,P=Math.floor((k-e)/u)*u,N=Math.ceil((k+w+e)/u)*u;this.#n.push([M,P,N,!0],[E,P,N,!1]),o=Math.min(o,M),s=Math.max(s,E),l=Math.min(l,P),c=Math.max(c,N)}const _=s-o+2*a,h=c-l+2*a,g=o-a,b=l-a,v=this.#n.at(r?-1:-2),R=[v[0],v[2]];for(const C of this.#n){const[k,F,w]=C;C[0]=(k-g)/_,C[1]=(F-b)/h,C[2]=(w-b)/h}this.#t=new Float32Array([g,b,_,h]),this.#e=R}getOutlines(){this.#n.sort((e,a)=>e[0]-a[0]||e[1]-a[1]||e[2]-a[2]);const n=[];for(const e of this.#n)e[3]?(n.push(...this.#d(e)),this.#l(e)):(this.#s(e),n.push(...this.#d(e)));return this.#r(n)}#r(n){const e=[],a=new Set;for(const s of n){const[l,c,d]=s;e.push([l,c,s],[l,d,s])}e.sort((s,l)=>s[1]-l[1]||s[0]-l[0]);for(let s=0,l=e.length;s<l;s+=2){const c=e[s][2],d=e[s+1][2];c.push(d),d.push(c),a.add(c),a.add(d)}const r=[];let o;for(;a.size>0;){const s=a.values().next().value;let[l,c,d,u,_]=s;a.delete(s);let h=l,g=c;for(o=[l,d],r.push(o);;){let b;if(a.has(u))b=u;else{if(!a.has(_))break;b=_}a.delete(b),[l,c,d,u,_]=b,h!==l&&(o.push(h,g,l,g===c?c:d),h=l),g=g===c?d:c}o.push(h,g)}return new a1(r,this.#t,this.#e)}#a(n){const e=this.#i;let a=0,r=e.length-1;for(;a<=r;){const o=a+r>>1,s=e[o][0];if(s===n)return o;s<n?a=o+1:r=o-1}return r+1}#l([,n,e]){const a=this.#a(n);this.#i.splice(a,0,[n,e])}#s([,n,e]){const a=this.#a(n);for(let r=a;r<this.#i.length;r++){const[o,s]=this.#i[r];if(o!==n)break;if(o===n&&s===e)return void this.#i.splice(r,1)}for(let r=a-1;r>=0;r--){const[o,s]=this.#i[r];if(o!==n)break;if(o===n&&s===e)return void this.#i.splice(r,1)}}#d(n){const[e,a,r]=n,o=[[e,a,r]],s=this.#a(r);for(let l=0;l<s;l++){const[c,d]=this.#i[l];for(let u=0,_=o.length;u<_;u++){const[,h,g]=o[u];
1if(!(d<=h||g<=c)){if(h>=c){if(g>d)o[u][1]=d;else{if(1===_)return[];o.splice(u,1),u--,_--}continue}o[u][2]=c,g>d&&o.push([e,d,g])}}}return o}}class a1 extends Q{#t;#e;constructor(n,e,a){super(),this.#e=n,this.#t=e,this.lastPoint=a}toSVGPath(){const n=[];for(const e of this.#e){let[a,r]=e;n.push(`M${a} ${r}`);for(let o=2;o<e.length;o+=2){const s=e[o],l=e[o+1];s===a?(n.push(`V${l}`),r=l):l===r&&(n.push(`H${s}`),a=s)}n.push("Z")}return n.join(" ")}serialize([n,e,a,r],o){const s=[],l=a-n,c=r-e;for(const d of this.#e){const u=new Array(d.length);for(let _=0;_<d.length;_+=2)u[_]=n+d[_]*l,u[_+1]=r-d[_+1]*c;s.push(u)}return s}get box(){return this.#t}get classNamesForOutlining(){return["highlightOutline"]}}class Io extends En{newFreeDrawOutline(n,e,a,r,o,s){return new r1(n,e,a,r,o,s)}}class r1 extends Ac{newOutliner(n,e,a,r,o,s=0){return new Io(n,e,a,r,o,s)}}class $e{#t=null;#e=null;#n;#i=null;#r=!1;#a=!1;#l=null;#s;#d=null;#c=null;#_;static#u=null;static get _keyboardManager(){return dt(this,"_keyboardManager",new gi([[["Escape","mac+Escape"],$e.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],$e.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],$e.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],$e.prototype._moveToPrevious],[["Home","mac+Home"],$e.prototype._moveToBeginning],[["End","mac+End"],$e.prototype._moveToEnd]]))}constructor({editor:n=null,uiManager:e=null}){n?(this.#a=!1,this.#_=pt.HIGHLIGHT_COLOR,this.#l=n):(this.#a=!0,this.#_=pt.HIGHLIGHT_DEFAULT_COLOR),this.#c=n?._uiManager||e,this.#s=this.#c._eventBus,this.#n=n?.color||this.#c?.highlightColors.values().next().value||"#FFFF98",$e.#u||=Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"})}renderButton(){const n=this.#t=document.createElement("button");n.className="colorPicker",n.tabIndex="0",n.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),n.setAttribute("aria-haspopup",!0);const e=this.#c._signal;n.addEventListener("click",this.#g.bind(this),{signal:e}),n.addEventListener("keydown",this.#h.bind(this),{signal:e});const a=this.#e=document.createElement("span");return a.className="swatch",a.setAttribute("aria-hidden",!0),a.style.backgroundColor=this.#n,n.append(a),n}renderMainDropdown(){const n=this.#i=this.#p();return n.setAttribute("aria-orientation","horizontal"),n.setAttribute("aria-labelledby","highlightColorPickerLabel"),n}#p(){const n=document.createElement("div"),e=this.#c._signal;n.addEventListener("contextmenu",Oe,{signal:e}),n.className="dropdown",n.role="listbox",n.setAttribute("aria-multiselectable",!1),n.setAttribute("aria-orientation","vertical"),n.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown");for(const[a,r]of this.#c.highlightColors){const o=document.createElement("button");o.tabIndex="0",o.role="option",o.setAttribute("data-color",r),o.title=a,o.setAttribute("data-l10n-id",$e.#u[a]);const s=document.createElement("span");o.append(s),s.className="swatch",s.style.backgroundColor=r,o.setAttribute("aria-selected",r===this.#n),o.addEventListener("click",this.#o.bind(this,r),{signal:e}),n.append(o)}return n.addEventListener("keydown",this.#h.bind(this),{signal:e}),n}#o(n,e){e.stopPropagation(),this.#s.dispatch("switchannotationeditorparams",{source:this,type:this.#_,value:n})}_colorSelectFromKeyboard(n){if(n.target===this.#t)return void this.#g(n);const e=n.target.getAttribute("data-color");e&&this.#o(e,n)}_moveToNext(n){this.#f?n.target!==this.#t?n.target.nextSibling?.focus():this.#i.firstChild?.focus():this.#g(n)}_moveToPrevious(n){n.target!==this.#i?.firstChild&&n.target!==this.#t?(this.#f||this.#g(n),n.target.previousSibling?.focus()):this.#f&&this._hideDropdownFromKeyboard()}_moveToBeginning(n){this.#f?this.#i.firstChild?.focus():this.#g(n)}_moveToEnd(n){this.#f?this.#i.lastChild?.focus():this.#g(n)}#h(n){$e._keyboardManager.exec(this,n)}#g(n){if(this.#f)return void this.hideDropdown();if(this.#r=0===n.detail,this.#d||(this.#d=new AbortController,window.addEventListener("pointerdown",this.#m.bind(this),{signal:this.#c.combinedSignal(this.#d)})),this.#i)return void this.#i.classList.remove("hidden");const e=this.#i=this.#p();this.#t.append(e)}#m(n){this.#i?.contains(n.target)||this.hideDropdown()}hideDropdown(){this.#i?.classList.add("hidden"),this.#d?.abort(),this.#d=null}get#f(){return this.#i&&!this.#i.classList.contains("hidden")}_hideDropdownFromKeyboard(){if(!this.#a){if(!this.#f)return void this.#l?.unselect();this.hideDropdown(),this.#t.focus({preventScroll:!0,focusVisible:this.#r})}}updateColor(n){if(this.#e&&(this.#e.style.backgroundColor=n),!this.#i)return;const e=this.#c.highlightColors.values();for(const a of this.#i.children)a.setAttribute("aria-selected",e.next().value===n)}destroy(){this.#t?.remove(),this.#t=null,this.#e=null,this.#i?.remove(),this.#i=null}}class Yt extends tt{#t=null;#e=0;#n;#i=null;#r=null;#a=null;#l=null;#s=0;#d=null;#c=null;#_=null;#u=!1;#p=null;#o;#h=null;#g="";#m;#f="";static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=12;static _type="highlight";static _editorType=ct.HIGHLIGHT;static _freeHighlightId=-1;static _freeHighlight=null;static _freeHighlightClipId="";static get _keyboardManager(){const n=Yt.prototype;return dt(this,"_keyboardManager",new gi([[["ArrowLeft","mac+ArrowLeft"],n._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],n._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],n._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],n._moveCaret,{args:[3]}]]))}constructor(n){super({...n,name:"highlightEditor"}),this.color=n.color||Yt._defaultColor,this.#m=n.thickness||Yt._defaultThickness,this.#o=n.opacity||Yt._defaultOpacity,this.#n=n.boxes||null,this.#f=n.methodOfCreation||"",this.#g=n.text||"",this._isDraggable=!1,n.highlightId>-1?(this.#u=!0,this.#b(n),this.#M()):this.#n&&(this.#t=n.anchorNode,this.#e=n.anch
1orOffset,this.#l=n.focusNode,this.#s=n.focusOffset,this.#x(),this.#M(),this.rotate(this.rotation))}get telemetryInitialData(){return{action:"added",type:this.#u?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:this.#m,methodOfCreation:this.#f}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(n){return{numberOfColors:n.get("color").size}}#x(){const n=new To(this.#n,.001);this.#c=n.getOutlines(),[this.x,this.y,this.width,this.height]=this.#c.box;const e=new To(this.#n,.0025,.001,"ltr"===this._uiManager.direction);this.#a=e.getOutlines();const{lastPoint:a}=this.#a;this.#p=[(a[0]-this.x)/this.width,(a[1]-this.y)/this.height]}#b({highlightOutlines:n,highlightId:e,clipPathId:a}){if(this.#c=n,this.#a=n.getNewOutline(this.#m/2+1.5,.0025),e>=0)this.#_=e,this.#i=a,this.parent.drawLayer.finalizeDraw(e,{bbox:n.box,path:{d:n.toSVGPath()}}),this.#h=this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:this.#a.box,path:{d:this.#a.toSVGPath()}},!0);else if(this.parent){const u=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(this.#_,{bbox:Yt.#R(this.#c.box,(u-this.rotation+360)%360),path:{d:n.toSVGPath()}}),this.parent.drawLayer.updateProperties(this.#h,{bbox:Yt.#R(this.#a.box,u),path:{d:this.#a.toSVGPath()}})}const[o,s,l,c]=n.box;switch(this.rotation){case 0:this.x=o,this.y=s,this.width=l,this.height=c;break;case 90:{const[u,_]=this.parentDimensions;this.x=s,this.y=1-o,this.width=l*_/u,this.height=c*u/_;break}case 180:this.x=1-o,this.y=1-s,this.width=l,this.height=c;break;case 270:{const[u,_]=this.parentDimensions;this.x=1-s,this.y=o,this.width=l*_/u,this.height=c*u/_;break}}const{lastPoint:d}=this.#a;this.#p=[(d[0]-o)/l,(d[1]-s)/c]}static initialize(n,e){tt.initialize(n,e),Yt._defaultColor||=e.highlightColors?.values().next().value||"#fff066"}static updateDefaultParams(n,e){switch(n){case pt.HIGHLIGHT_DEFAULT_COLOR:Yt._defaultColor=e;break;case pt.HIGHLIGHT_THICKNESS:Yt._defaultThickness=e}}translateInPage(n,e){}get toolbarPosition(){return this.#p}updateParams(n,e){switch(n){case pt.HIGHLIGHT_COLOR:this.#C(e);break;case pt.HIGHLIGHT_THICKNESS:this.#y(e)}}static get defaultPropertiesToUpdate(){return[[pt.HIGHLIGHT_DEFAULT_COLOR,Yt._defaultColor],[pt.HIGHLIGHT_THICKNESS,Yt._defaultThickness]]}get propertiesToUpdate(){return[[pt.HIGHLIGHT_COLOR,this.color||Yt._defaultColor],[pt.HIGHLIGHT_THICKNESS,this.#m||Yt._defaultThickness],[pt.HIGHLIGHT_FREE,this.#u]]}#C(n){const e=(o,s)=>{this.color=o,this.#o=s,this.parent?.drawLayer.updateProperties(this.#_,{root:{fill:o,"fill-opacity":s}}),this.#r?.updateColor(o)},a=this.color,r=this.#o;this.addCommands({cmd:e.bind(this,n,Yt._defaultOpacity),undo:e.bind(this,a,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:pt.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(n)},!0)}#y(n){const e=this.#m,a=r=>{this.#m=r,this.#I(r)};this.addCommands({cmd:a.bind(this,n),undo:a.bind(this,e),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:pt.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:n},!0)}addEditToolbar(){var n=()=>super.addEditToolbar,e=this;return(0,z.A)(function*(){const a=yield n().call(e);return a?(e._uiManager.highlightColors&&(e.#r=new $e({editor:e}),a.addColorPicker(e.#r)),a):null})()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(this.#A())}getBaseTranslation(){return[0,0]}getRect(n,e){return super.getRect(n,e,this.#A())}onceAdded(n){this.annotationElementId||this.parent.addUndoableEditor(this),n&&this.div.focus()}remove(){this.#F(),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.#M(),this.isAttachedToDOM||this.parent.add(this)))}setParent(n){let e=!1;this.parent&&!n?this.#F():n&&(this.#M(n),e=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(n),this.show(this._isVisible),e&&this.select()}#I(n){if(!this.#u)return;this.#b({highlightOutlines:this.#c.getNewOutline(n/2)}),this.fixAndSetPosition();const[e,a]=this.parentDimensions;this.setDims(this.width*e,this.height*a)}#F(){null===this.#_||!this.parent||(this.parent.drawLayer.remove(this.#_),this.#_=null,this.parent.drawLayer.remove(this.#h),this.#h=null)}#M(n=this.parent){null===this.#_&&(({id:this.#_,clipPathId:this.#i}=n.drawLayer.draw({bbox:this.#c.box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.#o},rootClass:{highlight:!0,free:this.#u},path:{d:this.#c.toSVGPath()}},!1,!0)),this.#h=n.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:this.#u},bbox:this.#a.box,path:{d:this.#a.toSVGPath()}},this.#u),this.#d&&(this.#d.style.clipPath=this.#i))}static#R([n,e,a,r],o){switch(o){case 90:return[1-e-r,n,r,a];case 180:return[1-n-a,1-e-r,a,r];case 270:return[e,1-n-a,r,a]}return[n,e,a,r]}rotate(n){const{drawLayer:e}=this.parent;let a;a=this.#u?Yt.#R(this.#c.box,n=(n-this.rotation+360)%360):Yt.#R([this.x,this.y,this.width,this.height],n),e.updateProperties(this.#_,{bbox:a,root:{"data-main-rotation":n}}),e.updateProperties(this.#h,{bbox:Yt.#R(this.#a.box,n),root:{"data-main-rotation":n}})}
1render(){if(this.div)return this.div;const n=super.render();this.#g&&(n.setAttribute("aria-label",this.#g),n.setAttribute("role","mark")),this.#u?n.classList.add("free"):this.div.addEventListener("keydown",this.#w.bind(this),{signal:this._uiManager._signal});const e=this.#d=document.createElement("div");n.append(e),e.setAttribute("aria-hidden","true"),e.className="internal",e.style.clipPath=this.#i;const[a,r]=this.parentDimensions;return this.setDims(this.width*a,this.height*r),ya(this,this.#d,["pointerover","pointerleave"]),this.enableEditing(),n}pointerover(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#h,{rootClass:{hovered:!0}})}pointerleave(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#h,{rootClass:{hovered:!1}})}#w(n){Yt._keyboardManager.exec(this,n)}_moveCaret(n){switch(this.parent.unselect(this),n){case 0:case 2:this.#k(!0);break;case 1:case 3:this.#k(!1)}}#k(n){if(!this.#t)return;const e=window.getSelection();n?e.setPosition(this.#t,this.#e):e.setPosition(this.#l,this.#s)}select(){super.select(),this.#h&&this.parent?.drawLayer.updateProperties(this.#h,{rootClass:{hovered:!1,selected:!0}})}unselect(){super.unselect(),this.#h&&(this.parent?.drawLayer.updateProperties(this.#h,{rootClass:{selected:!1}}),this.#u||this.#k(!1))}get _mustFixPosition(){return!this.#u}show(n=this._isVisible){super.show(n),this.parent&&(this.parent.drawLayer.updateProperties(this.#_,{rootClass:{hidden:!n}}),this.parent.drawLayer.updateProperties(this.#h,{rootClass:{hidden:!n}}))}#A(){return this.#u?this.rotation:0}#G(){if(this.#u)return null;const[n,e]=this.pageDimensions,[a,r]=this.pageTranslation,o=this.#n,s=new Float32Array(8*o.length);let l=0;for(const{x:c,y:d,width:u,height:_}of o){const h=c*n+a,g=(1-d)*e+r;s[l]=s[l+4]=h,s[l+1]=s[l+3]=g,s[l+2]=s[l+6]=h+u*n,s[l+5]=s[l+7]=g-_*e,l+=8}return s}#$(n){return this.#c.serialize(n,this.#A())}static startHighlighting(n,e,{target:a,x:r,y:o}){const{x:s,y:l,width:c,height:d}=a.getBoundingClientRect(),u=new AbortController,_=n.combinedSignal(u),h=g=>{u.abort(),this.#v(n,g)};window.addEventListener("blur",h,{signal:_}),window.addEventListener("pointerup",h,{signal:_}),window.addEventListener("pointerdown",Me,{capture:!0,passive:!1,signal:_}),window.addEventListener("contextmenu",Oe,{signal:_}),a.addEventListener("pointermove",this.#T.bind(this,n),{signal:_}),this._freeHighlight=new Io({x:r,y:o},[s,l,c,d],n.scale,this._defaultThickness/2,e,.001),({id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=n.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0))}static#T(n,e){this._freeHighlight.add(e)&&n.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})}static#v(n,e){this._freeHighlight.isEmpty()?n.drawLayer.remove(this._freeHighlightId):n.createAndAddNewEditor(e,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""}static deserialize(n,e,a){var r=()=>super.deserialize,o=this;return(0,z.A)(function*(){let s=null;if(n instanceof Mc){const{data:{quadPoints:R,rect:C,rotation:k,id:F,color:w,opacity:M,popupRef:E},parent:{page:{pageNumber:P}}}=n;s=n={annotationType:ct.HIGHLIGHT,color:Array.from(w),opacity:M,quadPoints:R,boxes:null,pageIndex:P-1,rect:C.slice(0),rotation:k,id:F,deleted:!1,popupRef:E}}else if(n instanceof yo){const{data:{inkLists:R,rect:C,rotation:k,id:F,color:w,borderStyle:{rawWidth:M},popupRef:E},parent:{page:{pageNumber:P}}}=n;s=n={annotationType:ct.HIGHLIGHT,color:Array.from(w),thickness:M,inkLists:R,boxes:null,pageIndex:P-1,rect:C.slice(0),rotation:k,id:F,deleted:!1,popupRef:E}}const{color:l,quadPoints:c,inkLists:d,opacity:u}=n,_=yield r().call(o,n,e,a);_.color=J.makeHexColor(...l),_.#o=u||1,d&&(_.#m=n.thickness),_.annotationElementId=n.id||null,_._initialData=s;const[h,g]=_.pageDimensions,[b,v]=_.pageTranslation;if(c){const R=_.#n=[];for(let C=0;C<c.length;C+=8)R.push({x:(c[C]-b)/h,y:1-(c[C+1]-v)/g,width:(c[C+2]-c[C])/h,height:(c[C+1]-c[C+5])/g});_.#x(),_.#M(),_.rotate(_.rotation)}else if(d){_.#u=!0;const R=d[0],C={x:R[0]-b,y:g-(R[1]-v)},k=new Io(C,[0,0,h,g],1,_.#m/2,!0,.001);for(let M=0,E=R.length;M<E;M+=2)C.x=R[M]-b,C.y=g-(R[M+1]-v),k.add(C);const{id:F,clipPathId:w}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:_.color,"fill-opacity":_._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:k.toSVGPath()}},!0,!0);_.#b({highlightOutlines:k.getOutlines(),highlightId:F,clipPathId:w}),_.#M()}return _})()}serialize(n=!1){if(this.isEmpty()||n)return null;if(this.deleted)return this.serializeDeleted();const e=this.getRect(0,0),a=tt._colorManager.convert(this.color),r={annotationType:ct.HIGHLIGHT,color:a,opacity:this.#o,thickness:this.#m,quadPoints:this.#G(),outlines:this.#$(e),pageIndex:this.pageIndex,rect:e,rotation:this.#A(),structTreeParentId:this._structTreeParentId};return this.annotationElementId&&!this.#P(r)?null:(r.id=this.annotationElementId,r)}#P(n){const{color:e}=this._initialData;return n.color.some((a,r)=>a!==e[r])}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}}class o1{#t=Object.create(null);updateProperty(n,e){this[n]=e,this.updateSVGProperty(n,e)}updateProperties(n){if(n)for(const[e,a]of Object.entries(n))this.updateProperty(e,a)}updateSVGProperty(n,e){this.#t[n]=e}toSVGProperties(){const n=this.#t;return this.#t=Object.create(null),{root:n}}reset(){this.#t=Object.create(null)}updateAll(n=this){this.updateProperties(n)}clone(){yt("Not implemented")}}let s1=(()=>{class i extends tt{#t=null;#e;_drawId=null;static _currentDrawId=-1;static _currentParent=null;static#n=null;static#i=null;static#r=null;static#a=NaN;static#l=null;static#s=null;static#d=NaN;static _INNER_MARGIN=3;constructor(e){super(e),this.#e=e.mustBeCommitted||!1,e.drawOutlines&&
1(this.#c(e),this.#p())}#c({drawOutlines:e,drawId:a,drawingOptions:r}){this.#t=e,this._drawingOptions||=r,a>=0?(this._drawId=a,this.parent.drawLayer.finalizeDraw(a,e.defaultProperties)):this._drawId=this.#_(e,this.parent),this.#g(e.box)}#_(e,a){const{id:r}=a.drawLayer.draw(i._mergeSVGProperties(this._drawingOptions.toSVGProperties(),e.defaultSVGProperties),!1,!1);return r}static _mergeSVGProperties(e,a){const r=new Set(Object.keys(e));for(const[o,s]of Object.entries(a))r.has(o)?Object.assign(e[o],s):e[o]=s;return e}static getDefaultDrawingOptions(e){yt("Not implemented")}static get typesMap(){yt("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(e,a){const r=this.typesMap.get(e);r&&this._defaultDrawingOptions.updateProperty(r,a),this._currentParent&&(i.#n.updateProperty(r,a),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(e,a){const r=this.constructor.typesMap.get(e);r&&this._updateProperty(e,r,a)}static get defaultPropertiesToUpdate(){const e=[],a=this._defaultDrawingOptions;for(const[r,o]of this.typesMap)e.push([r,a[o]]);return e}get propertiesToUpdate(){const e=[],{_drawingOptions:a}=this;for(const[r,o]of this.constructor.typesMap)e.push([r,a[o]]);return e}_updateProperty(e,a,r){const o=this._drawingOptions,s=o[a],l=c=>{o.updateProperty(a,c);const d=this.#t.updateProperty(a,c);d&&this.#g(d),this.parent?.drawLayer.updateProperties(this._drawId,o.toSVGProperties())};this.addCommands({cmd:l.bind(this,r),undo:l.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:e,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){this.parent?.drawLayer.updateProperties(this._drawId,i._mergeSVGProperties(this.#t.getPathResizingSVGProperties(this.#h()),{bbox:this.#m()}))}_onResized(){this.parent?.drawLayer.updateProperties(this._drawId,i._mergeSVGProperties(this.#t.getPathResizedSVGProperties(this.#h()),{bbox:this.#m()}))}_onTranslating(e,a){this.parent?.drawLayer.updateProperties(this._drawId,{bbox:this.#m(e,a)})}_onTranslated(){this.parent?.drawLayer.updateProperties(this._drawId,i._mergeSVGProperties(this.#t.getPathTranslatedSVGProperties(this.#h(),this.parentDimensions),{bbox:this.#m()}))}_onStartDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,this.#e&&(this.#e=!1,this.commit(),this.parent.setSelected(this),e&&this.isOnScreen&&this.div.focus())}remove(){this.#u(),super.remove()}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.#p(),this.#g(this.#t.box),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let a=!1;this.parent&&!e?(this._uiManager.removeShouldRescale(this),this.#u()):e&&(this._uiManager.addShouldRescale(this),this.#p(e),a=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(e),a&&this.select()}#u(){null===this._drawId||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())}#p(e=this.parent){if(null===this._drawId||this.parent!==e){if(null!==this._drawId)return void this.parent.drawLayer.updateParent(this._drawId,e.drawLayer);this._drawingOptions.updateAll(),this._drawId=this.#_(this.#t,e)}}#o([e,a,r,o]){const{parentDimensions:[s,l],rotation:c}=this;switch(c){case 90:return[a,1-e,r*(l/s),o*(s/l)];case 180:return[1-e,1-a,r,o];case 270:return[1-a,e,r*(l/s),o*(s/l)];default:return[e,a,r,o]}}#h(){const{x:e,y:a,width:r,height:o,parentDimensions:[s,l],rotation:c}=this;switch(c){case 90:return[1-a,e,r*(s/l),o*(l/s)];case 180:return[1-e,1-a,r,o];case 270:return[a,1-e,r*(s/l),o*(l/s)];default:return[e,a,r,o]}}#g(e){if([this.x,this.y,this.width,this.height]=this.#o(e),this.div){this.fixAndSetPosition();const[a,r]=this.parentDimensions;this.setDims(this.width*a,this.height*r)}
vendor: 16,005 bytes, line 1
1this._onResized()}#m(){const{x:e,y:a,width:r,height:o,rotation:s,parentRotation:l,parentDimensions:[c,d]}=this;switch((4*s+l)/90){case 1:return[1-a-o,e,o,r];case 2:return[1-e-r,1-a-o,r,o];case 3:return[a,1-e-r,o,r];case 4:return[e,a-r*(c/d),o*(d/c),r*(c/d)];case 5:return[1-a,e,r*(c/d),o*(d/c)];case 6:return[1-e-o*(d/c),1-a,o*(d/c),r*(c/d)];case 7:return[a-r*(c/d),1-e-o*(d/c),r*(c/d),o*(d/c)];case 8:return[e-r,a-o,r,o];case 9:return[1-a,e-r,o,r];case 10:return[1-e,1-a,r,o];case 11:return[a-o,1-e,o,r];case 12:return[e-o*(d/c),a,o*(d/c),r*(c/d)];case 13:return[1-a-r*(c/d),e-o*(d/c),r*(c/d),o*(d/c)];case 14:return[1-e,1-a-r*(c/d),o*(d/c),r*(c/d)];case 15:return[a,1-e,r*(c/d),o*(d/c)];default:return[e,a,r,o]}}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,i._mergeSVGProperties({bbox:this.#m()},this.#t.updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&this.#g(this.#t.updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;const e=super.render();e.classList.add("draw");const a=document.createElement("div");e.append(a),a.setAttribute("aria-hidden","true"),a.className="internal";const[r,o]=this.parentDimensions;return this.setDims(this.width*r,this.height*o),this._uiManager.addShouldRescale(this),this.disableEditing(),e}static createDrawerInstance(e,a,r,o,s){yt("Not implemented")}static startDrawing(e,a,r,o){const{target:s,offsetX:l,offsetY:c,pointerId:d,pointerType:u}=o;if(i.#l&&i.#l!==u)return;const{viewport:{rotation:_}}=e,{width:h,height:g}=s.getBoundingClientRect(),b=i.#i=new AbortController,v=e.combinedSignal(b);i.#a||=d,i.#l??=u,window.addEventListener("pointerup",R=>{i.#a===R.pointerId?this._endDraw(R):i.#s?.delete(R.pointerId)},{signal:v}),window.addEventListener("pointercancel",R=>{i.#a===R.pointerId?this._currentParent.endDrawingSession():i.#s?.delete(R.pointerId)},{signal:v}),window.addEventListener("pointerdown",R=>{i.#l===R.pointerType&&((i.#s||=new Set).add(R.pointerId),i.#n.isCancellable()&&(i.#n.removeLastElement(),i.#n.isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:v}),window.addEventListener("contextmenu",Oe,{signal:v}),s.addEventListener("pointermove",this._drawMove.bind(this),{signal:v}),s.addEventListener("touchmove",R=>{R.timeStamp===i.#d&&Me(R)},{signal:v}),e.toggleDrawing(),a._editorUndoBar?.hide(),i.#n?e.drawLayer.updateProperties(this._currentDrawId,i.#n.startNew(l,c,h,g,_)):(a.updateUIForDefaultProperties(this),i.#n=this.createDrawerInstance(l,c,h,g,_),i.#r=this.getDefaultDrawingOptions(),this._currentParent=e,({id:this._currentDrawId}=e.drawLayer.draw(this._mergeSVGProperties(i.#r.toSVGProperties(),i.#n.defaultSVGProperties),!0,!1)))}static _drawMove(e){if(i.#d=-1,!i.#n)return;const{offsetX:a,offsetY:r,pointerId:o}=e;if(i.#a===o){if(i.#s?.size>=1)return void this._endDraw(e);this._currentParent.drawLayer.updateProperties(this._currentDrawId,i.#n.add(a,r)),i.#d=e.timeStamp,Me(e)}}static _cleanup(e){e&&(this._currentDrawId=-1,this._currentParent=null,i.#n=null,i.#r=null,i.#l=null,i.#d=NaN),i.#i&&(i.#i.abort(),i.#i=null,i.#a=NaN,i.#s=null)}static _endDraw(e){const a=this._currentParent;if(a){if(a.toggleDrawing(!0),this._cleanup(!1),e&&a.drawLayer.updateProperties(this._currentDrawId,i.#n.end(e.offsetX,e.offsetY)),this.supportMultipleDrawings){const r=i.#n,o=this._currentDrawId,s=r.getLastElement();return void a.addCommands({cmd:()=>{a.drawLayer.updateProperties(o,r.setLastElement(s))},undo:()=>{a.drawLayer.updateProperties(o,r.removeLastElement())},mustExec:!1,type:pt.DRAW_STEP})}this.endDrawing(!1)}}static endDrawing(e){const a=this._currentParent;if(!a)return null;if(a.toggleDrawing(!0),a.cleanUndoStack(pt.DRAW_STEP),!i.#n.isEmpty()){const{pageDimensions:[r,o],scale:s}=a,l=a.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:i.#n.getOutlines(r*s,o*s,s,this._INNER_MARGIN),drawingOptions:i.#r,mustBeCommitted:!e});return this._cleanup(!0),l}return a.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(e){}static deserializeDraw(e,a,r,o,s,l){yt("Not implemented")}static deserialize(e,a,r){var o=()=>super.deserialize,s=this;return(0,z.A)(function*(){const{rawDims:{pageWidth:l,pageHeight:c,pageX:d,pageY:u}}=a.viewport,_=s.deserializeDraw(d,u,l,c,s._INNER_MARGIN,e),h=yield o().call(s,e,a,r);return h.createDrawingOptions(e),h.#c({drawOutlines:_}),h.#p(),h.onScaleChanging(),h.rotate(),h})()}serializeDraw(e){const[a,r]=this.pageTranslation,[o,s]=this.pageDimensions;return this.#t.serialize([a,r,o,s],e)}renderAnnotationElement(e){return e.updateEdited({rect:this.getRect(0,0)}),null}static canCreateNewEmptyEditor(){return!1}}return i})();class l1{#t=new Float64Array(6);#e;#n;#i;#r;#a;#l="";#s=0;#d=new Aa;#c;#_;constructor(n,e,a,r,o,s){this.#c=a,this.#_=r,this.#i=o,this.#r=s,[n,e]=this.#u(n,e);const l=this.#e=[NaN,NaN,NaN,NaN,n,e];this.#a=[n,e],this.#n=[{line:l,points:this.#a}],this.#t.set(l,0)}updateProperty(n,e){"stroke-width"===n&&(this.#r=e)}#u(n,e){return Q._normalizePoint(n,e,this.#c,this.#_,this.#i)}isEmpty(){return!this.#n||0===this.#n.length}isCancellable(){return this.#a.length<=10}add(n,e){[n,e]=this.#u(n,e);const[a,r,o,s]=this.#t.subarray(2,6);return Math.hypot(this.#c*(n-o),this.#_*(e-s))<=2?null:(this.#a.push(n,e),isNaN(a)?(this.#t.set([o,s,n,e],2),this.#e.push(NaN,NaN,NaN,NaN,n,e),{path:{d:this.toSVGPath()}}):(isNaN(this.#t[0])&&this.#e.splice(6,6),this.#t.set([a,r,o,s,n,e],0),this.#e.push(...Q.createBezierPoints(a,r,o,s,n,e)),{path:{d:this.toSVGPath()}}))}end(n,e){return this.add(n,e)||(2===this.#a.length?{path:{d:this.toSVGPath()}}:null)}startNew(n,e,a,r,o){this.#c=a,this.#_=r,this.#i=o,[n,e]=this.#u(n,e);const s=this.#e=[NaN,NaN,NaN,NaN,n,e];this.#a=[n,e];const l=this.#n.at(-1);return l&&(l.line=new Float32Array(l.line),l.points=new Float32Array(l.points)),this.#n.push({line:s,points:this.#a}),this.#t.set(s,0),this.#s=0,this.toSVGPath(),null}getLastElement(){return this.#n.at(-1)}setLastElement(n){return this.#n?(this.#n.push(n),this.#e=n.line,this.#a=n.points,this.#s=0,{path:{d:this.toSVGPath()}}):this.#d.setLastElement(n)}removeLastElement(){if(!this.#n)return this.#d.removeLastElement();this.#n.pop(),this.#l="";for(let n=0,e=this.#n.length;n<e;n++){const{line:a,points:r}=this.#n[n];this.#e=a,this.#a=r,this.#s=0,this.toSVGPath()}return{path:{d:this.#l}}}toSVGPath(){const n=Q.svgRound(this.#e[4]),e=Q.svgRound(this.#e[5]);if(2===this.#a.length)return this.#l=`${this.#l} M ${n} ${e} Z`,this.#l;if(this.#a.length<=6){const r=this.#l.lastIndexOf("M");this.#l=`${this.#l.slice(0,r)} M ${n} ${e}`,this.#s=6}if(4===this.#a.length){const r=Q.svgRound(this.#e[10]),o=Q.svgRound(this.#e[11]);return this.#l=`${this.#l} L ${r} ${o}`,this.#s=12,this.#l}const a=[];0===this.#s&&(a.push(`M ${n} ${e}`),this.#s=6);for(let r=this.#s,o=this.#e.length;r<o;r+=6){const[s,l,c,d,u,_]=this.#e.slice(r,r+6).map(Q.svgRound);a.push(`C${s} ${l} ${c} ${d} ${u} ${_}`)}return this.#l+=a.join(" "),this.#s=this.#e.length,this.#l}getOutlines(n,e,a,r){const o=this.#n.at(-1);return o.line=new Float32Array(o.line),o.points=new Float32Array(o.points),this.#d.build(this.#n,n,e,a,this.#i,this.#r,r),this.#t=null,this.#e=null,this.#n=null,this.#l=null,this.#d}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}class Aa extends Q{#t;#e=0;#n;#i;#r;#a;#l;#s;#d;build(n,e,a,r,o,s,l){this.#r=e,this.#a=a,this.#l=r,this.#s=o,this.#d=s,this.#n=l??0,this.#i=n,this.#u()}setLastElement(n){return this.#i.push(n),{path:{d:this.toSVGPath()}}}removeLastElement(){return this.#i.pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const n=[];for(const{line:e}of this.#i)if(n.push(`M${Q.svgRound(e[4])} ${Q.svgRound(e[5])}`),6!==e.length)if(12!==e.length)for(let a=6,r=e.length;a<r;a+=6){const[o,s,l,c,d,u]=e.subarray(a,a+6).map(Q.svgRound);n.push(`C${o} ${s} ${l} ${c} ${d} ${u}`)}else n.push(`L${Q.svgRound(e[10])} ${Q.svgRound(e[11])}`);else n.push("Z");return n.join("")}serialize([n,e,a,r],o){const s=[],l=[],[c,d,u,_]=this.#_();let h,g,b,v,R,C,k,F,w;switch(this.#s){case 0:w=Q._rescale,h=n,g=e+r,b=a,v=-r,R=n+c*a,C=e+(1-d-_)*r,k=n+(c+u)*a,F=e+(1-d)*r;break;case 90:w=Q._rescaleAndSwap,h=n,g=e,b=a,v=r,R=n+d*a,C=e+c*r,k=n+(d+_)*a,F=e+(c+u)*r;break;case 180:w=Q._rescale,h=n+a,g=e,b=-a,v=r,R=n+(1-c-u)*a,C=e+d*r,k=n+(1-c)*a,F=e+(d+_)*r;break;case 270:w=Q._rescaleAndSwap,h=n+a,g=e+r,b=-a,v=-r,R=n+(1-d-_)*a,C=e+(1-c-u)*r,k=n+(1-d)*a,F=e+(1-c)*r}for(const{line:M,points:E}of this.#i)s.push(w(M,h,g,b,v,o?new Array(M.length):null)),l.push(w(E,h,g,b,v,o?new Array(E.length):null));return{lines:s,points:l,rect:[R,C,k,F]}}static deserialize(n,e,a,r,o,{paths:{lines:s,points:l},rotation:c,thickness:d}){const u=[];let _,h,g,b,v;switch(c){case 0:v=Q._rescale,_=-n/a,h=e/r+1,g=1/a,b=-1/r;break;case 90:v=Q._rescaleAndSwap,_=-e/r,h=-n/a,g=1/r,b=1/a;break;case 180:v=Q._rescale,_=n/a+1,h=-e/r,g=-1/a,b=1/r;break;case 270:v=Q._rescaleAndSwap,_=e/r+1,h=n/a+1,g=-1/r,b=-1/a}if(!s){s=[];for(const C of l){const k=C.length;if(2===k){s.push(new Float32Array([NaN,NaN,NaN,NaN,C[0],C[1]]));continue}if(4===k){s.push(new Float32Array([NaN,NaN,NaN,NaN,C[0],C[1],NaN,NaN,NaN,NaN,C[2],C[3]]));continue}const F=new Float32Array(3*(k-2));s.push(F);let[w,M,E,P]=C.subarray(0,4);F.set([NaN,NaN,NaN,NaN,w,M],0);for(let N=4;N<k;N+=2){const O=C[N],nt=C[N+1];F.set(Q.createBezierPoints(w,M,E,P,O,nt),3*(N-2)),[w,M,E,P]=[E,P,O,nt]}}}for(let C=0,k=s.length;C<k;C++)u.push({line:v(s[C].map(F=>F??NaN),_,h,g,b),points:v(l[C].map(F=>F??NaN),_,h,g,b)});const R=new Aa;return R.build(u,a,r,1,c,d,o),R}#c(n=this.#d){const e=this.#n+n/2*this.#l;return this.#s%180==0?[e/this.#r,e/this.#a]:[e/this.#a,e/this.#r]}#_(){const[n,e,a,r]=this.#t,[o,s]=this.#c(0);return[n+o,e+s,a-2*o,r-2*s]}#u(){const n=this.#t=new Float32Array([1/0,1/0,-1/0,-1/0]);for(const{line:r}of this.#i){if(r.length<=12){for(let l=4,c=r.length;l<c;l+=6){const[d,u]=r.subarray(l,l+2);n[0]=Math.min(n[0],d),n[1]=Math.min(n[1],u),n[2]=Math.max(n[2],d),n[3]=Math.max(n[3],u)}continue}let o=r[4],s=r[5];for(let l=6,c=r.length;l<c;l+=6){const[d,u,_,h,g,b]=r.subarray(l,l+6);J.bezierBoundingBox(o,s,d,u,_,h,g,b,n),o=g,s=b}}const[e,a]=this.#c();n[0]=Math.min(1,Math.max(0,n[0]-e)),n[1]=Math.min(1,Math.max(0,n[1]-a)),n[2]=Math.min(1,Math.max(0,n[2]+e)),n[3]=Math.min(1,Math.max(0,n[3]+a)),n[2]-=n[0],n[3]-=n[1]}get box(){return this.#t}updateProperty(n,e){return"stroke-width"===n?this.#p(e):null}#p(n){const[e,a]=this.#c();this.#d=n;const[r,o]=this.#c(),[s,l]=[r-e,o-a],c=this.#t;return c[0]-=s,c[1]-=l,c[2]+=2*s,c[3]+=2*l,c}updateParentDimensions([n,e],a){const[r,o]=this.#c();this.#r=n,this.#a=e,this.#l=a;const[s,l]=this.#c(),c=s-r,d=l-o,u=this.#t;return u[0]-=c,u[1]-=d,u[2]+=2*c,u[3]+=2*d,u}updateRotation(n){return this.#e=n,{path:{transform:this.rotationTransform}}}get viewBox(){return this.#t.map(Q.svgRound).join(" ")}get defaultProperties(){const[n,e]=this.#t;return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Q.svgRound(n)} ${Q.svgRound(e)}`}}}get rotationTransform(){const[,,n,e]=this.#t;let a=0,r=0,o=0,s=0,l=0,c=0;switch(this.#e){case 90:r=e/n,o=-n/e,l=n;break;case 180:a=-1,s=-1,l=n,c=e;break;case 270:r=-e/n,o=n/e,c=e;break;default:return""}return`matrix(${a} ${r} ${o} ${s} ${Q.svgRound(l)} ${Q.svgRound(c)})`}getPathResizingSVGProperties([n,e,a,r]){const[o,s]=this.#c(),[l,c,d,u]=this.#t;if(Math.abs(d-o)<=Q.PRECISION||Math.abs(u-s)<=Q.PRECISION){const v=n+a/2-(l+d/2),R=e+r/2-(c+u/2);return{path:{"transform-origin":`${Q.svgRound(n)} ${Q.svgRound(e)}`,transform:`${this.rotationTransform} translate(${v} ${R})`}}}const _=(a-2*o)/(d-2*o),h=(r-2*s)/(u-2*s),g=d/a,b=u/r;return{path:{"transform-origin":`${Q.svgRound(l)} ${Q.svgRound(c)}`,transform:`${this.rotationTransform} scale(${g} ${b}) translate(${Q.svgRound(o)} ${Q.svgRound(s)}) scale(${_} ${h}) translate(${Q.svgRound(-o)} ${Q.svgRound(-s)})`}}}getPathResizedSVGProperties([n,e,a,r]){const[o,s]=this.#c(),l=this.#t,[c,d,u,_]=l;if(l[0]=n,l[1]=e,l[2]=a,l[3]=r,Math.abs(u-o)<=Q.PRECISION||Math.abs(_-s)<=Q.PRECISION){const R=n+a/2-(c+u/2),C=e+r/2-(d+_/2);for(const{line:k,points:F}of this.#i)Q._translate(k,R,C,k),Q._translate(F,R,C,F);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Q.svgRound(n)} ${Q.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const h=(a-2*o)/(u-2*o),g=(r-2*s)/(_-2*s),b=-h*(c+o)+n+o,v=-g*(d+s)+e+s;if(1!==h||1!==g||0!==b||0!==v)for(const{line:R,points:C}of this.#i)Q._rescale(R,b,v,h,g,R),Q._rescale(C,b,v,h,g,C);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${Q.svgRound(n)} ${Q.svgRound(e)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([n,e],a){const[r,o]=a,s=this.#t,l=n-s[0],c=e-s[1];if(this.#r===r&&this.#a===o)for(const{line:d,points:u}of this.#i)Q._translate(d,l,c,d),Q._translate(u,l,c,u);else{const d=this.#r/r,u=this.#a/o;this.#r=r,this.#a=o;for(const{line:_,points:h}of this.#i)Q._rescale(_,l,c,d,u,_),Q._rescale(h,l,c,d,u,h);s[2]*=d,s[3]*=u}return s[0]=n,s[1]=e,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${Q.svgRound(n)} ${Q.svgRound(e)}`}}}get defaultSVGProperties(){const n=this.#t;return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${Q.svgRound(n[0])} ${Q.svgRound(n[1])}`,transform:this.rotationTransform||null},bbox:n}}}class ko extends o1{#t;constructor(n){super(),this.#t=n,super.updateProperties({fill:"none",stroke:tt._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(n,e){"stroke-width"===n&&(e??=this["stroke-width"],e*=this.#t.realScale),super.updateSVGProperty(n,e)}clone(){const n=new ko(this.#t);return n.updateAll(this),n}}class Fo extends s1{static _type="ink";static _editorType=ct.INK;static _defaultDrawingOptions=null;constructor(n){super({...n,name:"inkEditor"}),this._willKeepAspectRatio=!0}static initialize(n,e){tt.initialize(n,e),this._defaultDrawingOptions=new ko(e.viewParameters)}static getDefaultDrawingOptions(n){const e=this._defaultDrawingOptions.clone();return e.updateProperties(n),e}static get supportMultipleDrawings(){return!0}static get typesMap(){return dt(this,"typesMap",new Map([[pt.INK_THICKNESS,"stroke-width"],[pt.INK_COLOR,"stroke"],[pt.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(n,e,a,r,o){return new l1(n,e,a,r,o,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(n,e,a,r,o,s){return Aa.deserialize(n,e,a,r,o,s)}static deserialize(n,e,a){var r=()=>super.deserialize,o=this;return(0,z.A)(function*(){let s=null;if(n instanceof yo){const{data:{inkLists:c,rect:d,rotation:u,id:_,color:h,opacity:g,borderStyle:{rawWidth:b},popupRef:v},parent:{page:{pageNumber:R}}}=n;s=n={annotationType:ct.INK,color:Array.from(h),thickness:b,opacity:g,paths:{points:c},boxes:null,pageIndex:R-1,rect:d.slice(0),rotation:u,id:_,deleted:!1,popupRef:v}}const l=yield r().call(o,n,e,a);return l.annotationElementId=n.id||null,l._initialData=s,l})()}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:n,_drawingOptions:e,parent:a}=this;e.updateSVGProperty("stroke-width"),a.drawLayer.updateProperties(n,e.toSVGProperties())}static onScaleChangingWhenDrawing(){const n=this._currentParent;n&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),n.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:n,thickness:e,opacity:a}){this._drawingOptions=Fo.getDefaultDrawingOptions({stroke:J.makeHexColor(...n),"stroke-width":e,"stroke-opacity":a})}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:e,points:a,rect:r}=this.serializeDraw(n),{_drawingOptions:{stroke:o,"stroke-opacity":s,"stroke-width":l}}
1=this,c={annotationType:ct.INK,color:tt._colorManager.convert(o),opacity:s,thickness:l,paths:{lines:e,points:a},pageIndex:this.pageIndex,rect:r,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?c:this.annotationElementId&&!this.#t(c)?null:(c.id=this.annotationElementId,c)}#t(n){const{color:e,thickness:a,opacity:r,pageIndex:o}=this._initialData;return this._hasBeenMoved||this._hasBeenResized||n.color.some((s,l)=>s!==e[l])||n.thickness!==a||n.opacity!==r||n.pageIndex!==o}renderAnnotationElement(n){const{points:e,rect:a}=this.serializeDraw(!1);return n.updateEdited({rect:a,thickness:this._drawingOptions["stroke-width"],points:e}),null}}class wo extends tt{#t=null;#e=null;#n=null;#i=null;#r=null;#a="";#l=null;#s=null;#d=!1;#c=!1;static _type="stamp";static _editorType=ct.STAMP;constructor(n){super({...n,name:"stampEditor"}),this.#i=n.bitmapUrl,this.#r=n.bitmapFile}static initialize(n,e){tt.initialize(n,e)}static get supportedTypes(){return dt(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map(e=>`image/${e}`))}static get supportedTypesStr(){return dt(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(n){return this.supportedTypes.includes(n)}static paste(n,e){e.pasteEditor(ct.STAMP,{bitmapFile:n.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){return{type:"stamp",hasAltText:!!this.altTextData?.altText}}static computeTelemetryFinalData(n){const e=n.get("hasAltText");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}#_(n,e=!1){n?(this.#t=n.bitmap,e||(this.#e=n.id,this.#d=n.isSvg),n.file&&(this.#a=n.file.name),this.#o()):this.remove()}#u(){if(this.#n=null,this._uiManager.enableWaiting(!1),this.#l){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#t)return this._editToolbar.hide(),void this._uiManager.editAltText(this,!0);if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#t){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}}mlGuessAltText(){var n=this;return(0,z.A)(function*(e=null,a=!0){if(n.hasAltTextData())return null;const{mlManager:r}=n._uiManager;if(!r)throw new Error("No ML.");if(!(yield r.isEnabledFor("altText")))throw new Error("ML isn't enabled for alt text.");const{data:o,width:s,height:l}=e||n.copyCanvas(null,null,!0).imageData,c=yield r.guess({name:"altText",request:{data:o,width:s,height:l,channels:o.length/(s*l)}});if(!c)throw new Error("No response from the AI service.");if(c.error)throw new Error("Error from the AI service.");if(c.cancel)return null;if(!c.output)throw new Error("No valid response from the AI service.");const d=c.output;return yield n.setGuessedAltText(d),a&&!n.hasAltTextData()&&(n.altTextData={alt:d,decorative:!1}),d}).apply(this,arguments)}#p(){var n=this;if(this.#e)return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(this.#e).then(r=>this.#_(r,!0)).finally(()=>this.#u());if(this.#i){const r=this.#i;return this.#i=null,this._uiManager.enableWaiting(!0),void(this.#n=this._uiManager.imageManager.getFromUrl(r).then(o=>this.#_(o)).finally(()=>this.#u()))}if(this.#r){const r=this.#r;return this.#r=null,this._uiManager.enableWaiting(!0),void(this.#n=this._uiManager.imageManager.getFromFile(r).then(o=>this.#_(o)).finally(()=>this.#u()))}const e=document.createElement("input");e.type="file",e.accept=wo.supportedTypesStr;const a=this._uiManager._signal;this.#n=new Promise(r=>{e.addEventListener("change",(0,z.A)(function*(){if(e.files&&0!==e.files.length){n._uiManager.enableWaiting(!0);const o=yield n._uiManager.imageManager.getFromFile(e.files[0]);n._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:n._uiManager.useNewAltTextFlow}}),n.#_(o)}else n.remove();r()}),{signal:a}),e.addEventListener("cancel",()=>{this.remove(),r()},{signal:a})}).finally(()=>this.#u()),e.click()}remove(){this.#e&&(this.#t=null,this._uiManager.imageManager.deleteId(this.#e),this.#l?.remove(),this.#l=null,this.#s&&(clearTimeout(this.#s),this.#s=null)),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(this.#e&&null===this.#l&&this.#p(),this.isAttachedToDOM||this.parent.add(this))):this.#e&&this.#p()}onceAdded(n){this._isDraggable=!0,n&&this.div.focus()}isEmpty(){return!(this.#n||this.#t||this.#i||this.#r||this.#e)}get isResizable(){return!0}
1render(){if(this.div)return this.div;let n,e;if(this.width&&(n=this.x,e=this.y),super.render(),this.div.hidden=!0,this.div.setAttribute("role","figure"),this.addAltTextButton(),this.#t?this.#o():this.#p(),this.width&&!this.annotationElementId){const[a,r]=this.parentDimensions;this.setAt(n*a,e*r,this.width*a,this.height*r)}return this._uiManager.addShouldRescale(this),this.div}_onResized(){this.onScaleChanging()}onScaleChanging(){this.parent&&(null!==this.#s&&clearTimeout(this.#s),this.#s=setTimeout(()=>{this.#s=null,this.#g()},200))}#o(){const{div:n}=this;let{width:e,height:a}=this.#t;const[r,o]=this.pageDimensions,s=.75;if(this.width)e=this.width*r,a=this.height*o;else if(e>s*r||a>s*o){const u=Math.min(s*r/e,s*o/a);e*=u,a*=u}const[l,c]=this.parentDimensions;this.setDims(e*l/r,a*c/o),this._uiManager.enableWaiting(!1);const d=this.#l=document.createElement("canvas");d.setAttribute("role","img"),this.addContainer(d),this.width=e/r,this.height=a/o,this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(n.hidden=!1),this.#g(),this.#c||(this.parent.addUndoableEditor(this),this.#c=!0),this._reportTelemetry({action:"inserted_image"}),this.#a&&d.setAttribute("aria-label",this.#a)}copyCanvas(n,e,a=!1){n||(n=224);const{width:r,height:o}=this.#t,s=new lo;let l=this.#t,c=r,d=o,u=null;if(e){if(r>e||o>e){const E=Math.min(e/r,e/o);c=Math.floor(r*E),d=Math.floor(o*E)}u=document.createElement("canvas");const h=u.width=Math.ceil(c*s.sx),g=u.height=Math.ceil(d*s.sy);this.#d||(l=this.#h(h,g));const b=u.getContext("2d");b.filter=this._uiManager.hcmFilter;let v="white",R="#cfcfd8";"none"!==this._uiManager.hcmFilter?R="black":window.matchMedia?.("(prefers-color-scheme: dark)").matches&&(v="#8f8f9d",R="#42414d");const C=15,k=C*s.sx,F=C*s.sy,w=new OffscreenCanvas(2*k,2*F),M=w.getContext("2d");M.fillStyle=v,M.fillRect(0,0,2*k,2*F),M.fillStyle=R,M.fillRect(0,0,k,F),M.fillRect(k,F,k,F),b.fillStyle=b.createPattern(w,"repeat"),b.fillRect(0,0,h,g),b.drawImage(l,0,0,l.width,l.height,0,0,h,g)}let _=null;if(a){let h,g;if(s.symmetric&&l.width<n&&l.height<n)h=l.width,g=l.height;else if(l=this.#t,r>n||o>n){const R=Math.min(n/r,n/o);h=Math.floor(r*R),g=Math.floor(o*R),this.#d||(l=this.#h(h,g))}const v=new OffscreenCanvas(h,g).getContext("2d",{willReadFrequently:!0});v.drawImage(l,0,0,l.width,l.height,0,0,h,g),_={width:h,height:g,data:v.getImageData(0,0,h,g).data}}return{canvas:u,width:c,height:d,imageData:_}}#h(n,e){const{width:a,height:r}=this.#t;let o=a,s=r,l=this.#t;for(;o>2*n||s>2*e;){const c=o,d=s;o>2*n&&(o=o>=16384?Math.floor(o/2)-1:Math.ceil(o/2)),s>2*e&&(s=s>=16384?Math.floor(s/2)-1:Math.ceil(s/2));const u=new OffscreenCanvas(o,s);u.getContext("2d").drawImage(l,0,0,c,d,0,0,o,s),l=u.transferToImageBitmap()}return l}#g(){const[n,e]=this.parentDimensions,{width:a,height:r}=this,o=new lo,s=Math.ceil(a*n*o.sx),l=Math.ceil(r*e*o.sy),c=this.#l;if(!c||c.width===s&&c.height===l)return;c.width=s,c.height=l;const d=this.#d?this.#t:this.#h(s,l),u=c.getContext("2d");u.filter=this._uiManager.hcmFilter,u.drawImage(d,0,0,d.width,d.height,0,0,s,l)}getImageForAltText(){return this.#l}#m(n){if(n){if(this.#d){const r=this._uiManager.imageManager.getSvgUrl(this.#e);if(r)return r}const e=document.createElement("canvas");return({width:e.width,height:e.height}=this.#t),e.getContext("2d").drawImage(this.#t,0,0),e.toDataURL()}if(this.#d){const[e,a]=this.pageDimensions,r=Math.round(this.width*e*Qn.PDF_TO_CSS_UNITS),o=Math.round(this.height*a*Qn.PDF_TO_CSS_UNITS),s=new OffscreenCanvas(r,o);return s.getContext("2d").drawImage(this.#t,0,0,this.#t.width,this.#t.height,0,0,r,o),s.transferToImageBitmap()}return structuredClone(this.#t)}static deserialize(n,e,a){var r=()=>super.deserialize,o=this;return(0,z.A)(function*(){let s=null;if(n instanceof Sc){const{data:{rect:R,rotation:C,id:k,structParent:F,popupRef:w},container:M,parent:{page:{pageNumber:E}}}=n,P=M.querySelector("canvas"),N=a.imageManager.getFromCanvas(M.id,P);P.remove();const O=(yield e._structTree.getAriaAttributes(`${io}${k}`))?.get("aria-label")||"";s=n={annotationType:ct.STAMP,bitmapId:N.id,bitmap:N.bitmap,pageIndex:E-1,rect:R.slice(0),rotation:C,id:k,deleted:!1,accessibilityData:{decorative:!1,altText:O},isSvg:!1,structParent:F,popupRef:w}}const l=yield r().call(o,n,e,a),{rect:c,bitmap:d,bitmapUrl:u,bitmapId:_,isSvg:h,accessibilityData:g}=n;_&&a.imageManager.isValidId(_)?(l.#e=_,d&&(l.#t=d)):l.#i=u,l.#d=h;const[b,v]=l.pageDimensions;return l.width=(c[2]-c[0])/b,l.height=(c[3]-c[1])/v,l.annotationElementId=n.id||null,g&&(l.altTextData=g),l._initialData=s,l.#c=!!s,l})()}serialize(n=!1,e=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const a={annotationType:ct.STAMP,bitmapId:this.#e,pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:this.#d,structTreeParentId:this._structTreeParentId};if(n)return a.bitmapUrl=this.#m(!0),a.accessibilityData=this.serializeAltText(!0),a;const{decorative:r,altText:o}=this.serializeAltText(!1);if(!r&&o&&(a.accessibilityData={type:"Figure",alt:o}),this.annotationElementId){const l=this.#f(a);if(l.isSame)return null;l.isSameAltText?delete a.accessibilityData:a.accessibilityData.structParent=this._initialData.structParent??-1}if(a.id=this.annotationElementId,null===e)return a;e.stamps||=new Map;const s=this.#d?(a.rect[2]-a.rect[0])*(a.rect[3]-a.rect[1]):null;if(e.stamps.has(this.#e)){if(this.#d){const l=e.stamps.get(this.#e);s>l.area&&(l.area=s,l.serialized.bitmap.close(),l.serialized.bitmap=this.#m(!1))}}else e.stamps.set(this.#e,{area:s,serialized:a}),a.bitmap=this.#m(!1);return a}#f(n){const{pageIndex:e,accessibilityData:{altText:a}}=this._initialData,r=n.pageIndex===e,o=(n.accessibilityData?.alt||"")===a;return{isSame:!this._hasBeenMoved&&!this._hasBeenResized&&r&&o,isSameAltText:o}}renderAnnotationElement(n){return n.updateEdited({rect:this.getRect(0,0)}),null}}let c1=(()=>{class i{#t;#e=!1;#n=null;#i=null;#r=null;#a=new Map;#l=!1;#s=!1;#d=!1;#c=null;#_=null;#u=null;#p=null;#o;static _initialized=!1;static#h=new Map([te,Fo,wo,Yt].map(e=>[e._editorType,e]));constructor({uiManager:e,pageIndex:a,div:r,structTreeLayer:o,accessibilityManager:s,annotationLayer:l,drawLayer:c,textLayer:d,viewport:u,l10n:_}){const h=[...i.#h.values()];if(!i._initialized){i._initialized=!0;for(const g of h)g.initialize(_,e)}
1e.registerEditorTypes(h),this.#o=e,this.pageIndex=a,this.div=r,this.#t=s,this.#n=l,this.viewport=u,this.#u=d,this.drawLayer=c,this._structTree=o,this.#o.addLayer(this)}get isEmpty(){return 0===this.#a.size}get isInvisible(){return this.isEmpty&&this.#o.getMode()===ct.NONE}updateToolbar(e){this.#o.updateToolbar(e)}updateMode(e=this.#o.getMode()){switch(this.#b(),e){case ct.NONE:return this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),void this.disableClick();case ct.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case ct.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:a}=this.div;for(const r of i.#h.values())a.toggle(`${r._type}Editing`,e===r._editorType);this.div.hidden=!1}hasTextLayer(e){return e===this.#u?.div}setEditingState(e){this.#o.setEditingState(e)}addCommands(e){this.#o.addCommands(e)}cleanUndoStack(e){this.#o.cleanUndoStack(e)}toggleDrawing(e=!1){this.div.classList.toggle("drawing",!e)}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(e=!1){this.#n?.div.classList.toggle("disabled",!e)}enable(){var e=this;return(0,z.A)(function*(){e.#d=!0,e.div.tabIndex=0,e.togglePointerEvents(!0);const a=new Set;for(const o of e.#a.values())o.enableEditing(),o.show(!0),o.annotationElementId&&(e.#o.removeChangedExistingAnnotation(o),a.add(o.annotationElementId));if(!e.#n)return void(e.#d=!1);const r=e.#n.getEditableAnnotations();for(const o of r){if(o.hide(),e.#o.isDeletedAnnotationElement(o.data.id)||a.has(o.data.id))continue;const s=yield e.deserialize(o);s&&(e.addOrRebuild(s),s.enableEditing())}e.#d=!1})()}disable(){this.#s=!0,this.div.tabIndex=-1,this.togglePointerEvents(!1);const e=new Map,a=new Map;for(const o of this.#a.values())if(o.disableEditing(),o.annotationElementId){if(null!==o.serialize()){e.set(o.annotationElementId,o);continue}a.set(o.annotationElementId,o),this.getEditableAnnotation(o.annotationElementId)?.show(),o.remove()}if(this.#n){const o=this.#n.getEditableAnnotations();for(const s of o){const{id:l}=s.data;if(this.#o.isDeletedAnnotationElement(l))continue;let c=a.get(l);c?(c.resetAnnotationElement(s),c.show(!1),s.show()):(c=e.get(l),c&&
vendor: 4,784 bytes, line 1
1(this.#o.addChangedExistingAnnotation(c),c.renderAnnotationElement(s)&&c.show(!1)),s.show())}}this.#b(),this.isEmpty&&(this.div.hidden=!0);const{classList:r}=this.div;for(const o of i.#h.values())r.remove(`${o._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),this.#s=!1}getEditableAnnotation(e){return this.#n?.getEditableAnnotation(e)||null}setActiveEditor(e){this.#o.getActive()!==e&&this.#o.setActiveEditor(e)}enableTextSelection(){if(this.div.tabIndex=-1,this.#u?.div&&!this.#p){this.#p=new AbortController;const e=this.#o.combinedSignal(this.#p);this.#u.div.addEventListener("pointerdown",this.#g.bind(this),{signal:e}),this.#u.div.classList.add("highlighting")}}disableTextSelection(){this.div.tabIndex=0,this.#u?.div&&this.#p&&(this.#p.abort(),this.#p=null,this.#u.div.classList.remove("highlighting"))}#g(e){this.#o.unselectAll();const{target:a}=e;if(a===this.#u.div||("img"===a.getAttribute("role")||a.classList.contains("endOfContent"))&&this.#u.div.contains(a)){const{isMac:r}=pe.platform;if(0!==e.button||e.ctrlKey&&r)return;this.#o.showAllEditors("highlight",!0,!0),this.#u.div.classList.add("free"),this.toggleDrawing(),Yt.startHighlighting(this,"ltr"===this.#o.direction,{target:this.#u.div,x:e.x,y:e.y}),this.#u.div.addEventListener("pointerup",()=>{this.#u.div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:this.#o._signal}),e.preventDefault()}}enableClick(){if(this.#i)return;this.#i=new AbortController;const e=this.#o.combinedSignal(this.#i);this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:e});const a=this.pointerup.bind(this);this.div.addEventListener("pointerup",a,{signal:e}),this.div.addEventListener("pointercancel",a,{signal:e})}disableClick(){this.#i?.abort(),this.#i=null}attach(e){this.#a.set(e.id,e);const{annotationElementId:a}=e;a&&this.#o.isDeletedAnnotationElement(a)&&this.#o.removeDeletedAnnotationElement(e)}detach(e){this.#a.delete(e.id),this.#t?.removePointerInTextLayer(e.contentDiv),!this.#s&&e.annotationElementId&&this.#o.addDeletedAnnotationElement(e)}remove(e){this.detach(e),this.#o.removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1}changeParent(e){e.parent!==this&&(e.parent&&e.annotationElementId&&(this.#o.addDeletedAnnotationElement(e.annotationElementId),tt.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),e.parent?.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(e.parent!==this||!e.isAttachedToDOM){if(this.changeParent(e),this.#o.addEditor(e),this.attach(e),!e.isAttachedToDOM){const a=e.render();this.div.append(a),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(!this.#d),this.#o.addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){if(!e.isAttachedToDOM)return;const{activeElement:a}=document;e.div.contains(a)&&!this.#r&&(e._focusEventsAllowed=!1,this.#r=setTimeout(()=>{this.#r=null,e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this.#o._signal}),a.focus())},0)),e._structTreeParentId=this.#t?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||=this,e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getNextId(){return this.#o.getId()}get#m(){return i.#h.get(this.#o.getMode())}combinedSignal(e){return this.#o.combinedSignal(e)}#f(e){const a=this.#m;return a?new a.prototype.constructor(e):null}canCreateNewEmptyEditor(){return this.#m?.canCreateNewEmptyEditor()}pasteEditor(e,a){this.#o.updateToolbar(e),this.#o.updateMode(e);const{offsetX:r,offsetY:o}=this.#x(),s=this.getNextId(),l=this.#f({parent:this,id:s,x:r,y:o,uiManager:this.#o,isCentered:!0,...a});l&&this.add(l)}deserialize(e){var a=this;return(0,z.A)(function*(){return(yield i.#h.get(e.annotationType??e.annotationEditorType)?.deserialize(e,a,a.#o))||null})()}createAndAddNewEditor(e,a,r={}){const o=this.getNextId(),s=this.#f({parent:this,id:o,x:e.offsetX,y:e.offsetY,uiManager:this.#o,isCentered:a,...r});return s&&this.add(s),s}#x(){const{x:e,y:a,width:r,height:o}=this.div.getBoundingClientRect(),s=Math.max(0,e),l=Math.max(0,a),u=(s+Math.min(window.innerWidth,e+r))/2-e,_=(l+Math.min(window.innerHeight,a+o))/2-a,[h,g]=this.viewport.rotation%180==0?[u,_]:[_,u];return{offsetX:h,offsetY:g}}addNewEditor(){this.createAndAddNewEditor(this.#x(),!0)}setSelected(e){this.#o.setSelected(e)}toggleSelected(e){this.#o.toggleSelected(e)}unselect(e){this.#o.unselect(e)}pointerup(e){const{isMac:a}=pe.platform;if(!(0!==e.button||e.ctrlKey&&a)&&e.target===this.div&&this.#l&&(this.#l=!1,!this.#m?.isDrawer||!this.#m.supp
1ortMultipleDrawings)){if(!this.#e)return void(this.#e=!0);if(this.#o.getMode()===ct.STAMP)return void this.#o.unselectAll();this.createAndAddNewEditor(e,!1)}}pointerdown(e){if(this.#o.getMode()===ct.HIGHLIGHT&&this.enableTextSelection(),this.#l)return void(this.#l=!1);const{isMac:a}=pe.platform;if(0!==e.button||e.ctrlKey&&a||e.target!==this.div)return;if(this.#l=!0,this.#m?.isDrawer)return void this.startDrawingSession(e);const r=this.#o.getActive();this.#e=!r||r.isEmpty()}startDrawingSession(e){if(this.div.focus(),this.#c)return void this.#m.startDrawing(this,this.#o,!1,e);this.#o.setCurrentDrawingSession(this),this.#c=new AbortController;const a=this.#o.combinedSignal(this.#c);this.div.addEventListener("blur",({relatedTarget:r})=>{r&&!this.div.contains(r)&&(this.#_=null,this.commitOrRemove())},{signal:a}),this.#m.startDrawing(this,this.#o,!1,e)}pause(e){if(e){const{activeElement:a}=document;this.div.contains(a)&&(this.#_=a)}else this.#_&&setTimeout(()=>{this.#_?.focus(),this.#_=null},0)}endDrawingSession(e=!1){return this.#c?(this.#o.setCurrentDrawingSession(null),this.#c.abort(),this.#c=null,this.#_=null,this.#m.endDrawing(e)):null}findNewParent(e,a,r){const o=this.#o.findParent(a,r);return null!==o&&o!==this&&(o.changeParent(e),!0)}commitOrRemove(){return!!this.#c&&(this.endDrawingSession(),!0)}onScaleChanging(){this.#c&&this.#m.onScaleChangingWhenDrawing(this)}destroy(){this.commitOrRemove(),this.#o.getActive()?.parent===this&&(this.#o.commitOrRemove(),this.#o.setActiveEditor(null)),this.#r&&(clearTimeout(this.#r),this.#r=null);for(const e of this.#a.values())this.#t?.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,this.#a.clear(),this.#o.removeLayer(this)}#b(){for(const e of this.#a.values())e.isEmpty()&&e.remove()}render({viewport:e}){this.viewport=e,Mn(this.div,e);for(const a of this.#o.getEditors(this.pageIndex))this.add(a),a.rebuild();this.updateMode()}update({viewport:e}){this.#o.commitOrRemove(),this.#b();const a=this.viewport.rotation,r=e.rotation;if(this.viewport=e,Mn(this.div,{rotation:r}),a!==r)for(const o of this.#a.values())o.rotate(r)}get pageDimensions(){const{pageWidth:e,pageHeight:a}=this.viewport.rawDims;return[e,a]}get scale(){return this.#o.viewParameters.realScale}}return i})();class me{#t=null;#e=0;#n=new Map;#i=new Map;constructor({pageIndex:n}){this.pageIndex=n}setParent(n){if(this.#t){if(this.#t!==n){if(this.#n.size>0)for(const e of this.#n.values())e.remove(),n.append(e);this.#t=n}}else this.#t=n}static get _svgFactory(){return dt(this,"_svgFactory",new Co)}static#r(n,[e,a,r,o]){const{style:s}=n;s.top=100*a+"%",s.left=100*e+"%",s.width=100*r+"%",s.height=100*o+"%"}#a(){const n=me._svgFactory.create(1,1,!0);return this.#t.append(n),n.setAttribute("aria-hidden",!0),n}#l(n,e){const a=me._svgFactory.createElement("clipPath");n.append(a);const r=`clip_${e}`;a.setAttribute("id",r),a.setAttribute("clipPathUnits","objectBoundingBox");const o=me._svgFactory.createElement("use");return a.append(o),o.setAttribute("href",`#${e}`),o.classList.add("clip"),r}#s(n,e){for(const[a,r]of Object.entries(e))null===r?n.removeAttribute(a):n.setAttribute(a,r)}draw(n,e=!1,a=!1){const r=this.#e++,o=this.#a(),s=me._svgFactory.createElement("defs");o.append(s);const l=me._svgFactory.createElement("path");s.append(l);const c=`path_p${this.pageIndex}_${r}`;l.setAttribute("id",c),l.setAttribute("vector-effect","non-scaling-stroke"),e&&this.#i.set(r,l);const d=a?this.#l(s,c):null,u=me._svgFactory.createElement("use");return o.append(u),u.setAttribute("href",`#${c}`),this.updateProperties(o,n),this.#n.set(r,o),{id:r,clipPathId:`url(#${d})`}}drawOutline(n,e){const a=this.#e++,r=this.#a(),o=me._svgFactory.createElement("defs");r.append(o);const s=me._svgFactory.createElement("path");o.append(s);const l=`path_p${this.pageIndex}_${a}`;let c;if(s.setAttribute("id",l),s.setAttribute("vector-effect","non-scaling-stroke"),e){const _=me._svgFactory.createElement("mask");o.append(_),c=`mask_p${this.pageIndex}_${a}`,_.setAttribute("id",c),_.setAttribute("maskUnits","objectBoundingBox");const h=me._svgFactory.createElement("rect");_.append(h),h.setAttribute("width","1"),h.setAttribute("height","1"),h.setAttribute("fill","white");const g=me._svgFactory.createElement("use");_.append(g),g.setAttribute("href",`#${l}`),g.setAttribute("stroke","none"),g.setAttribute("fill","black"),g.setAttribute("fill-rule","nonzero"),g.classList.add("mask")}const d=me._svgFactory.createElement("use");r.append(d),d.setAttribute("href",`#${l}`),c&&d.setAttribute("mask",`url(#${c})`);const u=d.cloneNode();return r.append(u),d.classList.add("mainOutline"),u.classList.add("secondaryOutline"),this.updateProperties(r,n),this.#n.set(a,r),a}finalizeDraw(n,e){this.#i.delete(n),this.updateProperties(n,e)}updateProperties(n,e){if(!e)return;const{root:a,bbox:r,rootClass:o,path:s}=e,l="number"==typeof n?this.#n.get(n):n;if(l){if(a&&this.#s(l,a),r&&me.#r(l,r),o){const{classList:c}=l;for(const[d,u]of Object.entries(o))c.toggle(d,u)}s&&this.#s(l.firstChild.firstChild,s)}}updateParent(n,e){if(e===this)return;const a=this.#n.get(n);a&&(e.#t.append(a),this.#n.delete(n),e.#n.set(n,a))}remove(n){this.#i.delete(n),null!==this.#t&&(this.#n.get(n).remove(),this.#n.delete(n))}destroy(){this.#t=null;for(const n of this.#n.values())n.remove();this.#n.clear(),this.#i.clear()}}globalThis.pdfjsTestingUtils={HighlightOutliner:To};var d1=it.AnnotationEditorType,u1=it.AnnotationMode,_1=it.GlobalWorkerOptions,p1=it.getDocument;const h1=["pdfCanvas"],m1=["viewerContainer"],g1=["pdfViewer"];function f1(i,n){if(1&i){const e=t.RV6();t.j41(0,"li",30),t.bIt("click",function(){const r=t.eBV(e).$implicit,o=t.XpG();return t.Njj(o.goToPage(r.dest))}),t.EFF(1),t.k0s()}if(2&i){const e=n.$implicit;t.R7$(),t.SpI(" ",e.title," ")}}function b1(i,n){if(1&i&&(t.j41(0,"span",35),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Lme("",e.matchesCount.current,"/",e.matchesCount.total,"")}}function v1(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",31)(1,"input",32),t.nI1(2,"translate"),t.nI1(3,"translate"),t.mxI("ngModelChange",function(r){t.eBV(e);const o=t.XpG();return t.DH7(o.searchQuery,r)||(o.searchQuery=r),t.Njj(r)}),t.bIt("ngModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.performSearch())})("keydown.enter",function(){t.eBV(e);const r=t.XpG();
1return t.Njj(r.findNext())}),t.k0s(),t.DNE(4,b1,2,2,"span",33),t.j41(5,"button",34),t.nI1(6,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.findPrevious())}),t.EFF(7,"\u2039"),t.k0s(),t.j41(8,"button",34),t.nI1(9,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.findNext())}),t.EFF(10,"\u203a"),t.k0s(),t.j41(11,"button",25),t.nI1(12,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.closeSearch())}),t.EFF(13,"\xd7"),t.k0s()()}if(2&i){const e=t.XpG();t.R7$(),t.R50("ngModel",e.searchQuery),t.Y8G("placeholder",t.bMT(2,10,"searchInDocument")),t.BMQ("data-ta","pdfSearchInput")("aria-label",t.bMT(3,12,"searchInDocument")),t.R7$(3),t.Y8G("ngIf",e.searchQuery.trim()),t.R7$(),t.Y8G("disabled",!e.matchesCount.total),t.BMQ("aria-label",t.bMT(6,14,"previous")),t.R7$(3),t.Y8G("disabled",!e.matchesCount.total),t.BMQ("aria-label",t.bMT(9,16,"next")),t.R7$(3),t.BMQ("aria-label",t.bMT(12,18,"close"))}}function x1(i,n){if(1&i&&(t.j41(0,"div",36),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI(" ",e.loadErrorMessage," ")}}function C1(i,n){if(1&i){const e=t.RV6();t.j41(0,"textarea",47),t.nI1(1,"translate"),t.nI1(2,"translate"),t.mxI("ngModelChange",function(r){t.eBV(e);const o=t.XpG(2);return t.DH7(o.altTextDescription,r)||(o.altTextDescription=r),t.Njj(r)}),t.k0s()}if(2&i){const e=t.XpG(2);t.R50("ngModel",e.altTextDescription),t.Y8G("placeholder",t.bMT(1,4,"altText.descriptionPlaceholder")),t.BMQ("aria-label",t.bMT(2,6,"altText.addDescription"))("data-ta","altTextDescriptionInput")}}function R1(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",37),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.cancelAltText())}),t.j41(1,"div",38),t.nI1(2,"translate"),t.bIt("click",function(r){return t.eBV(e),t.Njj(r.stopPropagation())}),t.j41(3,"h2",39),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"label",40)(7,"input",41),t.mxI("ngModelChange",function(r){t.eBV(e);const o=t.XpG();return t.DH7(o.altTextChoice,r)||(o.altTextChoice=r),t.Njj(r)}),t.k0s(),t.j41(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.DNE(11,C1,3,8,"textarea",42),t.j41(12,"label",40)(13,"input",43),t.mxI("ngModelChange",function(r){t.eBV(e);const o=t.XpG();return t.DH7(o.altTextChoice,r)||(o.altTextChoice=r),t.Njj(r)}),t.k0s(),t.j41(14,"span"),t.EFF(15),t.nI1(16,"translate"),t.k0s()(),t.j41(17,"div",44)(18,"button",45),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.cancelAltText())}),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"button",46),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.saveAltText())}),t.EFF(22),t.nI1(23,"translate"),t.k0s()()()()}if(2&i){const e=t.XpG();t.R7$(),t.BMQ("aria-label",t.bMT(2,14,"altText.title")),t.R7$(3),t.JRh(t.bMT(5,16,"altText.title")),t.R7$(3),t.R50("ngModel",e.altTextChoice),t.BMQ("data-ta","altTextDescriptionRadio"),t.R7$(2),t.JRh(t.bMT(10,18,"altText.addDescription")),t.R7$(2),t.Y8G("ngIf","description"===e.altTextChoice),t.R7$(2),t.R50("ngModel",e.altTextChoice),t.BMQ("data-ta","altTextDecorativeRadio"),t.R7$(2),t.JRh(t.bMT(16,20,"altText.markDecorative")),t.R7$(3),t.BMQ("data-ta","altTextCancel"),t.R7$(),t.JRh(t.bMT(20,22,"cancel")),t.R7$(2),t.Y8G("disabled","description"===e.altTextChoice&&!e.altTextDescription.trim()),t.BMQ("data-ta","altTextSave"),t.R7$(),t.JRh(t.bMT(23,24,"save"))}}let Ec=(()=>{class i{constructor(e){this.change=e,this.pdfUrl="",this.currentObjectUrl=null,this.pdfLoadRequestId=0,this.initializationComplete=!1,this.pendingPdfUrl=null,this.pdfDoc=null,this.pageNum=0,this.totalPages=0,this.scale=1,this.outline=[],this.loadErrorMessage=null,this.timeoutLimit=5e3,this.annotationMode="none",this.altTextDialogOpen=!1,this.altTextChoice="description",this.altTextDescription="",this.altTextEditor=null,this.annotationEditorType=null,this.eventBus=null,this.linkService=null,this.findController=null,this.pdfViewer=null,this.searchOpen=!1,this.searchQuery="",this.matchesCount={current:0,total:0},this.viewerPagesReady=!1,this.pendingAnnotationMode="none",this.viewerScaleMultiplier=1.2,this.fallbackAnnotationEditorType={NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15}}ngOnInit(){var e=this;return(0,z.A)(function*(){_1.workerSrc="/wos/static/scripts/pdf.worker.min.mjs",yield e.initPdfViewer(),e.initializationComplete=!0,e.pendingPdfUrl&&(e.pendingPdfUrl=null,e.loadPdfFromUrl())})()}ngOnChanges(e){if(e.pdfUrl)if(this.pdfUrl){if(!this.initializationComplete)return void(this.pendingPdfUrl=this.pdfUrl);this.loadPdfFromUrl()}else this.clearViewer()}clearViewer(){this.pdfDoc=null,this.pageNum=0,this.totalPages=0,this.outline=[],this.pdfLoadRequestId++,this.viewerPagesReady=!1,this.pdfViewer&&this.pdfViewer.setDocument(null);const e=this.viewerRef?.nativeElement;e&&(e.innerHTML=""),this.change.markForCheck()}loadPdfFromUrl(){if(!this.pdfUrl)return;const e=++this.pdfLoadRequestId;if(this.pageNum=0,this.totalPages=0,this.outline=[],this.pdfDoc=null,this.annotationMode="none",this.pendingAnnotationMode="none",this.searchOpen=!1,this.searchQuery="",this.matchesCount={current:0,total:0},this.pdfViewer&&(this.linkService.setDocument(null,null),this.pdfViewer.setDocument(null)),this.canvasRef?.nativeElement){const a=this.canvasRef.nativeElement;a.getContext("2d")?.clearRect(0,0,a.width,a.height)}if(this.viewerPagesReady=!1,this.change.markForCheck(),this.currentObjectUrl){try{URL.revokeObjectURL(this.currentObjectUrl)}catch{}this.currentObjectUrl=null}this.currentObjectUrl=this.pdfUrl,this.promiseWithTimeout(this.loadPdf(e),this.timeoutLimit,"PDF loading timeout").catch(a=>{console.error("PDF loading failed:",a),this.loadErrorMessage="Failed to load PDF: "+a.message,this.change.markForCheck()})}promiseWithTimeout(e,a,r){return new Promise((o,s)=>{const l=setTimeout(()=>s(new Error(r)),a);e.then(c=>{clearTimeout(l),o(c)},c=>{clearTimeout(l),s(c)})})}_pdfJsGetDocument(e){return p1(e)}getPdfDocumentTask(e){const a=this._pdfJsGetDocument(e);return{promise:this.promiseWithTimeout(a.promise,this.timeoutLimit,"PDF loading timeout")}}getPdfViewerModule(){return S.e(775).then(S.bind(S,10775))}ensureAbortSignalAnySupport(){typeof AbortSignal>"u"||"function"==typeof AbortSignal.any||(AbortSignal.any=e=>
1{const a=new AbortController,r=o=>{a.signal.aborted||a.abort(o.reason)};for(const o of e)if(o){if(o.aborted){r(o);break}o.addEventListener("abort",()=>r(o),{once:!0})}return a.signal})}initPdfViewer(){var e=this;return(0,z.A)(function*(){if(e.pdfViewer)return;e.ensureAbortSignalAnySupport();const a=yield e.getPdfViewerModule();e.annotationEditorType=d1??e.fallbackAnnotationEditorType,e.eventBus=new a.EventBus,e.linkService=new a.PDFLinkService({eventBus:e.eventBus}),e.findController=new a.PDFFindController({eventBus:e.eventBus,linkService:e.linkService}),e.pdfViewer=new a.PDFViewer({container:e.viewerContainerRef.nativeElement,viewer:e.viewerRef.nativeElement,eventBus:e.eventBus,linkService:e.linkService,findController:e.findController,annotationMode:u1.ENABLE_FORMS,annotationEditorMode:e.annotationEditorType.NONE,altTextManager:e.createAltTextManager(),enablePermissions:!1,textLayerMode:1}),e.linkService.setViewer(e.pdfViewer),e.eventBus.on("pagechanging",r=>{e.pageNum=Number(r.pageNumber)||e.pageNum,e.change.markForCheck()}),e.eventBus.on("scalechanging",r=>{"number"==typeof r.scale&&r.scale>0&&(e.scale=r.scale/e.viewerScaleMultiplier,e.change.markForCheck())}),e.eventBus.on("pagesinit",()=>
1{e.viewerPagesReady=!0,e.applyViewerState(),e.applyAnnotationMode()}),e.eventBus.on("annotationeditoruimanager",()=>{e.applyAnnotationMode()}),e.eventBus.on("updatefindmatchescount",r=>{e.updateMatchesCount(r?.matchesCount)}),e.eventBus.on("updatefindcontrolstate",r=>{e.updateMatchesCount(r?.matchesCount)})})()}updateMatchesCount(e){this.matchesCount={current:Number(e?.current)||0,total:Number(e?.total)||0},this.change.markForCheck()}toggleSearch(){this.searchOpen=!this.searchOpen,this.searchOpen||this.closeSearch(),this.change.markForCheck()}closeSearch(){this.searchOpen=!1,this.searchQuery="",this.matchesCount={current:0,total:0},this.eventBus&&this.eventBus.dispatch("findbarclose",{source:this}),this.change.markForCheck()}performSearch(e="",a=!1){if(!this.eventBus||!this.pdfDoc)return;const r=(this.searchQuery||"").trim();if(!r)return this.matchesCount={current:0,total:0},void this.change.markForCheck();this.eventBus.dispatch("find",{source:this,type:e,query:r,caseSensitive:!1,entireWord:!1,highlightAll:!0,findPrevious:a})}findNext(){this.performSearch("again",!1)}findPrevious(){this.performSearch("again",!0)}loadPdf(e){var a=this;return(0,z.A)(function*(){try{a.loadErrorMessage=null;const r=a.getPdfDocumentTask(a.pdfUrl),o=yield a.promiseWithTimeout(r.promise,a.timeoutLimit,"PDF loading timeout");if(e!==a.pdfLoadRequestId)return;a.pdfDoc=o,a.totalPages=a.pdfDoc.numPages,a.pageNum=1;const s=yield a.pdfDoc.getOutline();if(e!==a.pdfLoadRequestId)return;a.outline=s||[],a.annotationMode="none",a.pendingAnnotationMode="none";try{yield a.initPdfViewer(),a.viewerPagesReady=!1,a.linkService.setDocument(a.pdfDoc,null),a.pdfViewer.setDocument(a.pdfDoc)}catch(l){console.warn("PDF viewer initialization failed, using canvas fallback:",l)}a.change.markForCheck()}catch(r){a.loadErrorMessage="Failed to load PDF.",a.change.markForCheck(),console.error("Error loading PDF:",r)}})()}goToTypedPage(){if(!(this.pdfDoc&&this.totalPages&&this.pdfViewer&&this.viewerPagesReady))return;const e=Math.max(1,Math.min(this.totalPages,Number(this.pageNum)||1));this.pageNum=e,this.scrollToViewerPage(e)}renderPage(e){var a=this;return(0,z.A)(function*(){const r=Number(e);!a.pdfDoc||!Number.isFinite(r)||r<1||r>a.totalPages||a.pdfViewer&&a.viewerPagesReady&&a.scrollToViewerPage(r)})()}scrollToViewerPage(e){const a=this.viewerContainerRef.nativeElement,r=a.scrollTop;this.pdfViewer.currentPageNumber=e,this.pdfViewer.update(),setTimeout(()=>{this.pdfViewer.scrollPageIntoView({pageNumber:e}),setTimeout(()=>{if(a.scrollTop===r){const o=a.querySelectorAll(".page");o.length>=e&&(a.scrollTop=o[e-1].offsetTop)}this.pageNum=e,this.change.markForCheck()},100)},100)}applyViewerState(){if(this.pdfViewer&&this.viewerPagesReady)try{const e=Number(this.pageNum);Number.isFinite(e)&&e>=1&&e<=this.totalPages&&(this.pdfViewer.currentPageNumber=e,this.pdfViewer.scrollPageIntoView({pageNumber:e}));const a=Number(this.scale)*this.viewerScaleMultiplier;Number.isFinite(a)&&a>0&&(this.pdfViewer.currentScale=a),this.pdfViewer.update()}catch(e){console.error("Error applying viewer state:",e)}}nextPage(){if(!this.pdfViewer||!this.viewerPagesReady||!this.pdfDoc)return;const e=this.pdfViewer.currentPageNumber;e<this.totalPages&&this.scrollToViewerPage(e+1)}prevPage(){if(!this.pdfViewer||!this.viewerPagesReady||!this.pdfDoc)return;const e=this.pdfViewer.currentPageNumber;e>1&&this.scrollToViewerPage(e-1)}zoomIn(){this.pdfViewer&&(this.scale+=.2,this.pdfViewer.currentScale=this.scale*this.viewerScaleMultiplier,this.change.markForCheck())}zoomOut(){this.pdfViewer&&this.scale-.2>=.4&&(this.scale-=.2,this.pdfViewer.currentScale=this.scale*this.viewerScaleMultiplier,this.change.markForCheck())}setHighlightMode(){this.setAnnotationMode("highlight"===this.annotationMode?"none":"highlight")}setDrawMode(){this.setAnnotationMode("draw"===this.annotationMode?"none":"draw")}setTextMode(){this.setAnnotationMode("text"===this.annotationMode?"none":"text")}setImageMode(){this.setAnnotationMode("image"===this.annotationMode?"none":"image")}createAltTextManager(){return{editAltText:(e,a)=>{this.openAltTextDialog(a)},destroy:()=>{this.closeAltTextDialog()}}}openAltTextDialog(e){this.altTextEditor=e;const a=e&&e.altTextData||{};this.altTextDescription=a.altText||"",this.altTextChoice=a.decorative?"decorative":"description",this.altTextDialogOpen=!0,this.change.detectChanges()}saveAltText(){if(this.altTextEditor){const e="decorative"===this.altTextChoice;this.altTextEditor.altTextData={altText:e?"":this.altTextDescription.trim(),decorative:e}}this.closeAltTextDialog()}cancelAltText(){this.closeAltTextDialog()}closeAltTextDialog(){this.altTextDialogOpen=!1,this.altTextEditor=null,this.altTextDescription="",this.altTextChoice="description",this.change.markForCheck()}setAnnotationMode(e){this.annotationMode=e,this.pendingAnnotationMode=e,this.applyAnnotationMode(),this.change.markForCheck()}applyAnnotationMode(){if(!this.pdfViewer||!this.annotationEditorType||!this.viewerPagesReady)return;const e=this.pendingAnnotationMode;try{this.pdfViewer.annotationEditorMode="highlight"===e?{mode:this.annotationEditorType.HIGHLIGHT}:"draw"===e?{mode:this.annotationEditorType.INK}:"text"===e?{mode:this.annotationEditorType.FREETEXT}:"image"===e?{mode:this.annotationEditorType.STAMP,isFromKeyboard:!0}:{mode:this.annotationEditorType.NONE}
1,this.pdfViewer.refresh(),this.pdfViewer.update()}catch(a){console.error("Error applying annotation mode:",a)}}getActivePdfUrl(){return this.currentObjectUrl||this.pdfUrl||null}getDownloadFileName(){return"document.pdf"}hasPendingAnnotations(){return(this.pdfDoc?.annotationStorage?.size??0)>0}commitPendingAnnotations(){if(this.pdfViewer&&this.annotationEditorType&&this.viewerPagesReady)try{this.pdfViewer.annotationEditorMode={mode:this.annotationEditorType.NONE},this.annotationMode="none",this.pendingAnnotationMode="none",this.change.markForCheck()}catch(e){console.error("Error committing annotations:",e)}}resolvePdfUrl(){var e=this;return(0,z.A)(function*(){if(e.pdfDoc&&(e.commitPendingAnnotations(),e.hasPendingAnnotations()))try{const r=yield e.pdfDoc.saveDocument(),o=new Blob([r],{type:"application/pdf"});return{url:URL.createObjectURL(o),temporary:!0}}catch(r){console.error("Error saving PDF annotations:",r)}const a=e.getActivePdfUrl();return a?{url:a,temporary:!1}:null})()}downloadPdf(){var e=this;return(0,z.A)(function*(){const a=yield e.resolvePdfUrl();if(!a)return;const r=document.createElement("a");r.href=a.url,r.download=e.getDownloadFileName(),r.rel="noopener",r.click(),a.temporary&&setTimeout(()=>URL.revokeObjectURL(a.url),0)})()}printPdf(){var e=this;return(0,z.A)(function*(){if(e.commitPendingAnnotations(),!e.pdfDoc)return;const a=document.createElement("div");a.id="pdf-print-container",a.style.cssText="display:none;";const r=document.createElement("style");r.textContent="\n      @media print {\n        body > *:not(#pdf-print-container) { display: none !important; }\n        #pdf-print-container { display: block !important; }\n        #pdf-print-container canvas { display: block; max-width: 100%; }\n        #pdf-print-container canvas:not(:last-child) { page-break-after: always; }\n      }\n    ",document.head.appendChild(r),document.body.appendChild(a);try{const o=yield e.pdfDoc.saveDocument(),l=yield e._pdfJsGetDocument({data:o}).promise,c=1.5;for(let d=1;d<=l.numPages;d++){const u=yield l.getPage(d),_=u.getViewport({scale:c}),h=document.createElement("canvas");h.width=_.width,h.height=_.height;const g=h.getContext("2d");yield u.render({canvasContext:g,viewport:_}).promise,a.appendChild(h)}yield l.destroy(),setTimeout(()=>{window.print(),setTimeout(()=>{document.body.contains(a)&&document.body.removeChild(a),document.head.contains(r)&&document.head.removeChild(r)},2e3)},500)}catch(o){console.error("Print failed:",o),document.body.contains(a)&&document.body.removeChild(a),document.head.contains(r)&&document.head.removeChild(r)}})()}goToPage(e){var a=this;return(0,z.A)(function*(){try{if(!e||!a.pdfDoc)return;let r=e;if("string"==typeof r&&(r=yield a.pdfDoc.getDestination(r)),!Array.isArray(r)||!r[0])return void console.warn("Invalid outline destination:",e);const o=r[0],s=yield a.pdfDoc.getPageIndex(o);if(s<0||s>=a.totalPages)return void console.warn("Outline destination page index out of range:",s);const l=s+1;if(l===a.pageNum)return;a.pageNum=l,yield a.renderPage(a.pageNum),a.change.markForCheck()}catch(r){console.error("Error navigating to outline destination:",r,e)}})()}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-pdf-viewer"]],viewQuery:function(a,r){if(1&a&&(t.GBs(h1,7),t.GBs(m1,7),t.GBs(g1,7)),2&a){let o;t.mGM(o=t.lsd())&&(r.canvasRef=o.first),t.mGM(o=t.lsd())&&(r.viewerContainerRef=o.first),t.mGM(o=t.lsd())&&(r.viewerRef=o.first)}},inputs:{pdfUrl:"pdfUrl"},standalone:!0,features:[t.OA$,t.aNF],decls:61,vars:89,consts:[["viewerContainer",""],["pdfViewer",""],[1,"app-container"],[1,"sidebar"],[1,"sidebar-title"],[1,"outline-list"],["class","outline-item",3,"click",4,"ngFor","ngForOf"],[1,"main-content"],[1,"toolbar"],[1,"nav-group"],[1,"editor-button",3,"click","matTooltip","disabled"],["role","img","svgIcon","search",1,"cdx-mat-icon-12"],["class","search-box",4,"ngIf"],[1,"editor-button",3,"click","disabled"],["role","img","svgIcon","angle-up",1,"cdx-mat-icon-12"],["role","img","svgIcon","angle-down",1,"cdx-mat-icon-12"],["id","Page Number","aria-labelledby","Page Number","type","number","min","1",3,"ngModelChange","change","ngModel","max"],[1,"zoom-group"],["role","img","svgIcon","highlight",1,"cdx-mat-icon-12"],["role","img","svgIcon","text_fields",1,"cdx-mat-icon-12"],["role","img","svgIcon","draw",1,"cdx-mat-icon-12"],["role","img","svgIcon","image",1,"cdx-mat-icon-12"],[1,"editor-button",3,"click","disabled","matTooltip"],["role","img","svgIcon","print",1,"cdx-mat-icon-12"],["role","img","svgIcon","file-download",1,"cdx-mat-icon-12"],[3,"click"],["class","pdf-error","role","alert",4,"ngIf"],[1,"canvas-container"],[1,"pdfViewer"],["class","alt-text-overlay",3,"click",4,"ngIf"],[1,"outline-item",3,"click"],[1,"search-box"],["type","text",1,"search-input",3,"ngModelChange","keydown.enter","ngModel","placeholder"],["class","search-count",4,"ngIf"],[3,"click","disabled"],[1,"search-count"],["role","alert",1,"pdf-error"],[1,"alt-text-overlay",3,"click"],["role","dialog","aria-modal","true",1,"alt-text-dialog",3,"click"],[1,"alt-text-title"],[1,"alt-text-option"],["type","radio","name","altTextChoice","value","description",3,"ngModelChange","ngModel"],["class","alt-text-input",3,"ngModel","placeholder","ngModelChange",4,"ngIf"],["type","radio","name","altTextChoice","value","decorative",3,"ngModelChange","ngModel"],[1,"alt-text-actions"],["type","button",1,"alt-text-cancel",3,"click"],["type","button",1,"alt-text-save",3,"click","disabled"],[1,"alt-text-input",3,"ngModelChange","ngModel","placeholder"]],template:function(a,r){if(1&a){const o=t.RV6();t.j41(0,"div",2)(1,"aside",3)(2,"div",4),t.EFF(3,"Outline"),t.k0s(),t.j41(4,"ul",5),t.DNE(5,f1,2,1,"li",6),t.k0s()(),t.j41(6,"div",7)(7,"header",8)(8,"div",9)(9,"button",10),t.nI1(10,"translate"),t.nI1(11,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(r.toggleSearch())}),t.nrm(12,"mat-icon",11),t.k0s(),t.DNE(13,v1,14,20,"div",12),t.j41(14,"button",13),t.nI1(15,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(r.nextPage())}),t.nrm(16,"mat-icon",14),t.k0s(),t.j41(17,"button",13),t.nI1(18,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(r.prevPage())}),t.nrm(19,"mat-icon",15),t.k0s(),t.j41(20,"label")(21,"input",16),t.mxI("ngModelChange",function(l){return t.eBV(o),t.DH7(r.pageNum,l)||(r.pageNum=l),t.Njj(l)}),t.bIt("change",function(){return t.eBV(o),t.Njj(r.goToTypedPage())}),t.k0s(),t.EFF(22),t.k0s()(),t.j41(23,"div",17)(24,"button",10),t.nI1(25,"translate"),t.nI1(26,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(r.setHighlightMode())}),t.nrm(27,"mat-icon",18),t.k0s(),t.j41(28,"button",10),t.nI1(29,"translate"),t.nI1(30,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(r.setTextMode())}),t.nrm(31,"mat-icon",19),t.k0s(),t.j41(32,"button",10),t.nI1(33,"translate"),t.nI1(34,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(r.setDrawMode())}),t.nrm(35,"mat-icon",20),t.k0s(),t.j41(36,"button",10),t.nI1(37,"translate"),t.nI1(38,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(r.setImageMode())}),t.nrm(39,"mat-icon",21),t.k0s(),t.j41(40,"button",22),t.nI1(41,"translate"),t.nI1(42,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(r.printPdf())}),t.nrm(43,"mat-icon",23),t.k0s(),t.j41(44,"button",22),t.nI1(45,"translate"),t.nI1(46,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(r.downloadPdf())}),t.nrm(47,"mat-icon",24),t.k0s(),t.j41(48,"button",25),t.bIt("click",function(){return t.eBV(o),t.Njj(r.zoomOut())}),t.EFF(49,"\u2212"),t.k0s(),t.j41(50,"span"),t.EFF(51),t.k0s(),t.j41(52,"button",25),t.bIt("click",function(){return t.eBV(o),t.Njj(r.zoomIn())}),t.EFF(53,"+"),t.k0s()()(),t.DNE(54,x1,2,1,"div",26),t.j41(55,"main")(56,"div",27,0),t.nrm(58,"div",28,1),t.k0s()(),t.DNE(60,R1,24,26,"div",29),t.k0s()()}
12&a&&(t.R7$(5),t.Y8G("ngForOf",r.outline),t.R7$(4),t.AVh("active",r.searchOpen),t.Y8G("matTooltip",t.bMT(10,57,"searchInDocument"))("disabled",!r.pdfDoc),t.BMQ("data-ta","pdfLookup")("id","pdfLookup")("aria-label",t.bMT(11,59,"searchInDocument")),t.R7$(4),t.Y8G("ngIf",r.searchOpen),t.R7$(),t.Y8G("disabled",r.pageNum>=r.totalPages),t.BMQ("aria-label",t.bMT(15,61,"next")),t.R7$(3),t.Y8G("disabled",r.pageNum<=1),t.BMQ("aria-label",t.bMT(18,63,"previous")),t.R7$(4),t.R50("ngModel",r.pageNum),t.Y8G("max",r.totalPages),t.R7$(),t.SpI(" of ",r.totalPages,""),t.R7$(2),t.AVh("active","highlight"===r.annotationMode),t.Y8G("matTooltip",t.bMT(25,65,"highlight"))("disabled",!r.pdfDoc),t.BMQ("data-ta","pdfHighlight")("id","pdfHighlight")("aria-label",t.bMT(26,67,"highlight")),t.R7$(4),t.AVh("active","text"===r.annotationMode),t.Y8G("matTooltip",t.bMT(29,69,"text"))("disabled",!r.pdfDoc),t.BMQ("data-ta","pdfText")("id","pdfText")("aria-label",t.bMT(30,71,"text")),t.R7$(4),t.AVh("active","draw"===r.annotationMode),t.Y8G("matTooltip",t.bMT(33,73,"draw"))("disabled",!r.pdfDoc),t.BMQ("data-ta","pdfDraw")("id","pdfDraw")("aria-label",t.bMT(34,75,"draw")),t.R7$(4),t.AVh("active","image"===r.annotationMode),t.Y8G("matTooltip",t.bMT(37,77,"image"))("disabled",!r.pdfDoc),t.BMQ("data-ta","pdfImage")("id","pdfImage")("aria-label",t.bMT(38,79,"image")),t.R7$(4),t.Y8G("disabled",!r.pdfUrl)("matTooltip",t.bMT(41,81,"print")),t.BMQ("data-ta","pdfPrint")("id","pdfPrint")("aria-label",t.bMT(42,83,"print")),t.R7$(4),t.Y8G("disabled",!r.pdfUrl)("matTooltip",t.bMT(45,85,"download")),t.BMQ("data-ta","pdfDownload")("id","pdfDownload")("aria-label",t.bMT(46,87,"download")),t.R7$(7),t.SpI("",(100*r.scale).toFixed(0),"%"),t.R7$(3),t.Y8G("ngIf",r.loadErrorMessage),t.R7$(6),t.Y8G("ngIf",r.altTextDialogOpen))},dependencies:[ye.YN,ye.me,ye.Q0,ye.Fm,ye.BC,ye.VZ,ye.zX,ye.vS,A.MD,A.Sq,A.bT,jt.An,xt.oV,V.h,V.D9],styles:[".app-container[_ngcontent-%COMP%]{display:flex;height:100vh;overflow:hidden;background-color:#474747;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}.sidebar[_ngcontent-%COMP%]{width:150px;background-color:#333;color:#f1f1f1;border-right:1px solid #1a1a1a;display:flex;flex-direction:column;overflow-y:auto}.sidebar-title[_ngcontent-%COMP%]{padding:15px;font-weight:600;text-transform:uppercase;font-size:12px;border-bottom:1px solid #1a1a1a;background:#222}.outline-list[_ngcontent-%COMP%]{list-style:none;padding:10px 0;margin:0}.outline-item[_ngcontent-%COMP%]{padding:8px 20px;font-size:13px;cursor:pointer;transition:background .2s;color:#ccc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.outline-item[_ngcontent-%COMP%]:hover{background-color:#444;color:#fff}.main-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;position:relative}.toolbar[_ngcontent-%COMP%]{height:48px;background-color:#383838;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 15px;box-shadow:0 2px 5px #0000004d;position:relative;z-index:100;border-bottom:1px solid #1a1a1a}.nav-group[_ngcontent-%COMP%], .zoom-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.toolbar[_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%]{width:45px;background:#222;border:1px solid #555;color:#fff;text-align:center;border-radius:3px;padding:2px}.toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background:transparent;border:1px solid #555;color:#ddd;padding:4px 10px;cursor:pointer;border-radius:3px;font-size:12px}.toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover:not([disabled]){background:#555;color:#fff}.toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:not-allowed}.toolbar[_ngcontent-%COMP%]   button.active[_ngcontent-%COMP%]{background:#6c5728;border-color:#e0ba67;color:#fff}.search-box[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;background:#2b2b2b;border:1px solid #555;border-radius:3px;padding:2px 4px}.search-input[_ngcontent-%COMP%]{width:140px;background:#fff;border:1px solid #555;color:#000;border-radius:3px;padding:2px 6px;font-size:12px}.search-count[_ngcontent-%COMP%]{color:#bbb;font-size:11px;min-width:36px;text-align:center;white-space:nowrap}.search-box[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:2px 8px;line-height:1}main[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;position:relative}.canvas-container[_ngcontent-%COMP%]{position:absolute;inset:0;overflow:auto;padding:0;z-index:0}.pdf-canvas[_ngcontent-%COMP%]{display:none}.canvas-container[_ngcontent-%COMP%]   .pdfViewer[_ngcontent-%COMP%]{position:relative;z-index:1;width:100%}.pdf-error[_ngcontent-%COMP%]{margin:12px 15px 0;padding:10px 12px;background:#5c1f1f;color:#fff;border:1px solid #a94442;border-radius:4px}[_nghost-%COMP%]     .pdfViewer .page{box-shadow:0 0 15px #0009}.alt-text-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#fdfdfd;z-index:1000}.alt-text-dialog[_ngcontent-%COMP%]{width:360px;max-width:90%;background:#fdfdfd;color:#f1f1f1;border:1px solid #1a1a1a;border-radius:6px;box-shadow:0 4px 20px #fdfdfd;padding:20px;
1display:flex;flex-direction:column;gap:12px}.alt-text-title[_ngcontent-%COMP%]{color:#0f0a08;margin:0;font-size:16px;font-weight:600}.alt-text-option[_ngcontent-%COMP%]{color:#0f0a08;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px}.alt-text-option[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#0f0a08;cursor:pointer}.alt-text-input[_ngcontent-%COMP%]{width:100%;min-height:72px;resize:vertical;padding:8px;border:1px solid #555;border-radius:4px;background:#fbfbfb;color:#1e1c1c;font-family:inherit;font-size:13px;box-sizing:border-box}.alt-text-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.alt-text-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:6px 16px;border-radius:4px;border:1px solid #555;cursor:pointer;font-size:14px}.alt-text-cancel[_ngcontent-%COMP%]{background:transparent;color:#0f0a08}.alt-text-save[_ngcontent-%COMP%]{background:#6c5728;border-color:#e0ba67;color:#fff}.alt-text-save[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}"],changeDetection:0})}}return i})();var Be=S(78231),y1=S(92771),T1=S(39222),Cn=S(14326),I1=S(51274),Pc=S(95338),k1=S(55911);const F1=i=>({"thumbnail-image-selected":i});function w1(i,n){if(1&i&&(t.j41(0,"div",25),t.EFF(1),t.k0s()),2&i){const e=t.XpG().index;t.R7$(),t.JRh(e+1)}}function M1(i,n){if(1&i){const e=t.RV6();t.j41(0,"li",22),t.DNE(1,w1,2,1,"div",23),t.j41(2,"img",24),t.nI1(3,"translate"),t.bIt("click",function(){const r=t.eBV(e).index,o=t.XpG(2);return t.Njj(o.handleOnImageClick(r))})("keypress",function(r){const o=t.eBV(e).index,s=t.XpG(2);return"Enter"===r.key&&s.handleOnImageClick(o),t.Njj(r.preventDefault())}),t.k0s()()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(2);t.R7$(),t.Y8G("ngIf",r.libraryConfig.thumbnailNumber),t.R7$(),t.FS9("src",e,t.B4B),t.FCK("alt","",t.bMT(3,6,"patentImage")," ",a+1,""),t.Y8G("ngClass",t.eq3(8,F1,r.selectedImageIndex===a))}}function S1(i,n){if(1&i&&(t.j41(0,"div",19)(1,"ul",20),t.DNE(2,M1,4,10,"li",21),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.Y8G("ngForOf",e.smallImages)}}let A1=(()=>{class i{constructor(){this.libraryConfig={thumbnailNumber:!1,hideThumbnailForSingleImage:!0},this.close=new t.bkB,this.selectedImageIndex=0,this.rotateValue=0,this.scale=1,this.translateX=0,this.translateY=0,this.previousXPosition=0,this.previousYPosition=0,this.style={transform:"",transition:""}}ngOnChanges(e){e&&e.largeImages&&(this.selectedImage=this.largeImages[this.selectedImageIndex])}handleOnImageClick(e){this.selectedImageIndex=e,this.selectedImage=this.largeImages[e],this.reset()}rotateImage(){this.rotateValue=this.rotateValue+90,this.updateStyle(!0)}zoomIn(){this.scale*=1.1,this.updateStyle()}zoomOut(){this.scale>.1&&(this.scale/=1.1),this.updateStyle()}onDragStart(e){e.dataTransfer&&e.dataTransfer.setDragImage&&e.dataTransfer.setDragImage(e.target.nextElementSibling,0,0),this.previousXPosition=e.clientX,this.previousYPosition=e.clientY}onDragOver(e){this.translateX+=e.clientX-this.previousXPosition,this.translateY+=e.clientY-this.previousYPosition,this.previousXPosition=e.clientX,this.previousYPosition=e.clientY,this.updateStyle()}scrollZoom(e){return e.deltaY>0?this.zoomOut():this.zoomIn(),!1}reset(){this.scale=1,this.rotateValue=0,this.translateX=0,this.translateY=0,this.updateStyle()}updateStyle(e){this.style.transform=`translate(${this.translateX}px, ${this.translateY}px) rotate(${this.rotateValue}deg) scale(${this.scale})`,this.style.transition=e?"transform 400ms ease-out":""}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-image-library"]],inputs:{largeImages:"largeImages",smallImages:"smallImages",libraryConfig:"libraryConfig"},outputs:{close:"close"},features:[t.OA$],decls:47,vars:48,consts:[["color","primary",1,"image-library-toolbar"],["mat-icon-button","","id","image-library-overlay-close-button",3,"click"],["svgIcon","close",1,"svg-icon-16"],[1,"font-size-18","padding-left-7--reversible"],[1,"image-library-container"],[1,"container"],[1,"title","text--large","full-record-img"],[1,"button-container"],["mat-stroked-button","","color","primary","id","rotate-button-id","attr.data-ta","rotate-button-id",1,"mat-icon-button-center-icon",3,"click","matTooltip"],["role","img","svgIcon","refresh-button"],["mat-stroked-button","","color","primary","id","zoom-in-button-id","attr.data-ta","zoom-in-button-id",1,"mat-icon-button-center-icon",3,"click","matTooltip"],["role","img","svgIcon","zoomIn"],["mat-stroked-button","","color","primary","id","zoom-out-button-id","attr.data-ta","zoom-out-button-id",1,"mat-icon-button-center-icon",3,"click","matTooltip"],["role","img","svgIcon","zoomOut"],["mat-stroked-button","","color","primary","id","reset-button-id","attr.data-ta","reset-button-id",1,"",3,"click","matTooltip"],[1,"carousel"],[3,"dragover","wheel"],[3,"dragstart","ngStyle","src"],["class","carousel-thumbnails",4,"ngIf"],[1,"carousel-thumbnails"],[1,"carousel-thumbnails-wrapper"],["class","thumbnail",4,"ngFor","ngForOf"],[1,"thumbnail"],["class","thumbnail-count",4,"ngIf"],["tabindex","0",1,"thumbnail-image",3,"click","keypress","ngClass","src","alt"],[1,"thumbnail-count"]],template:function(a,r){1&a&&(t.j41(0,"div")(1,"mat-toolbar",0)(2,"button",1),t.bIt("click",function(){return r.close.emit()}),t.nrm(3,"mat-icon",2),t.j41(4,"span",3),t.EFF(5),t.nI1(6,"translate"),t.k0s()()(),t.j41(7,"div",4)(8,"div",5)(9,"h2",6),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"div",7)(13,"button",8),t.nI1(14,"translate"),t.nI1(15,"translate"),t.bIt("click",function(){return r.rotateImage()}),t.nrm(16,"mat-icon",9),t.j41(17,"span"),t.EFF(18),t.nI1(19,"translate"),t.k0s()(),t.j41(20,"button",10),t.nI1(21,"translate"),t.nI1(22,"translate"),t.bIt("click",function(){return r.zoomIn()}),t.nrm(23,"mat-icon",11),t.j41(24,"span"),t.EFF(25),t.nI1(26,"translate"),t.k0s()(),t.j41(27,"button",12),t.nI1(28,"translate"),t.nI1(29,"translate"),t.bIt("click",function(){return r.zoomOut()}),t.nrm(30,"mat-icon",13),t.j41(31,"span"),t.EFF(32),t.nI1(33,"translate"),t.k0s()(),t.j41(34,"button",14),t.nI1(35,"translate"),t.nI1(36,"translate"),t.bIt("click",function(){return r.reset()}),t.j41(37,"span"),t.EFF(38),t.nI1(39,"translate"),t.k0s()()()(),t.j41(40,"div",15)(41,"f
1igure")(42,"div",16),t.bIt("dragover",function(s){return r.onDragOver(s)})("wheel",function(s){return r.scrollZoom(s)}),t.j41(43,"img",17),t.nI1(44,"translate"),t.bIt("dragstart",function(s){return r.onDragStart(s)}),t.k0s(),t.nrm(45,"div"),t.k0s()(),t.DNE(46,S1,3,1,"div",18),t.k0s()()()),2&a&&(t.R7$(5),t.JRh(t.bMT(6,18,"image_library_close_button_label")),t.R7$(5),t.SpI("",t.bMT(11,20,"image_library_title")," "),t.R7$(3),t.Y8G("matTooltip",t.bMT(14,22,"rotateImageToolTip")),t.BMQ("aria-label",t.bMT(15,24,"rotateImage")),t.R7$(5),t.JRh(t.bMT(19,26,"rotateImage")),t.R7$(2),t.Y8G("matTooltip",t.bMT(21,28,"zoomInImageToolTip")),t.BMQ("aria-label",t.bMT(22,30,"zoomInImage")),t.R7$(5),t.JRh(t.bMT(26,32,"zoomInImage")),t.R7$(2),t.Y8G("matTooltip",t.bMT(28,34,"zoomOutImageToolTip")),t.BMQ("aria-label",t.bMT(29,36,"zoomOutImage")),t.R7$(5),t.JRh(t.bMT(33,38,"zoomOutImage")),t.R7$(2),t.Y8G("matTooltip",t.bMT(35,40,"resetImageToolTip")),t.BMQ("aria-label",t.bMT(36,42,"reset")),t.R7$(4),t.JRh(t.bMT(39,44,"reset")),t.R7$(5),t.FS9("src",r.selectedImage,t.B4B),t.Y8G("ngStyle",r.style),t.BMQ("alt",t.bMT(44,46,"patentImage")),t.R7$(3),t.Y8G("ngIf",!r.libraryConfig.hideThumbnailForSingleImage||r.smallImages&&r.smallImages.length>1))},dependencies:[A.YU,A.Sq,A.bT,A.B3,ht.$z,ht.iY,xt.oV,k1.KQ,jt.An,V.D9],styles:[".image-library-toolbar[_ngcontent-%COMP%]{max-height:2.5rem}.image-library-toolbar[_ngcontent-%COMP%]     .mdc-button__label{padding:0 .75rem}.image-library-container[_ngcontent-%COMP%]{margin:0 auto;padding:1rem 2rem}.carousel[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;border:2px solid #9e9e9e}.carousel[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]{z-index:1;overflow:hidden;border-bottom:2px solid #9e9e9e}.carousel[_ngcontent-%COMP%]   figure[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:contain;width:100%;min-height:50vh;max-height:60vh}.carousel-thumbnails[_ngcontent-%COMP%]{display:flex;align-items:center;padding:5px}.carousel-thumbnails-wrapper[_ngcontent-%COMP%]{list-style:none;display:flex;overflow-x:auto;width:100%;max-height:20vh;min-height:15vh}.carousel-thumbnails-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px;height:10px}.carousel-thumbnails-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#b49de2;border-radius:100px}.carousel-thumbnails-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:#4125af}.carousel-thumbnails-wrapper[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{position:relative;margin:10px;flex:none;width:22%;max-height:90%}.thumbnail-count[_ngcontent-%COMP%]{height:25px;width:25px;line-height:25px;display:inline-block;background:#9e9e9e;position:absolute;z-index:1;text-align:center;top:0;left:0}.thumbnail-image[_ngcontent-%COMP%]{object-fit:cover;height:100%;width:100%;cursor:pointer}.thumbnail-image-selected[_ngcontent-%COMP%]{border-color:#4125af}.container[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}.container[_ngcontent-%COMP%]   .full-record-img[_ngcontent-%COMP%]{width:27%}.container[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]{display:flex;align-items:center}.container[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:.3125rem}.container[_ngcontent-%COMP%]   .button-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:.3125rem}"]})}}return i})();var Gc=S(7620),Mo=S(65571),Kn=S(90882),X=S(9159),Pn=S(79476);const Dc=(i,n)=>["/","drci","summary",i,n,1],E1=(i,n,e)=>({qid:i,sort:n,doc:e}),$c=i=>({type:i}),Lc=i=>["/","drci","full-record",i],P1=(i,n,e)=>[i,n,"external_links",e],G1=(i,n)=>({qid:i,sort:n,doc:1});function D1(i,n){if(1&i&&(t.j41(0,"a",19),t.nI1(1,"translate"),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&i){const e=n.ngIf,a=t.XpG(3);t.Y8G("matTooltip",t.bMT(1,5,"associatedData_viewSummaryLinkTooltip"))("routerLink",t.l_i(7,Dc,a.searchInfo.id,a.sort)),t.BMQ("id",a.taPrefix+"SummaryCountLink")("data-ta",a.taPrefix+"SummaryCountLink"),t.R7$(3),t.JRh(e.found)}}function $1(i,n){if(1&i&&(t.j41(0,"th",20)(1,"div",21),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);
1t.R7$(),t.BMQ("data-ta",e.taPrefix+"-table-heading-"+e.displayedColumns[0])("id",e.taPrefix+"-table-heading-"+e.displayedColumns[0]),t.R7$(),t.SpI(" ",t.bMT(3,3,"associatedData_tableHeader_"+e.displayedColumns[0]),"")}}function L1(i,n){if(1&i&&(t.j41(0,"a",25),t.nI1(1,"translate"),t.EFF(2),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(2),r=a.$implicit,o=a.index,s=t.XpG(3);t.Y8G("matTooltip",t.bMT(1,6,"associatedData_titleTooltip"))("state",t.sMw(8,E1,s.searchInfo.id,s.sort,o+1))("queryParams",t.eq3(12,$c,"colluid"===r.id.type?void 0:r.id.type))("routerLink",t.eq3(14,Lc,r.id.value)),t.BMQ("data-ta","associated-data-summary-record-title-link"+o),t.R7$(2),t.SpI(" ",e.title," ")}}function N1(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,L1,3,16,"a",24),t.nI1(2,"entitlements"),t.k0s()),2&i){const e=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngIf",e.coll&&t.bMT(2,1,e.coll))}}function j1(i,n){if(1&i&&(t.qex(0),t.DNE(1,N1,3,3,"div",23),t.bVm()),2&i){const e=n.$implicit,a=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",a.titles.item[e])}}function O1(i,n){if(1&i&&(t.j41(0,"td",22),t.DNE(1,j1,2,1,"ng-container",23),t.nI1(2,"languagesPipe"),t.k0s()),2&i){const e=n.$implicit;
1t.R7$(),t.Y8G("ngForOf",t.i5U(2,1,e.titles.item,!0))}}function B1(i,n){if(1&i&&(t.j41(0,"th",20)(1,"div",21),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"-table-heading-"+e.displayedColumns[1])("id",e.taPrefix+"-table-heading-"+e.displayedColumns[1]),t.R7$(),t.SpI(" ",t.bMT(3,3,"associatedData_tableHeader_"+e.displayedColumns[1]),"")}}function Y1(i,n){if(1&i&&(t.j41(0,"td",22),t.EFF(1),t.k0s()),2&i){const e=n.$implicit;t.BMQ("data-ta","associated-data-summary-record-type"+n.index),t.R7$(),t.JRh(e.doctypes)}}function X1(i,n){if(1&i&&(t.j41(0,"th",20)(1,"div",21),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"-table-heading-"+e.displayedColumns[2])("id",e.taPrefix+"-table-heading-"+e.displayedColumns[2]),t.R7$(),t.SpI(" ",t.bMT(3,3,"associatedData_tableHeader_"+e.displayedColumns[2]),"")}}function q1(i,n){1&i&&t.nrm(0,"span",29)}function H1(i,n){if(1&i&&(t.j41(0,"span")(1,"a",26),t.nI1(2,"translate"),t.nrm(3,"span",27),t.nI1(4,"translate"),t.k0s(),t.DNE(5,q1,1,0,"span",28),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(2).$implicit,s=t.XpG(3);t.R7$(),t.FS9("href",e.external_link,t.B4B),t.Y8G("matTooltip",t.bMT(2,5,"associatedData_externalSourceLinkTooltip")),t.BMQ("data-ta","associated-data-summary-record-external-link"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(9,P1,o.ut,s.searchInfo.id,t.bMT(4,7,"associatedData_externalSourceLink"))),t.R7$(2),t.Y8G("ngIf",!r)}}function V1(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,H1,6,13,"span",23),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",e.external_links)}}function z1(i,n){if(1&i&&(t.j41(0,"td",22),t.DNE(1,V1,2,1,"div",1),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",(null==e.external_links?null:e.external_links.length)>0)}}function Q1(i,n){1&i&&t.nrm(0,"tr",30)}function U1(i,n){1&i&&t.nrm(0,"tr",31)}function J1(i,n){if(1&i&&(t.qex(0),t.j41(1,"a",32),t.nI1(2,"translate"),t.j41(3,"span"),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("matTooltip",t.bMT(2,5,"associatedData_viewSummaryLinkTooltip"))("routerLink",t.l_i(9,Dc,e.searchInfo.id,e.sort)),t.BMQ("id",e.taPrefix+"ViewSummaryLink")("data-ta",e.taPrefix+"ViewSummaryLink"),t.R7$(3),t.JRh(t.bMT(5,7,"associatedData_viewSummaryLink"))}}function W1(i,n){if(1&i&&(t.j41(0,"a",33),t.nI1(1,"translate"),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&i){const e=t.XpG(2).ngIf,a=t.XpG();t.Y8G("matTooltip",t.bMT(1,7,"associatedData_viewSummaryLinkTooltip"))("state",t.l_i(11,G1,a.searchInfo.id,a.sort))("queryParams",t.eq3(14,$c,"colluid"===e[0].id.type?void 0:e[0].id.type))("routerLink",t.eq3(16,Lc,e[0].id.value)),t.BMQ("id",a.taPrefix+"ViewSummaryLink")("data-ta",a.taPrefix+"ViewSummaryLink"),t.R7$(3),t.JRh(t.bMT(4,9,"associatedData_viewSummaryLink"))}}function K1(i,n){if(1&i&&(t.j41(0,"div",3)(1,"h2",4),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",5)(5,"span",6),t.DNE(6,D1,4,10,"a",7),t.nI1(7,"async"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"section",8)(11,"div",9)(12,"table",10)(13,"caption"),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.qex(16,11),t.DNE(17,$1,4,5,"th",12)(18,O1,3,4,"td",13),t.bVm(),t.qex(19,14),t.DNE(20,B1,4,5,"th",12)(21,Y1,2,2,"td",13),t.bVm(),t.qex(22,15),t.DNE(23,X1,4,5,"th",12)(24,z1,2,1,"td",13),t.bVm(),t.DNE(25,Q1,1,0,"tr",16)(26,U1,1,0,"tr",17),t.k0s()()(),t.j41(27,"div"),t.DNE(28,J1,6,12,"ng-container",18)(29,W1,5,18,"ng-template",null,0,t.C5r),t.k0s()()()),2&i){const e=t.sdS(30),a=t.XpG().ngIf,r=t.XpG();t.BMQ("id",r.taPrefix+"snMcrl")("data-ta",r.taPrefix+"snMcrl"),t.R7$(),t.BMQ("data-ta",r.taPrefix+"associatedDataLabel")("id",r.taPrefix+"associatedDataLabel"),t.R7$(),t.JRh(t.bMT(3,14,"associatedDataTitle")),t.R7$(4),t.Y8G("ngIf",t.bMT(7,16,r.hits$)),t.R7$(2),t.SpI(" ",t.bMT(9,18,"associatedDataCollection"),""),t.R7$(4),t.Y8G("dataSource",a),t.R7$(2),t.JRh(t.bMT(15,20,"associatedDataTable")),t.R7$(11),t.Y8G("matHeaderRowDef",r.displayedColumns)("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",r.displayedColumns),t.R7$(2),t.Y8G("ngIf",a.length>1)("ngIfElse",e)}}function Z1(i,n){if(1&i&&(t.qex(0),t.DNE(1,K1,31,22,"div",2),t.bVm()),2&i){const e=n.ngIf;t.R7$(),t.Y8G("ngIf",(null==e?null:e.length)>0)}}let th=(()=>{class i{constructor(e,a){this.store=e,this.config=a,this.page=1,this.displayedColumns=["title","doctypes","external_links"],this.taPrefix="AssociatedDataTa-",this.size=this.config.getSettings().app.fullRecord.subSearchConfig["associated-data"].count,this.sort=this.config.getSettings().app.fullRecord.defaultSortAssociatedData}ngOnChanges(e){if(e.searchInfo&&this.searchInfo){const a=this.searchInfo.id;this.hits$=this.store.select(B.j,{qid:a}),this.records$=this.store.select(B.ll,{qid:a,page:this.page,sort:this.sort,size:this.size})}}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Gt.il),t.rXU(Dt.w))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-associated-data"]],inputs:{searchInfo:"searchInfo",database:"database"},features:[t.OA$],decls:2,vars:3,consts:[["showRecordPage",""],[4,"ngIf"],["class","associated-data-section cdx-two-column-grid-container",4,"ngIf"],[1,"associated-data-section","cdx-two-column-grid-container"],["dir","auto",1,"cdx-grid-label"],[1,"cdx-grid-data"],[1,"value"],["mat-button","","color","primary","class","bold-label padding-left-zero font-size-16","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-associated-data-count-link","cdxAnalyticsAction","click",3,"matTooltip","routerLink",4,"ngIf"],[1,"nextGen-Table"],[1,"cdx-table-wrapper","cdx-table-wrapper-fixed"],["mat-table","",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","scope","col",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","doctypes"],["matColumnDef","external_links"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[4,"ngIf","ngIfElse"],["mat-button","","color","primary","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-associated-data-count-link","cdxAnalyticsAction","click",1,"bold-label","padding-left-zero","font-size-16",3,"matTooltip","routerLink"],["mat-header-cell","","scope","col"],[1,"cdx-table-header-cell"],["mat-cell",""],[4,"ngFor","ngForOf"],["class","title-link","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-associated-data-fullrecordv
1iew","cdxAnalyticsAction","click",3,"matTooltip","state","queryParams","routerLink",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-associated-data-fullrecordview","cdxAnalyticsAction","click",1,"title-link",3,"matTooltip","state","queryParams","routerLink"],["target","_blank","rel","noopener noreferrer","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-associated-data-link-to-external-source","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"href","matTooltip"],["name","external_links",3,"wosSearchHighlight"],["dir","auto","class","semiColonMark",4,"ngIf"],["dir","auto",1,"semiColonMark"],["mat-header-row",""],["mat-row",""],["mat-button","","color","primary","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-all-associated-data","cdxAnalyticsAction","click",1,"margin-top-5",3,"matTooltip","routerLink"],["mat-button","","color","primary","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-all-associated-data","cdxAnalyticsAction","click",1,"margin-top-5",3,"matTooltip","state","queryParams","routerLink"]],template:function(a,r){1&a&&(t.DNE(0,Z1,2,1,"ng-container",1),t.nI1(1,"async")),2&a&&t.Y8G("ngIf",t.bMT(1,1,r.records$))},dependencies:[A.Sq,A.bT,ot.Wk,ie.w,$t.ig,ht.It,xt.oV,X.Zl,X.tL,X.ji,X.cC,X.YV,X.iL,X.KS,X.$R,X.YZ,X.NB,Ot.P,A.Jj,V.D9,Cn.G,Pn.N],encapsulation:2})}}return i})();var rn=S(49969),Ii=S(81652),eh=S(11087);const nh=i=>({"cdx-patent-chem-record cdx-top-border":i}),ih=i=>({padding:i}),ah=()=>["Authors","PatentNumber","Location","Patent","docType","PatentKind","PatentPubDate","PPLD","PPLC","PPLN","PPED","PPEC","PPEN"],Nc=()=>["/","diidw","general-summary"],rh=i=>({queryJson:i}),oh=i=>({queryJson:i,dest:"full-record"});function sh(i,n){if(1&i&&(t.j41(0,"h2",8),t.EFF(1),t.k0s()),2&i){const e=t.XpG().ngIf;t.BMQ("id","patent-chem-record-title"),t.R7$(),t.JRh(e.Title)}}function lh(i,n){if(1&i&&(t.j41(0,"a",18),t.nI1(1,"translate"),t.nI1(2,"translate"),t.EFF(3),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(5);t.Y8G("routerLink",t.lJ4(11,Nc))("queryParams",t.eq3(12,rh,'[{"rowField":"AU","rowText":"'+a+'"}]'))("title",t.bMT(1,7,"authorAlt_inventor")),t.BMQ("id",o.taPrefix+"authorCode-"+r)("data-ta",o.taPrefix+"authorCode-"+r)("aria-label",t.bMT(2,9,"authorAlt_inventor")),t.R7$(3),t.JRh(a)}}function ch(i,n){if(1&i&&t.EFF(0),2&i){const e=t.XpG().$implicit;t.JRh(e)}}function dh(i,n){1&i&&t.nrm(0,"span",19)}function uh(i,n){if(1&i&&(t.qex(0),t.DNE(1,lh,4,14,"a",16),t.nI1(2,"entitlements"),t.DNE(3,ch,1,1,"ng-template",null,0,t.C5r)(5,dh,1,0,"span",17),t.bVm()),2&i){const e=n.last,a=t.sdS(4);t.R7$(),t.Y8G("ngIf",t.bMT(2,3,"DIIDW"))("ngIfElse",a),t.R7$(4),t.Y8G("ngIf",!e)}}function _h(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,uh,6,5,"ng-container",7),t.k0s()),2&i){const e=t.XpG(3).ngIf;t.R7$(),t.Y8G("ngForOf",e.Authors)}}function ph(i,n){if(1&i&&(t.j41(0,"a",22),t.nI1(1,"translate"),t.nI1(2,"translate"),t.EFF(3),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG().ngIf,r=t.XpG();t.Y8G("routerLink",t.lJ4(11,Nc))("queryParams",t.eq3(12,oh,'[{"rowField":"PN","rowText":"'+a[e]+'"}]'))("title",t.bMT(1,7,"patentNumberAlt")),t.BMQ("data-ta",r.taPrefix+e+"_link")("id",r.taPrefix+e+"_link")("aria-label",t.bMT(2,9,"patentNumberAlt")),t.R7$(3),t.JRh(a[e])}}function hh(i,n){if(1&i&&t.EFF(0),2&i){const e=t.XpG(3).$implicit,a=t.XpG().ngIf;t.JRh(a[e])}}function mh(i,n){if(1&i&&(t.j41(0,"span",20),t.DNE(1,ph,4,14,"a",21),t.nI1(2,"entitlements"),t.DNE(3,hh,1,1,"ng-template",null,1,t.C5r),t.k0s()),2&i){const e=t.sdS(4);t.R7$(),t.Y8G("ngIf",t.bMT(2,2,"DIIDW"))("ngIfElse",e)}}function gh(i,n){1&i&&(t.j41(0,"span",20),t.EFF(1),t.k0s()),2&i&&(t.R7$(),t.JRh("Patent"))}function fh(i,n){if(1&i&&(t.j41(0,"span",20),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2).$implicit,a=t.XpG().ngIf;t.R7$(),t.JRh(a[e])}}function bh(i,n){if(1&i&&(t.j41(0,"div",10)(1,"h3",11),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",12),t.DNE(5,_h,2,1,"div",13)(6,mh,5,4,"span",14)(7,gh,2,1,"span",14)(8,fh,2,1,"span",15),t.k0s()()),2&i){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(),t.BMQ("data-ta",a.taPrefix+e)("id",a.taPrefix+e),t.R7$(),t.JRh(t.bMT(3,7,"Authors"===e?"structureAuthorLabel":e)),t.R7$(2),t.Y8G("ngSwitch",e),t.R7$(),t.Y8G("ngSwitchCase","Authors"),t.R7$(),t.Y8G("ngSwitchCase","PatentNumber"),t.R7$(),t.Y8G("ngSwitchCase","docType")}}function vh(i,n){if(1&i&&(t.qex(0),t.DNE(1,bh,9,9,"div",9),t.bVm()),2&i){const e=n.$implicit,a=t.XpG().ngIf;t.R7$(),t.Y8G("ngIf",a[e]||"docType"===e)}}function xh(i,n){if(1&i&&(t.qex(0),t.DNE(1,sh,2,2,"h2",5),t.nrm(2,"hr",6),t.DNE(3,vh,2,1,"ng-container",7),t.bVm()),2&i){const e=n.ngIf;t.R7$(),t.Y8G("ngIf",e.Title),t.R7$(2),t.Y8G("ngForOf",t.lJ4(2,ah))}}function Ch(i,n){if(1&i){const e=t.RV6();
1t.j41(0,"app-page-controls",35),t.bIt("currentPageChange",function(r){t.eBV(e);const o=t.XpG(4);return t.Njj(o.changePageReaction(r))}),t.k0s()}if(2&i){const e=t.XpG(4);t.Y8G("maxPage",e.ceil(e.record.totalRXNs/e.pageSize))("currentPage",e.ceil(e.record.firstRXNRecord/e.pageSize))}}function Rh(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-page-controls",35),t.bIt("currentPageChange",function(r){t.eBV(e);const o=t.XpG(4);return t.Njj(o.changePageReaction(r))}),t.k0s()}if(2&i){const e=t.XpG(4);t.Y8G("maxPage",e.ceil(e.record.totalRXNs/e.pageSize))("currentPage",e.ceil(e.record.firstRXNRecord/e.pageSize))}}function yh(i,n){if(1&i){const e=t.RV6();t.j41(0,"div"),t.DNE(1,Ch,1,2,"app-page-controls",27),t.j41(2,"div",28)(3,"div",29)(4,"span",30),t.EFF(5),t.k0s()(),t.j41(6,"div",31)(7,"button",32),t.nI1(8,"translate"),t.nI1(9,"translate"),t.bIt("click",function(){const r=t.eBV(e).$implicit,o=t.XpG(3);return t.Njj(o.openChemDetailOverlay(null==r.chemData?null:r.chemData.rxnMDLNumber))}),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"div",33),t.nrm(13,"app-elemental",34),t.k0s()()(),t.DNE(14,Rh,1,2,"app-page-controls",27),t.k0s()}if(2&i){const e=n.$implicit,a=n.first,r=n.last,o=n.index,s=t.XpG(3);t.R7$(),t.Y8G("ngIf",a),t.R7$(4),t.JRh(o+(s.record.firstRXNRecord-0)),t.R7$(2),t.FS9("title",t.bMT(8,12,"reactionDetails_title")),t.BMQ("aria-label",t.bMT(9,14,"reactionDetails_title"))("id",s.currentPageCompound+"chemDetailOverlayLink_"+(null==e.chemData?null:e.chemData.rxnMDLNumber))("data-ta",s.taPrefix+"chemDetailOverlayLink"),t.R7$(3),t.JRh(t.bMT(11,16,"reactionDetail_chemical")),t.R7$(3),t.Y8G("id","elemental_"+s.record.firstRXNRecord+"_"+e.chemData.rxnMDLNumber)("showDownload",!0)("elementalOptions",s.elementalOptions)("molecule",e.chemData.mol_structure),t.R7$(),t.Y8G("ngIf",r)}}function Th(i,n){if(1&i&&(t.j41(0,"div",10)(1,"div",24)(2,"h3",25),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",26),t.DNE(6,yh,15,18,"div",7),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(2),t.BMQ("data-ta",e.taPrefix+"reactionTextLabel")("id",e.taPrefix+"reactionTextLabel"),t.R7$(),t.JRh(t.bMT(4,4,"chemicalReaction")),t.R7$(3),t.Y8G("ngForOf",e.structureDataCCR)}}function Ih(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-page-controls",35),t.bIt("currentPageChange",function(r){t.eBV(e);const o=t.XpG(4);return t.Njj(o.changePageCompound(r))}),t.k0s()}if(2&i){const e=t.XpG(4);t.Y8G("maxPage",e.ceil(e.record.totalCPDs/e.pageSize))("currentPage",e.ceil(e.record.firstCPDRecord/e.pageSize))}}function kh(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-page-controls",35),t.bIt("currentPageChange",function(r){t.eBV(e);const o=t.XpG(4);return t.Njj(o.changePageCompound(r))}),t.k0s()}if(2&i){const e=t.XpG(4);t.Y8G("maxPage",e.ceil(e.record.totalCPDs/e.pageSize))("currentPage",e.ceil(e.record.firstCPDRecord/e.pageSize))}}function Fh(i,n){if(1&i){const e=t.RV6();t.j41(0,"div"),t.DNE(1,Ih,1,2,"app-page-controls",27),t.j41(2,"div",28)(3,"div",29)(4,"span",30),t.EFF(5),t.k0s()(),t.j41(6,"div",31)(7,"button",32),t.nI1(8,"translate"),t.nI1(9,"translate"),t.bIt("click",function(){const r=t.eBV(e).$implicit,o=t.XpG(3);return t.Njj(o.openChemDetailOverlay(null==r.chemData?null:r.chemData.cpdNumber))}),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"div",33),t.nrm(13,"app-elemental",34),t.k0s()()(),t.DNE(14,kh,1,2,"app-page-controls",27),t.k0s()}if(2&i){const e=n.$implicit,a=n.first,r=n.last,o=n.index,s=t.XpG(3);t.R7$(),t.Y8G("ngIf",a),t.R7$(4),t.JRh(o+(s.record.firstCPDRecord-0)),t.R7$(2),t.FS9("title",t.bMT(8,12,"compoundDetails_title")),t.BMQ("aria-label",t.bMT(9,14,"compoundDetails_title"))("id",s.taPrefix+"chemDetailOverlayLink_"+(null==e.chemData?null:e.chemData.cpdNumber))("data-ta",s.taPrefix+"chemDetailOverlayLink"),t.R7$(3),t.JRh(t.bMT(11,16,"patentCompoundDetails")),t.R7$(3),t.Y8G("id","elemental_"+s.record.firstCPDRecord+"_"+e.chemData.cpdNumber)("showDownload",!0)("elementalOptions",s.elementalOptions)("molecule",e.chemData.mol_structure),t.R7$(),t.Y8G("ngIf",r)}}function wh(i,n){if(1&i&&(t.j41(0,"div",10)(1,"div",24)(2,"h3",25),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",26),t.DNE(6,Fh,15,18,"div",7),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(2),t.BMQ("data-ta",e.taPrefix+"compoundTextLabel")("id",e.taPrefix+"compoundTextLabel"),t.R7$(),t.JRh(t.bMT(4,4,"chemicalCompound")),t.R7$(3),t.Y8G("ngForOf",e.structureDataIC)}}function Mh(i,n){if(1&i&&(t.j41(0,"div",23),t.DNE(1,Th,7,6,"div",9)(2,wh,7,6,"div",9),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",(null==e.structureDataCCR?null:e.structureDataCCR.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.structureDataIC?null:e.structureDataIC.length)>0)}}let jc=(()=>{class i extends Be.${constructor(e,a,r,o,s,l,c){super(e,s),this.config=a,this.route=r,this.router=o,this.translate=s,this.titleService=l,this.store=c,this.sort="relevance",this.pageSize=10,this.database="WOS-CHEM",this.elementalOptions=this.config.getSettings().app.summary.defaultElementalConfig,this.taPrefix="PatentChemicalDetail-",this.currentPageCompound=1,this.currentPageReaction=1}ngOnChanges(e){e.qid?this.store.select(B.CS,{qid:this.qid}).subscribe(a=>{this.search=a,this.resetDocument()}).unsubscribe():e.num&&this.resetDocument()}resetDocument(){this.subscription&&(this.record=null,this.structureDataCCR=[],this.structureDataIC=[],this.currentPageCompound=1,this.currentPageReaction=1,this.subscription.unsubscribe()),this.subscription=this.store.select(B.fW,{search:this.search,sort:this.sort,from:this.database,docNum:this.num}).pipe((0,Ft.p)(e=>!(!e||!e.chemRecords)),(0,Ee.Q)(this.destroyed$)).subscribe(e=>{this.updateChemFields(e),this.record=e,this.setPageTitle(),this.change.detectChanges()})}setPageTitle(){if(this.record.REC?.Bib?.Title){const e=this.translate.instant(this.database+"_name"),a=this.record.REC.Bib.Title.replace(/(&lt;([^&gt;]+)&gt;)/gi,"");this.titleService.setTitle(a+"-"+e)}}openChemDetailOverlay(e){Ii.u.skipScroll=!0,this.router.navigate([{outlets:{overlay:"overview/structure/"+e}}],{relativeTo:this.route.root,replaceUrl:!0,state:{navigationId:void 0},queryParamsHandling:"merge"})}updateChemFields(e){this.record?.firstCPDRecord!==e.firstCPDRecord&&(this.structureDataIC=e.chemRecords.filter(a=>a.chemData.cpdNumber)),this.record?.firstRXNRecord!==e.firstRXNRecord&&(this.structureDataCCR=e.chemRecords.filter(a=>a.chemData.rxnMDLNumber))}reFetchRecord(){const e=this.buildRetrieveForchem();this.store.dispatch(new B.IV.nx({database:this.database,queryId:this.qid,doc:this.num,sort:this.sort,from:this.database,reFetch:!0,id:{type:"colluid",value:this.chemID},retrieve:e}))}buildRetrieveForchem(){return{first:this.num,sort:this.sort,links:null,coll:"WOS-CHEM",count:1,view:"chem",activity:!1,analyzes:null,jcr:!1,rxnCount:this.record?.firstRXNRecord>0?this.pageSize:0,cpdCount:this.record?.firstCPDRecord>0?this.pageSize:0,rxnStart:this.record?.firstRXNRecord>0?(this.currentPageReaction-1)*this.pageSize+1:0,cpdStart:this.record?.firstCPDRecord>0?(this.currentPageCompound-1)*this.pageSize+1:0}}changePageCompound(e){this.currentPageCompound=e,this.reFetchRecord()}changePageReaction(e){this.currentPageReaction=e,this.reFetchRecord()}ceil(e){return Math.ceil(e)}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(Dt.w),t.rXU(ot.nX),t.rXU(ot.Ix),t.rXU(V.c$),t.rXU(_a.hE),t.rXU(Gt.il))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-patent-chemical-detail"]],inputs:{qid:"qid",num:"num",sort:"sort",chemID:"chemID",pageSize:"pageSize",padding:"padding"},features:[t.Vt3,t.OA$],decls:3,vars:8,consts:[["simpleAuthorText",""],["simpleText",""],[1,"patent-chem-record",3,"ngClass","ngStyle"],[4,"ngIf"],["class","elemental-container cdx-chemical-reaction-space",4,"ngIf"],["class","title text--large",4,"ngIf"],[1,"cdx-horizontal-line"],[4,"ngFor","ngForOf"],[1,"title","text--large"],["class","cdx-two-column-grid-container",4,"ngIf"],[1,"cdx-two-column-grid-container"],["dir","auto",1,"cdx-grid-label"],[1,"cdx-grid-data","font-size-14",3,"ngSwitch"],[4,"ngSwitchCase"],["class","font-size-14",4,"ngSwitchCase"],["class","font-size-14",4,"ngSwitchDefault"],[3,"routerLink","queryParams","title",4,"ngIf","ngIfElse"],["class","semiColonMark margin-right-5--reversible",4,"ngIf"],[3,"routerLink","queryParams","title"],[1,"semiColonMark","margin-right-5--reversible"],[1,"font-size-14"],["class","cdx-grid-data font-size-14",3,"routerLink","queryParams","title",4,"ngIf","ngIfElse"],[1,"cdx-grid-data","font-size-14",3,"routerLink","queryParams","title"],[1,"elemental-container","cdx-chemical-reaction-space"],[1,"data-item"],["dir","auto",1,"label","cdx-grid-label"],[1,"cdx-grid-data"],["class","app-page-control
1s chem-page",3,"maxPage","currentPage","currentPageChange",4,"ngIf"],[1,"card-container"],[1,"number-section","font-size-15","margin-top-5"],[1,"number-label","cdx-colonDot"],[1,"detail-section"],["mat-button","","color","primary",3,"click","title"],[1,"structure-diagram"],[3,"id","showDownload","elementalOptions","molecule"],[1,"app-page-controls","chem-page",3,"currentPageChange","maxPage","currentPage"]],template:function(a,r){1&a&&(t.j41(0,"div",2),t.DNE(1,xh,4,3,"ng-container",3)(2,Mh,3,2,"div",4),t.k0s()),2&a&&(t.Y8G("ngClass",t.eq3(4,nh,null==r.record||null==r.record.REC?null:r.record.REC.Bib))("ngStyle",t.eq3(6,ih,r.padding)),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.REC?null:r.record.REC.Bib),t.R7$(),t.Y8G("ngIf",(null==r.structureDataCCR?null:r.structureDataCCR.length)>0||(null==r.structureDataIC?null:r.structureDataIC.length)>0))},dependencies:[ot.Wk,A.YU,A.Sq,A.bT,A.B3,A.ux,A.e1,A.fG,eh.f,$t.ig,Ur.N,ht.$z,V.D9,Pn.N],styles:[".patent-chem-record[_ngcontent-%COMP%]{width:inherit;height:auto;padding:1.875rem 1.875rem 0;background-color:#fff;border-radius:.3125rem;box-shadow:0 .0625rem .125rem #0000004d;overflow:hidden;outline:0!important}.patent-chem-record[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#000;white-space:normal;font-style:normal;font-weight:600;font-size:.875rem;display:inline-flex;margin:.3125rem .3125rem .0625rem 0}[dir=rtl][_ngcontent-%COMP%]   .patent-chem-record[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{margin:.3125rem 0 .0625rem .3125rem}.patent-chem-record[_ngcontent-%COMP%]   .elemental-container[_ngcontent-%COMP%]{width:60%;margin:.625rem 0}.patent-chem-record[_ngcontent-%COMP%]   .elemental-container[_ngcontent-%COMP%]   app-page-controls[_ngcontent-%COMP%]   .pagination-header[_ngcontent-%COMP%]{margin-bottom:.3125rem;margin-left:.3125rem;font-weight:600;padding-left:.1875rem}.patent-chem-record[_ngcontent-%COMP%]   .elemental-container[_ngcontent-%COMP%]   .chem-record-position[_ngcontent-%COMP%]{margin-left:25%;margin-top:-30px}.patent-chem-record[_ngcontent-%COMP%]   .elemental-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]{display:flex;margin-left:.3125rem;width:98%}.patent-chem-record[_ngcontent-%COMP%]   .elemental-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .number-section[_ngcontent-%COMP%]{min-width:20px;display:flex;flex-direction:column;margin-top:.125rem;margin-right:.3125rem}.patent-chem-record[_ngcontent-%COMP%]   .elemental-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .detail-section[_ngcontent-%COMP%]{margin-bottom:.3125rem;display:flex;flex-direction:column;align-items:flex-start;width:100%}.patent-chem-record[_ngcontent-%COMP%]   .elemental-container[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .detail-section[_ngcontent-%COMP%]   .structure-diagram[_ngcontent-%COMP%]{height:220px;max-width:37.5rem;width:100%;margin:24px 0}.patent-chem-record[_ngcontent-%COMP%]   .data-item[_ngcontent-%COMP%]{margin-bottom:.3125rem}@media only screen and (max-width: 37.5rem){.elemental-container[_ngcontent-%COMP%]{width:100%!important}}"]})}}return i})();var Oc=S(89429),Zn=S(9454);const Sh=["*"],Ah=i=>({"mobile-view-header":i}),Eh=i=>({"margin-left-30--reversible italic-style":i}),Ph=(i,n)=>["/",i,"full-record",n],Gh=()=>({siloViewRecordWarning:!0}),Dh=i=>({siloViewRecordWarning:!0,collection:i,doc:1});function $h(i,n){1&i&&(t.j41(0,"span",8),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.JRh(t.bMT(2,1,"superRecordSearchTermFound")))}let Ea=(()=>{class i extends Be.${constructor(e,a,r){super(e,a),this.analytics=r,this.isMobile$=K.Y.isMobile$,this.taPrefix="FRsuperRecordFieldTa-"}ngOnInit(){}ngOnChanges(e){e.record&&this.record&&this.record.clustered_EWUIDs&&(this.ut=this.record.clustered_EWUIDs.filter(a=>a.coll_id===this.collection)[0].uid)}createSnowplowEvent(e){K.Y.trackStructEventWithAddedContextData(this.analytics,{category:"super_record_expand",action:"open",context:{prod1:e.field,product:e.collection}})}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(V.c$),t.rXU(Oc.cu))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-super-record-field"]],inputs:{record:"record",collection:"collection",fieldTitle:"fieldTitle",termFoundFlag:"termFoundFlag"},features:[t.Vt3,t.OA$],ngContentSelectors:Sh,decls:28,vars:49,consts:[[1,"margin-top-10","margin-bottom-10",3,"opened"],[3,"ngClass"],["dir","auto"],["class","margin-left-100--reversible",4,"ngIf"],["dir","auto",1,"super-record-link","cdx-two-column-grid-container"],[1,"cdx-default-styles","cdx-grid-label"],[1,"cdx-grid-data"],["mat-button","","color","primary",1,"cdx-default-styles",3,"routerLink","queryParams","state","matTooltip"],[1,"margin-left-100--reversible"]],template:function(a,r){1&a&&(t.NAR(),t.j41(0,"mat-expansion-panel",0),t.bIt("opened",function(){return r.createSnowplowEvent({field:r.fieldTitle,collection:r.collection})}),t.j41(1,"mat-expansion-panel-header",1),t.nI1(2,"async"),t.j41(3,"mat-panel-title")(4,"span",2),t.EFF(5),t.nI1(6,"translate"),t.j41(7,"span",1),t.nI1(8,"async"),t.EFF(9),t.nI1(10,"translate"),t.nI1(11,"uppercase"),t.nI1(12,"translate"),t.k0s()(),t.DNE(13,$h,3,3,"span",3),t.k0s()(),t.j41(14,"div",4)(15,"h3",5),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"span",6)(19,"button",7),t.nI1(20,"lowercase"),t.nI1(21,"translate"),t.nI1(22,"translate"),t.j41(23,"span"),t.EFF(24),t.nI1(25,"uppercase"),t.nI1(26,"translate"),t.k0s()()()(),t.SdG(27),t.k0s()),2&a&&(t.R
17$(),t.Y8G("ngClass",t.eq3(39,Ah,t.bMT(2,15,r.isMobile$))),t.R7$(4),t.SpI(" ",t.bMT(6,17,r.fieldTitle)," "),t.R7$(2),t.Y8G("ngClass",t.eq3(41,Eh,!t.bMT(8,19,r.isMobile$))),t.R7$(2),t.Lme("",t.bMT(10,21,"from"),"",t.bMT(12,25,t.bMT(11,23,r.collection)+"_name"),""),t.R7$(4),t.Y8G("ngIf",r.termFoundFlag),t.R7$(3),t.SpI(" ",t.bMT(17,27,"viewRecordInCollection"),""),t.R7$(3),t.Y8G("routerLink",t.l_i(43,Ph,t.bMT(20,29,r.collection),r.ut))("queryParams",t.lJ4(46,Gh))("state",t.eq3(47,Dh,r.collection))("matTooltip",t.bMT(21,31,"viewRecordInCollection")+" "+r.collection),t.BMQ("data-ta",r.taPrefix+"viewSuperRecordLink"+r.collection+r.fieldTitle)("id",r.taPrefix+"viewSuperRecordLink"+r.collection+r.fieldTitle)("aria-label",t.bMT(22,33,"viewRecordInCollection")+" "+r.collection),t.R7$(5),t.SpI(" ",t.bMT(26,37,t.bMT(25,35,r.collection)+"_name")," "))},dependencies:[A.YU,A.bT,ot.Wk,$t.ig,ht.$z,xt.oV,Zn.GK,Zn.Z2,Zn.WN,A.Jj,A.Pc,A.GH,V.D9],styles:[".mat-expansion-panel-header-title[_ngcontent-%COMP%]{justify-content:space-between!important;font-weight:600}.mobile-view-header[_ngcontent-%COMP%]{min-height:120px}"]})}}return i})();var Se=S(65636);const Lh=["authorInfoOverlay"],Nh=i=>["/","author","record",i],jh=i=>["/",i,"general-summary"],Oh=(i,n)=>({siloSearchWarning:i,collection:n}),ki=(i,n,e,a)=>[i,n,e,a],Bc=i=>({count:i});function Bh(i,n){if(1&i&&(t.qex(0),t.EFF(1),t.nI1(2,"translate"),t.bVm()),2&i){const e=t.XpG(2).ngIf,a=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,"ml_"+a+"_name_label_"+(1==e.length?"singular":"plural")),":\xa0\xa0\xa0 ")}}function Yh(i,n){if(1&i&&(t.j41(0,"span",15),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(2).ngIf,a=t.XpG(2).$implicit,r=t.XpG
1();t.Y8G("dir",r.auto),t.R7$(),t.SpI(" ",t.bMT(2,2,a+"_name_label_"+(1==e.length?"singular":"plural"))," ")}}function Xh(i,n){if(1&i&&(t.j41(0,"h3",13),t.DNE(1,Bh,3,3,"ng-container",14)(2,Yh,3,4,"ng-template",null,2,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(2).$implicit,r=t.XpG().$implicit,o=t.XpG();t.BMQ("id",o.taPrefix+"MainLabel-"+r+"-"+a)("data-ta",o.taPrefix+"MainLabel-"+r+"-"+a),t.R7$(),t.Y8G("ngIf","medline"===o.database.toLowerCase()&&"corp"===r)("ngIfElse",e)}}function qh(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",16),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.openAuthorInfoDialog())}),t.EFF(3),t.nI1(4,"translate"),t.k0s()}2&i&&(t.FS9("matTooltip",t.bMT(1,3,"moreInfoLabel")),t.BMQ("aria-label","More information about "+t.bMT(2,5,"AreYouThisAuthor")),t.R7$(3),t.SpI(" ",t.bMT(4,7,"AreYouThisAuthor")," "))}function Hh(i,n){if(1&i){const e=t.RV6();t.j41(0,"span",24),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(7);return t.Njj(r.areAuthorsHidden=!1)}),t.k0s()}
1if(2&i){const e=t.XpG(3).$implicit,a=t.XpG(2).$implicit,r=t.XpG().$implicit,o=t.XpG();t.Y8G("wosSearchHighlight",t.ziG(2,ki,o.ut,o.qid,r,e.wos_standard)),t.BMQ("lang",a)}}function Vh(i,n){if(1&i){const e=t.RV6();t.j41(0,"span",24),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(7);return t.Njj(r.areAuthorsHidden=!1)}),t.k0s()}if(2&i){const e=t.XpG(3).$implicit,a=t.XpG(2).$implicit,r=t.XpG().$implicit,o=t.XpG();t.Y8G("wosSearchHighlight",t.ziG(2,ki,o.ut,o.qid,r,e.display_name)),t.BMQ("lang",a)}}function zh(i,n){if(1&i&&(t.j41(0,"a",22),t.nI1(1,"translate"),t.nI1(2,"feature"),t.nI1(3,"feature"),t.DNE(4,Hh,1,7,"span",23)(5,Vh,1,7,"span",23),t.k0s()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(2).$implicit,s=t.XpG().$implicit,l=t.XpG();t.FS9("cdxAnalyticsCategory","wos-"+s+"_name_link"),t.Y8G("ngClass","section-label-data full-record-detail-section-links full-record-author-links")("matTooltip",t.bMT(1,10,l.getAltText(s))+" "+a.display_name)("routerLink",a.daisng_id&&l.profileSearchEnabledCollections.includes(l.collection)&&("PPRN"!==l.collection||"PPRN"===l.collection&&a.wos_cc_flag)&&!t.bMT(2,12,"nxDisableProfile")?t.eq3(16,Nh,a.daisng_id):t.eq3(18,jh,a.superRecordCollection?a.superRecordCollection:l.database.toLowerCase()))("queryParams",a.daisng_id&&l.profileSearchEnabledCollections.includes(l.collection)&&("PPRN"!==l.collection||"PPRN"===l.collection&&a.wos_cc_flag)&&!t.bMT(3,14,"nxDisableProfile")?void 0:l.getRouterParams(s,a.display_name,a.daisng_id))("state",t.l_i(20,Oh,!!a.superRecordCollection,a.superRecordCollection?a.superRecordCollection:l.database.toLowerCase())),t.BMQ("id",l.taPrefix+"DisplayName-"+s+"-"+o+"-"+r)("data-ta",l.taPrefix+"DisplayName-"+s+"-"+o+"-"+r),t.R7$(4),t.Y8G("ngIf",a.wos_standard),t.R7$(),t.Y8G("ngIf",!a.wos_standard)}}function Qh(i,n){if(1&i&&(t.nrm(0,"label",25),t.nI1(1,"translate")),2&i){const e=t.XpG(2).index,a=t.XpG(2).$implicit,r=t.XpG
1().$implicit,o=t.XpG();t.Y8G("matTooltip",t.bMT(1,3,o.getAltText(r))),t.BMQ("id",o.taPrefix+"DisplayName-"+r+"-"+a+"-"+e)("data-ta",o.taPrefix+"DisplayName-"+r+"-"+a+"-"+e)}}function Uh(i,n){if(1&i){const e=t.RV6();t.j41(0,"span",27),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(7);return t.Njj(r.areAuthorsHidden=!1)}),t.k0s()}if(2&i){const e=t.XpG(3).$implicit,a=t.XpG(2).$implicit,r=t.XpG().$implicit,o=t.XpG();t.Y8G("wosSearchHighlight",t.ziG(2,ki,o.ut,o.qid,r,e.wos_standard)),t.BMQ("lang",a)}}function Jh(i,n){if(1&i){const e=t.RV6();t.j41(0,"span",27),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(7);return t.Njj(r.areAuthorsHidden=!1)}),t.k0s()}if(2&i){const e=t.XpG(3).$implicit,a=t.XpG(2).$implicit,r=t.XpG().$implicit,o=t.XpG();t.Y8G("wosSearchHighlight",t.ziG(2,ki,o.ut,o.qid,r,e.display_name)),t.BMQ("lang",a)}}function Wh(i,n){if(1&i&&t.DNE(0,Uh,1,7,"span",26)(1,Jh,1,7,"span",26),2&i){const e=t.XpG(2).$implicit;t.Y8G("ngIf",e.wos_standard),t.R7$(),t.Y8G("ngIf",!e.wos_standard)}}function Kh(i,n){if(1&i&&(t.j41(0,"span"),t.EFF(1," ("),t.nrm(2,"span",28),t.EFF(3,") "),t.k0s()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(2).$implicit,s=t.XpG().$implicit,l=t.XpG();t.BMQ("id",l.taPrefix+"FrAuthStandard-"+s+"-"+o+"-"+r)("data-ta",l.taPrefix+"FrAuthStandard-"+s+"-"+o+"-"+r),t.R7$(2),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.ziG(5,ki,l.ut,l.qid,s,a.display_name)),t.BMQ("lang",o)}}function Zh(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,", "),t.k0s())}function tm(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",30),t.nI1(1,"translate"),t.bIt("click",function(){const r=t.eBV(e).$implicit,o=t.XpG(7);return t.Njj(o.goToAddress("address_"+r,r))}),t.DNE(2,Zh,2,0,"span",5),t.EFF(3),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(3).index,o=t.XpG(2).$implicit,s=t.XpG().$implicit,l=t.XpG();t.Y8G("ngClass","section-label-data full-record-detail-section-links")("matTooltip",t.bMT(1,6,"clickAuthorFocus")+e),t.BMQ("id",l.taPrefix+"FrAddrNbr-"+s+"-"+o+"-"+r+"-"+a)("data-ta",l.taPrefix+"FrAddrNbr-"+s+"-"+o+"-"+r+"-"+a),t.R7$(2),t.Y8G("ngIf",a>0),t.R7$(),t.SpI("[",e,"] ")}}function em(i,n){if(1&i&&(t.qex(0),t.DNE(1,tm,4,8,"a",29),t.bVm()),2&i){const e=t.XpG(2).$implicit,a=t.XpG(4);t.R7$(),t.Y8G("ngForOf",e.addr_no.split(" "))("ngForTrackBy",a.trackByFn)}}function nm(i,n){1&i&&(t.j41(0,"span",31),t.EFF(1,";\xa0"),t.k0s())}function im(i,n){if(1&i&&(t.j41(0,"span",18),t.DNE(1,zh,6,23,"a",19),t.nI1(2,"feature"),t.DNE(3,Qh,2,5,"label",20),t.nI1(4,"feature"),t.DNE(5,Wh,2,2,"ng-template",null,3,t.C5r),t.j41(7,"span"),t.DNE(8,Kh,4,10,"span",5)(9,em,2,2,"ng-container",5),t.nI1(10,"feature"),t.k0s(),t.DNE(11,nm,2,0,"span",21),t.k0s()),2&i){const e=t.sdS(6),a=t.XpG(),r=a.$implicit,o=a.index,s=a.last,l=t.XpG(3).$implicit,c=t.XpG();t.FCK("id","author",c.parentIdx,"-",o,""),t.Y8G("hidden",c.areAuthorsHidden&&o>=c.fullRecordAuthorShowCount),t.R7$(),t.Y8G("ngIf",c.requiresLink&&("PPRN"!==c.database||"PPRN"===c.database&&r.wos_cc_flag)&&!t.bMT(2,10,"nxPresentationControl_FullRecord_Unlink_AuthorsNames"))("ngIfElse",e),t.R7$(2),t.Y8G("ngIf",t.bMT(4,12,"nxPresentationControl_FullRecord_Unlink_AuthorsNames")),t.R7$(5),t.Y8G("ngIf",r.wos_standard&&"anon"!=l&&r.display_name),t.R7$(),t.Y8G("ngIf",!t.bMT(10,14,"nxPresentationControl_FullRecord_Unlink_AuthorsNames")&&r.addr_no&&(!c.linkReprintOnlyCollections.includes(c.database)||c.linkReprintOnlyCollections.includes(c.database)&&"Y"===r.reprint)),t.R7$(2),t.Y8G("ngIf",!s)}}function am(i,n){if(1&i&&(t.qex(0),t.DNE(1,im,12,16,"span",17),t.bVm()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e)}}function rm(i,n){1&i&&t.nrm(0,"span")}function om(i,n){if(1&i){const e=t.RV6();t.j41(0,"span")(1,"button",32),t.nI1(2,"translate"),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.toggleAuthorView())}),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}
1if(2&i){const e=t.XpG().ngIf,a=t.XpG().$implicit,r=t.XpG().$implicit,o=t.XpG();t.BMQ("id",o.taPrefix+"FrToggle-"+r+"-"+a)("data-ta",o.taPrefix+"FrToggle-"+r+"-"+a),t.R7$(),t.Y8G("ngClass","section-label-data full-record-detail-section-links")("matTooltip",o.areAuthorsHidden?t.i5U(2,5,"inventor"===r?"moreInventorsTip":"moreAuthorsTip",t.eq3(13,Bc,e.length)):t.i5U(3,8,"inventor"===r?"lessInventorsTip":"lessAuthorsTip",t.eq3(15,Bc,o.fullRecordAuthorShowCount))),t.R7$(3),t.JRh(t.bMT(5,11,o.areAuthorsHidden?"moreAuthors":"lessAuthors"))}}function sm(i,n){if(1&i&&(t.j41(0,"div")(1,"div",6)(2,"div",7),t.DNE(3,Xh,4,4,"h3",8),t.j41(4,"span",9),t.DNE(5,qh,5,9,"button",10),t.k0s()(),t.j41(6,"span",11),t.DNE(7,am,2,1,"ng-container",4)(8,rm,1,0,"span",12)(9,om,6,17,"ng-template",null,1,t.C5r),t.k0s()()()),2&i){const e=n.ngIf,a=t.sdS(10),r=t.XpG().$implicit,o=t.XpG().$implicit,s=t.XpG();t.R7$(),t.xc7("display",!e[0].superRecordCollection||e[0].superRecordCollection&&s.showRciSuperRecord?"grid":"none"),t.Y8G("ngClass",e[0].superRecordCollection?"cdx-two-column-grid-container common-super-record-field-grid":"cdx-two-column-grid-container"),t.BMQ("id",s.taPrefix+"MainDiv-"+o+"-"+r)("data-ta",s.taPrefix+"MainDiv-"+o+"-"+r),t.R7$(2),t.Y8G("ngIf",!s.authorsPrefix),t.R7$(2),t.Y8G("ngIf",s.showNewInfoButton&&"en"===r),t.R7$(2),t.Y8G("ngForOf",e)("ngForTrackBy",s.trackByFn),t.R7$(),t.Y8G("ngIf",e.length>s.fullRecordAuthorShowCount)("ngIfThen",a)}}function lm(i,n){if(1&i&&(t.qex(0),t.DNE(1,sm,11,11,"div",5),t.bVm()),2&i){const e=n.$implicit,a=t.XpG().$implicit,r=t.XpG
1();t.R7$(),t.Y8G("ngIf",r.authors[a][e])}}function cm(i,n){if(1&i&&(t.qex(0),t.DNE(1,lm,2,1,"ng-container",4),t.nI1(2,"languagesPipe"),t.bVm()),2&i){const e=n.$implicit,a=t.XpG();t.R7$(),t.Y8G("ngForOf",t.brH(2,2,a.authors[e],!0,a.database))("ngForTrackBy",a.trackByFn)}}function dm(i,n){1&i&&(t.j41(0,"div",33)(1,"mat-dialog-content",34)(2,"h2"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div"),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"button",35),t.EFF(9),t.nI1(10,"translate"),t.k0s()()),2&i&&(t.R7$(3),t.JRh(t.bMT(4,3,"PublicationResearcherProfile")),t.R7$(3),t.JRh(t.bMT(7,5,"AreYouThisAuthorText")),t.R7$(3),t.JRh(t.bMT(10,7,"close")))}let Yc=(()=>{class i{constructor(e,a,r,o){this.config=a,this.storage=r,this.dialog=o,this.requiresLink=!0,this.openAddresses=new t.bkB,this.taPrefix="SumAuthTa-",this.areAuthorsHidden=!0,this.showNewInfoButton=!1,this.rrc=a.getSettings().environment.rrcUrl,e.select(B.eJ).subscribe(s=>this.sid=s).unsubscribe(),e.select(B.l1,{prop:"NewInfoButton"}).pipe((0,ge.s)(1)).subscribe(s=>{this.showNewInfoButton=!!s}),this.addressesToShow=a.getSettings().app.fullRecord.authorAddressCount,this.fullRecordAuthorShowCount=a.getSettings().app.fullRecord.authorCount,this.summaryAuthorShowCount=a.getSettings().app.numAuthorsOnSummary,this.linkReprintOnlyCollections=a.getSettings().app.fullRecord.linkReprintOnlyCollections,this.profileSearchEnabledCollections=a.getSettings().app.profileSearchEnabledCollections}getHref(e){return`${this.rrc}/#/record/${e}?SID=${this.sid}`}getRouterParams(e,a,r){if(r&&this.profileSearchEnabledCollections.includes(this.database))return{queryJson:JSON.stringify([{rowBoolean:null,rowField:"DXNG",rowText:r}]),displayJson:JSON.stringify({key:"author",icon:"author",params:{name:a}})};let o;return o="corp"!==e&&"book_corp"!==e||!this.config.getSettings().app.search.databases[this.database].general.advanced.fields.includes("GP")?"book_editor"!==e&&"editor"!==e||!this.config.getSettings().app.search.databases[this.database].general.advanced.fields.includes("ED")?"assignee"===e?"AN":"principal_investigator"===e&&"GRANTS"===this.database?"PINV":"co_principal_investigator"===e?"GRANTS"===this.database?"CINV":"COA":"AU":"ED":"GP",{queryJson:JSON.stringify([{rowBoolean:null,rowField:o,rowText:a}]),eventMode:"oneClickSearch"}}trackByFn(e){return e}goToAddress(e,a){const r=document.getElementById(e);r?Number(a)>this.addressesToShow?this.openAddresses.emit(a):r.focus():console.log("Address "+e+" not found")}toggleAuthorView(){this.areAuthorsHidden=!this.areAuthorsHidden}ngOnChanges(e){this.showRciSuperRecord=this.storage.get("showRciSuperRecord"),this.collection=this.ut&&this.ut.includes(":")?K.Y.convertProductToDB(this.ut.split(":")[0]):"no"}getAltText(e){switch(e){case"editor":return"authorAlt_editor";case"inventor":return"authorAlt_inventor";default:return"authorAlt_author"}}openAuthorInfoDialog(){this.authorInfoOverlayTemplate&&this.dialog.open(this.authorInfoOverlayTemplate,{width:"400px",height:"auto"})}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Gt.il),t.rXU(Dt.w),t.rXU(Pc.R),t.rXU(mt.bZ))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-authors"]],viewQuery:function(a,r){if(1&a&&t.GBs(Lh,5),2&a){let o;t.mGM(o=t.lsd())&&(r.authorInfoOverlayTemplate=o.first)}},inputs:{database:"database",ut:"ut",qid:"qid",contributors:"contributors",isArabicRecord:"isArabicRecord",types:"types",langs:"langs",authorsPrefix:"authorsPrefix",requiresLink:"requiresLink",parentIdx:"parentIdx",authors:"authors"},outputs:{openAddresses:"openAddresses"},features:[t.OA$],decls:3,vars:2,consts:[["authorInfoOverlay",""],["excessAuthors",""],["groupTitle",""],["noOneClickSearch",""],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],[3,"ngClass"],[1,"citation-count"],["class","label cdx-grid-label",4,"ngIf"],[1,"author-claim-info"],["mat-button","","class","info-icon",3,"matTooltip","click",4,"ngIf"],[1,"cdx-grid-data"],[4,"ngIf","ngIfThen"],[1,"label","cdx-grid-label"],[4,"ngIf","ngIfElse"],[3,"dir"],["mat-button","",1,"info-icon",3,"click","matTooltip"],["class","value",3,"hidden","id",4,"ngIf"],[1,"value",3,"hidden","id"],["class","value","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"ngClass","cdxAnalyticsCategory","matTooltip","routerLink","queryParams","state",4,"ngIf","ngIfElse"],["class","authors value",3,"matTooltip",4,"ngIf"],["dir","auto",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"value",3,"ngClass","cdxAnalyticsCategory","matTooltip","routerLink","queryParams","state"],[3,"wosSearchHighlight","termMatched",4,"ngIf"],[3,"termMatched","wosSearchHighlight"],[1,"authors","value",3,"matTooltip"],["class","font-size-14 value",3,"wosSearchHighlight","termMatched",4,"ngIf"],[1,"font-size-14","value",3,"termMatched","wosSearchHighlight"],[1,"value",3,"ngClass","wosSearchHighlight"],["class","sup-style","href","javascript:void(0);",3,"ngClass","matTooltip","click",4,"ngFor","ngForOf","ngForTrackBy"],["href","javascript:void(0);",1,"sup-style",3,"click","ngClass","matTooltip"],["dir","auto"],["mat-button","","color","primary",3,"click","ngClass","matTooltip"],[1,"analyze-info-dialog"],[1,"analyze-info-content"],["mat-button","","mat-dialog-close",""]],template:function(a,r){1&a&&t.DNE(0,cm,3,6,"ng-container",4)(1,dm,11,9,"ng-template",null,0,t.C5r),2&a&&t.Y8G("ngForOf",r.types)("ngForTrackBy",r.trackByFn)},dependencies:[A.YU,A.Sq,A.bT,ot.Wk,ie.w,$t.ig,ht.$z,xt.oV,mt.tx,mt.Yi,Ot.P,V.D9,Cn.G,Se.h],encapsulation:2,changeDetection:0})}}return i})();var So=S(37482);const um=["dataBanksTable"],_m=["geoGraphicTable"],pm=["methodsEquipmentTable"],hm=["partsStructuresTable"],mm=["sequenceDataTable"],gm=["geologicTimeTable"],fm=(i,n,e)=>[i,n,"accession_number",e],bm=(i,n,e)=>[i,n,"language",e],vm=(i,n,e)=>[i,n,"pubMed_id",e],Fi=i=>({"cdx-zero-padding":i}),wi=(i,n,e,a)=>[i,n,e,a],Rn=i=>["/",i,"general-summary"],xm=(i,n,e)=>[i,n,"ISSN_ISBN",e],Pa=(i,n)=>({siloSearchWarning:i,collection:n}),Cm=(i,n,e)=>[i,n,"pqdt_advisor",e],Rm=(i,n,e)=>[i,n,"pqdt_committeemember",e],ym=(i,n,e)=>[i,n,"department",e],Tm=(i,n,e)=>[i,n,"source",e],Im=(i,n,e)=>[i,n,"full_address",e],Xc=(i,n,e)=>[i,n,"identifiers",e],Ao=(i,n,e)=>[i,n,"subject_descriptors",e],km=(i,n,e)=>[i,n,"status",e],ti=(i,n,e)=>[i,n,"methods_and_equipment_data",e],Mi=(i,n,e)=>[i,n,"parts_and_structure_data",e],Eo=(i,n,e)=>[i,n,"sequence_data",e],qc=(i,n,e)=>[i,n,"geological_time_data",e],Fm=(i,n,e)=>[i,n,"cas_reg_num",e],Hc=(i,n,e)=>[i,n,"geo_location",e],wm=()=>["issuing_org"];function Mm(i,n){1&i&&t.nrm(0,"span",33)}
1function Sm(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"span",20),t.nI1(2,"translate"),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.isViewHidden=!1)}),t.k0s(),t.DNE(3,Mm,1,0,"span",32),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(2);t.R7$(),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(7,bm,o.record.ut,o.qid,"not specified"===e.language?t.bMT(2,5,"notSpecified"):e.language)),t.BMQ("data-ta",o.taPrefix+"language-"+a)("id",o.taPrefix+"language-"+a),t.R7$(2),t.Y8G("ngIf",!r)}}function Am(i,n){if(1&i&&(t.j41(0,"div",29)(1,"h3",19),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,Sm,4,11,"ng-container",31),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"languageLabel")("id",e.taPrefix+"languageLabel"),t.R7$(),t.JRh(t.bMT(3,4,"language")),t.R7$(3),t.Y8G("ngForOf",e.record.languages)}}function Em(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"mediumLabel")("id",e.taPrefix+"mediumLabel"),t.R7$(),t.JRh(t.bMT(3,6,"medium")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"medium")("id",e.taPrefix+"medium"),t.R7$(),t.JRh(e.record.pub_info.medium)}}function Pm(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"patentPriorityLabel")("id",e.taPrefix+"patentPriorityLabel"),t.R7$(),t.JRh(t.bMT(3,6,"patentPriority")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"patentPriority")("id",e.taPrefix+"patentPriority"),t.R7$(),t.JRh(e.record.item.Patent_Priority)}}function Gm(i,n){1&i&&(t.j41(0,"span",37),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.SpI("\xa0(",t.bMT(2,1,"providedByClarivateOnBehalfOfNLM"),")\xa0"))}function Dm(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30)(5,"span",20),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.isViewHidden=!1)}),t.k0s(),t.DNE(6,Gm,3,3,"span",36),t.k0s()()}if(2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"pubmedIdLabel")("id",e.taPrefix+"pubmedIdLabel"),t.R7$(),t.JRh(t.bMT(3,8,"pubmedId")),t.R7$(3),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(10,vm,e.record.ut,e.qid,e.getPubMedId())),t.BMQ("data-ta",e.taPrefix+"pubmedId")("id",e.taPrefix+"pubmedId"),t.R7$(),t.Y8G("ngIf",e.pubMedIDAttributionCollections.includes(e.record.coll))}}function $m(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"biblioNotesLabel")("id",e.taPrefix+"biblioNotesLabel"),t.R7$(),t.JRh(t.bMT(3,6,"notes")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"biblioNotes")("id",e.taPrefix+"biblioNotes"),t.R7$(),t.JRh(e.record.item.Bibliographic.BiblioNotes)}}function Lm(i,n){1&i&&t.eu8(0)}function Nm(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",39),t.DNE(2,Lm,1,0,"ng-container",40),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundBCIliteratureType),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function jm(i,n){1&i&&t.nrm(0,"span",44)}function Om(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"span",42),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return r.termFoundBCIliteratureType=!0,r.expanded=!0,t.Njj(r.isViewHidden=!1)}),t.k0s(),t.DNE(2,jm,1,0,"span",43),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(4);t.R7$(),t.Y8G("wosSearchHighlight",t.ziG(4,wi,o.record.ut,o.qid,o.record.item.super_record_BCI?"doctype":"literature_type",e)),t.BMQ("data-ta",o.taPrefix+"literatureType-"+a)("id",o.taPrefix+"literatureType-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function Bm(i,n){if(1&i&&(t.j41(0,"div",41)(1,"h3",19),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,Om,3,9,"ng-container",31),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(7,Fi,e.record.item.super_record_BCI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"literatureTypeLabel")("id",e.taPrefix+"literatureTypeLabel"),t.R7$(),t.JRh(t.bMT(3,5,"literatureType")),t.R7$(3),t.Y8G("ngForOf",e.record.item.Bibliographic.LiteratureTypeList)}}
1function Ym(i,n){if(1&i&&(t.j41(0,"div",15),t.DNE(1,Nm,3,3,"div",38)(2,Bm,6,9,"ng-template",null,0,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_BCI)("ngIfElse",e)}}function Xm(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"patentCountryLabel")("id",e.taPrefix+"patentCountryLabel"),t.R7$(),t.JRh(t.bMT(3,6,"patentCountry")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"patentCountry")("id",e.taPrefix+"patentCountry"),t.R7$(),t.JRh(e.record.item.Bibliographic.Patent.PatentCountry)}}function qm(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"patentDateGrantedLabel")("id",e.taPrefix+"patentDateGrantedLabel"),t.R7$(),t.JRh(t.bMT(3,6,"patentDateGranted")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"patentDateGranted")("id",e.taPrefix+"patentDateGranted"),t.R7$(),t.JRh(e.record.item.Bibliographic.Patent.PatentDateGranted)}}function Hm(i,n){if(1&i&&(t.qex(0),t.DNE(1,$m,6,8,"div",17)(2,Ym,4,2,"div",22)(3,Xm,6,8,"div",17)(4,qm,6,8,"div",17),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item||null==e.record.item.Bibliographic?null:e.record.item.Bibliographic.BiblioNotes),t.R7$(),t.Y8G("ngIf",e.re
1cord.item.Bibliographic.LiteratureTypeList),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item||null==e.record.item.Bibliographic||null==e.record.item.Bibliographic.Patent?null:e.record.item.Bibliographic.Patent.PatentCountry),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item||null==e.record.item.Bibliographic||null==e.record.item.Bibliographic.Patent?null:e.record.item.Bibliographic.Patent.PatentDateGranted)}}function Vm(i,n){if(1&i&&(t.j41(0,"a",46),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(2);t.Y8G("routerLink",t.eq3(5,Rn,o.database.toLowerCase()))("queryParams",o.getRouterParams(a.value)),t.BMQ("data-ta",o.taPrefix+"bookChaptersLink-"+r)("id",o.taPrefix+"bookChaptersLink-"+r),t.R7$(),t.SpI(" ",o.record.item.book_chapters," ")}}function zm(i,n){if(1&i&&t.EFF(0),2&i){const e=t.XpG(4);t.SpI(" ",e.record.item.book_chapters," ")}}function Qm(i,n){if(1&i&&(t.j41(0,"div",29)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.DNE(5,Vm,2,7,"a",45)(6,zm,1,1,"ng-template",null,1,t.C5r),t.k0s()()),2&i){const e=t.sdS(7),a=t.XpG(3);t.R7$(),t.BMQ("data-ta",a.taPrefix+"bookChaptersLabel")("id",a.taPrefix+"bookChaptersLabel"),t.R7$(),t.JRh(t.bMT(3,5,"bookChapters")),t.R7$(3),t.Y8G("ngIf",a.buildSiloOneClickLink)("ngIfElse",e)}}function Um(i,n){if(1&i&&(t.qex(0),t.DNE(1,Qm,8,7,"div",16),t.bVm()),2&i){const e=n.first,a=t.XpG(2);t.R7$(),t.Y8G("ngIf",e&&(null==a.record||null==a.record.item?null:a.record.item.book_chapters)>0)}}function Jm(i,n){1&i&&t.nrm(0,"span",49)}
1function Wm(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"span",20),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.isViewHidden=!1)}),t.k0s(),t.DNE(2,Jm,1,0,"span",48),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(3);t.R7$(),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(5,xm,o.record.ut,o.qid,e.value)),t.BMQ("data-ta",o.taPrefix+"bookChapters-ISBN-"+a)("id",o.taPrefix+"bookChapters-ISBN-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function Km(i,n){if(1&i&&(t.j41(0,"div",29)(1,"h3",19),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",47),t.DNE(5,Wm,3,9,"ng-container",31),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"bookChapters-ISBNLabel-"+e.a)("id",e.taPrefix+"bookChapters-ISBNLabel-"+e.a),t.R7$(),t.JRh(t.bMT(3,5,"ISBN")),t.R7$(2),t.Y8G("ngClass","section-label-data"),t.R7$(),t.Y8G("ngForOf",e.record.identifiers.filter(e.getIsbnEisbn))}}function Zm(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"countryoftranslationLabel")("id",e.taPrefix+"countryoftranslationLabel"),t.R7$(),t.JRh(t.bMT(3,6,"countryoftranslation")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"countryoftranslation")("id",e.taPrefix+"countryoftranslation"),t.R7$(),t.JRh(null==e.record?null:e.record.cntry_of_translation)}}function tg(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"dateFiled")("id",e.taPrefix+"dateFiled"),t.R7$(),t.JRh(t.bMT(3,6,"dateFiled")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"dateFiled")("id",e.taPrefix+"dateFiled"),t.R7$(),t.JRh(null==e.record||null==e.record.item?null:e.record.item.datefiled)}}function eg(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"countryofpatent")("id",e.taPrefix+"countryofpatent"),t.R7$(),t.JRh(t.bMT(3,6,"countryOfPatent")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"countryofpatent")("id",e.taPrefix+"countryofpatent"),t.R7$(),t.JRh(null==e.record||null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.patg||null==e.record.item.bibliog.patg.pdg?null:e.record.item.bibliog.patg.pdg.cntry)}}function ng(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"countryOfPublication")("id",e.taPrefix+"countryOfPublication"),t.R7$(),t.JRh(t.bMT(3,6,"countryOfPublication")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"countryOfPublication")("id",e.taPrefix+"countryOfPublication"),t.R7$(),t.JRh(null==e.record||null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.patg?null:e.record.item.bibliog.patg.cntry)}}function ig(i,n){if(1&i&&(t.qex(0),t.DNE(1,eg,6,8,"div",17)(2,ng,6,8,"div",17),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.patg||null==e.record.item.bibliog.patg.pdg?null:e.record.item.bibliog.patg.pdg.cntry),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.patg?null:e.record.item.bibliog.patg.cntry)}}function ag(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,Um,2,1,"ng-container",31)(2,Km,6,7,"div",16)(3,Zm,6,8,"div",17)(4,tg,6,8,"div",17)(5,ig,3,2,"ng-container",21),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.record.identifiers.filter(e.getIsbnEisbn)),t.R7$(),t.Y8G("ngIf",e.re
1cord.identifiers.filter(e.getIsbnEisbn).length>0),t.R7$(),t.Y8G("ngIf",null==e.record?null:e.record.cntry_of_translation),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item?null:e.record.item.datefiled),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item||null==e.record.item.bibliog?null:e.record.item.bibliog.patg)}}function rg(i,n){1&i&&t.nrm(0,"span",49)}function og(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"span",50)(2,"a",51),t.nI1(3,"translate"),t.j41(4,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.isViewHidden=!1)}),t.k0s()()(),t.DNE(5,rg,1,0,"span",48),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(2);t.R7$(2),t.Y8G("routerLink",t.eq3(10,Rn,o.record.coll.toLowerCase()))("matTooltip",t.bMT(3,8,"advisor_tooltip")+e)("queryParams",o.getQuickSearchString(e,"AV"))("state",t.l_i(12,Pa,o.database!==o.record.coll,o.record.coll)),t.BMQ("data-ta",o.taPrefix+"advisorName-"+e+a)("id",o.taPrefix+"advisorName-"+e+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(15,Cm,o.record.ut,o.qid,e)),t.R7$(),t.Y8G("ngIf",!r)}}function sg(i,n){if(1&i&&(t.j41(0,"div",29)(1,"h3",19),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",30),t.DNE(5,og,6,19,"ng-container",31),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"advisor")("id",e.taPrefix+"advisor"),t.R7$(),t.JRh(t.bMT(3,4,"full_record_advisor")),t.R7$(3),t.Y8G("ngForOf",e.advisorNames)}}function lg(i,n){1&i&&t.nrm(0,"span",49)}
1function cg(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"span",50)(2,"a",51),t.nI1(3,"translate"),t.j41(4,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.isViewHidden=!1)}),t.k0s()()(),t.DNE(5,lg,1,0,"span",48),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(2);t.R7$(2),t.Y8G("routerLink",t.eq3(10,Rn,o.record.coll.toLowerCase()))("matTooltip",t.bMT(3,8,"committee_tooltip")+e)("queryParams",o.getQuickSearchString(e,"COMM"))("state",t.l_i(12,Pa,o.database!==o.record.coll,o.record.coll)),t.BMQ("data-ta",o.taPrefix+"committeeMemberName-"+e+a)("id",o.taPrefix+"committeeMemberName-"+e+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(15,Rm,o.record.ut,o.qid,e)),t.R7$(),t.Y8G("ngIf",!r)}}function dg(i,n){if(1&i&&(t.j41(0,"div",29)(1,"h3",19),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",30),t.DNE(5,cg,6,19,"ng-container",31),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"committeeMemNames")("id",e.taPrefix+"committeeMemNames"),t.R7$(),t.JRh(t.bMT(3,4,"full_record_committeMember")),t.R7$(3),t.Y8G("ngForOf",e.committeeMemNames)}}function ug(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",29)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",53),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.isViewHidden=!1)}),t.k0s()()}if(2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"scholarly_info-departmentLabel")("id",e.taPrefix+"scholarly_info-departmentLabel"),t.R7$(),t.JRh(t.bMT(3,6,"Department")),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(8,ym,e.record.ut,e.qid,null==e.record.item||null==e.record.item.scholarly_info?null:e.record.item.scholarly_info.department)),t.BMQ("data-ta",e.taPrefix+"scholarly_info-department")("id",e.taPrefix+"scholarly_info-department")}}function _g(i,n){if(1&i&&(t.j41(0,"span",50),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.SpI("(",null==e.record.item||null==e.record.item.scholarly_info?null:e.record.item.scholarly_info.degree_type,")")}}function pg(i,n){if(1&i&&(t.j41(0,"div",29)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",30)(5,"span",50),t.EFF(6),t.DNE(7,_g,2,1,"span",54),t.k0s()()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"scholarly_info-degreeNameLabel")("id",e.taPrefix+"scholarly_info-degreeNameLabel"),t.R7$(),t.JRh(t.bMT(3,7,"DegreeName")),t.R7$(3),t.BMQ("data-ta",e.taPrefix+"scholarly_info-degreeName")("id",e.taPrefix+"scholarly_info-degreeName"),t.R7$(),t.SpI(" ",null==e.record.item||null==e.record.item.scholarly_info?null:e.record.item.scholarly_info.degree_name," "),t.R7$(),t.Y8G("ngIf",e.re
1cord.item.scholarly_info.degree_type)}}function hg(i,n){if(1&i&&(t.j41(0,"div",29)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"scholarly_info-degreeDateLabel")("id",e.taPrefix+"scholarly_info-degreeDateLabel"),t.R7$(),t.JRh(t.bMT(3,6,"DegreeYear")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"scholarly_info-degree_date")("id",e.taPrefix+"scholarly_info-degree_date"),t.R7$(),t.JRh(null==e.record.item||null==e.record.item.scholarly_info?null:e.record.item.scholarly_info.degree_date)}}function mg(i,n){if(1&i&&(t.j41(0,"div",29)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"copyrightLabel")("id",e.taPrefix+"copyrightLabel"),t.R7$(),t.JRh(t.bMT(3,6,"copyright")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"copyright")("id",e.taPrefix+"copyright"),t.R7$(),t.JRh(null==e.record.item||null==e.record.item.copyright?null:e.record.item.copyright.copyright_data)}}function gg(i,n){1&i&&t.nrm(0,"span",49)}function fg(i,n){if(1&i){const e=t.RV6();t.j41(0,"span",50)(1,"a",57),t.nI1(2,"translate"),t.j41(3,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.isViewHidden=!1)}),t.k0s()(),t.DNE(4,gg,1,0,"span",48),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(2).index,s=t.XpG(2);t.R7$(),t.FS9("cdxAnalyticsCategory",s.record.coll.toLowerCase()+"-publisher"),t.Y8G("routerLink",t.eq3(13,Rn,s.database.toLowerCase()))("matTooltip",t.bMT(2,11,"publisher"))("queryParams",s.getQuickSearchString(e.display_name,"SO"))("ngClass","section-label-data full-record-detail-section-links"),t.BMQ("data-ta",s.taPrefix+"publisher-"+o+"-"+a)("id",s.taPrefix+"publisher-"+o+"-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(15,Tm,s.record.ut,s.qid,e.display_name)),t.BMQ("data-ta",s.taPrefix+"publisher-name"+o+"-"+a)("id",s.taPrefix+"'publisher-name"+o+"-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function bg(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",55),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,fg,5,19,"span",56),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(),t.BMQ("data-ta",a.taPrefix+"publisher-name-label")("id",a.taPrefix+"publisher-name-label"),t.R7$(),t.SpI("",t.bMT(3,4,"publisher")," "),t.R7$(2),t.Y8G("ngForOf",e.names)}}function vg(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",55),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",50)(5,"a",58),t.nI1(6,"translate"),t.j41(7,"span"),t.EFF(8),t.k0s()()()()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2);t.R7$(),t.BMQ("data-ta",o.taPrefix+"publisherUrlLabel")("id",o.taPrefix+"publisherUrlLabel"),t.R7$(),t.SpI("",t.bMT(3,11,"url_label")," "),t.R7$(3),t.FS9("href",null==a.address_spec||null==a.address_spec.url_spec?null:a.address_spec.url_spec.url,t.B4B),t.Y8G("matTooltip",t.bMT(6,13,"publisher_url_label"))("ngClass","section-label-data full-record-detail-section-links"),t.BMQ("data-ta",o.taPrefix+"publisherUrl-"+r)("id",o.taPrefix+"publisherUrl-"+r),t.R7$(2),t.BMQ("data-ta",o.taPrefix+"publisher-url")("id",o.taPrefix+"'publisher-url"),t.R7$(),t.SpI(" ",null==a.address_spec||null==a.address_spec.url_spec?null:a.address_spec.url_spec.url," ")}}function xg(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",18)(1,"h3",55),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",20),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.isViewHidden=!1)}),t.k0s()()}if(2&i){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(),t.BMQ("data-ta",a.taPrefix+"publisherCountryLabel")("id",a.taPrefix+"publisherCountryLabel"),t.R7$(),t.SpI("",t.bMT(3,7,"country")," "),t.R7$(2),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(9,Im,a.record.ut,a.qid,null==e.address_spec?null:e.address_spec.country)),t.BMQ("data-ta",a.taPrefix+"publisher-email")("id",a.taPrefix+"'publisher-email")}}function Cg(i,n){if(1&i&&(t.j41(0,"div",29)(1,"h3",55),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",50)(5,"a",59),t.nI1(6,"translate"),t.j41(7,"span"),t.EFF(8),t.k0s()()()()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2);t.R7$(),t.BMQ("data-ta",o.taPrefix+"publisherEmailLabel")("id",o.taPrefix+"publisherEmailLabel"),t.R7$(),t.SpI("",t.bMT(3,12,"Email")," "),t.R7$(3),t.Mz_("href","mailto:",null==a.address_spec?null:a.address_spec.email_addr,"",t.B4B),t.Y8G("matTooltip",t.bMT(6,14,"publisher_email_label"))("ngClass","section-label-data full-record-detail-section-links"),t.BMQ("data-ta",o.taPrefix+"publisherEmailAddr-"+r)("id",o.taPrefix+"publisherEmailAddr-"+r),t.R7$(2),t.BMQ("data-ta",o.taPrefix+"publisher-email")("id",o.taPrefix+"'publisher-email"),t.R7$(),t.SpI(" ",null==a.address_spec?null:a.address_spec.email_addr," ")}}
1function Rg(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",55),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",60),t.EFF(5),t.k0s()()),2&i){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(),t.BMQ("data-ta",a.taPrefix+"publisherPhoneLabel")("id",a.taPrefix+"publisherPhoneLabel"),t.R7$(),t.SpI("",t.bMT(3,7,"phoneNumber")," "),t.R7$(2),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",a.taPrefix+"publisher-phone")("id",a.taPrefix+"'publisher-phone"),t.R7$(),t.JRh(null==e.address_spec?null:e.address_spec.phone_number)}}function yg(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,bg,5,6,"div",17)(2,vg,9,15,"div",17)(3,xg,5,13,"div",17)(4,Cg,9,16,"div",16)(5,Rg,6,9,"div",17),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.names.length>0),t.R7$(),t.Y8G("ngIf",null==e.address_spec||null==e.address_spec.url_spec?null:e.address_spec.url_spec.url),t.R7$(),t.Y8G("ngIf",null==e.address_spec?null:e.address_spec.country),t.R7$(),t.Y8G("ngIf",null==e.address_spec?null:e.address_spec.email_addr),t.R7$(),t.Y8G("ngIf",null==e.address_spec?null:e.address_spec.phone_number)}}function Tg(i,n){if(1&i&&(t.j41(0,"div",15),t.DNE(1,yg,6,5,"div",31),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.record.publishers)}}function Ig(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",18)(1,"h3",55),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",20),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.isViewHidden=!1)}),t.k0s()()}if(2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"ISSNLabel")("id",e.taPrefix+"ISSNLabel"),t.R7$(),t.SpI("",t.bMT(3,7,"ISSN")," "),t.R7$(2),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(9,Xc,e.record.ut,e.qid,e.getIssn(e.record.identifiers)[0].value)),t.BMQ("data-ta",e.taPrefix+"ISSN")("id",e.taPrefix+"ISSN")}}function kg(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",61),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",60),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"EISSNLabel")("id",e.taPrefix+"EISSNLabel"),t.R7$(),t.SpI("",t.bMT(3,7,"EISSN")," "),t.R7$(2),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",e.taPrefix+"EISSN")("id",e.taPrefix+"EISSN"),t.R7$(),t.JRh(e.getEissn(e.record.identifiers)[0].value)}}function Fg(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"publishedElectronicallyLabel")("id",e.taPrefix+"publishedElectronicallyLabel"),t.R7$(),t.JRh(t.bMT(3,6,"publishedElectronically")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"publishedElectronically")("id",e.taPrefix+"publishedElectronically"),t.R7$(),t.JRh(e.record.pub_info.edate)}}function wg(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"nlmUniqueIdLabel")("id",e.taPrefix+"nlmUniqueIdLabel"),t.R7$(),t.JRh(t.bMT(3,6,"nlmUniqueId")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"nlmUniqueId")("id",e.taPrefix+"nlmUniqueId"),t.R7$(),t.JRh(e.record.item.MedlineJournalInfo.NlmUniqueID)}}function Mg(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"countryLabel")("id",e.taPrefix+"countryLabel"),t.R7$(),t.JRh(t.bMT(3,6,"country")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"country")("id",e.taPrefix+"country"),t.R7$(),t.JRh(e.record.item.MedlineJournalInfo.Country)}}function Sg(i,n){if(1&i&&(t.qex(0),t.DNE(1,wg,6,8,"div",17)(2,Mg,6,8,"div",17),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item||null==e.record.item.MedlineJournalInfo?null:e.record.item.MedlineJournalInfo.NlmUniqueID),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item||null==e.record.item.MedlineJournalInfo?null:e.record.item.MedlineJournalInfo.Country)}}function Ag(i,n){if(1&i&&(t.j41(0,"h3",34),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(3);t.BMQ("data-ta",e.taPrefix+"dateCreatedLabel")("id",e.taPrefix+"dateCreatedLabel"),t.R7$(),t.JRh(t.bMT(2,3,"dateCreated"))}}
1function Eg(i,n){if(1&i&&(t.j41(0,"span",35),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.BMQ("data-ta",e.taPrefix+"dateCreated")("id",e.taPrefix+"dateCreated"),t.R7$(),t.SpI("",e.record.item.DateCreated," ")}}function Pg(i,n){if(1&i&&(t.j41(0,"h3",34),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(3);t.BMQ("data-ta",e.taPrefix+"dateCompletedLabel")("id",e.taPrefix+"dateCompletedLabel"),t.R7$(),t.JRh(t.bMT(2,3,"dateCompleted"))}}function Gg(i,n){if(1&i&&(t.j41(0,"span",35),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.BMQ("data-ta",e.taPrefix+"dateCompleted")("id",e.taPrefix+"dateCompleted"),t.R7$(),t.SpI("",e.record.item.DateCompleted," ")}}function Dg(i,n){if(1&i&&(t.j41(0,"h3",34),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(3);t.BMQ("data-ta",e.taPrefix+"dateRevisedLabel")("id",e.taPrefix+"dateRevisedLabel"),t.R7$(),t.JRh(t.bMT(2,3,"dateRevised"))}}function $g(i,n){if(1&i&&(t.j41(0,"span",35),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.BMQ("data-ta",e.taPrefix+"dateRevised")("id",e.taPrefix+"dateRevised"),t.R7$(),t.JRh(e.record.item.DateRevised)}}function Lg(i,n){if(1&i&&(t.j41(0,"div",15)(1,"section",29),t.DNE(2,Ag,3,5,"h3",63)(3,Eg,2,3,"span",64),t.k0s(),t.j41(4,"section",29),t.DNE(5,Pg,3,5,"h3",63)(6,Gg,2,3,"span",64),t.k0s(),t.j41(7,"section",29),t.DNE(8,Dg,3,5,"h3",63)(9,$g,2,3,"span",64),t.k0s()()),2&i){const e=t.XpG(2);
1t.R7$(2),t.Y8G("ngIf",e.record.item.DateCreated),t.R7$(),t.Y8G("ngIf",e.record.item.DateCreated),t.R7$(2),t.Y8G("ngIf",e.record.item.DateCompleted),t.R7$(),t.Y8G("ngIf",e.record.item.DateCompleted),t.R7$(2),t.Y8G("ngIf",e.record.item.DateRevised),t.R7$(),t.Y8G("ngIf",e.record.item.DateRevised)}}function Ng(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"generalNoteLabel")("id",e.taPrefix+"generalNoteLabel"),t.R7$(),t.JRh(t.bMT(3,6,"generalNote")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"generalNote")("id",e.taPrefix+"generalNote"),t.R7$(),t.JRh(e.record.item.GeneralNote.GeneralNote)}}function jg(i,n){if(1&i&&(t.qex(0),t.j41(1,"h3",69),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",50),t.EFF(5),t.k0s(),t.j41(6,"h3",50),t.EFF(7),t.k0s(),t.j41(8,"span",50),t.EFF(9),t.k0s(),t.bVm()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.R7$(),t.BMQ("data-ta",o.taPrefix+"commentsAndCorrections-typeLabel")("id",o.taPrefix+"commentsAndCorrections-typeLabel"),t.R7$(),t.JRh(t.bMT(3,12,a.RefType)),t.R7$(2),t.BMQ("data-ta",o.taPrefix+"commentsAndCorrections-RefSource-"+r)("id",o.taPrefix+"commentsAndCorrections-RefSource-"+r),t.R7$(),t.JRh(a.RefSource),t.R7$(),t.BMQ("data-ta",o.taPrefix+"commentsAndCorrections-PMID-"+r)("id",o.taPrefix+"commentsAndCorrections-PMID-"+r),t.R7$(),t.JRh(a.PMID),t.R7$(),t.BMQ("data-ta",o.taPrefix+"commentsAndCorrections-Note-"+r)("id",o.taPrefix+"commentsAndCorrections-Note-"+r),t.R7$(),t.JRh(a.Note)}}function Og(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,jg,10,14,"ng-container",21),t.k0s()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngIf",a.validRefTypes.indexOf(e.RefType)>-1)}}function Bg(i,n){if(1&i&&(t.j41(0,"div",65)(1,"div",66)(2,"h2",67),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",68),t.DNE(6,Og,2,1,"div",31),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(2),t.BMQ("data-ta",e.taPrefix+"commentsAndCorrectionsLabel")("id",e.taPrefix+"commentsAndCorrectionsLabel"),t.R7$(),t.JRh(t.bMT(4,4,"commentsAndCorrections")),t.R7$(3),t.Y8G("ngForOf",e.record.item.CommentsCorrectionsList)}}function Yg(i,n){if(1&i&&(t.qex(0),t.DNE(1,Sg,3,2,"ng-container",21)(2,Lg,10,6,"div",22)(3,Ng,6,8,"div",17)(4,Bg,7,6,"div",62),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item?null:e.record.item.MedlineJournalInfo),t.R7$(),t.Y8G("ngIf",(null==e.record||null==e.record.item?null:e.record.item.DateCreated)||(null==e.record||null==e.record.item?null:e.record.item.DateCompleted)||(null==e.record||null==e.record.item?null:e.record.item.DateRevised)),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item||null==e.record.item.GeneralNote?null:e.record.item.GeneralNote.GeneralNote),t.R7$(),t.Y8G("ngIf",(null==e.record||null==e.record.item||null==e.record.item.CommentsCorrectionsList?null:e.record.item.CommentsCorrectionsList.length)>0)}}
1function Xg(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",60),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"recordIdsLabel")("id",e.taPrefix+"recordIdsLabel"),t.R7$(),t.JRh(t.bMT(3,7,"idsNumber")),t.R7$(2),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",e.taPrefix+"recordIds")("id",e.taPrefix+"recordIds"),t.R7$(),t.JRh(null==e.record.item||null==e.record.item.ids?null:e.record.item.ids.ids)}}function qg(i,n){1&i&&t.nrm(0,"span",49)}function Hg(i,n){if(1&i&&(t.qex(0),t.j41(1,"span",50),t.EFF(2),t.k0s(),t.DNE(3,qg,1,0,"span",48),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(2).$implicit,s=t.XpG(2);t.R7$(),t.BMQ("data-ta",s.taPrefix+"otherInfo-perNameSubject-"+a)("id",s.taPrefix+"otherInfo-perNameSubject-"+a)("lang",o),t.R7$(),t.JRh(e.full_name),t.R7$(),t.Y8G("ngIf",!r)}}function Vg(i,n){if(1&i&&(t.qex(0),t.DNE(1,Hg,4,5,"ng-container",31),t.bVm()),2&i){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(),t.Y8G("ngForOf",null==a.record.names?null:a.record.names.subject[e])}}function zg(i,n){if(1&i&&(t.qex(0),t.DNE(1,Vg,2,1,"ng-container",21),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(2);t.R7$(),t.Y8G("ngIf",null==a.record.names?null:a.record.names.subject[e])}}function Qg(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,zg,2,1,"ng-container",31),t.nI1(6,"languagesPipe"),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"otherInfo-perNameSubjectLabel")("id",e.taPrefix+"otherInfo-perNameSubjectLabel"),t.R7$(),t.JRh(t.bMT(3,4,"personalNameSubject")),t.R7$(3),t.Y8G("ngForOf",t.brH(6,6,null==e.record.names?null:e.record.names.subject,!0,e.database))}}function Ug(i,n){1&i&&t.nrm(0,"span",49)}function Jg(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",70),t.DNE(2,Ug,1,0,"span",48),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(2).$implicit,s=t.XpG(2);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(4,Ao,s.record.ut,s.qid,e.DescriptorTerm)),t.BMQ("data-ta",s.taPrefix+"additionalDescriptor-"+o+a)("id",s.taPrefix+"additionalDescriptor-"+o+a),t.R7$(),t.Y8G("ngIf",!r)}}function Wg(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,Jg,3,8,"ng-container",31),t.k0s()()),2&i){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(),t.BMQ("data-ta",a.taPrefix+"additionalDescriptorLabel")("id",a.taPrefix+"additionalDescriptorLabel"),t.R7$(),t.JRh(t.bMT(3,4,"additionalDescriptor_"+e)),t.R7$(3),t.Y8G("ngForOf",a.additionalDescriptorData[e])}}function Kg(i,n){if(1&i&&(t.qex(0),t.DNE(1,Wg,6,6,"div",17),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(2);t.R7$(),t.Y8G("ngIf",(null==a.additionalDescriptorData[e]?null:a.additionalDescriptorData[e].length)>0)}}function Zg(i,n){if(1&i&&(t.qex(0),t.DNE(1,Kg,2,1,"ng-container",31),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.allowedDescriptorTypes)}}function tf(i,n){if(1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.BMQ("data-ta",e.taPrefix+"geospatial-table-heading-"+e.geospatialAdditionalDescriptorColumns[0])("id",e.taPrefix+"geospatial-table-heading-"+e.geospatialAdditionalDescriptorColumns[0]),t.R7$(2),t.JRh(t.bMT(3,3,"geospatial_tableHeader_"+e.geospatialAdditionalDescriptorColumns[0]))}}function ef(i,n){if(1&i&&(t.j41(0,"td",84),t.nrm(1,"span",85),t.k0s()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(1,Ao,a.record.ut,a.qid,e.DescriptorTerm))}}function nf(i,n){if(1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"geospatial-table-heading-"+e.geospatialAdditionalDescriptorColumns[1])("id",e.taPrefix+"geospatial-table-heading-"+e.geospatialAdditionalDescriptorColumns[1]),t.R7$(),t.JRh(t.bMT(3,3,"geospatial_tableHeader_"+e.geospatialAdditionalDescriptorColumns[1]))}}function af(i,n){if(1&i&&t.nrm(0,"span",85),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,Ao,a.record.ut,a.qid,e.Classifier))}}
1function rf(i,n){if(1&i&&(t.j41(0,"td",84),t.DNE(1,af,1,5,"span",86),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.Classifier)}}function of(i,n){1&i&&t.nrm(0,"tr",87)}function sf(i,n){1&i&&t.nrm(0,"tr",88)}function lf(i,n){if(1&i&&(t.j41(0,"section",72)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",74)(5,"table",75)(6,"caption"),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.qex(9,76),t.DNE(10,tf,4,5,"th",77)(11,ef,2,5,"td",78),t.bVm(),t.qex(12,79),t.DNE(13,nf,4,5,"th",77)(14,rf,2,1,"td",78),t.bVm(),t.DNE(15,of,1,0,"tr",80)(16,sf,1,0,"tr",81),t.k0s()()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"geospatialDataLabel")("id",e.taPrefix+"geospatialDataLabel"),t.R7$(),t.JRh(t.bMT(3,7,"geospatialTitle")),t.R7$(3),t.Y8G("dataSource",e.geospatialAdditionalDescriptor),t.R7$(2),t.JRh(t.bMT(8,9,"geospatialDescriptorTable")),t.R7$(8),t.Y8G("matHeaderRowDef",e.geospatialAdditionalDescriptorColumns),t.R7$(),t.Y8G("matRowDefColumns",e.geospatialAdditionalDescriptorColumns)}}function cf(i,n){if(1&i&&(t.j41(0,"div",15),t.DNE(1,lf,17,11,"section",71),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.geospatialAdditionalDescriptor.length>0)}}function df(i,n){if(1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(2);t.BMQ("data-ta",e.taPrefix+"databank-table-heading-databankName")("id",e.taPrefix+"databank-table-heading-databankName"),t.R7$(2),t.JRh(t.bMT(3,3,"dataBank"))}}function uf(i,n){if(1&i&&(t.j41(0,"td",84),t.EFF(1),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(2);t.BMQ("data-ta",r.taPrefix+"databankName-"+a)("id",r.taPrefix+"databankName-"+a),t.R7$(),t.JRh(e.dataBankName)}}function _f(i,n){if(1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(2);t.BMQ("data-ta",e.taPrefix+"databanks-table-heading-accessionNumber")("id",e.taPrefix+"databanks-table-heading-accessionNumber"),t.R7$(2),t.JRh(t.bMT(3,3,"accessionNumber"))}}function pf(i,n){if(1&i&&(t.j41(0,"td",84),t.EFF(1),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(2);t.BMQ("data-ta",r.taPrefix+"databankAccNumber-"+a)("id",r.taPrefix+"databankAccNumber-"+a),t.R7$(),t.JRh(e.accessionNumber)}}function hf(i,n){1&i&&t.nrm(0,"tr",87)}function mf(i,n){1&i&&t.nrm(0,"tr",88)}function gf(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"section",89)(5,"div",74)(6,"table",75,2)(8,"caption"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.qex(11,90),t.DNE(12,df,4,5,"th",77)(13,uf,2,3,"td",78),t.bVm(),t.qex(14,91),t.DNE(15,_f,4,5,"th",77)(16,pf,2,3,"td",78),t.bVm(),t.DNE(17,hf,1,0,"tr",80)(18,mf,1,0,"tr",81),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"molecularSeqDataLabel")("id",e.taPrefix+"molecularSeqDataLabel"),t.R7$(),t.JRh(t.bMT(3,9,"molecularSeqData")),t.R7$(4),t.Y8G("dataSource",e.flattenedDataBanksList),t.BMQ("data-ta",e.taPrefix+"databank-table")("id",e.taPrefix+"databank-table"),t.R7$(3),t.JRh(t.bMT(10,11,"dataBanksTable")),t.R7$(8),t.Y8G("matHeaderRowDef",e.dataBankColumns),t.R7$(),t.Y8G("matRowDefColumns",e.dataBankColumns)}}function ff(i,n){1&i&&t.nrm(0,"span",49)}function bf(i,n){if(1&i&&(t.qex(0),t.j41(1,"span",50),t.EFF(2),t.k0s(),t.DNE(3,ff,1,0,"span",48),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(2);t.R7$(),t.BMQ("data-ta",o.taPrefix+"geneSymbols-"+a)("id",o.taPrefix+"geneSymbols-"+a),t.R7$(),t.JRh(e.GeneSymbol),t.R7$(),t.Y8G("ngIf",!r)}}function vf(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,bf,4,4,"ng-container",31),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"geneSymbolsLabel")("id",e.taPrefix+"geneSymbolsLabel"),t.R7$(),t.JRh(t.bMT(3,4,"geneSymbols")),t.R7$(3),t.Y8G("ngForOf",e.record.item.GeneSymbolList)}}function xf(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"recordOwnerLabel")("id",e.taPrefix+"recordOwnerLabel"),t.R7$(),t.JRh(t.bMT(3,6,"recordOwner")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"recordOwner")("id",e.taPrefix+"recordOwner"),t.R7$(),t.JRh(e.record.item.Owner)}}function Cf(i,n){1&i&&t.nrm(0,"span",49)}
1function Rf(i,n){if(1&i&&(t.qex(0),t.j41(1,"span",50),t.EFF(2),t.k0s(),t.DNE(3,Cf,1,0,"span",48),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(2);t.R7$(),t.BMQ("data-ta",o.taPrefix+"spaceFlightMission-"+a)("id",o.taPrefix+"spaceFlightMission-"+a),t.R7$(),t.JRh(e),t.R7$(),t.Y8G("ngIf",!r)}}function yf(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,Rf,4,4,"ng-container",31),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"spaceFlightMissionLabel")("id",e.taPrefix+"spaceFlightMissionLabel"),t.R7$(),t.JRh(t.bMT(3,4,"spaceFlightMission")),t.R7$(3),t.Y8G("ngForOf",e.record.item.SpaceFlightMission)}}function Tf(i,n){1&i&&t.nrm(0,"span",49)}function If(i,n){if(1&i&&(t.qex(0),t.j41(1,"span",60),t.EFF(2),t.k0s(),t.DNE(3,Tf,1,0,"span",48),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=n.index,o=t.XpG(2);t.R7$(),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",o.taPrefix+"citationSubset-"+r)("id",o.taPrefix+"citationSubset-"+r),t.R7$(),t.JRh(o.citationSubset[e]),t.R7$(),t.Y8G("ngIf",!a)}}function kf(i,n){if(1&i&&(t.j41(0,"div",29)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span"),t.DNE(5,If,4,5,"ng-container",31),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"citationSubsetLabel")("id",e.taPrefix+"citationSubsetLabel"),t.R7$(),t.SpI(" ",t.bMT(3,4,e.record.item.super_record_MEDLINE?"citationSubsetFromMedline":"citationSubset")," "),t.R7$(3),t.Y8G("ngForOf",e.record.item.CitationSubset)}}function Ff(i,n){1&i&&t.nrm(0,"span",49)}function wf(i,n){if(1&i&&(t.qex(0),t.j41(1,"span",50),t.EFF(2),t.k0s(),t.DNE(3,Ff,1,0,"span",48),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=n.index,o=t.XpG(2);t.R7$(),t.BMQ("data-ta",o.taPrefix+"investigator-"+r)("id",o.taPrefix+"investigator-"+r),t.R7$(),t.JRh(e.display_name),t.R7$(),t.Y8G("ngIf",!a)}}function Mf(i,n){if(1&i&&(t.j41(0,"div",29)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,wf,4,4,"ng-container",31),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"investigatorsLabel")("id",e.taPrefix+"investigatorsLabel"),t.R7$(),t.JRh(t.bMT(3,4,"investigators")),t.R7$(3),t.Y8G("ngForOf",e.record.item.InvestigatorList)}}function Sf(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",92),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"statusLabel")("id",e.taPrefix+"statusLabel"),t.R7$(),t.JRh(t.bMT(3,6,"status")),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(8,km,e.record.ut,e.qid,e.record.item.Status)),t.BMQ("data-ta",e.taPrefix+"status")("id",e.taPrefix+"status")}}function Af(i,n){1&i&&t.eu8(0)}function Ef(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",93),t.DNE(2,Af,1,0,"ng-container",40),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundBCIgeographicData),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function Pf(i,n){1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"term")))}function Gf(i,n){if(1&i&&(t.j41(0,"td",84),t.EFF(1),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(4);t.BMQ("data-ta",r.taPrefix+"geographicTerm-"+a)("id",r.taPrefix+"geographicTerm-"+a),t.R7$(),t.JRh(e.GeographicTerm)}}function Df(i,n){1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"geoPoliticalTerms")))}function $f(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",99),t.nI1(1,"translate"),t.j41(2,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(5);return r.termFoundBCIgeographicData=!0,t.Njj(r.isViewHidden=!1)}),t.k0s()()}if(2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(4);t.Y8G("routerLink",t.eq3(11,Rn,o.record.item.super_record_BCI?"bci":o.record.coll.toLowerCase()))("matTooltip",t.bMT(1,9,"geoPolTermAlt"))("queryParams",o.getGeoDataRouterParams(a.GeopoliticalTerms))("state",t.l_i(13,Pa,o.database!==o.record.coll,o.record.item.super_record_BCI?"bci":o.record.coll.toLowerCase())),t.BMQ("data-ta",o.taPrefix+"geoPol
1iticalTerms-"+r)("id",o.taPrefix+"geoPoliticalTerms-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(16,wi,o.record.ut,o.qid,o.record.item.super_record_BCI?"abstract":"geographic_data",a.GeopoliticalTerms)),t.BMQ("data-ta",o.taPrefix+"geoPoliticalTerms-content-"+r)("id",o.taPrefix+"geoPoliticalTerms-content-"+r)}}function Lf(i,n){if(1&i&&(t.j41(0,"td",84),t.DNE(1,$f,3,21,"a",98),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",void 0!==e.GeopoliticalTerms)}}function Nf(i,n){1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"zooGeographicalRegion")))}function jf(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",101),t.nI1(1,"translate"),t.j41(2,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(5);return r.termFoundBCIgeographicData=!0,t.Njj(r.isViewHidden=!1)}),t.k0s()()}if(2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(4);t.Y8G("routerLink",t.eq3(11,Rn,o.record.item.super_record_BCI?"bci":o.record.coll.toLowerCase()))("matTooltip",t.bMT(1,9,"zooRegionAlt"))("queryParams",o.getGeoDataRouterParams(a.ZoogeographicalRegion))("state",t.l_i(13,Pa,o.database!==o.record.coll,o.record.item.super_record_BCI?"bci":o.record.coll.toLowerCase())),t.BMQ("data-ta",o.taPrefix+"zooGeographicalRegionLink-"+r)("id",o.taPrefix+"zooGeographicalRegionLink-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(16,wi,o.record.ut,o.qid,o.record.item.super_record_BCI?"abstract":"geographic_data",a.ZoogeographicalRegion)),t.BMQ("data-ta",o.taPrefix+"zooGeographicalRegionLink-content-"+r)("id",o.taPrefix+"zooGeographicalRegionLink-content-"+r)}}function Of(i,n){if(1&i&&(t.j41(0,"td",84),t.DNE(1,jf,3,21,"a",100),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",void 0!==e.ZoogeographicalRegion)}}function Bf(i,n){1&i&&t.nrm(0,"tr",87)}function Yf(i,n){1&i&&t.nrm(0,"tr",88)}
1function Xf(i,n){if(1&i&&(t.j41(0,"section",94)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",74)(5,"table",75,4)(7,"caption"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.qex(10,95),t.DNE(11,Pf,4,3,"th",77)(12,Gf,2,3,"td",78),t.bVm(),t.qex(13,96),t.DNE(14,Df,4,3,"th",77)(15,Lf,2,1,"td",78),t.bVm(),t.qex(16,97),t.DNE(17,Nf,4,3,"th",77)(18,Of,2,1,"td",78),t.bVm(),t.DNE(19,Bf,1,0,"tr",80)(20,Yf,1,0,"tr",81),t.k0s()()()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(14,Fi,e.record.item.super_record_BCI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"geographicDataLabel")("id",e.taPrefix+"geographicDataLabel"),t.R7$(),t.JRh(t.bMT(3,10,"geographicData")),t.R7$(3),t.Y8G("dataSource",e.record.item.Index.GeographicData.GeographicList),t.BMQ("data-ta",e.taPrefix+"geographicData-table")("id",e.taPrefix+"geographicData-table"),t.R7$(3),t.JRh(t.bMT(9,12,"geoGraphicTable")),t.R7$(11),t.Y8G("matHeaderRowDef",e.geoGraphicColumns),t.R7$(),t.Y8G("matRowDefColumns",e.geoGraphicColumns)}}function qf(i,n){if(1&i&&(t.qex(0),t.DNE(1,Ef,3,3,"div",38)(2,Xf,21,16,"ng-template",null,3,t.C5r),t.bVm()),2&i){const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_BCI)("ngIfElse",e)}}function Hf(i,n){1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"term")))}
1function Vf(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",106),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,ti,r.record.ut,r.qid,e.METerm?e.METerm:"")),t.BMQ("data-ta",r.taPrefix+"methodsEquipDataTerm-"+a)("id",r.taPrefix+"methodsEquipDataTerm-"+a)}}function zf(i,n){1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"variant")))}function Qf(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",106),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,ti,r.record.ut,r.qid,e.MEVariant?e.MEVariant[0].MEVariant:"")),t.BMQ("data-ta",r.taPrefix+"methodsEquipDataVariant-"+a)("id",r.taPrefix+"methodsEquipDataVariant-"+a)}}function Uf(i,n){1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"details")))}function Jf(i,n){if(1&i){const e=t.RV6();t.j41(0,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,ti,a.record.ut,a.qid,e.Equipment?e.Equipment:""))}}function Wf(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,"\xa0"),t.k0s())}function Kf(i,n){if(1&i){const e=t.RV6();t.j41(0,"span"),t.DNE(1,Wf,2,0,"span",21),t.EFF(2," ["),t.j41(3,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.isViewHidden=!1)}),t.k0s(),t.EFF(4,"] "),t.k0s()}if(2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngIf",e.Equipment),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(2,ti,a.record.ut,a.qid,e.MESupplier?e.MESupplier:""))}}function Zf(i,n){1&i&&t.nrm(0,"span",49)}function t2(i,n){if(1&i){const e=t.RV6();t.j41(0,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,ti,a.record.ut,a.qid,e.MERole?e.MERole:""))}}function e2(i,n){1&i&&t.nrm(0,"span",49)}
1function n2(i,n){if(1&i){const e=t.RV6();t.j41(0,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,ti,a.record.ut,a.qid,e.MEDetail?e.MEDetail:""))}}function i2(i,n){if(1&i&&(t.j41(0,"td",84),t.DNE(1,Jf,1,5,"span",107)(2,Kf,5,6,"span",21)(3,Zf,1,0,"span",48)(4,t2,1,5,"span",107)(5,e2,1,0,"span",48)(6,n2,1,5,"span",107),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.BMQ("data-ta",r.taPrefix+"methodsEquipDataDetails-"+a)("id",r.taPrefix+"methodsEquipDataDetails-"+a),t.R7$(),t.Y8G("ngIf",e.Equipment),t.R7$(),t.Y8G("ngIf",e.MESupplier),t.R7$(),t.Y8G("ngIf",(e.Equipment||e.MESupplier)&&e.MERole),t.R7$(),t.Y8G("ngIf",e.MERole),t.R7$(),t.Y8G("ngIf",(e.Equipment||e.MESupplier||e.MERole)&&e.MEDetail),t.R7$(),t.Y8G("ngIf",e.MEDetail)}}function a2(i,n){1&i&&t.nrm(0,"tr",87)}function r2(i,n){1&i&&t.nrm(0,"tr",88)}function o2(i,n){if(1&i&&(t.qex(0),t.j41(1,"section",72)(2,"h3",73),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",74)(6,"table",75,5)(8,"caption"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.qex(11,102),t.DNE(12,Hf,4,3,"th",77)(13,Vf,1,7,"td",103),t.bVm(),t.qex(14,104),t.DNE(15,zf,4,3,"th",77)(16,Qf,1,7,"td",103),t.bVm(),t.qex(17,105),t.DNE(18,Uf,4,3,"th",77)(19,i2,7,8,"td",78),t.bVm(),t.DNE(20,a2,1,0,"tr",80)(21,r2,1,0,"tr",81),t.k0s()()(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(2),t.BMQ("data-ta",e.taPrefix+"methodsEquipDataLabel")("id",e.taPrefix+"methodsEquipDataLabel"),t.R7$(),t.JRh(t.bMT(4,9,"methodsEquipData")),t.R7$(3),t.Y8G("dataSource",e.record.item.Index.MethodsEquipmentData.MethodsEquipmentList),t.BMQ("data-ta",e.taPrefix+"methodsEquipData-table")("id",e.taPrefix+"methodsEquipData-table"),t.R7$(3),t.JRh(t.bMT(10,11,"methodsEquipmentTable")),t.R7$(11),t.Y8G("matHeaderRowDef",e.methodsEquipmentColumns),t.R7$(),t.Y8G("matRowDefColumns",e.methodsEquipmentColumns)}}
1function s2(i,n){if(1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"parts-struct-table-heading-term")("id",e.taPrefix+"parts-struct-table-heading-term"),t.R7$(),t.JRh(t.bMT(3,3,"term"))}}function l2(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",106),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,Mi,r.record.ut,r.qid,e.PSTerm?e.PSTerm:"")),t.BMQ("data-ta",r.taPrefix+"partsStruct-"+a)("id",r.taPrefix+"partsStruct-"+a)}}function c2(i,n){if(1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"parts-struct-table-heading-variant")("id",e.taPrefix+"parts-struct-table-heading-variant"),t.R7$(),t.JRh(t.bMT(3,3,"variant"))}}function d2(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",106),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,Mi,r.record.ut,r.qid,e.PSVariant?e.PSVariant:"")),t.BMQ("data-ta",r.taPrefix+"partsStructVariant-"+a)("id",r.taPrefix+"partsStructVariant-"+a)}}function u2(i,n){if(1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"parts-struct-table-heading-organSystem")("id",e.taPrefix+"parts-struct-table-heading-organSystem"),t.R7$(),t.JRh(t.bMT(3,3,"organSystems"))}}function _2(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",113),t.nI1(1,"translate"),t.j41(2,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.isViewHidden=!1)}),t.k0s()()}if(2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.Y8G("routerLink",t.eq3(8,Rn,o.database.toLowerCase()))("matTooltip",t.bMT(1,6,"organSystemAlt"))("queryParams",o.getQuickSearchString(a.PSOrganSystem?a.PSOrganSystem:"","PSD")),t.BMQ("data-ta",o.taPrefix+"partsStructLink-"+r)("id",o.taPrefix+"partsStructLink-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(10,Mi,o.record.ut,o.qid,a.PSOrganSystem?a.PSOrganSystem:""))}}function p2(i,n){if(1&i){const e=t.RV6();t.j41(0,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,Mi,a.record.ut,a.qid,e.PSOrganSystem?e.PSOrganSystem:""))}}function h2(i,n){if(1&i&&(t.j41(0,"td",84),t.DNE(1,_2,3,14,"a",112)(2,p2,1,5,"ng-template",null,7,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(3);t.R7$(),t.Y8G("ngIf",a.buildSiloOneClickLink)("ngIfElse",e)}}function m2(i,n){if(1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"parts-struct-table-heading-details")("id",e.taPrefix+"parts-struct-table-heading-details"),t.R7$(),t.JRh(t.bMT(3,3,"details"))}}function g2(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",106),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,Mi,r.record.ut,r.qid,e.PSDetail?e.PSDetail:"")),t.BMQ("data-ta",r.taPrefix+"partsStructDetails-"+a)("id",r.taPrefix+"partsStructDetails-"+a)}}function f2(i,n){1&i&&t.nrm(0,"tr",87)}function b2(i,n){1&i&&t.nrm(0,"tr",88)}function v2(i,n){if(1&i&&(t.qex(0),t.j41(1,"section",72)(2,"h3",73),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",74)(6,"table",75,6)(8,"caption"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.qex(11,108),t.DNE(12,s2,4,5,"th",77)(13,l2,1,7,"td",103),t.bVm(),t.qex(14,109),t.DNE(15,c2,4,5,"th",77)(16,d2,1,7,"td",103),t.bVm(),t.qex(17,110),t.DNE(18,u2,4,5,"th",77)(19,h2,4,2,"td",78),t.bVm(),t.qex(20,111),t.DNE(21,m2,4,5,"th",77)(22,g2,1,7,"td",103),t.bVm(),t.DNE(23,f2,1,0,"tr",80)(24,b2,1,0,"tr",81),t.k0s()()(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(2),t.BMQ("data-ta",e.taPrefix+"partsStructDataLabel")("id",e.taPrefix+"partsStructDataLabel"),t.R7$(),t.JRh(t.bMT(4,9,"partsStructData")),t.R7$(3),t.Y8G("dataSource",e.record.item.Index.PartsStructuresData.PartsStructuresList),t.BMQ("data-ta",e.taPrefix+"partsStructData-table")("id",e.taPrefix+"partsStructData-table"),t.R7$(3),t.JRh(t.bMT(10,11,"partsStructuresTable")),t.R7$(14),t.Y8G("matHeaderRowDef",e.partsColumns),t.R7$(),t.Y8G("matRowDefColumns",e.partsColumns)}}function x2(i,n){1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"accessionNumber")))}
1function C2(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",106),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,Eo,r.record.ut,r.qid,e.SequenceAccessionNumber?e.SequenceAccessionNumber:"")),t.BMQ("data-ta",r.taPrefix+"seqDataAccessionNumber-"+a)("id",r.taPrefix+"seqDataAccessionNumber-"+a)}}function R2(i,n){1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"dataBank")))}function y2(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",106),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,Eo,r.record.ut,r.qid,e.SequenceDataBank?e.SequenceDataBank:"")),t.BMQ("data-ta",r.taPrefix+"seqData-dataBank-"+a)("id",r.taPrefix+"seqData-dataBank-"+a)}}function T2(i,n){1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"detail")))}function I2(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",106),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,Eo,r.record.ut,r.qid,e.SequenceDetail?e.SequenceDetail:"")),t.BMQ("data-ta",r.taPrefix+"seqData-details-"+a)("id",r.taPrefix+"seqData-details-"+a)}}function k2(i,n){1&i&&t.nrm(0,"tr",87)}function F2(i,n){1&i&&t.nrm(0,"tr",88)}
1function w2(i,n){if(1&i&&(t.qex(0),t.j41(1,"section",72)(2,"h3",73),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",74)(6,"table",75,8)(8,"caption"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.qex(11,114),t.DNE(12,x2,4,3,"th",77)(13,C2,1,7,"td",103),t.bVm(),t.qex(14,115),t.DNE(15,R2,4,3,"th",77)(16,y2,1,7,"td",103),t.bVm(),t.qex(17,116),t.DNE(18,T2,4,3,"th",77)(19,I2,1,7,"td",103),t.bVm(),t.DNE(20,k2,1,0,"tr",80)(21,F2,1,0,"tr",81),t.k0s()()(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(2),t.BMQ("data-ta",e.taPrefix+"seqDataLabel")("id",e.taPrefix+"seqDataLabel"),t.R7$(),t.JRh(t.bMT(4,9,"seqData")),t.R7$(3),t.Y8G("dataSource",e.record.item.Index.SequenceData.SequenceDataList),t.BMQ("data-ta",e.taPrefix+"seqData-table")("id",e.taPrefix+"seqData-table"),t.R7$(3),t.JRh(t.bMT(10,11,"sequenceDataTable")),t.R7$(11),t.Y8G("matHeaderRowDef",e.sequenceColumns),t.R7$(),t.Y8G("matRowDefColumns",e.sequenceColumns)}}function M2(i,n){1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"time")))}function S2(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",106),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.isViewHidden=!1)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,qc,r.record.ut,r.qid,e.GeologicTime?e.GeologicTime:"")),t.BMQ("data-ta",r.taPrefix+"geologicTime-"+a)("id",r.taPrefix+"geologicTime-"+a)}}function A2(i,n){1&i&&(t.j41(0,"th",82)(1,"div",83),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"classifier")))}
1function E2(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.isViewHidden=!1)}),t.k0s(),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(4);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(3,qc,o.record.ut,o.qid,e+(r?"":", "))),t.BMQ("data-ta",o.taPrefix+"geologicTimeClassifier-"+a)("id",o.taPrefix+"geologicTimeClassifier-"+a)}}function P2(i,n){if(1&i&&(t.j41(0,"td",84),t.DNE(1,E2,2,7,"ng-container",31),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngForOf",e.GeologicTimeClassifier)}}function G2(i,n){1&i&&t.nrm(0,"tr",87)}function D2(i,n){1&i&&t.nrm(0,"tr",88)}function $2(i,n){if(1&i&&(t.qex(0),t.j41(1,"section",72)(2,"h3",73),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",74)(6,"table",75,9)(8,"caption"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.qex(11,117),t.DNE(12,M2,4,3,"th",77)(13,S2,1,7,"td",103),t.bVm(),t.qex(14,118),t.DNE(15,A2,4,3,"th",77)(16,P2,2,1,"td",78),t.bVm(),t.DNE(17,G2,1,0,"tr",80)(18,D2,1,0,"tr",81),t.k0s()()(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(2),t.BMQ("data-ta",e.taPrefix+"geologicTimeDataLabel")("id",e.taPrefix+"geologicTimeDataLabel"),t.R7$(),t.JRh(t.bMT(4,9,"geologicTimeData")),t.R7$(3),t.Y8G("dataSource",e.record.item.Index.GeologicTimeData.GeologicTimeList),t.BMQ("data-ta",e.taPrefix+"geologicTime-table")("id",e.taPrefix+"geologicTime-table"),t.R7$(3),t.JRh(t.bMT(10,11,"geologicTimeTable")),t.R7$(8),t.Y8G("matHeaderRowDef",e.geoLogicTimeColumns),t.R7$(),t.Y8G("matRowDefColumns",e.geoLogicTimeColumns)}}
1function L2(i,n){if(1&i&&(t.qex(0),t.DNE(1,qf,4,2,"ng-container",21)(2,o2,22,13,"ng-container",21)(3,v2,25,13,"ng-container",21)(4,w2,22,13,"ng-container",21)(5,$2,19,13,"ng-container",21),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",(null==e.record.item.Index.GeographicData||null==e.record.item.Index.GeographicData.GeographicList?null:e.record.item.Index.GeographicData.GeographicList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item.Index.MethodsEquipmentData||null==e.record.item.Index.MethodsEquipmentData.MethodsEquipmentList?null:e.record.item.Index.MethodsEquipmentData.MethodsEquipmentList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item.Index.PartsStructuresData||null==e.record.item.Index.PartsStructuresData.PartsStructuresList?null:e.record.item.Index.PartsStructuresData.PartsStructuresList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item.Index.SequenceData?null:e.record.item.Index.SequenceData.SequenceDataList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item.Index.GeologicTimeData||null==e.record.item.Index.GeologicTimeData.GeologicTimeList?null:e.record.item.Index.GeologicTimeData.GeologicTimeList.length)>0)}}function N2(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,"..."),t.k0s())}function j2(i,n){1&i&&t.nrm(0,"span",44)}function O2(i,n){if(1&i&&(t.qex(0),t.j41(1,"a",120),t.nrm(2,"span",85),t.k0s(),t.DNE(3,N2,2,0,"span",21)(4,j2,1,0,"span",43),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(2);t.R7$(),t.FS9("href",e,t.B4B),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(6,Fm,o.record.ut,o.qid,o.getShortenURL(e))),t.BMQ("data-ta",o.taPrefix+"otherItemUrl-"+a)("id",o.taPrefix+"otherItemUrl-"+a),t.R7$(),t.Y8G("ngIf",e.length>80),t.R7$(),t.Y8G("ngIf",!r)}}function B2(i,n){if(1&i&&(t.j41(0,"div",119)(1,"span",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,O2,5,10,"ng-container",31),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"otherItemUrlLabel")("id",e.taPrefix+"otherItemUrlLabel"),t.R7$(),t.JRh(t.bMT(3,4,"URL")),t.R7$(3),t.Y8G("ngForOf",e.otherItemUrlList)}}function Y2(i,n){if(1&i&&(t.j41(0,"a",123),t.nI1(1,"translate"),t.nrm(2,"span",85),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2);t.FS9("cdxAnalyticsCategory",o.record.coll.toLowerCase()+"-geographical-location"),t.Y8G("routerLink",t.eq3(9,Rn,o.database.toLowerCase()))("matTooltip",t.bMT(1,7,"geographicLocationAlt"))("queryParams",o.getQuickSearchString(a,"DE")),t.BMQ("data-ta",o.taPrefix+"geographicLocation-"+r)("id",o.taPrefix+"geographicLocation-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(11,Hc,o.record.ut,o.qid,a))}}function X2(i,n){if(1&i&&t.nrm(0,"span",85),2&i){const e=t.XpG().$implicit,a=t.XpG(2);t.Y8G("wosSearchHighlight",t.sMw(1,Hc,a.record.ut,a.qid,e))}}function q2(i,n){1&i&&t.nrm(0,"span",44)}function H2(i,n){if(1&i&&(t.qex(0),t.j41(1,"span"),t.DNE(2,Y2,3,15,"a",122)(3,X2,1,5,"ng-template",null,10,t.C5r),t.k0s(),t.DNE(5,q2,1,0,"span",43),t.bVm()),2&i){const e=n.last,a=t.sdS(4),r=t.XpG(2);t.R7$(2),t.Y8G("ngIf",r.buildSiloOneClickLink)("ngIfElse",a),t.R7$(3),t.Y8G("ngIf",!e)}}function V2(i,n){if(1&i&&(t.j41(0,"div",18)(1,"span",121),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,H2,6,3,"ng-container",31),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"geographicLocationLabel")("id",e.taPrefix+"geographicLocationLabel"),t.R7$(),t.JRh(t.bMT(3,4,"GeoLocation")),t.R7$(3),t.Y8G("ngForOf",e.geographicLocationList)}}function z2(i,n){1&i&&t.eu8(0)}function Q2(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",124),t.DNE(2,z2,1,0,"ng-container",40),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG();t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundCABIidentifiers),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function U2(i,n){1&i&&t.nrm(0,"span",44)}function J2(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"span",52),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return r.termFoundCABIidentifiers=!0,t.Njj(r.isViewHidden=!1)}),t.k0s(),t.DNE(2,U2,1,0,"span",43),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(3);t.R7$(),t.Y8G("wosSearchHighlight",t.ziG(4,wi,o.record.ut,o.qid,o.record.item.super_record_CABI?"abstract":"identifiers",e)),t.BMQ("data-ta",o.taPrefix+"identifiers-"+a)("id",o.taPrefix+"identifiers-"+a),t.R7$(),t.Y8G("ngIf",!r)}}
1function W2(i,n){if(1&i&&(t.j41(0,"section",41)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,J2,3,9,"ng-container",31),t.k0s()()),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(7,Fi,e.record.item.super_record_CABI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"identifierLabel")("id",e.taPrefix+"identifierLabel"),t.R7$(),t.JRh(t.bMT(3,5,"ID_search_field_name")),t.R7$(3),t.Y8G("ngForOf",e.identifiersList)}}function K2(i,n){if(1&i&&(t.j41(0,"div",15),t.DNE(1,Q2,3,3,"div",38)(2,W2,6,9,"ng-template",null,11,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG();t.R7$(),t.Y8G("ngIf",null==a.record.item?null:a.record.item.super_record_CABI)("ngIfElse",e)}}function Z2(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"priceLabel")("id",e.taPrefix+"priceLabel"),t.R7$(),t.JRh(t.bMT(3,6,"price")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"price")("id",e.taPrefix+"price"),t.R7$(),t.JRh(e.record.item.pr)}}function t4(i,n){1&i&&t.eu8(0)}function e4(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",125),t.DNE(2,t4,1,0,"ng-container",40),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG();t.R7$(),t.Y8G("record",a.record),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function n4(i,n){1&i&&t.nrm(0,"span",44)}function i4(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",85),t.DNE(2,n4,1,0,"span",43),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(3);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(4,Xc,o.record.ut,o.qid,e)),t.BMQ("data-ta",o.taPrefix+"edition-"+a)("id",o.taPrefix+"edition-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function a4(i,n){if(1&i&&(t.j41(0,"section",41)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,i4,3,8,"ng-container",31),t.k0s()()),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(7,Fi,e.record.item.super_record_CABI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"editionLabel")("id",e.taPrefix+"editionLabel"),t.R7$(),t.JRh(t.bMT(3,5,"Products")),t.R7$(3),t.Y8G("ngForOf",e.editionList)}}function r4(i,n){if(1&i&&(t.j41(0,"div",15),t.DNE(1,e4,3,2,"div",38)(2,a4,6,9,"ng-template",null,12,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG();t.R7$(),t.Y8G("ngIf",null==a.record.item?null:a.record.item.super_record_CABI)("ngIfElse",e)}}function o4(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.nI1(6,"encode"),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"supplementaryInformationLabel")("id",e.taPrefix+"supplementaryInformationLabel"),t.R7$(),t.JRh(t.bMT(3,6,"supplementary_information")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"supplementaryInformation")("id",e.taPrefix+"supplementaryInformation"),t.R7$(),t.JRh(t.bMT(6,8,e.record.item.ms))}}function s4(i,n){1&i&&t.eu8(0)}function l4(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",126),t.DNE(2,s4,1,0,"ng-container",40),t.k0s()()),2&i){t.XpG();const e=t.sdS(4),a=t.XpG();t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundINSPECtreatment),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function c4(i,n){1&i&&t.nrm(0,"span",49)}function d4(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"span",42),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return r.termFoundINSPECtreatment=!0,t.Njj(r.isViewHidden=!1)}),t.k0s(),t.DNE(2,c4,1,0,"span",48),t.bVm()}if(2&i){const e=n.$implicit,a=n.last,r=n.index,o=t.XpG(3);t.R7$(),t.Y8G("wosSearchHighlight",t.ziG(4,wi,o.record.ut,o.qid,o.record.item.super_record_INSPEC?"abstract":"treatment",e)),t.BMQ("data-ta",o.taPrefix+"treatment-"+r)("id",o.taPrefix+"treatment-"+r),t.R7$(),t.Y8G("ngIf",!a)}}function u4(i,n){if(1&i&&(t.j41(0,"section",41)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,d4,3,9,"ng-container",31),t.k0s()()),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(7,Fi,e.record.item.super_record_INSPEC)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"treatmentLabel")("id",e.taPrefix+"treatmentLabel"),t.R7$(),t.JRh(t.bMT(3,5,"treatment")),t.R7$(3),t.Y8G("ngForOf",e.record.item.treatment)}}
1function _4(i,n){if(1&i&&(t.j41(0,"div",15),t.qex(1),t.DNE(2,l4,3,3,"div",38),t.bVm(),t.DNE(3,u4,6,9,"ng-template",null,13,t.C5r),t.k0s()),2&i){const e=t.sdS(4),a=t.XpG();t.R7$(2),t.Y8G("ngIf",a.record.item.super_record_INSPEC)("ngIfElse",e)}}function p4(i,n){if(1&i){const e=t.RV6();t.j41(0,"div")(1,"app-full-record-authors",127),t.nI1(2,"languagesPipe"),t.bIt("openAddresses",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.openAddressView())}),t.k0s()()}if(2&i){const e=t.XpG();t.R7$(),t.Y8G("database",e.database)("qid",e.qid)("ut",e.record.ut)("types",t.lJ4(10,wm))("langs",t.brH(2,6,e.record.names,!0,e.database))("authors",e.record.names)}}function h4(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"repnoLabel")("id",e.taPrefix+"repnoLabel"),t.R7$(),t.JRh(t.bMT(3,6,"repno")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"repno")("id",e.taPrefix+"repno"),t.R7$(),t.JRh(null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.rptg?null:e.record.item.bibliog.rptg.repno)}}function m4(i,n){if(1&i&&(t.j41(0,"span",50),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.BMQ("data-ta",e.taPrefix+"uscccc")("id",e.taPrefix+"uscccc"),t.R7$(),t.JRh(null==e.record||null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.jrefg||null==e.record.item.bibliog.jrefg.jrog?null:e.record.item.bibliog.jrefg.jrog.cccc)}}function g4(i,n){if(1&i&&(t.j41(0,"span",50),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.BMQ("data-ta",e.taPrefix+"uscccc")("id",e.taPrefix+"uscccc"),t.R7$(),t.JRh(null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.bookg||null==e.record.item.bibliog.bookg.pug?null:e.record.item.bibliog.bookg.pug.cccc)}}function f4(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,m4,2,3,"span",54)(6,g4,2,3,"span",54),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"usccccLabel")("id",e.taPrefix+"uscccLabel"),t.R7$(),t.JRh(t.bMT(3,5,"uscccc")),t.R7$(3),t.Y8G("ngIf",null==e.record||null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.jrefg||null==e.record.item.bibliog.jrefg.jrog?null:e.record.item.bibliog.jrefg.jrog.cccc),t.R7$(),t.Y8G("ngIf",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.bookg||null==e.record.item.bibliog.bookg.pug?null:e.record.item.bibliog.bookg.pug.cccc)}}function b4(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",60),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"documentNumberLabel")("id",e.taPrefix+"documentNumberLabel"),t.R7$(),t.JRh(t.bMT(3,7,"documentNumber")),t.R7$(2),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",e.taPrefix+"documentNumber")("id",e.taPrefix+"documentNumber"),t.R7$(),t.JRh(null==e.record||null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.jrefg||null==e.record.item.bibliog.jrefg.jrog?null:e.record.item.bibliog.jrefg.jrog.docnum)}}function v4(i,n){1&i&&t.nrm(0,"span",49)}
1function x4(i,n){if(1&i&&(t.qex(0),t.j41(1,"span",50),t.EFF(2),t.k0s(),t.DNE(3,v4,1,0,"span",48),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=n.index,o=t.XpG(2);t.R7$(),t.BMQ("data-ta",o.taPrefix+"numericalindex-"+r)("id",o.taPrefix+"numericalindex-"+r),t.R7$(),t.JRh(e),t.R7$(),t.Y8G("ngIf",!a)}}function C4(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,x4,4,4,"ng-container",31),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"numericalindexLabel")("id",e.taPrefix+"numericalindexLabel"),t.R7$(),t.JRh(t.bMT(3,4,"numericalDataIndexing")),t.R7$(3),t.Y8G("ngForOf",null==e.record||null==e.record.item?null:e.record.item.numericalindex)}}function R4(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"siciNumberLabel")("id",e.taPrefix+"siciLabel"),t.R7$(),t.JRh(t.bMT(3,6,"sici")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"sici")("id",e.taPrefix+"sici"),t.R7$(),t.JRh(null==e.record||null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.jrefg||null==e.record.item.bibliog.jrefg.jrog?null:e.record.item.bibliog.jrefg.jrog.sici)}}function y4(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"uniqueIdentifierLabel")("id",e.taPrefix+"uniqueIdentifierLabel"),t.R7$(),t.JRh(t.bMT(3,6,"uniqueIdentifier")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"uniqueIdentifier")("id",e.taPrefix+"uniqueIdentifier"),t.R7$(),t.JRh(null==e.record?null:e.record.uniqueIdentifier)}}function T4(i,n){1&i&&t.nrm(0,"span",49)}
1function I4(i,n){if(1&i&&(t.qex(0),t.j41(1,"span",50),t.EFF(2),t.k0s(),t.DNE(3,T4,1,0,"span",48),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=n.index,o=t.XpG(2);t.R7$(),t.BMQ("data-ta",o.taPrefix+"originalindexing-"+r)("id",o.taPrefix+"originalindexing-"+r),t.R7$(),t.JRh(e),t.R7$(),t.Y8G("ngIf",!a)}}function k4(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,I4,4,4,"ng-container",31),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"originalindexingLabel")("id",e.taPrefix+"originalindexingLabel"),t.R7$(),t.JRh(t.bMT(3,4,"originalIndexing")),t.R7$(3),t.Y8G("ngForOf",null==e.record||null==e.record.item?null:e.record.item.originalindexing)}}function F4(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",50),t.nrm(2,"img",128),t.j41(3,"div"),t.EFF(4),t.k0s()(),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(2);t.R7$(2),t.Y8G("src","/wos/static/images/INSPEC/"+e.loc,t.B4B)("alt",e.caption+" image"),t.BMQ("data-ta",r.taPrefix+"images-"+a)("id",r.taPrefix+"images-"+a),t.R7$(2),t.JRh(e.caption)}}function w4(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",30),t.DNE(5,F4,5,5,"ng-container",31),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"imagesLabel")("id",e.taPrefix+"imagesLabel"),t.R7$(),t.JRh(t.bMT(3,4,"images")),t.R7$(3),t.Y8G("ngForOf",null==e.record||null==e.record.item?null:e.record.item.images)}}
1function M4(i,n){if(1&i&&(t.j41(0,"div",18)(1,"h3",34),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",35),t.EFF(5),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"languageOfTextLabel")("id",e.taPrefix+"languageOfTextLabel"),t.R7$(),t.JRh(t.bMT(3,6,"languageOfText")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"languageOfText")("id",e.taPrefix+"languageOfText"),t.R7$(),t.JRh(null==e.record||null==e.record.item?null:e.record.item.Language)}}function S4(i,n){1&i&&(t.j41(0,"mat-icon",129),t.EFF(1,"add"),t.k0s())}function A4(i,n){1&i&&(t.j41(0,"mat-icon",129),t.EFF(1,"remove"),t.k0s())}let E4=(()=>{class i extends Be.${constructor(e,a,r,o,s){super(s),this.config=e,this.store=a,this.router=r,this.route=o,this.change=s,this.taPrefix="HiddenSecTa-",this.isViewHidden=!0,this.citationSubset=this.config.getSettings().app.fullRecord.MEDLINE.citationSubset,this.nonJournalCardCollections=this.config.getSettings().app.fullRecord.nonJournalCardCollections,this.flattenedDataBanksList=[],this.dataBankColumnsDefault=["dataBankName","accessionNumber"],this.dataBankColumns=this.dataBankColumnsDefault,this.geoGraphicColumnsDefault=["GeographicTerm","GeopoliticalTerms","ZoogeographicalRegion"],this.geoGraphicColumns=this.geoGraphicColumnsDefault,this.methodsEquipmentColumnsDefault=["METerm","MEVariant","Details"],this.methodsEquipmentColumns=this.methodsEquipmentColumnsDefault,this.partsColumnsDefault=["PSTerm","PSVariant","PSOrganSystem","PSDetail"],this.partsColumns=this.partsColumnsDefault,this.sequenceColumnsDefault=["SequenceAccessionNumber","SequenceDataBank","SequenceDetail"],this.sequenceColumns=this.sequenceColumnsDefault,this.geoLogicTimeColumnsDefault=["GeologicTime","GeologicTimeClassifier"],this.allowedDescriptorTypes=["Gene Name","Method","Demographics","Miscellaneous","Time"],this.geoLogicTimeColumns=this.geoLogicTimeColumnsDefault,this.geographicLocationList=[],this.otherItemUrlList=[],this.identifiersList=[],this.editionList=[],this.pubMedIDAttributionCollections=[],this.geospatialAdditionalDescriptorColumns=["geospatialDescriptorTerm","geospatialClassifier"],this.geospatialAdditionalDescriptor=[],this.entitledChemicalEdition=[],this.validRefTypes=["CommentOn","CommentIn","ErratumIn","ErratumFor","RepublishedFrom","RepublishedIn","RetractionOf","RetractionIn","UpdateIn","UpdateOf","SummaryForPatientsIn","OriginalReportIn","ReprintIn","ReprintOn"],this.entitledChemicalEdition=this.getEntitledChemicalEdition(),this.pubMedIDAttributionCollections=e.getSettings().app.fullRecord.pubMedIDAttributionCollections}ngOnChanges(e){if(this.geographicLocationList=[],this.identifiersList=[],this.editionList=[],this.geospatialAdditionalDescriptor=[],this.urlExist=!1,e.record&&this.record.item&&this.record.item.DataBankList&&this.constructFlattenedDataBankList(),this.record.address_data&&this.record.address_data.address){const a=[].concat(...this.record.address_data.address);a.length>0&&a[0].address_spec?.url_spec?.url&&(this.otherItemUrlList=this.getOtherItemListUrl(),this.urlExist=!0)}this.advisorNames=this.record.item?.pqdt_contributors?.filter(a=>"advisor"===a.name.role).map(a=>a.name.display_name),this.committeeMemNames=this.record.item?.pqdt_contributors?.filter(a=>"cmtemember"===a.name.role).map(a=>a.name.display_name),this.record.item?.index?.gls?.length>0&&this.getGeoGraphicLocationList(),this.record.item?.index?.ids?.length>0&&this.getIdentifiersList(),this.record.item?.editions?.length>0&&this.getEditionList(),this.record.item?.DescriptorsData?.AdditionalDescriptors?.length>0?(this.geospatialAdditionalDescriptor=this.getGeospatialData(this.record.item.DescriptorsData.AdditionalDescriptors),this.additionalDescriptorData=this.getAdditionalDescriptors(this.record.item.DescriptorsData.AdditionalDescriptors)):this.additionalDescriptorData=void 0,e.doc&&(this.isViewHidden||this.isClusteredChemEdition()&&this.fetchChemRecord())}getGeoGraphicLocationList(){const e=this.record.item.index.gls;for(let a=0;a<e.length;a++)this.geographicLocationList[a]=e[a].gl}getOtherItemListUrl(){const e=[];
1return[].concat(...this.record.address_data.address).forEach(r=>{const o=r.address_spec;o.url_spec&&!e.includes(o.url_spec?.url)&&e.push(o.url_spec.url)}),e}getIdentifiersList(){const e=this.record.item.index.ids;for(let a=0;a<e.length;a++)this.identifiersList[a]=e[a].id}getEditionList(){const e=this.record.item.editions;for(let a=0;a<e.length;a++)"ABSTRACTS"===e[a].edition?this.editionList[a]="CAB Abstracts":"HEALTH"===e[a].edition&&(this.editionList[a]="Global Health")}ngAfterViewChecked(){this.geoGraphicTable&&(this.geoGraphicColumns=this.hideEmptyTableColumns(this.geoGraphicColumnsDefault,this.geoGraphicTable.dataSource)),this.methodsEquipmentTable&&(this.methodsEquipmentColumns=this.hideEmptyTableColumns(this.methodsEquipmentColumnsDefault,this.methodsEquipmentTable.dataSource)),this.partsStructuresTable&&(this.partsColumns=this.hideEmptyTableColumns(this.partsColumnsDefault,this.partsStructuresTable.dataSource)),this.sequenceDataTable&&(this.sequenceColumns=this.hideEmptyTableColumns(this.sequenceColumnsDefault,this.sequenceDataTable.dataSource)),this.geologicTimeTable&&(this.geoLogicTimeColumns=this.hideEmptyTableColumns(this.geoLogicTimeColumnsDefault,this.geologicTimeTable.dataSource))}switchView(){this.isViewHidden=!this.isViewHidden,this.isViewHidden||(this.isClusteredChemEdition()&&this.fetchChemRecord(),document.getElementById(this.taPrefix+"documentInformation").focus())}getIsbnEisbn(e){return"isbn"===e.type||"eisbn"===e.type}getIssn(e){let a;return e&&e.length>0&&(a=e.filter(r=>"issn"===r.type||"series_issn"===r.type)),a}getEissn(e){let a;return e&&e.length>0&&(a=e.filter(r=>"eissn"===r.type)),a}getPubMedId(){let e,a,r;return this.record.identifiers&&(a=this.record.identifiers.filter(o=>"pmid"===o.type)),this.record.clustered_EWUIDs&&(r=this.record.clustered_EWUIDs.filter(o=>"MEDLINE"===o.coll_id)),a?.length>0?e=a[0].value.startsWith("MEDLINE:")?a[0].value.substr(8):a[0].value:r&&r.length>0&&(e=r[0].uid.replace("MEDLINE:","")),e}constructFlattenedDataBankList(){const e=this.record.item.DataBankList;e&&e.forEach(a=>{const r=a.DataBankName,o=a.AccessionNumberList;o&&o.forEach((s,l)=>{this.flattenedDataBanksList.push(0===l?{dataBankName:r,accessionNumber:s}:{dataBankName:"",accessionNumber:s})})})}getRouterParams(e){return{queryJson:JSON.stringify([{rowField:"IS",rowText:e},{rowBoolean:Tn.xZ.search_and,rowField:"DT",rowText:"BOOK CHAPTER"}]),displayJson:JSON.stringify({key:"bookChapters",title:"bookChapters",icon:"book",params:{book:this.record.titles?.item?.en?.[0].title}})}}getGeoDataRouterParams(e){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:"GE",rowText:e}])}}getQuickSearchString(e,a,r){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:a,rowText:e}]),disableEdit:r}}hideEmptyTableColumns(e,a){const r={};e.forEach(s=>{r[s]=a.every(l=>!l[s])});const o=e.filter(s=>!r[s]);return this.methodsEquipmentTable&&e===this.methodsEquipmentColumnsDefault&&this.record.item.Index?.MethodsEquipmentData?.MethodsEquipmentList?.filter(s=>!!(s.Equipment||s.MESupplier||s.MERole||s.MEDetail)).length>0&&o.push("Details"),o}getAdditionalDescriptors(e){const a={};return e.forEach(r=>{this.allowedDescriptorTypes.includes(r.DescriptorType)&&(a[r.DescriptorType]||(a[r.DescriptorType]=[]),a[r.DescriptorType].push(r))}),a}getGeospatialData(e){return e.filter(a=>"Geospatial"===a.DescriptorType)}getShortenURL(e){return e.length>80?e.substring(0,80):e}fetchChemRecord(){const e=this.buildRetrieveForchem();this.store.dispatch(new B.IV.nx({database:this.database,queryId:this.qid,doc:this.doc,sort:"relevance",reFetch:!0,from:this.database,id:{type:"colluid",value:this.record.id.value.substr(4)},retrieve:e}))}buildRetrieveForchem(){return{first:this.doc,sort:this.sort,links:null,coll:"WOS-CHEM",count:1,view:"chem",activity:!1,analyzes:null,jcr:!1,cpdCount:this.entitledChemicalEdition.includes("WOS.IC")?10:0,cpdStart:this.entitledChemicalEdition.includes("WOS.IC")?1:0,rxnCount:this.entitledChemicalEdition.includes("WOS.CCR")?10:0,rxnStart:this.entitledChemicalEdition.includes("WOS.CCR")?1:0}}isClusteredChemEdition(){let e=!1;return this.record.clustered_EWUIDs.forEach(a=>{a.edition.forEach(r=>{this.entitledChemicalEdition.includes(r)&&(e=!0)})}),e}getEntitledChemicalEdition(){let e;this.store.select(B.gR,{database:"WOSCC"}).subscribe(r=>e=r).unsubscribe();const a=[];return e?.collections.forEach(r=>{r.editions.forEach(o=>{this.config.getSettings().app.search.chemicalIndexes.includes(o.name)&&a.push(o.name)})}),a}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Dt.w),t.rXU(Gt.il),t.rXU(ot.Ix),t.rXU(ot.nX),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-hidden-section"]],viewQuery:function(a,r){if(1&a&&(t.GBs(um,5),t.GBs(_m,5),t.GBs(pm,5),t.GBs(hm,5),t.GBs(mm,5),t.GBs(gm,5)),2&a){let o;t.mGM(o=t.lsd())&&(r.dataBanksTable=o.first),t.mGM(o=t.lsd())&&(r.geoGraphicTable=o.first),t.mGM(o=t.lsd())&&(r.methodsEquipmentTable=o.first),t.mGM(o=t.lsd())&&(r.partsStructuresTable=o.first),t.mGM(o=t.lsd())&&(r.sequenceDataTable=o.first),t.mGM(o=t.lsd())&&(r.geologicTimeTable=o.first)}},inputs:{record:"record",qid:"qid",database:"database",sort:"sort",doc:"doc",buildSiloOneClickLink:"buildSiloOneClickLink"},features:[t.Vt3,t.OA$],decls:63,vars:75,consts:[["literatureType",""],["bookChapters",""],["dataBanksTable",""],["geographicData",""],["geoGraphicTable",""],["methodsEquipmentTable",""],["partsStructuresTable",""],["PSOrganSystem",""],["sequenceDataTable",""],["geologicTimeTable",""],["geographicLocationText",""],["cabiIdentifiers",""],["cabiEditions",""],["treatment",""],[1,"full-record-hidden-section"],[1,"hidden-data-item"],["class","cdx-two-column-grid-container",4,"ngIf"],["class","hidden-data-item cdx-two-column-grid-container",4,"ngIf"],[1,"hidden-data-item","cdx-two-column-grid-container"],[1,"label","cdx-grid-label"],[1,"value",3,"termMatched","ngClass","wosSearchHighlight"],[4,"ngIf"],["class","hidden-data-item",4,"ngIf"],["id","fullRecOtherSection",1,"full-record-data-category"],["class","category-content-row wordBreak cdx-two-column-grid-container",4,"ngIf"],[3,"qid","num","padding","chemID"],[1,"show-more-box",3,"ngClass"],["mat-button","","color","primary",1,"flex-align-center-center",3,"click","ngClass"],["
1inline","true","role","img",4,"ngIf"],[1,"cdx-two-column-grid-container"],[1,"cdx-grid-data"],[4,"ngFor","ngForOf"],["dir","auto","class","commaMark",4,"ngIf"],["dir","auto",1,"commaMark"],["dir","auto",1,"label","cdx-grid-label"],[1,"value","cdx-grid-data"],["dir","auto","class","value",4,"ngIf"],["dir","auto",1,"value"],[4,"ngIf","ngIfElse"],["collection","BCI","fieldTitle","literatureType",3,"record","termFoundFlag"],[4,"ngTemplateOutlet"],[1,"cdx-two-column-grid-container",3,"ngClass"],[1,"value",3,"termMatched","wosSearchHighlight"],["dir","auto","class","semiColonMark",4,"ngIf"],["dir","auto",1,"semiColonMark"],["class","small-link-number",3,"routerLink","queryParams",4,"ngIf","ngIfElse"],[1,"small-link-number",3,"routerLink","queryParams"],[3,"ngClass"],["class","semiColonMark",4,"ngIf"],[1,"semiColonMark"],[1,"value"],[1,"small-link-number",3,"routerLink","matTooltip","queryParams","state"],[3,"termMatched","wosSearchHighlight"],[1,"value","cdx-grid-data",3,"termMatched","wosSearchHighlight"],["class","value",4,"ngIf"],[1,"label","cdx-grid-label","header-margin-direction"],["class","value",4,"ngFor","ngForOf"],["rel","noopener","cdxAnalyticsEvent","","cdxAnalyticsAction","Click",1,"value-link","no-underline-link",3,"routerLink","matTooltip","queryParams","ngClass","cdxAnalyticsCategory"],["target","_blank","rel","noopener","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-publisher-url","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"href","matTooltip","ngClass"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-publisher-email-addresses","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"href","matTooltip","ngClass"],[1,"value",3,"ngClass"],["dir","auto",1,"label","cdx-grid-label","header-margin-direction"],["class","full-record-data-category cdx-two-column-grid-container",4,"ngIf"],["class","label cdx-grid-label","dir","auto",4,"ngIf"],["class","value cdx-grid-data",4,"ngIf"],[1,"full-record-data-category","cdx-two-column-grid-container"],[1,"hidden-data-category-title","cdx-grid-label"],[1,"label"],[1,"hidden-data-item","cdx-grid-data"],["dir","auto",1,"label","colonMark"],[1,"value",3,"wosSearchHighlight"],["class","nextGen-Table cdx-two-column-grid-container",4,"ngIf"],[1,"nextGen-Table","cdx-two-column-grid-container"],["dir","auto",1,"table-label","cdx-grid-label"],[1,"cdx-table-wrapper","cdx-table-wrapper-fixed","cdx-grid-data"],["mat-table","",3,"dataSource"],["matColumnDef","geospatialDescriptorTerm"],["mat-header-cell","","scope","col",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","geospatialClassifier"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","scope","col"],[1,"cdx-table-header-cell"],["mat-cell",""],[3,"wosSearchHighlight"],[3,"wosSearchHighlight",4,"ngIf"],["mat-header-row",""],["mat-row",""],[1,"nextGen-Table"],["matColumnDef","dataBankName"],["matColumnDef","accessionNumber"],[1,"value","cdx-grid-data",3,"wosSearchHighlight"],["collection","BCI","fieldTitle","geographicData",3,"record","termFoundFlag"],[1,"nextGen-Table","cdx-two-column-grid-container",3,"ngClass"],["matColumnDef","GeographicTerm"],["matColumnDef","GeopoliticalTerms"],["matColumnDef","ZoogeographicalRegion"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","bci-geoDataItem",3,"routerLink","matTooltip","queryParams","state",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","bci-geoDataItem",3,"routerLink","matTooltip","queryParams","state"],[3,"routerLink","matTooltip","queryParams","state",4,"ngIf"],[3,"routerLink","matTooltip","queryParams","state"],["matColumnDef","METerm"],["mat-cell","",3,"wosSearchHighlight","termMatched",4,"matCellDef"],["matColumnDef","MEVariant"],["matColumnDef","Details"],["mat-cell","",3,"termMatched","wosSearchHighlight"],[3,"wosSearchHighlight","termMatched",4,"ngIf"],["matColumnDef","PSTerm"],["matColumnDef","PSVariant"],["matColumnDef","PSOrganSystem"],["matColumnDef","PSDetail"],[3,"routerLink","matTooltip","queryParams",4,"ngIf","ngIfElse"],[3,"routerLink","matTooltip","queryParams"],["matColumnDef","SequenceAccessionNumber"],["matColumnDef","SequenceDataBank"],["matColumnDef","SequenceDetail"],["matColumnDef","GeologicTime"],["matColumnDef","GeologicTimeClassifier"],[1,"category-content-row","wordBreak","cdx-two-column-grid-container"],["target","_blank","rel","noopener noreferrer",3,"href"],["dir","auto",1,"wrapping-label","cdx-grid-label"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click",3,"routerLink","matTooltip","queryParams","cdxAnalyticsCategory",4,"ngIf","ngIfElse"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click",3,"routerLink","matTooltip","queryParams","cdxAnalyticsCategory"],["collection","CABI","fieldTitle","ID_search_field_name",3,"re
1cord","termFoundFlag"],["collection","CABI","fieldTitle","Products",3,"record"],["collection","INSPEC","fieldTitle","INSPECtreatment",3,"record","termFoundFlag"],[3,"openAddresses","database","qid","ut","types","langs","authors"],["border","0",3,"src","alt"],["inline","true","role","img"]],template:function(a,r){1&a&&(t.j41(0,"div",14)(1,"div")(2,"div",15),t.DNE(3,Am,6,6,"div",16),t.k0s(),t.DNE(4,Em,6,8,"div",17)(5,Pm,6,8,"div",17),t.j41(6,"div",18)(7,"h3",19),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"span",20),t.bIt("termMatched",function(){return r.isViewHidden=!1}),t.k0s()(),t.DNE(11,Dm,7,14,"div",17)(12,Hm,5,4,"ng-container",21),t.j41(13,"div",15),t.DNE(14,ag,6,5,"div",21)(15,sg,6,6,"div",16)(16,dg,6,6,"div",16)(17,ug,5,12,"div",16)(18,pg,8,9,"div",16)(19,hg,6,8,"div",16)(20,mg,6,8,"div",16),t.k0s(),t.DNE(21,Tg,2,1,"div",22)(22,Ig,5,13,"div",17)(23,kg,6,9,"div",17)(24,Fg,6,8,"div",17)(25,Yg,5,4,"ng-container",21),t.k0s(),t.j41(26,"div",23),t.DNE(27,Xg,6,9,"div",17)(28,Qg,7,10,"div",17)(29,Zg,2,1,"ng-container",21)(30,cf,2,1,"div",22)(31,gf,19,13,"div",17)(32,vf,6,6,"div",17)(33,xf,6,8,"div",17)(34,yf,6,6,"div",17)(35,kf,6,6,"div",16)(36,Mf,6,6,"div",16)(37,Sf,5,12,"div",17)(38,L2,6,5,"ng-container",21)(39,B2,6,6,"div",24)(40,V2,6,6,"div",17)(41,K2,4,2,"div",22)(42,Z2,6,8,"div",17)(43,r4,4,2,"div",22)(44,o4,7,10,"div",17)(45,_4,5,2,"div",22)(46,p4,3,11,"div",21)(47,h4,6,8,"div",17)(48,f4,7,7,"div",17)(49,b4,6,9,"div",17)(50,C4,6,6,"div",17)(51,R4,6,8,"div",17)(52,y4,6,8,"div",17)(53,k4,6,6,"div",17)(54,w4,6,6,"div",17),t.k0s(),t.DNE(55,M4,6,8,"div",17),t.nrm(56,"app-patent-chemical-detail",25),t.k0s(),t.j41(57,"div",26)(58,"button",27),t.bIt("click",function(){return r.switchView()}),t.DNE(59,S4,2,0,"mat-icon",28)(60,A4,2,0,"mat-icon",28),t.EFF(61),t.nI1(62,"translate"),t.k0s()()),2&a&&(t.Y8G("@slideUpDown",r.isViewHidden),t.BMQ("aria-hidden",r.isViewHidden),t.R7$(),t.BMQ("id",r.taPrefix+"documentInformation"),t.R7$(2),t.Y8G("ngIf",(null==r.record||null==r.record.languages?null:r.record.languages.length)>0),t.R7$(),t.Y8G("ngIf",null==r.record.pub_info?null:r.record.pub_info.medium),t.R7$(),t.Y8G("ngIf",null==r.record.item?null:r.record.item.Patent_Priority),t.R7$(2),t.BMQ("data-ta",r.taPrefix+"accessionNoLabel")("id",r.taPrefix+"accessionNoLabel"),t.R7$(),t.JRh(t.bMT(9,67,"accessionNumber")),t.R7$(2),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(71,fm,r.record.ut,r.qid,r.record.ut)),t.BMQ("data-ta",r.taPrefix+"accessionNo")("id",r.taPrefix+"accessionNo"),t.R7$(),t.Y8G("ngIf",r.getPubMedId()),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item?null:r.record.item.Bibliographic),t.R7$(2),t.Y8G("ngIf",(null==r.record||null==r.record.identifiers?null:r.record.identifiers.length)>0),t.R7$(),t.Y8G("ngIf",(null==r.advisorNames?null:r.advisorNames.length)>0),t.R7$(),t.Y8G("ngIf",(null==r.committeeMemNames?null:r.committeeMemNames.length)>0),t.R7$(),t.Y8G("ngIf",null==r.record.item||null==r.record.item.scholarly_info?null:r.record.item.scholarly_info.department),t.R7$(),t.Y8G("ngIf",null==r.record.item||null==r.record.item.scholarly_info?null:r.record.item.scholarly_info.degree_name),t.R7$(),t.Y8G("ngIf",null==r.record.item||null==r.record.item.scholarly_info?null:r.record.item.scholarly_info.degree_date),t.R7$(),t.Y8G("ngIf",null==r.record.item||null==r.record.item.copyright?null:r.record.item.copyright.copyright_data),t.R7$(),t.Y8G("ngIf",(null==r.record.publishers?null:r.record.publishers.length)>0&&r.nonJournalCardCollections.includes(r.record.coll)),t.R7$(),t.Y8G("ngIf",r.getIssn(r.record.identifiers)&&r.getIssn(r.record.identifiers).length>0),t.R7$(),t.Y8G("ngIf",r.getEissn(r.record.identifiers)&&r.getEissn(r.record.identifiers).length>0),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.pub_info?null:r.record.pub_info.edate),t.R7$(),t.Y8G("ngIf",null==r.record?null:r.record.item),t.R7$(2),t.Y8G("ngIf",null==r.record||null==r.record.item||null==r.record.item.ids?null:r.record.item.ids.ids),t.R7$(),t.Y8G("ngIf",(null==r.record?null:r.record.names)&&(null==r.record?null:r.record.names.subject)),t.R7$(),t.Y8G("ngIf",!!r.additionalDescriptorData),t.R7$(),t.Y8G("ngIf",(null==r.record||null==r.record.item||null==r.record.item.DescriptorsData||null==r.record.item.DescriptorsData.AdditionalDescriptors?null:r.record.item.DescriptorsData.AdditionalDescriptors.length)>0),t.R7$(),t.Y8G("ngIf",(null==r.flattenedDataBanksList?null:r.flattenedDataBanksList.length)>0),t.R7$(),t.Y8G("ngIf",(null==r.record||null==r.record.item||null==r.record.item.GeneSymbolList?null:r.record.item.GeneSymbolList.length)>0),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item?null:r.record.item.Owner),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item?null:r.record.item.SpaceFlightMission),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item?null:r.record.item.CitationSubset),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item?null:r.record.item.InvestigatorList),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item?null:r.record.item.Status),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item?null:r.record.item.Index),t.R7$(),t.Y8G("ngIf",r.otherItemUrlList.length>0),t.R7$(),t.Y8G("ngIf",r.geographicLocationList.length>0),t.R7$(),t.Y8G("ngIf",r.identifiersList.length>0),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item?null:r.record.item.pr),t.R7$(),t.Y8G("ngIf",r.editionList.length>0),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item?null:r.record.item.ms),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item?null:r.record.item.treatment),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.names?null:r.record.names.issuing_org),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item||null==r.record.item.bibliog||null==r.record.item.bibliog.rptg?null:r.record.item.bibliog.rptg.repno),t.R7$(),t.Y8G("ngIf",(null==r.record||null==r.record.item||null==r.record.item.bibliog||null==r.record.item.bibliog.jrefg||null==r.record.item.bibliog.jrefg.jrog?null:r.record.item.bibliog.jrefg.jrog.cccc)||(null==r.record.item||null==r.record.item.bibliog||null==r.record.item.bibliog.bookg||null==r.record.item.bibliog.bookg.pug?null:r.record.item.bibliog.bookg.pug.cccc)),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item||null==r.record.item.bibliog||null==r.record.item.bibliog.jrefg||null==r.record.item.bibliog.jrefg.jrog?null:r.record.item.bibliog.jrefg.jrog.docnum),t.R7$(),t.Y8G("ngIf",(null==r.record||null==r.record.item||null==r.record.item.numericalindex?null:r.record.item.numericalindex.length)>0),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item||null==r.record.item.bibliog||null==r.record.item.bibliog.jrefg||null==r.record.item.bibliog.jrefg.jrog?null:r.record.item.bibliog.jrefg.jrog.sici),t.R7$(),t.Y8G("ngIf",null==r.record?null:r.record.uniqueIdentifier),t.R7$(),t.Y8G("ngIf",(null==r.record||null==r.record.item||null==r.record.item.originalindexing?null:r.record.item.originalindexing.length)>0),t.R7$(),t.Y8G("ngIf",(null==r.record||null==r.record.item||null==r.record.item.images?null:r.record.item.images.length)>0),t.R7$(),t.Y8G("ngIf",null==r.record||null==r.record.item?null:r.record.item.Language),t.R7$(),t.Y8G("qid",r.qid)("num",r.doc)("padding",0)("chemID",r.record.id.value.substr(4)),t.R7$(),t.Y8G("ngClass","hidden-section-info"),t.R7$(),t.Y8G("ngClass","no-border"),t.BMQ("data-ta",r.taPrefix+"showMoreDataButton")("id",r.taPrefix+"showMoreDataButton"),t.R7$(),t.Y8G("ngIf",r.isViewHidden),t.R7$(),t.Y8G("ngIf",!r.isViewHidden),t.R7$(),t.SpI(" ",t.bMT(62,69,r.isViewHidden?"seeMoreData":"seeLessData")," "))},dependencies:[A.YU,A.Sq,A.bT,A.T3,ot.Wk,ie.w,jt.An,$t.ig,ht.$z,xt.oV,X.Zl,X.tL,X.ji,X.cC,X.YV,X.iL,X.KS,X.$R,X.YZ,X.NB,jc,Ot.P,Ea,Yc,V.D9,Cn.G,So.L],encapsulation:2,data:{animation:[(0,rn.hZ)("slideUpDown",[(0,rn.wk)("false",(0,rn.iF)({overflow:"hidden",height:"*",width:"100%",display:"block"})),(0,rn.wk)("true",(0,rn.iF)({opacity:"0",overflow:"hidden",height:"0px",width:"0px",display:"none"})),(0,rn.kY)("* => false",(0,rn.i0)("400ms ease-in-out")),(0,rn.kY)("* => true",(0,rn.i0)("400ms ease-in-out"))])]}})}}return i})();var P4=S(983);const G4=["infoOverlay"],Si=(i,n,e)=>[i,n,"source",e],D4=i=>({issue:i}),Vc=(i,n,e)=>[i,n,"research_areas",e],zc=(i,n,e)=>[i,n,"wos_categories",e],Qc=(i,n,e)=>[i,n,"publisher",e];
1function $4(i,n){if(1&i&&(t.j41(0,"div",17)(1,"span",18),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",19),t.EFF(5),t.nI1(6,"translate"),t.nI1(7,"translate"),t.nI1(8,"translate"),t.k0s()()),2&i){const e=t.XpG(2).ngIf;t.R7$(2),t.JRh(t.bMT(3,2,"journalStatus")),t.R7$(3),t.JRh((e.DroppedReason||"").toLowerCase().includes("editorial decision")&&t.bMT(6,4,"de_listed_editorial")||(e.DroppedReason||"").toLowerCase().includes("production decision")&&t.bMT(7,6,"de_listed_production")||e.OnHold&&t.bMT(8,8,"journal_on_hold"))}}function L4(i,n){if(1&i&&t.nrm(0,"div",20),2&i){const e=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,Si,e.record.ut,e.qid,e.record.titles.source.en[0].title))}}function N4(i,n){if(1&i&&(t.j41(0,"div",21)(1,"h3",22),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",23),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,3,"ISSN")),t.R7$(2),t.Y8G("ngClass","section-label-data text-color"),t.R7$(),t.JRh(e.issn)}}function j4(i,n){if(1&i&&(t.j41(0,"div",24)(1,"h3",22),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",23),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,3,"EISSN")),t.R7$(2),t.Y8G("ngClass","section-label-data text-color"),t.R7$(),t.JRh(e.eissn)}}function O4(i,n){if(1&i&&t.nrm(0,"span",26),2&i){const e=t.XpG(3).ngIf,a=t.XpG();t.Y8G("wosSearchHighlight",t.sMw(2,Si,a.record.ut,a.qid,e.PublisherAddress)),t.BMQ("data-ta","Y"===(null==a.record.publishers[0]||null==a.record.publishers[0].address_spec?null:a.record.publishers[0].address_spec.isDisputedTerritory)?"disputedTerritoryPublisherAddress":"publisherAddress")}}
1function B4(i,n){if(1&i&&t.nrm(0,"span",26),2&i){const e=t.XpG(3).ngIf,a=t.XpG();t.Y8G("wosSearchHighlight",t.sMw(2,Si,a.record.ut,a.qid,e.PublisherAddress)),t.BMQ("data-ta","publisherAddress")}}function Y4(i,n){if(1&i&&(t.j41(0,"div",24)(1,"h3",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",6),t.nrm(5,"span",26)(6,"span",27),t.DNE(7,O4,1,6,"span",28)(8,B4,1,6,"span",28),t.k0s()()),2&i){const e=t.XpG(2).ngIf,a=t.XpG();t.R7$(2),t.JRh(t.bMT(3,5,"curPublisher")),t.R7$(2),t.Y8G("ngClass","section-label-data text-color"),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(7,Si,a.record.ut,a.qid,e.PublisherName)),t.R7$(2),t.Y8G("ngIf",e.PublisherAddress&&a.record.publishers&&a.record.publishers.length>0),t.R7$(),t.Y8G("ngIf",e.PublisherAddress&&!a.record.publishers)}}function X4(i,n){if(1&i&&(t.j41(0,"div",24)(1,"h3",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"a",29),t.nI1(5,"translate"),t.EFF(6),t.nI1(7,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,6,"toc")),t.R7$(2),t.Y8G("ngClass","section-label-data full-record-detail-section-links")("routerLink","/ccc/browse/table-of-contents/"+e.getSourceTitle())("queryParams",t.eq3(12,D4,e.getIssueID()))("matTooltip",t.bMT(5,8,"cccAlt")),t.R7$(2),t.SpI(" ",t.bMT(7,10,"CCConnect")," ")}}function q4(i,n){if(1&i&&(t.j41(0,"div",24)(1,"h3",30),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"a",31),t.nI1(5,"translate"),t.k0s()),2&i){const e=n.ngIf;t.R7$(2),t.JRh(t.bMT(3,4,"impFactorLabel")),t.R7$(2),t.Y8G("ngClass","section-label-data full-record-detail-section-links")("href",e,t.B4B)("innerHTML",t.bMT(5,6,"jcrReport"),t.npT)}}function H4(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,q4,6,8,"div",13),t.nI1(2,"async"),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngIf",t.bMT(2,1,e.jcrLink$))}}function V4(i,n){1&i&&t.nrm(0,"span",34)}function z4(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",26),t.DNE(2,V4,1,0,"span",33),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=t.XpG(4);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Vc,r.record.ut,r.qid,e.subject)),t.R7$(),t.Y8G("ngIf",!a)}}function Q4(i,n){if(1&i&&(t.j41(0,"div",24)(1,"h3",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",6),t.DNE(5,z4,3,6,"ng-container",32),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,3,"researchAreas")),t.R7$(2),t.Y8G("ngClass","section-label-data text-color"),t.R7$(),t.Y8G("ngForOf",e.record.category_info.subjects.filter(e.getExtendedSubjects))}}function U4(i,n){1&i&&t.nrm(0,"span",34)}function J4(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",26),t.DNE(2,U4,1,0,"span",33),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=t.XpG(4);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,zc,r.record.ut,r.qid,e.subject)),t.R7$(),t.Y8G("ngIf",!a)}}function W4(i,n){if(1&i&&(t.j41(0,"div",24)(1,"h3",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",6),t.DNE(5,J4,3,6,"ng-container",32),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,3,"WOSCategories")),t.R7$(2),t.Y8G("ngClass","section-label-data text-color"),t.R7$(),t.Y8G("ngForOf",e.record.category_info.subjects.filter(e.getTraditionalSubjects))}}function K4(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",35)(1,"button",36),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.openCreateJournalOverlay())}),t.nrm(2,"mat-icon",37),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&i){const e=t.XpG(3);t.R7$(),t.FS9("cdxAnalyticsCategory","wos-CCC-article-journal-card-create-journal-alert"+e.anal
1yticsEventPostfix),t.R7$(2),t.SpI(" ",t.bMT(4,2,"createJournalAlert")," ")}}function Z4(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",44),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.openInfoDialog("impFactor"))}),t.nrm(3,"mat-icon",45),t.k0s()}2&i&&(t.Y8G("matTooltip",t.bMT(1,2,"moreInfoLabel")),t.BMQ("aria-label","More information about "+t.bMT(2,4,"impFactor")))}function tb(i,n){if(1&i&&(t.j41(0,"div",42)(1,"span",6),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,Z4,4,6,"button",43),t.k0s()),2&i){const e=t.XpG(4).ngIf,a=t.XpG();t.R7$(),t.Y8G("ngClass","section-label-data text-color"),t.R7$(),t.Lme("",t.bMT(3,4,"impFactor")," (",e.Year,")"),t.R7$(2),t.Y8G("ngIf",a.showNewInfoButton)}}function eb(i,n){if(1&i){const e=t.RV6();t.j41(0,"div")(1,"div",39)(2,"app-jcr-sidenav",40),t.bIt("navExpanded",function(r){t.eBV(e);const o=t.XpG(4);return t.Njj(o.updateNavStatus(r))}),t.k0s()(),t.DNE(3,tb,5,6,"div",41),t.k0s()}if(2&i){const e=t.XpG(3).ngIf,a=t.XpG();t.R7$(2),t.Y8G("database",a.database)("num",2)("qid",a.qid)("record",a.record)("showIcon",!0)("jciInfo",!1),t.R7$(),t.Y8G("ngIf",e.ImpactFactor)}}function nb(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",44),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(5);return t.Njj(r.openInfoDialog("jciIndicator"))}),t.nrm(3,"mat-icon",47),t.k0s()}2&i&&(t.Y8G("matTooltip",t.bMT(1,2,"moreInfoLabel")),t.BMQ("aria-label","More information about "+t.bMT(2,4,"jciIndicator")))}function ib(i,n){if(1&i){const e=t.RV6();t.j41(0,"div")(1,"div",39)(2,"app-jcr-sidenav",46),t.bIt("navExpanded",function(r){t.eBV(e);const o=t.XpG(4);return t.Njj(o.updateNavStatus(r))}),t.k0s()(),t.j41(3,"div",42)(4,"span",6),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.DNE(7,nb,4,6,"button",43),t.k0s()()}if(2&i){const e=t.XpG(3).ngIf,a=t.XpG();t.R7$(2),t.Y8G("database",a.database)("qid",a.qid)("num",3)("record",a.record)("showIcon",!1)("jciInfo",!0),t.R7$(2),t.Y8G("ngClass","section-label-data text-color"),t.R7$(),t.Lme("",t.bMT(6,10,"jciIndicator")," (",e.Year,")"),t.R7$(2),t.Y8G("ngIf",a.showNewInfoButton)}}function ab(i,n){if(1&i&&(t.j41(0,"div",38),t.DNE(1,eb,4,7,"div",14)(2,ib,8,12,"div",14),t.k0s()),2&i){const e=t.XpG(2).ngIf,a=t.XpG();t.xc7("display","block"),t.R7$(),t.Y8G("ngIf",e.ImpactFactor&&(null==a.record?null:a.record.titles.source)),t.R7$(),t.Y8G("ngIf",e.CitationIndicator&&(null==a.record?null:a.record.titles.source))}}function rb(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",5),t.nI1(1,"translate"),t.j41(2,"h2",6),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"hr",7),t.j41(6,"span",8)(7,"div",9),t.DNE(8,$4,9,10,"div",10),t.nI1(9,"feature"),t.j41(10,"app-jcr-sidenav",11),t.bIt("navExpanded",function(r){t.eBV(e);const o=t.XpG(2);return t.Njj(o.updateNavStatus(r))}),t.k0s(),t.DNE(11,L4,1,5,"ng-template",null,2,t.C5r)(13,N4,6,5,"div",12)(14,j4,6,5,"div",13)(15,Y4,9,11,"div",13)(16,X4,8,14,"div",13)(17,H4,3,3,"div",14)(18,Q4,6,5,"div",13)(19,W4,6,5,"div",13)(20,K4,5,4,"div",15),t.k0s(),t.DNE(21,ab,3,4,"div",16),t.k0s()()}if(2&i){let e;const a=t.XpG().ngIf,r=t.XpG();t.xc7("display","block"),t.Y8G("ngClass","single-division-alignments"),t.BMQ("aria-label",t.bMT(1,27,"jcrDataRegionAriaLabel")),t.R7$(2),t.Y8G("ngClass","section-main-label text-color"),t.R7$(),t.JRh(t.bMT(4,29,"journalInfo")),t.R7$(2),t.Y8G("ngClass","horizental-line-border"),t.R7$(),t.xc7("display","grid"),t.R7$(2),t.Y8G("ngIf",t.bMT(9,31,"nxEnableJournalOnHoldStatus")&&(a.OnHold||a.DroppedReason||a.OnHold)),t.R7$(2),t.Y8G("database",r.database)("num",1)("qid",r.qid)("record",r.record)("showIcon",!1)("SourceTitle",!0)("jciInfo",!1)("largeSize",!0),t.R7$(3),t.Y8G("ngIf",r.issn),t.R7$(),t.Y8G("ngIf",r.eissn),t.R7$(),t.Y8G("ngIf",a.PublisherName),t.R7$(),t.Y8G("ngIf",r.cccLinkEnabled&&r.entitlements.CCC),t.R7$(),t.Y8G("ngIf",a.ImpactFactor),t.R7$(),t.Y8G("ngIf",r.record&&r.record.category_info&&r.record.category_info.subjects),t.R7$(),t.Y8G("ngIf",(null==r.record||null==r.record.category_info||null==r.record.category_info.subjects||null==(e=r.record.category_info.subjects.filter(r.getTraditionalSubjects))?null:e.length)>0),t.R7$(),t.Y8G("ngIf","CCC"===r.record.coll),t.R7$(),t.Y8G("ngIf",!(r.hideJCRCollections.includes(r.database)||r.hideJCRCollections.includes(r.record.coll)))}}
1function ob(i,n){if(1&i&&(t.qex(0),t.DNE(1,rb,22,33,"div",4),t.nI1(2,"feature"),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.record&&!t.bMT(2,1,"nxPresentationControl_FullRecord_Hide_JournalInformationTable"))}}function sb(i,n){if(1&i&&(t.j41(0,"div",53)(1,"h3",22),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",23),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(4);t.Y8G("ngClass","section-main-label"),t.R7$(2),t.JRh(t.bMT(3,4,"ISSN")),t.R7$(2),t.Y8G("ngClass","section-label-data text-color"),t.R7$(),t.JRh(e.issn)}}function lb(i,n){if(1&i&&(t.j41(0,"div",24)(1,"h3",54),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",23),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,3,"EISSN")),t.R7$(2),t.Y8G("ngClass","section-label-data text-color"),t.R7$(),t.JRh(e.eissn)}}function cb(i,n){if(1&i&&(t.j41(0,"div",55)(1,"h3",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",6)(5,"span",56),t.EFF(6),t.k0s(),t.j41(7,"span",57),t.EFF(8),t.k0s()()()),2&i){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,4,"publisher")),t.R7$(2),t.Y8G("ngClass","section-label-data text-color"),t.R7$(2),t.SpI(" ",e.record.item.bibliog.jrefg.jrog.pnm,""),t.R7$(2),t.SpI(" ",e.record.item.bibliog.jrefg.jrog.cntry,"")}}function db(i,n){if(1&i&&t.nrm(0,"span",61),2&i){const e=t.XpG().$implicit,a=t.XpG(6);t.Y8G("wosSearchHighlight",t.sMw(1,Qc,a.record.ut,a.qid,e.display_name))}}function ub(i,n){1&i&&t.nrm(0,"span",62)}function _b(i,n){if(1&i&&(t.j41(0,"span"),t.DNE(1,db,1,5,"span",59)(2,ub,1,0,"span",60),t.k0s()),2&i){const e=n.$implicit,a=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf",e.display_name),t.R7$(),t.Y8G("ngIf",e.display_name&&(null==a.address_spec?null:a.address_spec.full_address))}}function pb(i,n){if(1&i&&t.nrm(0,"span",26),2&i){const e=t.XpG().$implicit,a=t.XpG(5);t.Y8G("wosSearchHighlight",t.sMw(2,Qc,a.record.ut,a.qid,e.address_spec.full_address)),t.BMQ("data-ta","Y"===(null==e.address_spec?null:e.address_spec.isDisputedTerritory)?"disputedTerritoryPublisherAddress":"publisherAddress")}}function hb(i,n){if(1&i&&(t.j41(0,"span",6),t.DNE(1,_b,3,2,"span",32)(2,pb,1,6,"span",28),t.k0s()),2&i){const e=n.$implicit;t.Y8G("ngClass","section-label-data text-color"),t.R7$(),t.Y8G("ngForOf",e.names),t.R7$(),t.Y8G("ngIf",null==e||null==e.address_spec?null:e.address_spec.full_address)}}function mb(i,n){if(1&i&&(t.j41(0,"div",24)(1,"h3",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,hb,3,3,"span",58),t.k0s()),2&i){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,2,"curPublisher")),t.R7$(2),t.Y8G("ngForOf",e.record.publishers)}}function gb(i,n){1&i&&t.nrm(0,"span",65)}function fb(i,n){1&i&&(t.j41(0,"span",57),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.SpI("\xa0(",t.bMT(2,1,"providedByClarivate"),")\xa0"))}function bb(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",26),t.DNE(2,gb,1,0,"span",63)(3,fb,3,3,"span",64),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=t.XpG(5);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(3,Vc,r.record.ut,r.qid,e.subject)),t.R7$(),t.Y8G("ngIf",!a),t.R7$(),t.Y8G("ngIf",r.hostContentCollections.includes(r.record.coll)&&a)}}function vb(i,n){if(1&i&&(t.j41(0,"div",24)(1,"h3",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",6),t.DNE(5,bb,4,7,"ng-container",32),t.k0s()()),2&i){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,3,"researchAreas")),t.R7$(2),t.Y8G("ngClass","section-label-data text-color"),t.R7$(),t.Y8G("ngForOf",e.record.category_info.subjects.filter(e.getExtendedSubjects))}}function xb(i,n){1&i&&t.nrm(0,"span",65)}function Cb(i,n){1&i&&(t.j41(0,"span",57),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.SpI("\xa0(",t.bMT(2,1,"providedByClarivate"),")\xa0"))}function Rb(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",26),t.DNE(2,xb,1,0,"span",63)(3,Cb,3,3,"span",64),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=t.XpG(5);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(3,zc,r.record.ut,r.qid,e.subject)),t.R7$(),t.Y8G("ngIf",!a),t.R7$(),t.Y8G("ngIf",r.hostContentCollections.includes(r.record.coll)&&a)}}function yb(i,n){if(1&i&&(t.j41(0,"div",24)(1,"h3",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",6),t.DNE(5,Rb,4,7,"ng-container",32),t.k0s()()),2&i){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,3,"WOSCategories")),t.R7$(2),t.Y8G("ngClass","section-label-data text-color"),t.R7$(),t.Y8G("ngForOf",e.record.category_info.subjects.filter(e.getTraditionalSubjects))}}
1function Tb(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",35)(1,"button",36),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.openCreateJournalOverlay())}),t.j41(2,"mat-icon",66),t.EFF(3,"notification"),t.k0s(),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}if(2&i){const e=t.XpG(4);t.R7$(),t.FS9("cdxAnalyticsCategory","wos-CCC-article-journal-card-create-journal-alert"+e.analyticsEventPostfix),t.R7$(3),t.SpI(" ",t.bMT(5,2,"createJournalAlert")," ")}}function Ib(i,n){if(1&i&&(t.j41(0,"div",49)(1,"h2",6),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"hr",7),t.j41(5,"span",8)(6,"div"),t.nrm(7,"div",50),t.DNE(8,sb,6,6,"div",51)(9,lb,6,5,"div",13)(10,cb,9,6,"div",52)(11,mb,5,4,"div",13)(12,vb,6,5,"div",13)(13,yb,6,5,"div",13)(14,Tb,6,4,"div",15),t.k0s()()()),2&i){let e;const a=t.XpG(3);t.Y8G("ngClass","single-division-alignments"),t.R7$(),t.Y8G("ngClass","section-main-label text-color"),t.R7$(),t.JRh(t.bMT(3,15,"journalInfo")),t.R7$(2),t.Y8G("ngClass","horizental-line-border"),t.R7$(),t.xc7("display","grid"),t.R7$(2),t.Y8G("ngClass","section-main-label text-color")("wosSearchHighlight",t.sMw(17,Si,a.record.ut,a.qid,a.record.titles.source.en[0].title)),t.R7$(),t.Y8G("ngIf",a.issn),t.R7$(),t.Y8G("ngIf",a.eissn),t.R7$(),t.Y8G("ngIf",null==a.record.item||null==a.record.item.bibliog||null==a.record.item.bibliog.jrefg||null==a.record.item.bibliog.jrefg.jrog?null:a.record.item.bibliog.jrefg.jrog.pnm),t.R7$(),t.Y8G("ngIf",(null==a.record.publishers?null:a.record.publishers.length)>0),t.R7$(),t.Y8G("ngIf",a.record&&a.record.category_info&&a.record.category_info.subjects),t.R7$(),t.Y8G("ngIf",(null==a.record||null==a.record.category_info||null==a.record.category_info.subjects||null==(e=a.record.category_info.subjects.filter(a.getTraditionalSubjects))?null:e.length)>0),t.R7$(),t.Y8G("ngIf","CCC"===a.record.coll)}}function kb(i,n){if(1&i&&(t.qex(0),t.DNE(1,Ib,15,21,"div",48),t.bVm()),2&i){const e=t.XpG(2);
1t.R7$(),t.Y8G("ngIf",e.record&&e.record.titles&&e.record.titles.source&&e.record.titles.source.en&&e.record.titles.source.en.length>0)}}function Fb(i,n){if(1&i&&(t.DNE(0,kb,2,1,"ng-container",14),t.nI1(1,"feature")),2&i){const e=t.XpG();t.Y8G("ngIf",e.record&&e.record.titles&&e.record.titles.source&&e.record.titles.source.en&&e.record.titles.source.en.length>0&&!t.bMT(1,1,"nxPresentationControl_FullRecord_Hide_JournalInformationTable")||e.record&&e.record.category_info&&e.record.category_info.subjects)}}function wb(i,n){if(1&i&&(t.j41(0,"h3",72),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.JRh(t.bMT(2,1,e.titleKey))}}function Mb(i,n){if(1&i&&(t.j41(0,"mat-dialog-actions",73)(1,"a",74),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"button",75),t.EFF(5),t.nI1(6,"translate"),t.k0s()()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("href",e.learnMoreUrl,t.B4B),t.R7$(),t.SpI(" ",t.bMT(3,3,"learnMore")," "),t.R7$(3),t.JRh(t.bMT(6,5,"close"))}}function Sb(i,n){1&i&&(t.j41(0,"mat-dialog-actions",73)(1,"button",75),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"close")))}function Ab(i,n){if(1&i&&(t.j41(0,"div",67)(1,"mat-dialog-content",68),t.DNE(2,wb,3,3,"h3",69),t.nrm(3,"p",70),t.nI1(4,"translate"),t.k0s(),t.DNE(5,Mb,7,7,"mat-dialog-actions",71)(6,Sb,4,3,"mat-dialog-actions",71),t.k0s()),2&i){const e=n.$implicit;t.R7$(2),t.Y8G("ngIf",null==e?null:e.titleKey),t.R7$(),t.Y8G("innerHTML",t.bMT(4,4,e.de
1scriptionKey),t.npT),t.R7$(2),t.Y8G("ngIf",null==e?null:e.hasLearnMore),t.R7$(),t.Y8G("ngIf",!(null!=e&&e.hasLearnMore))}}let Eb=(()=>{class i{constructor(e,a,r,o,s,l,c){this.store=e,this.config=r,this.router=s,this.route=l,this.dialog=c,this.navExpanded=new t.bkB,this.cccLinkEnabled=!1,this.jciInfo=!1,this.hideJCRCollections=this.config.getSettings().app.hideJCRCollections,this.showNewInfoButton=!1,e.select(B.eJ).subscribe(d=>this.sid=d).unsubscribe(),e.select(B.zg).subscribe(d=>this.entitlements=d).unsubscribe(),e.select(B.l1,{prop:"NewInfoButton"}).pipe((0,ge.s)(1)).subscribe(d=>{this.showNewInfoButton=!!d}),this.url=a.location.href,this.translate=o,this.hostContentCollections=r.getSettings().app.fullRecord.hostContentCollections}ngOnChanges(){if(this.jcrLink$=this.store.select(B.kX,{database:this.database,id:this.record.id}).pipe((0,Ft.p)(e=>!!e),(0,nn.T)(e=>K.Y.rewriteUrlForProxy(this.config,e.publisher_url))),this.jcrData$=this.record.jcrKey?this.store.select(B.kT,{sourceAbbrev:this.record.jcrKey}):P4.w,this.record&&this.record.identifiers&&this.record.identifiers.length>0){let e=this.record.identifiers.filter(a=>"issn"===a.type);this.issn=e[0]?.value,e=this.record.identifiers.filter(a=>"eissn"===a.type),this.eissn=e[0]?.value,this.record&&this.record.clustered_EWUIDs&&this.record.clustered_EWUIDs.length>0&&this.record.clustered_EWUIDs.forEach(a=>{"CCC"===a.coll_id&&(this.cccLinkEnabled=!0)})}}getTraditionalSubjects(e){return"traditional"===e.ascatype&&"Not Available"!==e.subject}getExtendedSubjects(e){return"extended"===e.ascatype}openCreateJournalOverlay(){Ii.u.skipScroll=!0,this.router.navigate([{outlets:{overlay:"alert/journal/"+this.record.titles.source.en[0].title}}],{relativeTo:this.route.root,replaceUrl:!0,state:{...history.state,navigationId:void 0},queryParamsHandling:"merge"})}getSourceTitle(){return this.record.titles.source.en[0].title.replace(/-/g," ")}openInfoDialog(e){this.infoOverlayTemplate&&this.dialog.open(this.infoOverlayTemplate,{width:"550px",height:"auto",panelClass:"journal-info-overlay-panel",data:{impFactor:{titleKey:"journalImpFactor",descriptionKey:"impFactor_description",hasLearnMore:!1},jciIndicator:{titleKey:"journalCitationIndicator",descriptionKey:"jciIndicator_description",hasLearnMore:!0,learnMoreUrl:"https://clarivate.com/blog/introducing-the-journal-citation-indicator-a-new-field-normalized-measurement-of-journal-citation-impact/"}}[e]})}getIssueID(){const e=this.record.pub_info;let a=e.pubyear;return e.vol&&(a+=",Vol."+e.vol),e.issue&&(a+=",Iss."+e.issue),e.special_issue&&(a+=",Sp.Iss."),a}updateNavStatus(e){this.navExpanded.emit(e)}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Gt.il),t.rXU(A.qQ),t.rXU(Dt.w),t.rXU(V.c$),t.rXU(ot.Ix),t.rXU(ot.nX),t.rXU(mt.bZ))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-journal-info-card"]],viewQuery:function(a,r){if(1&a&&t.GBs(G4,5),2&a){let o;t.mGM(o=t.lsd())&&(r.infoOverlayTemplate=o.first)}},inputs:{database:"database",qid:"qid",record:"record"},outputs:{navExpanded:"navExpanded"},features:[t.OA$],decls:6,vars:4,consts:[["noJCR",""],["infoOverlay",""],["noLink",""],[4,"ngIf","ngIfElse"],["class","journal-info-section","id","snJournalData","role","region",3,"ngClass","display",4,"ngIf"],["id","snJournalData","role","region",1,"journal-info-section",3,"ngClass"],[3,"ngClass"],[1,"cdx-horizontal-line",3,"ngClass"],[1,"cdx-two-column-grid-journal-container","cdx-grid-gap"],[1,"journal-content"],["class","jcr-sidenav-container margin-bottom-10",4,"ngIf"],[1,"summary-source-title-link",3,"navExpanded","database","num","qid","record","showIcon","SourceTitle","jciInfo","largeSize"],["class","journal-content-row margin-top-5 cdx-two-column-grid-container",4,"ngIf"],["class","journal-content-row cdx-two-column-grid-container",4,"ngIf"],[4,"ngIf"],["class","journal-content-row",4,"ngIf"],["class","journal-flex-col3",3,"display",4,"ngIf"],[1,"jcr-sidenav-container","margin-bottom-10"],[1,"colonMark","font-size-18","cdx-right-panel-sub"],[1,"cdx-right-panel-sub"],[1,"journal-info-source-title",3,"wosSearchHighlight"],[1,"journal-content-row","margin-top-5","cdx-two-column-grid-container"],["translate","",1,"label","cdx-grid-label"],[1,"value",3,"ngClass"],[1,"j
1ournal-content-row","cdx-two-column-grid-container"],["dir","auto",1,"label","cdx-grid-label"],[3,"wosSearchHighlight"],["dir","auto",1,"commaMark"],[3,"wosSearchHighlight",4,"ngIf"],[1,"value",3,"ngClass","routerLink","queryParams","matTooltip"],[1,"label","cdx-grid-label"],["target","_blank",1,"value",3,"ngClass","href","innerHTML"],[4,"ngFor","ngForOf"],["dir","auto","class","semiColonMark",4,"ngIf"],["dir","auto",1,"semiColonMark"],[1,"journal-content-row"],["mat-button","","color","primary","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"margin-top-10","create-cit-alert",3,"click","cdxAnalyticsCategory"],["role","img","svgIcon","bell",1,"svg-icon-16","vertical-align-sub"],[1,"journal-flex-col3"],[1,"flex-justify-end"],[3,"navExpanded","database","num","qid","record","showIcon","jciInfo"],["class","flex-justify-end margin-bottom-15 citation-count",4,"ngIf"],[1,"flex-justify-end","margin-bottom-15","citation-count"],["mat-icon-button","","class","info-icon",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",1,"info-icon",3,"click","matTooltip"],["aria-hidden","false","aria-label","more-info-on-impact-factor","svgIcon","info-circle"],[3,"navExpanded","database","qid","num","record","showIcon","jciInfo"],["aria-hidden","false","aria-label","more-info-on-jci-indicator","svgIcon","info-circle"],["class","journal-info-content","id","snJournalData","role","region","aria-label","Non JCR data",3,"ngClass",4,"ngIf"],["id","snJournalData","role","region","aria-label","Non JCR data",1,"journal-info-content",3,"ngClass"],[3,"ngClass","wosSearchHighlight"],["class","journal-content-row margin-top-5 cdx-two-column-grid-container",3,"ngClass",4,"ngIf"],["class","category-content-row cdx-two-column-grid-container",4,"ngIf"],[1,"journal-content-row","margin-top-5","cdx-two-column-grid-container",3,"ngClass"],["dir","auto","translate","",1,"label","cdx-grid-label"],[1,"category-content-row","cdx-two-column-grid-container"],["dir","auto",1,"value","commaMark"],["dir","auto",1,"value"],[3,"ngClass",4,"ngFor","ngForOf"],["class","value",3,"wosSearchHighlight",4,"ngIf"],["class","commaMark",4,"ngIf"],[1,"value",3,"wosSearchHighlight"],[1,"commaMark"],["dir","auto","class","font-size-16 semiColonMark",4,"ngIf"],["dir","auto","class","value",4,"ngIf"],["dir","auto",1,"font-size-16","semiColonMark"],["inline","true ",1,"font-size-18"],[1,"analyze-info-dialog"],[1,"analyze-info-content"],["class","dialog-title",4,"ngIf"],[3,"innerHTML"],["class","display-inline",4,"ngIf"],[1,"dialog-title"],[1,"display-inline"],["mat-button","","target","_blank","rel","noopener noreferrer",3,"href"],["mat-button","","mat-dialog-close",""]],template:function(a,r){if(1&a&&(t.DNE(0,ob,3,3,"ng-container",3),t.nI1(1,"async"),t.DNE(2,Fb,2,3,"ng-template",null,0,t.C5r)(4,Ab,7,6,"ng-template",null,1,t.C5r)),2&a){const o=t.sdS(3);t.Y8G("ngIf",t.bMT(1,2,r.jcrData$))("ngIfElse",o)}},dependencies:[A.YU,A.Sq,A.bT,ot.Wk,V.Mm,ie.w,jt.An,$t.ig,ht.It,ht.$z,ht.iY,xt.oV,mt.tx,mt.E7,mt.Yi,Wr.r,Ot.P,A.Jj,V.D9,Se.h],encapsulation:2,changeDetection:0})}}return i})();const Po=i=>["/",i,"general-summary"],Ai=(i,n,e)=>[i,n,"keywords",e];function Pb(i,n){if(1&i&&(t.j41(0,"a",11),t.nI1(1,"translate"),t.nrm(2,"span",12),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG().$implicit,s=t.XpG(2);t.ZvI("authorKeywordLink-",o,""),t.Mz_("id","authorKeywordLink",r,""),t.Y8G("routerLink",t.eq3(15,Po,s.database.toLowerCase()))("matTooltip",t.bMT(1,13,"authorKeywordsAlt"))("ngClass","section-label-data full-record-detail-section-links")("queryParams",s.getQuickSearchString(a,s.authorKeywordsCollections.includes(s.database)?"AK":"TS")),t.BMQ("data-ta",s.taPrefix+"authorKeywordLink-"+r)("id",s.taPrefix+"authorKeywordLink-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(17,Ai,s.record.ut,s.qid,a)),t.BMQ("lang",o)}}function Gb(i,n){if(1&i&&(t.j41(0,"span",7)(1,"label"),t.nrm(2,"span",12),t.k0s()()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG().$implicit,s=t.XpG(2);t.R7$(),t.BMQ("id",s.taPrefix+"authorKeywordLink-"+r)("data-ta",s.taPrefix+"authorKeywordLink-"+r),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(4,Ai,s.record.ut,s.qid,a)),t.BMQ("lang",o)}}function Db(i,n){1&i&&t.nrm(0,"span",13)}function $b(i,n){1&i&&(t.j41(0,"span"),t.nrm(1,"br"),t.k0s())}
1function Lb(i,n){if(1&i&&(t.j41(0,"span",7),t.DNE(1,Pb,3,21,"a",8),t.nI1(2,"feature"),t.DNE(3,Gb,3,8,"span",9),t.nI1(4,"feature"),t.DNE(5,Db,1,0,"span",10)(6,$b,2,0,"span",0),t.k0s()),2&i){const e=n.last;t.R7$(),t.Y8G("ngIf",!t.bMT(2,4,"nxPresentationControl_FullRecord_Hide_AuthorKeywords")),t.R7$(2),t.Y8G("ngIf",t.bMT(4,6,"nxPresentationControl_FullRecord_Hide_AuthorKeywords")),t.R7$(2),t.Y8G("ngIf",!e),t.R7$(),t.Y8G("ngIf",e)}}function Nb(i,n){if(1&i&&(t.qex(0),t.j41(1,"h3",5),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,Lb,7,8,"span",6),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(2);t.R7$(),t.BMQ("id",a.taPrefix+"authorKeywordsLabel")("data-ta",a.taPrefix+"authorKeywordsLabel"),t.R7$(),t.JRh(t.bMT(3,4,"authorKeywords")),t.R7$(2),t.Y8G("ngForOf",a.record.keywordslist[e])}}function jb(i,n){if(1&i&&(t.j41(0,"h3",5),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(4);t.BMQ("id",e.taPrefix+"keyWordsPlusLabel")("data-ta",e.taPrefix+"keyWordsPlusLabel"),t.R7$(),t.JRh(t.bMT(2,3,"keyWordsPlus"))}}function Ob(i,n){if(1&i&&(t.j41(0,"span",7)(1,"a",15),t.nI1(2,"translate"),t.nrm(3,"span",16),t.k0s()()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.R7$(),t.Mz_("id","keywordsPlusLink",r,""),t.Y8G("routerLink",t.eq3(11,Po,o.database.toLowerCase()))("matTooltip",t.bMT(2,9,"keyWordsPlusAlt"))("queryParams",o.getQuickSearchString(a,"ALLDB, WOSCC, ARCI, RSCI, KJD, CCC".includes(o.database)?"KP":"TS")),t.BMQ("id",o.taPrefix+"keyWordsPlusLink-"+r)("data-ta",o.taPrefix+"keyWordsPlusLink-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(13,Ai,o.record.ut,o.qid,a))("ngClass","section-label-data full-record-detail-section-links")}}function Bb(i,n){if(1&i&&(t.j41(0,"span",7)(1,"label"),t.nrm(2,"span",12),t.k0s()()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.R7$(),t.BMQ("id",o.taPrefix+"keyWordsPlusLink-"+r)("data-ta",o.taPrefix+"keyWordsPlusLink-"+r),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(3,Ai,o.record.ut,o.qid,a))}}function Yb(i,n){1&i&&t.nrm(0,"span",13)}
1function Xb(i,n){if(1&i&&(t.qex(0),t.DNE(1,jb,3,5,"h3",14)(2,Ob,4,17,"span",9),t.nI1(3,"feature"),t.DNE(4,Bb,3,7,"span",9),t.nI1(5,"feature"),t.DNE(6,Yb,1,0,"span",10),t.bVm()),2&i){const e=n.first,a=n.last;t.R7$(),t.Y8G("ngIf",e),t.R7$(),t.Y8G("ngIf",!t.bMT(3,4,"nxPresentationControl_FullRecord_Hide_AuthorKeywords")),t.R7$(2),t.Y8G("ngIf",t.bMT(5,6,"nxPresentationControl_FullRecord_Hide_AuthorKeywords")),t.R7$(2),t.Y8G("ngIf",!a)}}function qb(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,Xb,7,8,"ng-container",4),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.record.item.keywords_plus)}}function Hb(i,n){if(1&i&&(t.j41(0,"h3",5),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(3);t.BMQ("id",e.taPrefix+"keywordListLabel")("data-ta",e.taPrefix+"keywordListLabel"),t.R7$(),t.JRh(t.bMT(2,3,"keywordList"))}}function Vb(i,n){1&i&&t.nrm(0,"span",13)}function zb(i,n){if(1&i&&(t.qex(0),t.DNE(1,Hb,3,5,"h3",14),t.j41(2,"span",7)(3,"a",17),t.nI1(4,"translate"),t.nrm(5,"span",12),t.k0s()(),t.DNE(6,Vb,1,0,"span",10),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.first,o=n.last,s=t.XpG(2);t.R7$(),t.Y8G("ngIf",r),t.R7$(2),t.Mz_("id","keywordLink",a,""),t.Y8G("routerLink",t.eq3(12,Po,s.database.toLowerCase()))("matTooltip",t.bMT(4,10,"authorKeywordsAlt"))("queryParams",s.getQuickSearchString(e.Keyword,"TS")),t.BMQ("id",s.taPrefix+"keywordLink-"+a)("data-ta",s.taPrefix+"keywordLink-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(14,Ai,s.record.ut,s.qid,e.Keyword)),t.R7$(),t.Y8G("ngIf",!o)}}function Qb(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",1)(2,"h2",2),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",3)(6,"div"),t.DNE(7,Nb,5,6,"ng-container",4),t.nI1(8,"languagesPipe"),t.k0s(),t.DNE(9,qb,2,1,"div",0),t.j41(10,"div"),t.DNE(11,zb,7,18,"ng-container",4),t.k0s()()(),t.bVm()),2&i){const e=t.XpG();t.R7$(2),t.BMQ("id",e.taPrefix+"keyWordsTitle")("data-ta",e.taPrefix+"keyWordsTitle"),t.R7$(),t.JRh(t.bMT(4,6,"keyWords")),t.R7$(4),t.Y8G("ngForOf",t.ii3(8,8,e.record.keywordslist,!0,e.database,e.originalLang)),t.R7$(2),t.Y8G("ngIf",(null==e.record.item||null==e.record.item.keywords_plus?null:e.record.item.keywords_plus.length)>0),t.R7$(2),t.Y8G("ngForOf",null==e.record.item?null:e.record.item.KeywordList)}}let Ub=(()=>{class i{constructor(e){this.config=e,this.taPrefix="FRkeywordsTa-",this.authorKeywordsCollections=this.config.getSettings().app.fullRecord.authorKeywordsCollections}ngOnInit(){}getQuickSearchString(e,a){let r;return r=e.includes('"')?"'"+e+"'":'"'+e+'"',{queryJson:JSON.stringify([{rowBoolean:null,rowField:a,rowText:r}]),eventMode:"oneClickSearch"}}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Dt.w))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-keywords"]],inputs:{record:"record",qid:"qid",ut:"ut",database:"database",originalLang:"originalLang",buildSiloOneClickLink:"buildSiloOneClickLink"},decls:2,vars:3,consts:[[4,"ngIf"],[1,"cdx-two-column-grid-container"],[1,"cdx-grid-label"],[1,"cdx-grid-data"],[4,"ngFor","ngForOf"],["dir","auto",1,"label","colonMark"],["class","value",4,"ngFor","ngForOf"],[1,"value"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-author_keyword_link","cdxAnalyticsAction","click",3,"routerLink","matTooltip","id","ngClass","class","queryParams",4,"ngIf"],["class","value",4,"ngIf"],["dir","auto","class","semiColonMark",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-author_keyword_link","cdxAnalyticsAction","click",3,"routerLink","matTooltip","id","ngClass","queryParams"],[3,"wosSearchHighlight"],["dir","auto",1,"semiColonMark"],["dir","auto","class","label colonMark",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-keywords-plus-link","cdxAnalyticsAction","click",1,"keywordsPlusLink",3,"routerLink","matTooltip","id","queryParams"],[3,"wosSearchHighlight","ngClass"],[1,"keywordLink",3,"routerLink","matTooltip","id","queryParams"]],template:function(a,r){if(1&a&&(t.DNE(0,Qb,12,13,"ng-container",0),t.nI1(1,"keyvalue")),2&a){let o;t.Y8G("ngIf",(null==r.record.item||null==r.record.item.keywords_plus?null:r.record.item.keywords_plus.length)>0||(null==(o=t.bMT(1,1,r.record.keywordslist))?null:o.length)||(null==r.record.item||null==r.record.item.KeywordList?null:r.record.item.KeywordList.length)>0)}},dependencies:[A.YU,A.Sq,A.bT,ot.Wk,ie.w,$t.ig,xt.oV,Ot.P,A.lG,V.D9,Cn.G,Se.h],encapsulation:2})}}return i})();const Uc=(i,n,e)=>[i,n,"author_identifiers",e];
1function Jb(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",16),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.toggleAuthorIdentifiers())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()}if(2&i){const e=t.XpG(2);t.Y8G("matTooltip",t.bMT(1,4,e.expanded?"hideResearchIdOrcidAlt":"viewResearchIdOrcidAlt")),t.BMQ("data-ta",e.taPrefix+"ShowHideBtn")("id",e.taPrefix+"ShowHideBtn"),t.R7$(2),t.SpI(" ",t.bMT(3,6,e.expanded?"hideAuthorIdentifiers":"viewAuthorIdentifiers"),"")}}function Wb(i,n){if(1&i&&(t.j41(0,"th",17)(1,"div",18),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("id",e.taPrefix+"ContribNameTitle")("data-ta",e.taPrefix+"ContribNameTitle"),t.R7$(),t.SpI(" ",t.bMT(3,3,"author")," ")}}function Kb(i,n){if(1&i&&(t.j41(0,"td",19),t.EFF(1),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(2);t.BMQ("id",r.taPrefix+"ContribName-"+a)("data-ta",r.taPrefix+"ContribName-"+a),t.R7$(),t.SpI(" ",e.name.display_name," ")}}function Zb(i,n){if(1&i&&(t.j41(0,"th",20),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(2);t.BMQ("data-ta",e.taPrefix+"ContribRidTitle")("id",e.taPrefix+"ContribRidTitle"),t.R7$(),t.SpI(" ",t.bMT(2,3,"wosResearcherId")," ")}}function t3(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",22),t.nI1(1,"translate"),t.j41(2,"span",23),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.expanded=!0)}),t.k0s(),t.j41(3,"mat-icon",24),t.EFF(4,"open_in_new"),t.k0s()()}if(2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2);t.FS9("href",o.getHref(a.name.r_id),t.B4B),t.FS9("cdxAnalyticsCategory","wos-RIDnumber"+o.analyticsEventPostfix),t.Y8G("ngClass","section-label-data identifiers-link")("matTooltip",t.bMT(1,8,"researcherIDAlt")+" "+a.name.display_name),t.BMQ("data-ta",o.taPrefix+"ContribNameRid-"+r)("id",o.taPrefix+"ContribNameRid-"+r),t.R7$(2),t.Y8G("ngClass","section-label-data identifiers-link")("wosSearchHighlight",t.sMw(10,Uc,o.ut,o.qid,a.name.r_id))}}function e3(i,n){if(1&i&&(t.j41(0,"td",19),t.DNE(1,t3,5,14,"a",21),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.name.r_id)}}function n3(i,n){if(1&i&&(t.j41(0,"th",20),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(2);t.BMQ("data-ta",e.taPrefix+"ContribOrcIdTitle")("id",e.taPrefix+"ContribOrcIdTitle"),t.R7$(),t.SpI(" ",t.bMT(2,3,"orcidNumber")," ")}}function i3(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",26),t.nI1(1,"translate"),t.EFF(2),t.j41(3,"span",27),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.expanded=!0)}),t.k0s(),t.j41(4,"mat-icon",24),t.EFF(5,"open_in_new"),t.k0s()()}if(2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2);t.FS9("href",o.orcidUrl+a.name.orcid_id,t.B4B),t.FS9("cdxAnalyticsCategory","wos-ORCIDnumber"+o.analyticsEventPostfix),t.Y8G("matTooltip",t.bMT(1,8,"contribNameOrcidAlt"))("ngClass","section-label-data full-record-detail-section-links"),t.BMQ("data-ta",o.taPrefix+"ContribNameOrcId-"+r)("id",o.taPrefix+"ContribNameOrcId-"+r),t.R7$(2),t.SpI(" ",o.orcidUrl,""),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(10,Uc,o.ut,o.qid,a.name.orcid_id))}}function a3(i,n){if(1&i&&(t.j41(0,"td",19),t.DNE(1,i3,6,14,"a",25),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.name.orcid_id)}}function r3(i,n){1&i&&t.nrm(0,"tr",28)}function o3(i,n){1&i&&t.nrm(0,"tr",29)}function s3(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,Jb,4,8,"button",1),t.nI1(2,"feature"),t.j41(3,"div",2)(4,"span",3),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"div",4)(8,"section",5)(9,"div",6)(10,"table",7)(11,"caption"),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.qex(14,8),t.DNE(15,Wb,4,5,"th",9)(16,Kb,2,3,"td",10),t.bVm(),t.qex(17,11),t.DNE(18,Zb,3,5,"th",12)(19,e3,2,1,"td",10),t.bVm(),t.qex(20,13),t.DNE(21,n3,3,5,"th",12)(22,a3,2,1,"td",10),t.bVm(),t.DNE(23,r3,1,0,"tr",14)(24,o3,1,0,"tr",15),t.k0s()()()()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",!t.bMT(2,8,"nxPresentationControl_FullRecord_Hide_ResearcherIdAndOrcid")),t.R7$(4),t.SpI("\xa0(",t.bMT(6,10,"providedByClarivate"),")\xa0"),t.R7$(2),t.Y8G("hidden",!e.expanded),t.R7$(3),t.Y8G("dataSource",e.contributors),t.R7$(2),t.JRh(t.bMT(13,12,"authorIdentifiersTable")),t.R7$(11),t.Y8G("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns)}}let l3=(()=>{class i{constructor(e,a){this.config=a,this.taPrefix="AidTa-",this.expanded=!1,this.displayedColumns=["author","researcherId","orcid"],this.orcidUrl=a.getSettings().environment.orcidUrl,this.researcherIdUrl=a.getSettings().environment.researcherIdUrl,e.select(B.eJ).subscribe(r=>this.sid=r).unsubscribe(),this.analyticsEventPostfix=a.getSettings().app.fullRecord.analyticsEventPostfix}getHref(e){return`${this.researcherIdUrl}${e}?SID=${this.sid}`}ngOnChanges(e){}toggleAuthorIdentifiers(){this.expanded=!this.expanded}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Gt.il),t.rXU(Dt.w))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-author-identifiers"]],inputs:{ut:"ut",qid:"qid",contributors:"contributors"},features:[t.OA$],decls:1,vars:1,consts:[[4,"ngIf"],["mat-button","","color","primary",3,"matTooltip","click",4,"ngIf"],[2,"display","inline","font-size","15px"],[1,"value"],[3,"hidden"],[1,"nextGen-Table"],[1,"cdx-table-wrapper","cdx-table-wrapper-fixed"],["mat-table","",1,"override-hidden-table",3,"dataSource"],["matColumnDef","author"],["mat-header-cell","","scope","col",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","researcherId"],["class","cdx-table-header-cell","mat-header-cell","","scope","col",4,"matHeaderCellDef"],["matColumnDef","orcid"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-button","","color","primary",3,"click","matTooltip"],["mat-header-cell","","scope","col"],[1,"cdx-table-header-cell"],["mat-cell",""],["mat-header-cell","","scope","col",1,"cdx-table-header-cell"],["rel","noopener noreferrer","target","_blank","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"ngClass","href","cdxAnalyticsCategory","matTooltip",4,"ngIf"],["rel","noopener noreferrer","target","_blank","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"ngClass","href","cdxAnalyticsCategory","matTooltip"],[3,"termMatched","ngClass","wosSearchHighlight"],["aria-hidden","true"],["rel","noopener noreferrer","target","_blank","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"matTooltip","ngClass","href","cdxAnalyticsCategory",4,"ngIf"],["rel","noopener noreferrer","target","_blank","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"matTooltip","ngClass","href","cdxAnalyticsCategory"],[3,"termMatched","wosSearchHighlight"],["mat-header-row",""],["mat-row",""]],template:function(a,r){1&a&&t.DNE(0,s3,25,14,"div",0),2&a&&t.Y8G("ngIf",r.contributors&&r.contributors.length>0)},dependencies:[A.YU,A.bT,ie.w,jt.An,ht.$z,xt.oV,X.Zl,X.tL,X.ji,X.cC,X.YV,X.iL,X.KS,X.$R,X.YZ,X.NB,Ot.P,V.D9,Se.h],encapsulation:2})}}return i})();const Le=(i,n,e)=>[i,n,"taxonomic_data",e],c3=i=>["/",i,"general-summary"],d3=(i,n)=>({siloSearchWarning:i,collection:n}),u3=(i,n,e,a)=>[i,n,e,a],Jc=i=>({orgList:i});function _3(i,n){1&i&&t.eu8(0)}
1function p3(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",8),t.DNE(2,_3,1,0,"ng-container",9),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG();t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundBCItaxonomicData),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function h3(i,n){if(1&i&&(t.j41(0,"th",18)(1,"div",19),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.BMQ("data-ta",a.taPrefix+"taxonomic-data-table-heading-"+e)("id",a.taPrefix+"taxonomic-data-table-heading-"+e),t.R7$(),t.JRh(t.bMT(3,3,e))}}function m3(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",23),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=t.XpG(5);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(1,Le,r.record.ut,r.qid,e.SuperTaxa+(a?" ":", ")))}}function g3(i,n){if(1&i&&(t.j41(0,"td",22),t.DNE(1,m3,2,5,"ng-container",17),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.BMQ("rowspan",a.getRowSpan(e)),t.R7$(),t.Y8G("ngForOf",e.SuperTaxa)}}function f3(i,n){if(1&i&&(t.j41(0,"td",22),t.nrm(1,"span",23),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.BMQ("rowspan",a.getRowSpan(e)),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Le,a.record.ut,a.qid,e.TaxaNotes?e.TaxaNotes:" "))}}function b3(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",22)(1,"a",24),t.nI1(2,"translate"),t.j41(3,"span",25),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundBCItaxonomicData=!0)}),t.k0s()()()}if(2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.BMQ("rowspan",a.getRowSpan(e)),t.R7$(),t.Y8G("routerLink",t.eq3(8,c3,a.record.item.super_record_BCI?"bci":a.record.coll.toLowerCase()))("matTooltip",t.bMT(2,6,"orgClassifierAlt"))("queryParams",a.getQuickSearchString(e.OrgData.OrgClassifier.OrgClassifier?e.OrgData.OrgClassifier.OrgClassifier:"","TA"))("state",t.l_i(10,d3,a.database!==a.record.coll,a.record.item.super_record_BCI?"bci":a.record.coll.toLowerCase())),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(13,u3,a.record.ut,a.qid,a.record.item.super_record_BCI?"abstract":"taxonomic_data",e.OrgData.OrgClassifier.OrgClassifier?e.OrgData.OrgClassifier.OrgClassifier:" "))}}function v3(i,n){if(1&i&&(t.j41(0,"td"),t.nrm(1,"span",26),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(4);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(1,Le,a.record.ut,a.qid,e.OrganismName.OrganismName?e.OrganismName.OrganismName:""))}}function x3(i,n){1&i&&t.nrm(0,"td")}function C3(i,n){if(1&i&&t.DNE(0,x3,1,0,"td",6),2&i){const e=t.XpG(5);t.Y8G("ngIf",e.showColumn("orgName"))}}function R3(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",26)(2,"br"),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(6);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(1,Le,a.record.ut,a.qid,e.OrganismVariant))}}function y3(i,n){if(1&i&&(t.j41(0,"td"),t.DNE(1,R3,3,5,"ng-container",17),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",e.OrganismSpec.OrgVariantList)}}function T3(i,n){1&i&&t.nrm(0,"td")}function I3(i,n){if(1&i&&t.DNE(0,T3,1,0,"td",6),2&i){const e=t.XpG(5);t.Y8G("ngIf",e.showColumn("variant"))}}function k3(i,n){if(1&i&&(t.j41(0,"td"),t.eu8(1,27),t.k0s()),2&i){const e=t.XpG().$implicit;t.XpG();const a=t.sdS(11);t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(2,J
1c,e))}}function F3(i,n){1&i&&t.nrm(0,"td")}function w3(i,n){if(1&i&&t.DNE(0,F3,1,0,"td",6),2&i){const e=t.XpG(5);t.Y8G("ngIf",e.showColumn("details"))}}function M3(i,n){if(1&i&&(t.qex(0),t.DNE(1,v3,2,5,"td",7)(2,C3,1,1,"ng-template",null,3,t.C5r)(4,y3,2,1,"td",7)(5,I3,1,1,"ng-template",null,4,t.C5r)(7,k3,2,4,"td",7)(8,w3,1,1,"ng-template",null,5,t.C5r),t.bVm()),2&i){const e=n.$implicit,a=t.sdS(3),r=t.sdS(6),o=t.sdS(9);t.R7$(),t.Y8G("ngIf",null==e.OrganismName?null:e.OrganismName.OrganismName)("ngIfElse",a),t.R7$(3),t.Y8G("ngIf",(null==e||null==e.OrganismSpec||null==e.OrganismSpec.OrgVariantList?null:e.OrganismSpec.OrgVariantList.length)>0)("ngIfElse",r),t.R7$(3),t.Y8G("ngIf",null==e?null:e.OrganismSpec)("ngIfElse",o)}}function S3(i,n){if(1&i&&(t.j41(0,"td"),t.nrm(1,"span",23),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(4);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(1,Le,a.record.ut,a.qid,e.OrganismName.OrganismName?e.OrganismName.OrganismName:""))}}function A3(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",26)(2,"br"),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(6);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(1,Le,a.record.ut,a.qid,e.OrganismVariant))}}function E3(i,n){if(1&i&&(t.j41(0,"td"),t.DNE(1,A3,3,5,"ng-container",17),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",e.OrganismSpec.OrgVariantList)}}function P3(i,n){if(1&i&&(t.j41(0,"td"),t.eu8(1,27),t.k0s()),2&i){const e=t.XpG().$implicit;t.XpG();const a=t.sdS(11);t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(2,J
1c,e))}}function G3(i,n){if(1&i&&(t.qex(0),t.j41(1,"tr",28),t.DNE(2,S3,2,5,"td",6)(3,E3,2,1,"td",6)(4,P3,2,4,"td",6),t.k0s(),t.bVm()),2&i){const e=n.$implicit,a=t.XpG().index;t.R7$(),t.Y8G("ngClass",a%2==0?"oddRow":"evenRow"),t.R7$(),t.Y8G("ngIf",e.OrganismName.OrganismName),t.R7$(),t.Y8G("ngIf",(null==e||null==e.OrganismSpec||null==e.OrganismSpec.OrgVariantList?null:e.OrganismSpec.OrgVariantList.length)>0),t.R7$(),t.Y8G("ngIf",null==e?null:e.OrganismSpec)}}function D3(i,n){1&i&&t.nrm(0,"span",32)}function $3(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",30),t.DNE(2,D3,1,0,"span",31),t.bVm()),2&i){const e=t.XpG().orgList,a=t.XpG(4);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Le,a.record.ut,a.qid,e.OrganismSpec.OrgNewTaxon)),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.DevelopmentalStage||e.OrganismSpec.OrgRole||e.OrganismSpec.FossilIndicator||e.OrganismSpec.Gender||e.OrganismSpec.OrgDetail)}}function L3(i,n){1&i&&t.nrm(0,"span",32)}function N3(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",30),t.DNE(2,L3,1,0,"span",31),t.bVm()),2&i){const e=t.XpG().orgList,a=t.XpG(4);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Le,a.record.ut,a.qid,e.OrganismSpec.DevelopmentalStage)),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.OrgRole||e.OrganismSpec.FossilIndicator||e.OrganismSpec.Gender||e.OrganismSpec.OrgDetail)}}function j3(i,n){1&i&&t.nrm(0,"span",32)}function O3(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",30),t.DNE(2,j3,1,0,"span",31),t.bVm()),2&i){const e=t.XpG().orgList,a=t.XpG(4);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Le,a.record.ut,a.qid,e.OrganismSpec.OrgRole)),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.FossilIndicator||e.OrganismSpec.Gender||e.OrganismSpec.OrgDetail)}}function B3(i,n){1&i&&t.nrm(0,"span",32)}function Y3(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",30),t.DNE(2,B3,1,0,"span",31),t.bVm()),2&i){const e=t.XpG().orgList,a=t.XpG(4);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Le,a.record.ut,a.qid,e.OrganismSpec.FossilIndicator)),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.Gender||e.OrganismSpec.OrgDetail)}}function X3(i,n){1&i&&t.nrm(0,"span",32)}function q3(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",30),t.DNE(2,X3,1,0,"span",31),t.bVm()),2&i){const e=t.XpG().orgList,a=t.XpG(4);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Le,a.record.ut,a.qid,e.OrganismSpec.Gender)),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.OrgDetail)}}function H3(i,n){if(1&i&&t.nrm(0,"span",33),2&i){const e=t.XpG().orgList,a=t.XpG(4);t.Y8G("wosSearchHighlight",t.sMw(1,Le,a.record.ut,a.qid,e.OrganismSpec.OrgDetail))}}function V3(i,n){if(1&i&&(t.DNE(0,$3,3,6,"ng-container",6)(1,N3,3,6,"ng-container",6)(2,O3,3,6,"ng-container",6)(3,Y3,3,6,"ng-container",6)(4,q3,3,6,"ng-container",6)(5,H3,1,5,"span",29),t.nrm(6,"br")),2&i){const e=n.orgList;t.Y8G("ngIf",e.OrganismSpec.OrgNewTaxon),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.DevelopmentalStage),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.OrgRole),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.FossilIndicator),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.Gender),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.OrgDetail)}}function z3(i,n){if(1&i&&(t.qex(0),t.j41(1,"tbody")(2,"tr",20),t.DNE(3,g3,2,2,"td",21)(4,f3,2,6,"td",21)(5,b3,4,18,"td",21)(6,M3,10,6,"ng-container",17),t.nI1(7,"slice"),t.k0s(),t.DNE(8,G3,5,4,"ng-container",17),t.nI1(9,"slice"),t.k0s(),t.DNE(10,V3,7,6,"ng-template",null,2,t.C5r),t.bVm()),2&i){const e=n.$implicit,a=n.index;t.R7$(2),t.Y8G("ngClass",a%2==0?"oddRow":"evenRow"),t.R7$(),t.Y8G("ngIf",(null==e.SuperTaxa?null:e.SuperTaxa.length)>0),t.R7$(),t.Y8G("ngIf",e.TaxaNotes),t.R7$(),t.Y8G("ngIf",null==e.OrgData||null==e.OrgData.OrgClassifier?null:e.OrgData.OrgClassifier.OrgClassifier),t.R7$(),t.Y8G("ngForOf",t.brH(7,6,e.OrgData.OrganismList,0,1)),t.R7$(2),t.Y8G("ngForOf",t.i5U(9,10,e.OrgData.OrganismList,1))}}function Q3(i,n){if(1&i&&(t.j41(0,"div",10)(1,"h3",11),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"section",12)(5,"div",13)(6,"table",14,1)(8,"caption"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"thead")(12,"tr",15),t.DNE(13,h3,4,5,"th",16),t.k0s()(),t.DNE(14,z3,12,13,"ng-container",17),t.k0s()()()()),2&i){const e=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,4,"taxonomicData")),t.R7$(7),t.JRh(t.bMT(10,6,"taxonomicTable")),t.R7$(4),t.Y8G("ngForOf",e.taxaColumns),t.R7$(),t.Y8G("ngForOf",e.taxonomicData)}}
1function U3(i,n){if(1&i&&(t.qex(0),t.DNE(1,p3,3,3,"div",7)(2,Q3,15,8,"ng-template",null,0,t.C5r),t.bVm()),2&i){const e=t.sdS(3),a=t.XpG();t.R7$(),t.Y8G("ngIf",a.record.item.super_record_BCI)("ngIfElse",e)}}let J3=(()=>{class i{constructor(e){this.change=e,this.taPrefix="TaxonomicDataTa-",this.taxaColumns=[]}ngOnChanges(e){e.record&&this.setRequiredColumns()}setRequiredColumns(){this.taxonomicData=this.record.item.Index?this.record.item.Index.TaxonomicData.TaxonomicList:this.record.item.DescriptorsData.TaxonomicData.TaxonomicList;const e=this.taxonomicData;this.taxaColumns=[];const a=this;e.forEach(function(r){a.processColumns(r.SuperTaxa,"superTaxa"),a.processColumns(r.TaxaNotes,"taxaNotes"),r.OrgData&&(r.OrgData.OrgClassifier?.OrgClassifier&&a.processColumns(r.OrgData.OrgClassifier.OrgClassifier,"orgClassifier"),r.OrgData.OrganismList&&r.OrgData.OrganismList.forEach(function(o){a.processColumns(o.OrganismName?.OrganismName,"orgName"),a.processColumns(o.OrganismSpec?.OrgVariantList,"variant"),a.processColumns(o.OrganismSpec?.OrgNewTaxon,"details"),a.processColumns(o.OrganismSpec?.DevelopmentalStage,"details"),a.processColumns(o.OrganismSpec?.FossilIndicator,"details"),a.processColumns(o.OrganismSpec?.DevelopmentalStage,"details"),a.processColumns(o.OrganismSpec?.OrgRole,"details"),a.processColumns(o.OrganismSpec?.Gender,"details"),a.processColumns(o.OrganismSpec?.OrgDetail,"details")}))})}processColumns(e,a){e&&(this.taxaColumns.includes(a)||this.taxaColumns.push(a))}getRowSpan(e){return void 0===e.OrgData||void 0===e.OrgData.OrganismList?1:e.OrgData.OrganismList.length>0?e.OrgData.OrganismList.length:1}getQuickSearchString(e,a,r){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:a,rowText:e}]),disableEdit:r}}showColumn(e){return this.taxaColumns.includes(e)}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-taxonomic-data"]],inputs:{record:"record",database:"database",buildSiloOneClickLink:"buildSiloOneClickLink",qid:"qid"},features:[t.OA$],decls:1,vars:1,consts:[["taxonomicDataList",""],["taxaTable",""],["orglistTax",""],["blankOrgName",""],["blankVariant",""],["blankDetails",""],[4,"ngIf"],[4,"ngIf","ngIfElse"],["collection","BCI","fieldTitle","taxonomicData",3,"record","termFoundFlag"],[4,"ngTemplateOutlet"],[1,"cdx-two-column-grid-container"],["dir","auto",1,"table-label","cdx-grid-label"],[1,"nextGen-standard-table","cdx-grid-data"],[1,"cdx-table-wrapper","cdx-table-wrapper-fixed"],[1,"ng-table"],[1,"ng-header-row","table-header-visibility"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["scope","col"],[1,"cdx-table-header-cell"],[1,"mat-row","outerRow",3,"ngClass"],["class","outer",4,"ngIf"],[1,"outer"],[3,"wosSearchHighlight"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","bci-taxonomyList",3,"routerLink","matTooltip","queryParams","state"],[1,"link-wrap",3,"termMatched","wosSearchHighlight"],[1,"value-wrap","font-size-14",3,"wosSearchHighlight"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-row","innerRow",3,"ngClass"],["class","font-size-14 value-wrap-inline",3,"wosSearchHighlight",4,"ngIf"],["dir","auto",1,"value-wrap-inline","font-size-14",3,"wosSearchHighlight"],["dir","auto","class","value-wrap-inline font-size-14 semiColonMark",4,"ngIf"],["dir","auto",1,"value-wrap-inline","font-size-14","semiColonMark"],[1,"font-size-14","value-wrap-inline",3,"wosSearchHighlight"]],template:function(a,r){1&a&&t.DNE(0,U3,4,2,"ng-container",6),2&a&&t.Y8G("ngIf",r.taxonomicData&&r.taxonomicData.length>0)},dependencies:[A.YU,A.Sq,A.bT,A.T3,ot.Wk,ie.w,$t.ig,xt.oV,Ot.P,Ea,A.P9,V.D9],encapsulation:2})}}return i})(),W3=(()=>{class i{constructor(e){this.config=e}filterColumnsByDatabase(e,a,r){const o=this.config.getSettings().app.fullRecord.tableViews[a][r];return o?e.filter(s=>o.filter(l=>l===s).length>0):e}static{this.\u0275fac=function(a){return new(a||i)(t.KVO(Dt.w))}}static{this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();const K3=["chemicalDataTable"],Ne=(i,n,e)=>[i,n,"chemical_and_biochemical",e],Wc=i=>["/",i,"general-summary"];
1function Z3(i,n){if(1&i&&(t.j41(0,"th",16)(1,"div",17),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"chemical-data-table-heading-chemicalName")("id",e.taPrefix+"chemical-data-table-heading-chemicalName"),t.R7$(),t.JRh(t.bMT(3,3,"chemicalName"))}}function tv(i,n){if(1&i&&t.nrm(0,"td",18),2&i){const e=n.$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,Ne,a.record.ut,a.qid,e.name?e.name:""))}}function ev(i,n){if(1&i&&(t.j41(0,"th",16)(1,"div",17),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"chemical-data-table-heading-CASRegistryNo")("id",e.taPrefix+"chemical-data-table-heading-CASRegistryNo"),t.R7$(),t.JRh(t.bMT(3,3,"CASRegistryNo"))}}function nv(i,n){if(1&i&&(t.j41(0,"a",21),t.nI1(1,"translate"),t.nrm(2,"span",22),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("routerLink",t.eq3(6,Wc,a.database.toLowerCase()))("matTooltip",t.bMT(1,4,"casRegistryAlt"))("queryParams",a.getQuickSearchString(e.casRegistryNumber?e.casRegistryNumber:"","CR")),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(8,Ne,a.record.ut,a.qid,e.casRegistryNumber?e.casRegistryNumber:""))}}function iv(i,n){if(1&i&&t.nrm(0,"span",22),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,Ne,a.record.ut,a.qid,e.casRegistryNumber?e.casRegistryNumber:""))}}function av(i,n){if(1&i&&(t.j41(0,"td",19),t.DNE(1,nv,3,12,"a",20)(2,iv,1,5,"ng-template",null,1,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(3);t.R7$(),t.Y8G("ngIf",a.buildSiloOneClickLink)("ngIfElse",e)}}function rv(i,n){1&i&&t.nrm(0,"tr",23)}function ov(i,n){1&i&&t.nrm(0,"tr",24)}function sv(i,n){if(1&i&&(t.qex(0),t.j41(1,"section",5)(2,"div",6),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",7)(6,"table",8)(7,"caption"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.qex(10,9),t.DNE(11,Z3,4,5,"th",10)(12,tv,1,5,"td",11),t.bVm(),t.qex(13,12),t.DNE(14,ev,4,5,"th",10)(15,av,4,2,"td",13),t.bVm(),t.DNE(16,rv,1,0,"tr",14)(17,ov,1,0,"tr",15),t.k0s()()(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(3),t.JRh(t.bMT(4,8,"chemicalData")),t.R7$(3),t.Y8G("dataSource",e.casRegistryEntries),t.BMQ("data-ta",e.taPrefix+"chemical-data-table")("id",e.taPrefix+"chemical-data-table"),t.R7$(2),t.JRh(t.bMT(9,10,"chemicalDataTable")),t.R7$(8),t.Y8G("matHeaderRowDef",e.chemicalDataCasRegistryVersion)("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",e.chemicalDataCasRegistryVersion)}}function lv(i,n){if(1&i&&(t.j41(0,"th",16)(1,"div",17),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"chemical-data-table-heading-chemicalName")("id",e.taPrefix+"chemical-data-table-heading-chemicalName"),t.R7$(),t.JRh(t.bMT(3,3,"chemicalName"))}}function cv(i,n){if(1&i&&t.nrm(0,"td",18),2&i){const e=n.$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,Ne,a.record.ut,a.qid,e.ChemicalName?e.ChemicalName:""))}}function dv(i,n){if(1&i&&(t.j41(0,"th",16)(1,"div",30),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"chemical-data-table-heading-variant")("id",e.taPrefix+"chemical-data-table-heading-variant"),t.R7$(),t.JRh(t.bMT(3,3,"variant"))}}function uv(i,n){if(1&i&&t.nrm(0,"td",18),2&i){const e=n.$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,Ne,a.record.ut,a.qid,e.ChemicalVariant?e.ChemicalVariant:""))}}function _v(i,n){if(1&i&&(t.j41(0,"th",16)(1,"div",17),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"chemical-data-table-heading-CASRegistryNo")("id",e.taPrefix+"chemical-data-table-heading-CASRegistryNo"),t.R7$(),t.JRh(t.bMT(3,3,"CASRegistryNo"))}}function pv(i,n){if(1&i&&(t.j41(0,"a",21),t.nI1(1,"translate"),t.nrm(2,"span",22),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("routerLink",t.eq3(6,Wc,a.database.toLowerCase()))("matTooltip",t.bMT(1,4,"casRegistryAlt"))("queryParams",a.getQuickSearchString(e.CASRegistryNo?e.CASRegistryNo:"","CR")),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(8,Ne,a.record.ut,a.qid,e.CASRegistryNo?e.CASRegistryNo:""))}}
1function hv(i,n){if(1&i&&t.nrm(0,"span",22),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,Ne,a.record.ut,a.qid,e.CASRegistryNo?e.CASRegistryNo:""))}}function mv(i,n){if(1&i&&(t.j41(0,"td",19),t.DNE(1,pv,3,12,"a",20)(2,hv,1,5,"ng-template",null,1,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(3);t.R7$(),t.Y8G("ngIf",a.buildSiloOneClickLink&&"BCI"!==a.database)("ngIfElse",e)}}function gv(i,n){if(1&i&&(t.j41(0,"th",16)(1,"div",17),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"chemical-data-table-heading-drugModifier")("id",e.taPrefix+"chemical-data-table-heading-drugModifier"),t.R7$(),t.JRh(t.bMT(3,3,"drugModifier"))}}function fv(i,n){if(1&i&&t.nrm(0,"td",18),2&i){const e=n.$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,Ne,a.record.ut,a.qid,e.DrugModifier?e.DrugModifier:""))}}function bv(i,n){if(1&i&&(t.j41(0,"th",16)(1,"div",17),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"chemical-data-table-heading-details")("id",e.taPrefix+"chemical-data-table-heading-details"),t.R7$(),t.JRh(t.bMT(3,3,"details"))}}function vv(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,";"),t.k0s())}function xv(i,n){if(1&i&&(t.j41(0,"span",22),t.DNE(1,vv,2,0,"span",3),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(2,Ne,a.record.ut,a.qid,e.ChemicalRole?e.ChemicalRole:"")),t.R7$(),t.Y8G("ngIf",e.ChemicalProcess||e.EnzymeCommission||e.ChemicalDetail)}}function Cv(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,";"),t.k0s())}function Rv(i,n){if(1&i&&(t.j41(0,"span",22),t.DNE(1,Cv,2,0,"span",3),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(2,Ne,a.record.ut,a.qid,e.ChemicalProcess?e.ChemicalProcess:"")),t.R7$(),t.Y8G("ngIf",e.EnzymeCommission||e.ChemicalDetail)}}function yv(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,";"),t.k0s())}function Tv(i,n){if(1&i&&(t.j41(0,"span",22),t.DNE(1,yv,2,0,"span",3),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(2,Ne,a.record.ut,a.qid,e.EnzymeCommission?e.EnzymeCommission:"")),t.R7$(),t.Y8G("ngIf",e.ChemicalDetail)}}function Iv(i,n){if(1&i&&t.nrm(0,"span",22),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,Ne,a.record.ut,a.qid,e.ChemicalDetail?e.ChemicalDetail
1:""))}}function kv(i,n){if(1&i&&(t.j41(0,"td",19),t.DNE(1,xv,2,6,"span",31)(2,Rv,2,6,"span",31)(3,Tv,2,6,"span",31)(4,Iv,1,5,"span",31),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.ChemicalRole),t.R7$(),t.Y8G("ngIf",e.ChemicalProcess),t.R7$(),t.Y8G("ngIf",e.EnzymeCommission),t.R7$(),t.Y8G("ngIf",e.ChemicalDetail)}}function Fv(i,n){1&i&&t.nrm(0,"tr",23)}function wv(i,n){1&i&&t.nrm(0,"tr",24)}function Mv(i,n){if(1&i&&(t.j41(0,"section",5)(1,"div",6),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",7)(5,"table",8,2)(7,"caption"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.qex(10,25),t.DNE(11,lv,4,5,"th",10)(12,cv,1,5,"td",11),t.bVm(),t.qex(13,26),t.DNE(14,dv,4,5,"th",10)(15,uv,1,5,"td",11),t.bVm(),t.qex(16,27),t.DNE(17,_v,4,5,"th",10)(18,mv,4,2,"td",13),t.bVm(),t.qex(19,28),t.DNE(20,gv,4,5,"th",10)(21,fv,1,5,"td",11),t.bVm(),t.qex(22,29),t.DNE(23,bv,4,5,"th",10)(24,kv,5,4,"td",13),t.bVm(),t.DNE(25,Fv,1,0,"tr",14)(26,wv,1,0,"tr",15),t.k0s()()()),2&i){const e=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,8,"chemicalData")),t.R7$(3),t.Y8G("dataSource",null==e.record.item||null==e.record.item.Index||null==e.record.item.Index.ChemicalData?null:e.record.item.Index.ChemicalData.ChemicalList),t.BMQ("data-ta",e.taPrefix+"chemical-data-table")("id",e.taPrefix+"chemical-data-table"),t.R7$(3),t.JRh(t.bMT(9,10,"chemicalDataTable")),t.R7$(17),t.Y8G("matHeaderRowDef",e.chemicalColumns)("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",e.chemicalColumns)}}function Sv(i,n){if(1&i&&(t.qex(0),t.DNE(1,sv,18,12,"ng-container",4)(2,Mv,27,12,"ng-template",null,0,t.C5r),t.bVm()),2&i){const e=t.sdS(3),a=t.XpG();t.R7$(),t.Y8G("ngIf",(null==a.record||null==a.record.item||null==a.record.item.Index||null==a.record.item.Index.ChemicalData||null==a.record.item.Index.ChemicalData.CASRegistryList?null:a.record.item.Index.ChemicalData.CASRegistryList.length)>0)("ngIfElse",e)}}let Av=(()=>{class i{constructor(e,a){this.change=e,this.tableViewService=a,this.taPrefix="ChemicalDataTa-",this.casRegistryEntries=[],this.defaultChemicalDataColumns=["ChemicalName","ChemicalVariant","CASRegistryNo","DrugModifier","Details"],this.chemicalColumns=this.defaultChemicalDataColumns,this.chemicalDataCasRegistryVersion=["chemicalName","casRegistryNumber"]}ngOnChanges(){this.record?.item?.Index?.ChemicalData?.CASRegistryList?.length>0&&(this.casRegistryEntries=[],this.record.item.Index.ChemicalData?.CASRegistryList.forEach(e=>{this.casRegistryEntries.push({name:e.split(": ")[1],casRegistryNumber:e.split(": ")[0]})}))}getQuickSearchString(e,a,r){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:a,rowText:e}]),disableEdit:r}}ngAfterViewChecked(){this.chemicalDataTable&&(this.chemicalColumns=this.hideEmptyColumns(this.defaultChemicalDataColumns,this.chemicalDataTable.dataSource),this.change.detectChanges())}hideEmptyColumns(e,a){const r={};let o;return e.forEach(s=>{r[s]=a.every(l=>!l[s])}),o=e.filter(s=>!r[s]),this.record.item?.Index?.ChemicalData?.ChemicalList?.filter(s=>!!(s.ChemicalRole||s.ChemicalProcess||s.EnzymeCommission||s.ChemicalDetail)).length>0&&o.push("Details"),this.tableViewService.filterColumnsByDatabase(o,"chemicalData",this.database)}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(W3))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-chemicaldata"]],viewQuery:function(a,r){if(1&a&&t.GBs(K3,5),2&a){let o;t.mGM(o=t.lsd())&&(r.chemicalDataTable=o.first)}},inputs:{record:"record",database:"database",qid:"qid",buildSiloOneClickLink:"buildSiloOneClickLink"},features:[t.OA$],decls:1,vars:1,consts:[["chemicalList",""],["CASRegistryNo",""],["chemicalDataTable",""],[4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"nextGen-Table"],["dir","auto",1,"table-label","colonMark"],[1,"cdx-table-wrapper","cdx-table-wrapper-fixed"],["mat-table","",3,"dataSource"],["matColumnDef","chemicalName"],["mat-header-cell","","scope","col",4,"matHeaderCellDef"],["mat-cell","",3,"wosSearchHighlight",4,"matCellDef"],["matColumnDef","casRegistryNumber"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","scope","col"],[1,"cdx-table-header-cell"],["mat-cell","",3,"wosSearchHighlight"],["mat-cell",""],[3,"routerLink","matTooltip","queryParams",4,"ngIf","ngIfElse"],[3,"routerLink","matTooltip","queryParams"],[3,"wosSearchHighlight"],["mat-header-row",""],["mat-row",""],["matColumnDef","ChemicalName"],["matColumnDef","ChemicalVariant"],["matColumnDef","CASRegistryNo"],["matColumnDef","DrugModifier"],["matColumnDef","Details"],["translate","",1,"cdx-table-header-cell"],[3,"wosSearchHighlight",4,"ngIf"]],template:function(a,r){1&a&&t.DNE(0,Sv,4,2,"ng-container",3),2&a&&t.Y8G("ngIf",(null==r.record||null==r.record.item||null==r.record.item.Index||null==r.record.item.Index.ChemicalData||null==r.record.item.Index.ChemicalData.ChemicalList?null:r.record.item.Index.ChemicalData.ChemicalList.length)>0||(null==r.record||null==r.record.item||null==r.record.item.Index||null==r.record.item.Index.ChemicalData||null==r.record.item.Index.ChemicalData.CASRegistryList?null:r.record.item.Index.ChemicalData.CASRegistryList.length)>0)},dependencies:[A.bT,ot.Wk,V.Mm,ie.w,$t.ig,xt.oV,X.Zl,X.tL,X.ji,X.cC,X.YV,X.iL,X.KS,X.$R,X.YZ,X.NB,V.D9],encapsulation:2})}}return i})();const Ev=["descriptorTable"],Kc=i=>["/",i,"general-summary"],Zc=(i,n)=>({siloSearchWarning:i,collection:n}),Ga=(i,n,e,a)=>[i,n,e,a],td=i=>({subList:i}),Pv=(i,n,e)=>[i,n,"subject_descriptors",e];function Gv(i,n){1&i&&t.eu8(0)}
1function Dv(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",8),t.DNE(2,Gv,1,0,"ng-container",9),t.k0s()()),2&i){const e=t.XpG(),a=t.sdS(2);t.R7$(),t.Y8G("record",e.record),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function $v(i,n){if(1&i&&(t.j41(0,"th",19)(1,"span",20),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.BMQ("data-ta",a.taPrefix+"descriptor-data-table-heading-"+e)("id",a.taPrefix+"descriptor-data-table-heading-"+e),t.R7$(),t.JRh(t.bMT(3,3,e))}}function Lv(i,n){1&i&&t.nrm(0,"span",27)}function Nv(i,n){if(1&i&&(t.qex(0),t.j41(1,"a",24),t.nI1(2,"translate"),t.nrm(3,"span",25),t.k0s(),t.DNE(4,Lv,1,0,"span",26),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=t.XpG(5);t.R7$(),t.Y8G("routerLink",t.eq3(10,Kc,r.record.item.super_record_ZOOREC?"zoorec":r.record.coll.toLowerCase()))("matTooltip",t.bMT(2,8,"DescrOrganismAlt"))("queryParams",r.getQuickSearchString(e||"","SD"))("state",t.l_i(12,Zc,r.database!==r.record.coll,r.record.item.super_record_ZOOREC?"zoorec":r.record.coll.toLowerCase())),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(15,Ga,r.record.ut,r.qid,r.record.item.super_record_ZOOREC?"abstract":"subject_descriptors",e||" ")),t.BMQ("data-ta",r.taPrefix+"organism")("id",r.taPrefix+"organism"),t.R7$(),t.Y8G("ngIf",!a)}}function jv(i,n){if(1&i&&(t.j41(0,"td",23),t.DNE(1,Nv,5,20,"ng-container",18),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.BMQ("rowspan",a.getRowSpan(e.DescrSubjectsList)),t.R7$(),t.Y8G("ngForOf",e.DescrOrganismList)}}function Ov(i,n){if(1&i&&t.nrm(0,"span",30),2&i){const e=t.XpG().$implicit,a=t.XpG(7);t.Y8G("wosSearchHighlight",t.sMw(3,Pv,a.record.ut,a.qid,e.DescrModifier?e.DescrModifier:" ")),t.BMQ("data-ta",a.taPrefix+"modifier")("id",a.taPrefix+"modifier")}}function Bv(i,n){1&i&&t.nrm(0,"span",27)}function Yv(i,n){if(1&i&&(t.qex(0),t.DNE(1,Ov,1,7,"span",29)(2,Bv,1,0,"span",26),t.bVm()),2&i){const e=n.$implicit,a=n.last;t.R7$(),t.Y8G("ngIf",null==e?null:e.DescrModifier),t.R7$(),t.Y8G("ngIf",!a&&(null==e?null:e.DescrModifier))}}function Xv(i,n){if(1&i&&(t.j41(0,"td"),t.DNE(1,Yv,3,2,"ng-container",18),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(5);t.R7$(),t.Y8G("ngForOf",a.getFilterData(null==e?null:e.DescrModifier))}}function qv(i,n){1&i&&t.nrm(0,"td")}function Hv(i,n){if(1&i&&(t.qex(0),t.DNE(1,qv,1,0,"td",10),t.bVm()),2&i){const e=t.XpG(7);t.R7$(),t.Y8G("ngIf",e.showColumn("modifier"))}}function Vv(i,n){if(1&i&&t.DNE(0,Hv,2,1,"ng-container",10),2&i){const e=t.XpG(6);t.Y8G("ngIf",-1!==e.descriptorColumns.indexOf("modifier"))}}function zv(i,n){if(1&i&&(t.qex(0),t.eu8(1,28),t.DNE(2,Xv,2,1,"td",7)(3,Vv,1,1,"ng-template",null,3,t.C5r),t.bVm()),2&i){const e=n.$implicit,a=t.sdS(4);t.XpG(2);const r=t.sdS(8),o=t.XpG(3);t.R7$(),t.Y8G("ngTemplateOutlet",r)("ngTemplateOutletContext",t.eq3(4,td,e)),t.R7$(),t.Y8G("ngIf",(null==e||null==e.DescrModifier?null:e.DescrModifier.length)>0&&-1!==o.descriptorColumns.indexOf("modifier"))("ngIfElse",a)}}function Qv(i,n){if(1&i&&(t.qex(0),t.DNE(1,zv,5,6,"ng-container",18),t.nI1(2,"slice"),t.bVm()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",t.brH(2,1,null==e?null:e.DescrSubjectsList,0,1))}}function Uv(i,n){if(1&i&&t.nrm(0,"span",30),2&i){const e=t.XpG().$implicit,a=t.XpG(6);t.Y8G("wosSearchHighlight",t.ziG(3,Ga,a.record.ut,a.qid,a.record.item.super_record_ZOOREC?"abstract":"subject_descriptors",null!=e&&e.DescrModifier?null==e?null:e.DescrModifier:" ")),t.BMQ("data-ta",a.taPrefix+"modifier")("id",a.taPrefix+"modifier")}}function Jv(i,n){1&i&&t.nrm(0,"span",27)}function Wv(i,n){if(1&i&&(t.qex(0),t.DNE(1,Uv,1,8,"span",32)(2,Jv,1,0,"span",26),t.bVm()),2&i){const e=n.$implicit,a=n.last;t.XpG(2);const r=t.sdS(5);t.R7$(),t.Y8G("ngIf",null==e?null:e.DescrModifier)("ngIfElse",r),t.R7$(),t.Y8G("ngIf",!a&&(null==e?null:e.DescrModifier))}}function Kv(i,n){if(1&i&&(t.j41(0,"td"),t.DNE(1,Wv,3,3,"ng-container",18),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(4);t.R7$(),t.Y8G("ngForOf",a.getFilterData(null==e?null:e.DescrModifier))}}function Zv(i,n){1&i&&t.nrm(0,"td")}function tx(i,n){if(1&i&&t.DNE(0,Zv,1,0,"td",10),2&i){const e=t.XpG(5);t.Y8G("ngIf",e.showColumn("modifier"))}}function ex(i,n){1&i&&t.nrm(0,"td")}function nx(i,n){if(1&i&&(t.qex(0),t.DNE(1,ex,1,0,"td",10),t.bVm()),2&i){const e=t.XpG(6);t.R7$(),t.Y8G("ngIf",e.showColumn("modifier"))}}function ix(i,n){if(1&i&&t.DNE(0,nx,2,1,"ng-container",10),2&i){const e=t.XpG(5);t.Y8G("ngIf",-1!==e.descriptorColumns.indexOf("modifier"))}}function ax(i,n){if(1&i&&(t.qex(0),t.j41(1,"tr",31),t.eu8(2,28),t.DNE(3,Kv,2,1,"td",7)(4,tx,1,1,"ng-template",null,4,t.C5r)(6,ix,1,1,"ng-template",null,3,t.C5r),t.k0s(),t.bVm()),2&i){const e=n.$implicit,a=t.sdS(7),r=t.XpG().index,o=t.sdS(8),s=t.XpG(3);t.R7$(),t.Y8G("ngClass",r%2==0?"oddRow":"evenRow"),t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(5,td,e)),t.R7$(),t.Y8G("ngIf",(null==e||null==e.DescrModifier?null:e.De
1scrModifier.length)>0&&-1!==s.descriptorColumns.indexOf("modifier"))("ngIfElse",a)}}function rx(i,n){if(1&i&&(t.j41(0,"td")(1,"a",33),t.nI1(2,"translate"),t.nrm(3,"span",25),t.k0s()()),2&i){const e=t.XpG().subList,a=t.XpG(4);t.R7$(),t.Y8G("routerLink",t.eq3(9,Kc,a.record.item.super_record_ZOOREC?"zoorec":a.record.coll.toLowerCase()))("matTooltip",t.bMT(2,7,"DescrControlledTermAlt"))("queryParams",a.getQuickSearchString(e.DescrControlledTerm.DescrControlledTerm?e.DescrControlledTerm.DescrControlledTerm:"","SD"))("state",t.l_i(11,Zc,a.database!==a.record.coll,a.record.item.super_record_ZOOREC?"zoorec":a.record.coll.toLowerCase())),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(14,Ga,a.record.ut,a.qid,a.record.item.super_record_ZOOREC?"abstract":"subject_descriptors",e.DescrControlledTerm.DescrControlledTerm?e.DescrControlledTerm.DescrControlledTerm:" ")),t.BMQ("data-ta",a.taPrefix+"controlledTerm")("id",a.taPrefix+"controlledTerm")}}function ox(i,n){1&i&&t.nrm(0,"td")}function sx(i,n){if(1&i&&t.DNE(0,ox,1,0,"td",10),2&i){const e=t.XpG(5);t.Y8G("ngIf",e.showColumn("controlledTerm"))}}function lx(i,n){if(1&i&&(t.j41(0,"td"),t.nrm(1,"span",30),t.k0s()),2&i){const e=t.XpG().subList,a=t.XpG(4);t.R7$(),t.Y8G("wosSearchHighlight",t.ziG(3,Ga,a.record.ut,a.qid,a.record.item.super_record_ZOOREC?"abstract":"subject_descriptors",null!=e.DescrSubset&&e.DescrSubset.DescrSubset?null==e.DescrSubset?null:e.DescrSubset.DescrSubset:" ")),t.BMQ("data-ta",a.taPrefix+"subset")("id",a.taPrefix+"subset")}}function cx(i,n){1&i&&t.nrm(0,"td")}function dx(i,n){if(1&i&&t.DNE(0,cx,1,0,"td",10),2&i){const e=t.XpG(5);t.Y8G("ngIf",e.showColumn("subset"))}}function ux(i,n){if(1&i&&t.DNE(0,rx,4,19,"td",7)(1,sx,1,1,"ng-template",null,5,t.C5r)(3,lx,2,8,"td",7)(4,dx,1,1,"ng-template",null,6,t.C5r),2&i){const e=n.subList,a=t.sdS(2),r=t.sdS(5);t.Y8G("ngIf",e.DescrControlledTerm&&"1"===e.DescrControlledTerm.Display)("ngIfElse",a),t.R7$(3),t.Y8G("ngIf",(null==e||null==e.DescrSubset?null:e.DescrSubset.DescrSubset)&&"1"===(null==e||null==e.DescrSubset?null:e.DescrSubset.Display))("ngIfElse",r)}}function _x(i,n){if(1&i&&(t.qex(0),t.j41(1,"tbody")(2,"tr",21),t.DNE(3,jv,2,2,"td",22)(4,Qv,3,5,"ng-container",10),t.k0s(),t.DNE(5,ax,8,7,"ng-container",18),t.nI1(6,"slice"),t.k0s(),t.DNE(7,ux,6,4,"ng-template",null,2,t.C5r),t.bVm()),2&i){const e=n.$implicit,a=n.index;t.R7$(2),t.Y8G("ngClass",a%2==0?"oddRow":"evenRow"),t.R7$(),t.Y8G("ngIf",(null==e||null==e.DescrOrganismList?null:e.DescrOrganismList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e||null==e.DescrSubjectsList?null:e.DescrSubjectsList.length)>0),t.R7$(),t.Y8G("ngForOf",t.i5U(6,4,null==e?null:e.DescrSubjectsList,1))}}function px(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",11)(2,"h3",12),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"section",13)(6,"div",14)(7,"table",15,1)(9,"caption"),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"thead")(13,"tr",16),t.DNE(14,$v,4,5,"th",17),t.k0s()(),t.DNE(15,_x,9,7,"ng-container",18),t.k0s()()()(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(2),t.BMQ("data-ta",e.taPrefix+"descriptors-data")("id",e.taPrefix+"descriptors-data"),t.R7$(),t.JRh(t.bMT(4,6,"descriptorsData")),t.R7$(7),t.JRh(t.bMT(11,8,"descriptorTable")),t.R7$(4),t.Y8G("ngForOf",e.descriptorColumns),t.R7$(),t.Y8G("ngForOf",e.record.item.ZRIndex.DescriptorsData.DescriptorsList)}}function hx(i,n){if(1&i&&t.DNE(0,px,16,10,"ng-container",10),2&i){const e=t.XpG();t.Y8G("ngIf",(null==e.record||null==e.record.item||null==e.record.item.ZRIndex||null==e.record.item.ZRIndex.DescriptorsData?null:e.record.item.ZRIndex.DescriptorsData.DescriptorsList.length)>0)}}let mx=(()=>{class i{constructor(e,a,r){this.change=e,this.renderer=a,this.w=r,this.isIE=!1,this.taPrefix="DescriptorDataTa-",this.descriptorColumnsDefault=["organism","controlledTerm","subset","modifier"],this.descriptorColumns=[],this.isIE=this.w.nativeWindow.document.documentMode}ngOnChanges(e){e.record&&(this.isIE?this.processIE11Interval():(this.setRequiredColumns(),this.setColumnOrder()))}processIE11Interval(){this.interval=setInterval(()=>{this.change.detectChanges(),this.renderer.addClass(this.descriptorTable.nativeElement,"blockDisplay"),this.setRequiredColumns(),this.setColumnOrder(),this.renderer.removeClass(this.descriptorTable.nativeElement,"blockDisplay")},1e3)}setRequiredColumns(){const e=this.record.item?.ZRIndex?.DescriptorsData?.DescriptorsList;this.descriptorColumns=[];const a=this;e.forEach(function(r){a.processColumns(r.DescrOrganismList,"organism"),r.DescrSubjectsList&&r.DescrSubjectsList.forEach(function(o){a.processColumns(o.DescrControlledTerm?.DescrControlledTerm,"controlledTerm"),a.processColumns(o.DescrSubset?.DescrSubset,"subset"),o.DescrModifier?.forEach(function(s){s.DescrModifier&&"1"===s.Display&&a.processColumns(s.DescrModifier,"modifier")})})})}getQuickSearchString(e,a,r){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:a,rowText:e}]),disableEdit:r}}processColumns(e,a){e&&(this.descriptorColumns.includes(a)||this.descriptorColumns.push(a))}getRowSpan(e){return e?.length>0?e.length:1}showColumn(e){return this.descriptorColumns.includes(e)}setColumnOrder(){const e=[];this.descriptorColumnsDefault.forEach(a=>{this.descriptorColumns.includes(a)&&e.push(a)}),this.descriptorColumns=e}getFilterData(e){return e?.filter(a=>"1"===a.Display)}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(t.sFG),t.rXU(Ua.W))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-descriptor-data"]],viewQuery:function(a,r){if(1&a&&t.GBs(Ev,5),2&a){let o;t.mGM(o=t.lsd())&&(r.descriptorTable=o.first)}},inputs:{record:"record",database:"database",buildSiloOneClickLink:"buildSiloOneClickLink",qid:"qid"},features:[t.OA$],decls:3,vars:2,consts:[["descriptorsData",""],["descriptorTable",""],["subListDescrC",""],["blankModifierColumn",""],["blankModifier",""],["blankTerm",""],["blankSubset",""],[4,"ngIf","ngIfElse"],["collection","ZOOREC","fieldTitle","descriptorsData",3,"record"],[4,"ngTemplateOutlet"],[4,"ngIf"],[1,"cdx-two-column-grid-container"],["dir","auto",1,"table-label","cdx-grid-label"],[1,"nextGen-standard-table","cdx-grid-data"],[1,"cdx-table-wrapper","cdx-table-wrapper-fixed"],[1,"ng-table"],[1,"ng-header-row","table-header-visibility"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["scope","col"],[1,"ng-table-header-cell"],[1,"mat-row","outerRow",3,"ngClass"],["class","outer",4,"ngIf"],[1,"outer"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","zoorec-organism",3,"routerLink","matTooltip","queryParams","state"],[1,"font-size-14",3,"wosSearchHighlight"],["dir","auto","class","semiColonMark",4,"ngIf"],["dir","auto",1,"semiColonMark"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","value-wrap font-size-14",3,"wosSearchHighlight",4,"ngIf"],[1,"value-wrap","font-size-14",3,"wosSearchHighlight"],[1,"mat-row","innerRow",3,"ngClass"],["class","value-wrap font-size-14",3,"wosSearchHighlight",4,"ngIf","ngIfElse"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","zoorec-DescriptorControlledTerm",3,"routerLink","matTooltip","queryParams","state"]],template:function(a,r){if(1&a&&t.DNE(0,Dv,3,2,"div",7)(1,hx,1,1,"ng-template",null,0,t.C5r),2&a){const o=t.sdS(2);t.Y8G("ngIf",null==r.record.item?null:r.record.item.super_record_ZOOREC)("ngIfElse",o)}},dependencies:[A.YU,A.Sq,A.bT,A.T3,ot.Wk,ie.w,$t.ig,xt.oV,Ot.P,Ea,A.P9,V.D9],encapsulation:2})}}return i})();const gx=["diseaseTable"],fx=["chemicalListTable"],bx=["meshTermsTable"],vx=["systematicsTable"],xx=(i,n,e)=>[i,n,"research_areas",e],It=i=>["/",i,"general-summary"],Ct=(i,n)=>({siloSearchWarning:i,collection:n}),Go=(i,n,e)=>[i,n,"citation_topics",e],Cx=(i,n,e)=>[i,n,"SDG",e],ed=(i,n,e)=>[i,n,"wos_categories",e],_t=(i,n,e,a)=>[i,n,e,a],nd=(i,n,e)=>[i,n,"categories",e],Ut=i=>({"cdx-zero-padding":i}),Da=()=>["/","cabi","general-summary"],Rx=(i,n,e)=>[i,n,"cabi_code",e],id=(i,n,e)=>[i,n,"chemical",e],ad=(i,n,e)=>[i,n,"astronomical",e],rd=i=>({"section-label-data":!0,"identifiers-link":!0,"outbound-over":i}),od=()=>["/","inspec","general-summary"],sd=()=>["/","fsta","general-summary"],ld=(i,n,e)=>[i,n,"cas_reg_num",e],yx=(i,n,e)=>[i,n,"edition",e],Tx=(i,n,e)=>[i,n,"discipline",e],Ix=(i,n,e)=>[i,n,"OrganismAuthordate",e],kx=(i,n,e)=>[i,n,"OrgRole",e],Fx=(i,n,e)=>[i,n,"FossilIndicator",e],Do=(i,n,e)=>[i,n,"gene_name_data",e];function wx(i,n){if(1&i&&(t.j41(0,"h3",54),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(4);t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",e.taPrefix+"subjectsLabel")("id",e.taPrefix+"subjectsLabel"),t.R7$(),t.JRh(t.bMT(2,4,"researchAreas"))}}function Mx(i,n){1&i&&t.nrm(0,"span",55),2&i&&t.Y8G("ngClass","section-label-data")}function Sx(i,n){1&i&&(t.j41(0,"span",56),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.Y8G("ngClass","section-label-data"),t.R7$(),t.SpI("\xa0(",t.bMT(2,2,"providedByClarivate"),")\xa0"))}function Ax(i,n){if(1&i&&(t.qex(0),t.DNE(1,wx,3,6,"h3",50),t.nrm(2,"span",51),t.DNE(3,Mx,1,1,"span",52)(4,Sx,3,4,"span",53),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.first,o=n.last,s=t.XpG(3);t.R7$(),t.Y8G("ngIf",r),t.R7$(),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(7,xx,s.record.ut,s.qid,e.subject)),t.BMQ("data-ta",s.taPrefix+"subject-"+a)("id",s.taPrefix+"subject-"+a),t.R7$(),t.Y8G("ngIf",!o),t.R7$(),t.Y8G("ngIf",s.hostContentCollections.includes(s.record.coll)&&o)}}function Ex(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,Ax,5,11,"ng-container",47),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.record.category_info.subjects.filter(e.getExtendedSubjects))}}function Px(i,n){if(1&i&&(t.j41(0,"a",61),t.nI1(1,"translate"),t.nI1(2,"translate"),t.nrm(3,"span",62),t.k0s()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(3);t.Y8G("routerLink",t.eq3(12,It,"WOS"===o.record.coll?"woscc":o.record.coll.toLowerCase()))("matTooltip",t.bMT(1,8,"clickToFindMoreRecord")+a["content-type"]+t.bMT(2,10,"citationTopicAlt"))("state",t.l_i(14,Ct,o.database!==o.record.coll&&"WOSCC"!==o.database,o.record.coll))("ngClass","section-label-data full-record-detail-section-links")("queryParams",o.getQuickSearchString('"'+a["content-id"]+" "+a.content+'"',"TMAC","true")),t.BMQ("data-ta",o.taPrefix+"citationTopic-macro-"+r)("id",o.taPrefix+"citationTopic-macro-"+r),t.R7$(3),t.Y8G("wosSearchHighlight",t.sMw(17,Go,o.record.ut,o.qid,a["content-id"]+" "+a.content))}}function Gx(i,n){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(3);t.BMQ("id",o.taPrefix+"citationTopic-macro-"+r),t.R7$(),t.JRh(a["content-id"]+" "+a.content)}}function Dx(i,n){if(1&i&&(t.qex(0),t.DNE(1,Px,4,21,"a",59),t.nI1(2,"feature"),t.DNE(3,Gx,2,2,"ng-template",null,1,t.C5r),t.j41(5,"mat-icon",60),t.EFF(6),t.k0s(),t.bVm()),2&i){const e=t.sdS(4),a=t.XpG(4);t.R7$(),t.Y8G("ngIf",!t.bMT(2,3,"nxPresentationControl_Disable_Citation_Topics_Goals"))("ngIfElse",e),t.R7$(5),t.JRh(a.isRTL?"chevron_left":"chevron_right")}}function $x(i,n){if(1&i&&(t.j41(0,"a",65),t.nI1(1,"translate"),t.nI1(2,"translate"),t.nrm(3,"span",62),t.k0s()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(3);t.Y8G("routerLink",t.eq3(12,It,"WOS"===o.record.coll?"woscc":o.record.coll.toLowerCase()))("matTooltip",t.bMT(1,8,"clickToFindMoreRecord")+a["content-type"]+t.bMT(2,10,"citationTopicAlt"))("state",t.l_i(14,Ct,o.database!==o.record.coll&&"WOSCC"!==o.database,o.record.coll))("ngClass","section-label-data full-record-detail-section-links")("queryParams",o.getQuickSearchString('"'+a["content-id"]+" "+a.content+'"',"TMSO","true")),t.BMQ("data-ta",o.taPrefix+"citationTopic-meso-"+r)("id",o.taPrefix+"citationTopic-meso-"+r),t.R7$(3),t.Y8G("wosSearchHighlight",t.sMw(17,Go,o.record.ut,o.qid,a["content-id"]+" "+a.content))}}function Lx(i,n){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(3);t.BMQ("id",o.taPrefix+"citationTopic-meso-"+r),t.R7$(),t.JRh(a["content-id"]+" "+a.content)}}function Nx(i,n){if(1&i&&(t.qex(0),t.DNE(1,$x,4,21,"a",63),t.nI1(2,"feature"),t.DNE(3,Lx,2,2,"ng-template",null,2,t.C5r),t.j41(5,"mat-icon",64),t.EFF(6),t.k0s(),t.bVm()),2&i){const e=t.sdS(4),a=t.XpG(4);t.R7$(),t.Y8G("ngIf",!t.bMT(2,3,"nxPresentationControl_Disable_Citation_Topics_Goals"))("ngIfElse",e),t.R7$(5),t.JRh(a.isRTL?"chevron_left":"chevron_right")}}function jx(i,n){if(1&i&&(t.j41(0,"a",67),t.nI1(1,"translate"),t.nI1(2,"translate"),t.nrm(3,"span",62),t.k0s()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(3);t.Y8G("routerLink",t.eq3(12,It,"WOS"===o.record.coll?"woscc":o.record.coll.toLowerCase()))("matTooltip",t.bMT(1,8,"clickToFindMoreRecord")+a["content-type"]+t.bMT(2,10,"citationTopicAlt"))("state",t.l_i(14,Ct,o.database!==o.record.coll&&"WOSCC"!==o.database,o.record.coll))("ngClass","section-label-data full-record-detail-section-links")("queryParams",o.getQuickSearchString('"'+a["content-id"]+" "+a.content+'"',"TMIC","true")),t.BMQ("data-ta",o.taPrefix+"citationTopic-micro-"+r)("id",o.taPrefix+"citationTopic-micro-"+r),t.R7$(3),t.Y8G("wosSearchHighlight",t.sMw(17,Go,o.record.ut,o.qid,a["content-id"]+" "+a.content))}}function Ox(i,n){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(3);t.BMQ("id",o.taPrefix+"citationTopic-micro-"+r),t.R7$(),t.JRh(a["content-id"]+" "+a.content)}}function Bx(i,n){if(1&i&&(t.qex(0),t.DNE(1,jx,4,21,"a",66),t.nI1(2,"feature"),t.DNE(3,Ox,2,2,"ng-template",null,3,t.C5r),t.bVm()),2&i){const e=t.sdS(4);t.R7$(),t.Y8G("ngIf",!t.bMT(2,2,"nxPresentationControl_Disable_Citation_Topics_Goals"))("ngIfElse",e)}}function Yx(i,n){if(1&i&&(t.qex(0),t.DNE(1,Dx,7,5,"ng-container",44)(2,Nx,7,5,"ng-container",44)(3,Bx,5,4,"ng-container",44),t.bVm()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf","macro"===e["content-type"]),t.R7$(),t.Y8G("ngIf","meso"===e["content-type"]),t.R7$(),t.Y8G("ngIf","micro"===e["content-type"])}}function Xx(i,n){if(1&i&&(t.j41(0,"div",57)(1,"h3",58),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,Yx,4,3,"ng-container",47),t.k0s()),2&i){const e=t.XpG(2);t.R7$(2),t.SpI(" ",t.bMT(3,2,"citationTopics"),""),t.R7$(2),t.Y8G("ngForOf",e.record.citation_related.citation_topics)}}function qx(i,n){if(1&i&&(t.j41(0,"a",70),t.nI1(1,"translate"),t.nrm(2,"span",62),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.FS9("cdxAnalyticsCategory","SDG category-"+a.sdg_category),t.Y8G("routerLink",t.eq3(11,It,"WOS"===o.record.coll?"woscc":o.record.coll.toLowerCase()))("matTooltip",t.bMT(1,9,"SDG_toolTip"))("state",t.l_i(13,Ct,o.database!==o.record.coll&&"WOSCC"!==o.database,o.record.coll))("ngClass","section-label-data full-record-detail-section-links")("queryParams",o.getQuickSearchString(a.sdg_category,"SDG","true")),t.BMQ("data-ta",o.taPrefix+"sdg-category-"+r)("id",o.taPrefix+"sdg-category-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(16,Cx,o.record.ut,o.qid,a.sdg_category))}}function Hx(i,n){if(1&i&&(t.j41(0,"span",71),t.EFF(1),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.Y8G("ngClass","section-label-data"),t.BMQ("id",o.taPrefix+"sdg-category-"+r),t.R7$(),t.JRh(a.sdg_category)}}function Vx(i,n){1&i&&t.nrm(0,"span",72)}function zx(i,n){if(1&i&&(t.qex(0),t.DNE(1,qx,3,20,"a",68),t.nI1(2,"feature"),t.DNE(3,Hx,2,3,"ng-template",null,4,t.C5r)(5,Vx,1,0,"span",69),t.bVm()),2&i){const e=n.last,a=t.sdS(4);t.R7$(),t.Y8G("ngIf",!t.bMT(2,3,"nxPresentationControl_Disable_Citation_Topics_Goals"))("ngIfElse",a),t.R7$(4),t.Y8G("ngIf",!e)}}function Qx(i,n){if(1&i&&(t.j41(0,"div",57)(1,"h3",58),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,zx,6,5,"ng-container",47),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("id",e.taPrefix+"sdg-label"),t.R7$(),t.SpI(" ",t.bMT(3,3,"SDG_categories"),""),t.R7$(2),t.Y8G("ngForOf",e.record.citation_related.SDG)}}function Ux(i,n){if(1&i&&(t.qex(0),t.j41(1,"a",76),t.nI1(2,"translate"),t.nrm(3,"span",62),t.k0s(),t.bVm()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.R7$(),t.Y8G("ngClass","section-label-data full-record-detail-section-links")("routerLink",t.eq3(10,It,"WOS"===o.record.coll?"woscc":o.record.coll.toLowerCase()))("matTooltip",t.bMT(2,8,"WOS_Category_tooltip")+a.subject)("queryParams",o.getQuickSearchString(a.subject,"WC"))("state",t.l_i(12,Ct,o.database!==o.record.coll&&!("WOSCC"===o.database&&"WOS"===o.record.coll),o.record.coll.toLowerCase())),t.BMQ("data-ta",o.taPrefix+"WOSCate
1gory-"+a.subject+r)("id",o.taPrefix+"WOSCategory-"+a.subject+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(15,ed,o.record.ut,o.qid,a.subject))}}function Jx(i,n){if(1&i&&t.nrm(0,"span",62),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,ed,a.record.ut,a.qid,e.subject))}}function Wx(i,n){1&i&&t.nrm(0,"span",77)}function Kx(i,n){if(1&i&&(t.qex(0),t.DNE(1,Ux,4,19,"ng-container",74),t.nI1(2,"feature"),t.nI1(3,"feature"),t.DNE(4,Jx,1,5,"ng-template",null,5,t.C5r)(6,Wx,1,0,"span",75),t.bVm()),2&i){const e=n.last,a=t.sdS(5);t.R7$(),t.Y8G("ngIf",!(t.bMT(2,3,"nxPresentationControl_Cancelled_disableWebOfScienceCategoriesLink")||t.bMT(3,5,"nxPresentationControl_FullRecord_Hide_WebOfScienceCategories")))("ngIfElse",a),t.R7$(5),t.Y8G("ngIf",!e)}}function Zx(i,n){if(1&i&&(t.j41(0,"div",41)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,Kx,7,7,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"WOSCategories")),t.R7$(3),t.Y8G("ngForOf",e.record.category_info.subjects.filter(e.getTraditionalSubjects))}}function t7(i,n){1&i&&t.eu8(0)}function e7(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",78),t.DNE(2,t7,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundFSTAkeywords),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function n7(i,n){if(1&i&&(t.j41(0,"h3",84),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(5);t.BMQ("id",e.taPrefix+"descriptorsLabel")("data-ta",e.taPrefix+"descriptorsListLabel"),t.R7$(),t.JRh(t.bMT(2,3,"descriptors"))}}function i7(i,n){1&i&&t.nrm(0,"span",72)}function a7(i,n){if(1&i){const e=t.RV6();t.qex(0),t.DNE(1,n7,3,5,"h3",80),t.j41(2,"span",81)(3,"a",82),t.nI1(4,"translate"),t.j41(5,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundFSTAkeywords=!0)}),t.k0s()()(),t.DNE(6,i7,1,0,"span",69),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.first,o=n.last,s=t.XpG(4);t.R7$(),t.Y8G("ngIf",r),t.R7$(2),t.Mz_("id","descriptorsLink",a,""),t.Y8G("routerLink",t.eq3(13,It,s.record.item.super_record_FSTA?"fsta":s.record.coll.toLowerCase()))("state",t.l_i(15,Ct,s.database!==s.record.coll,s.record.item.super_record_FSTA?"fsta":s.record.coll.toLowerCase()))("matTooltip",t.bMT(4,11,"KeywordsAlt"))("queryParams",s.getQuickSearchString(e,"DE")),t.BMQ("id",s.taPrefix+"descriptorsLink-"+a)("data-ta",s.taPrefix+"descriptorsLink-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(18,_t,s.record.ut,s.qid,s.record.item.super_record_FSTA||"ALLDB"===s.database?"keywords":"descriptors",e)),t.R7$(),t.Y8G("ngIf",!o)}}function r7(i,n){if(1&i&&(t.j41(0,"div",41)(1,"h2",42),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43)(5,"div"),t.DNE(6,a7,7,23,"ng-container",47),t.k0s()()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("id",e.taPrefix+"descriptors")("data-ta",e.taPrefix+"descriptors"),t.R7$(),t.SpI(" ",t.bMT(3,4,"descriptors"),""),t.R7$(4),t.Y8G("ngForOf",null==e.record.item?null:e.record.item.Keywords)}}function o7(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,e7,3,3,"div",74)(2,r7,7,6,"ng-template",null,6,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("ngIf",null==a.record.item?null:a.record.item.super_record_FSTA)("ngIfElse",e)}}function s7(i,n){if(1&i&&(t.j41(0,"a",86),t.nI1(1,"translate"),t.nrm(2,"span",62),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.FS9("cdxAnalyticsCategory",o.record.coll.toLowerCase()+"-categories-classification"),t.Y8G("routerLink",t.eq3(11,It,o.record.coll))("queryParams",o.getRouterParams("categories",a,"true"))("matTooltip",t.bMT(1,9,"categoriesAlt")),t.BMQ("id",o.taPrefix+"DisplayName-"+a+"-"+r)("data-ta",o.taPrefix+"DisplayName-"+a+"-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(13,nd,o.record.ut,o.qid,a)),t.BMQ("data-ta",o.taPrefix+"categories-"+r)("id",o.taPrefix+"categories-"+r)}}function l7(i,n){if(1&i&&(t.nrm(0,"span",62),t.nI1(1,"titlecase")),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.Y8G("wosSearchHighlight",t.ziG(5,_t,o.record.ut,o.qid,o.record.coll.toLowerCase()+"_categories",t.bMT(1,3,a))),t.BMQ("data-ta",o.taPrefix+"articleSubject-"+r)("id",o.taPrefix+"articleSubject-"+r)}}function c7(i,n){1&i&&t.nrm(0,"span",72)}function d7(i,n){if(1&i&&(t.qex(0),t.DNE(1,s7,3,17,"a",85)(2,l7,2,10,"ng-template",null,7,t.C5r)(4,c7,1,0,"span",69),t.bVm()),2&i){const e=n.last,a=t.sdS(3),r=t.XpG(3);t.R7$(),t.Y8G("ngIf",r.isECSearchableField&&r.buildSiloOneClickLink)("ngIfElse",a),t.R7$(3),t.Y8G("ngIf",!e)}}function u7(i,n){if(1&i&&(t.j41(0,"div",41)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,d7,5,3,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"articleSubjectsLabel")("id",e.taPrefix+"articleSubjectsLabel"),t.R7$(),t.JRh(t.bMT(3,4,e.record.coll+"Categories")),t.R7$(3),t.Y8G("ngForOf",e.articleCategorySubject)}}function _7(i,n){1&i&&t.eu8(0)}function p7(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",87),t.DNE(2,_7,1,0,"ng-container",79),t.k0s()()),2&i){const e=t.XpG().$implicit,a=t.sdS(3),r=t.XpG(2);t.R7$(),t.Y8G("record",r.record)("collection",e)("fieldTitle",e+"Categories"),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function h7(i,n){if(1&i&&(t.nrm(0,"span",62),t.nI1(1,"titlecase")),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2).$implicit,s=t.XpG(2);t.Y8G("wosSearchHighlight",t.ziG(5,_t,s.record.ut,s.qid,o+"_categories",t.bMT(1,3,a))),t.BMQ("data-ta",s.taPrefix+"articleSubject-"+r)("id",s.taPrefix+"articleSubject-"+r)}}function m7(i,n){1&i&&t.nrm(0,"span",72)}function g7(i,n){if(1&i&&(t.qex(0),t.j41(1,"a",89),t.nI1(2,"translate"),t.nrm(3,"span",62),t.k0s(),t.DNE(4,h7,2,10,"ng-template",null,7,t.C5r)(6,m7,1,0,"span",69),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(2).$implicit,s=t.XpG(2);t.R7$(),t.FS9("cdxAnalyticsCategory",o+"-categories-classification"),t.Y8G("routerLink",t.eq3(13,It,o))("queryParams",s.getRouterParams("categories",e))("state",t.l_i(15,Ct,s.database!==o,o))("matTooltip",t.bMT(2,11,"categoriesAlt")),t.BMQ("id",s.taPrefix+"DisplayName-"+e+"-"+a)("data-ta",s.taPrefix+"DisplayName-"+e+"-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(18,nd,s.record.ut,s.qid,e)),t.BMQ("data-ta",s.taPrefix+"categories-"+a)("id",s.taPrefix+"categories-"+a),t.R7$(3),t.Y8G("ngIf",!r)}}function f7(i,n){if(1&i&&(t.j41(0,"div",88)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,g7,7,22,"ng-container",47),t.k0s()()),2&i){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(),t.BMQ("data-ta",a.taPrefix+"articleSubjectsLabel")("id",a.taPrefix+"articleSubjectsLabel"),t.R7$(),t.JRh(t.bMT(3,4,e+"Categories")),t.R7$(3),t.Y8G("ngForOf",a.superRecArticleCategorySubjectList[e])}}function b7(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,p7,3,4,"div",44)(2,f7,6,6,"ng-template",null,8,t.C5r),t.k0s()),2&i){const e=n.$implicit,a=t.XpG(2);t.R7$(),t.Y8G("ngIf",(null==a.superRecArticleCategorySubjectList[e]?null:a.superRecArticleCategorySubjectList[e].length)>0)}}function v7(i,n){1&i&&t.eu8(0)}function x7(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",91),t.DNE(2,v7,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundCABIdesc),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function C7(i,n){1&i&&t.nrm(0,"span",72)}function R7(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"a",93),t.nI1(2,"translate"),t.j41(3,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundCABIdesc=!0)}),t.k0s()(),t.DNE(4,C7,1,0,"span",69),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(4);t.R7$(),t.Y8G("matTooltip",t.bMT(2,10,o.getAltText("descriptors")))("routerLink",t.lJ4(12,Da))("queryParams",o.getRouterParams("descriptors",e))("state",t.l_i(13,Ct,o.database!==o.record.coll,o.record.item.super_record_CABI?"cabi":o.record.coll.toLowerCase())),t.BMQ("id",o.taPrefix+"DisplayName-"+e+"-"+a)("data-ta",o.taPrefix+"DisplayName-"+e+"-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(16,_t,o.record.ut,o.qid,o.record.item.super_record_CABI?"abstract":"descriptors",e)),t.BMQ("data-ta",o.taPrefix+"descriptors-"+a)("id",o.taPrefix+"descriptors-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function y7(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,R7,5,21,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(7,Ut,null==e.record.item?null:e.record.item.super_record_CABI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"descriptorsLabel")("id",e.taPrefix+"descriptorsLabel"),t.R7$(),t.JRh(t.bMT(3,5,"DE_search_field_name")),t.R7$(3),t.Y8G("ngForOf",e.descriptorsList)}}function T7(i,n){if(1&i&&(t.j41(0,"div",90),t.DNE(1,x7,3,3,"div",74)(2,y7,6,9,"ng-template",null,9,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("ngIf",null==a.record.item?null:a.record.item.super_record_CABI)("ngIfElse",e)}}function I7(i,n){1&i&&t.eu8(0)}function k7(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",94),t.DNE(2,I7,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundCABIbroadDesc),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function F7(i,n){1&i&&t.nrm(0,"span",72)}function w7(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"a",95),t.nI1(2,"translate"),t.j41(3,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundCABIbroadDesc=!0)}),t.k0s()(),t.DNE(4,F7,1,0,"span",69),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(4);t.R7$(),t.Y8G("matTooltip",t.bMT(2,10,o.getAltText("broad_descriptors")))("routerLink",t.lJ4(12,Da))("queryParams",o.getRouterParams("broad_descriptors",e,"true"))("state",t.l_i(13,Ct,o.database!==o.record.coll,o.record.item.super_record_CABI?"cabi":o.record.coll.toLowerCase())),t.BMQ("id",o.taPrefix+"DisplayName-"+e+"-"+a)("data-ta",o.taPrefix+"DisplayName-"+e+"-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(16,_t,o.record.ut,o.qid,o.record.item.super_record_CABI?"abstract":"broad_descriptors",e)),t.BMQ("data-ta",o.taPrefix+"broadDescriptors-"+a)("id",o.taPrefix+"broadDescriptors-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function M7(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,w7,5,21,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_CABI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"broadDescriptorsLabel")("id",e.taPrefix+"broadDescriptorsLabel"),t.R7$(),t.JRh(t.bMT(3,5,"BD_search_field_name")),t.R7$(3),t.Y8G("ngForOf",e.broadDescriptorsList)}}function S7(i,n){if(1&i&&(t.j41(0,"div",90),t.DNE(1,k7,3,3,"div",74)(2,M7,6,9,"ng-template",null,10,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_CABI)("ngIfElse",e)}}function A7(i,n){1&i&&t.eu8(0)}function E7(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",96
1),t.DNE(2,A7,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundCABIorgDesc),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function P7(i,n){1&i&&t.nrm(0,"span",72)}function G7(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"a",97),t.nI1(2,"translate"),t.j41(3,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundCABIorgDesc=!0)}),t.k0s()(),t.DNE(4,P7,1,0,"span",69),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(4);t.R7$(),t.Y8G("matTooltip",t.bMT(2,10,o.getAltText("organism_descriptors")))("routerLink",t.lJ4(12,Da))("queryParams",o.getRouterParams("organism_descriptors",e))("state",t.l_i(13,Ct,o.database!==o.record.coll,o.record.item.super_record_CABI?"cabi":o.record.coll.toLowerCase())),t.BMQ("id",o.taPrefix+"DisplayName-"+e+"-"+a)("data-ta",o.taPrefix+"DisplayName-"+e+"-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(16,_t,o.record.ut,o.qid,o.record.item.super_record_CABI?"abstract":"organism_descriptors",e)),t.BMQ("data-ta",o.taPrefix+"organismDescriptors-"+a)("id",o.taPrefix+"organismDescriptors-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function D7(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,G7,5,21,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_CABI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"organismDescriptorsLabel")("id",e.taPrefix+"organismDescriptorsLabel"),t.R7$(),t.JRh(t.bMT(3,5,"OD_search_field_name")),t.R7$(3),t.Y8G("ngForOf",e.organismDescriptorsList)}}function $7(i,n){if(1&i&&(t.j41(0,"div",90),t.DNE(1,E7,3,3,"div",74)(2,D7,6,9,"ng-template",null,11,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_CABI)("ngIfElse",e)}}function L7(i,n){1&i&&t.eu8(0)}function N7(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",98),t.DNE(2,L7,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundCABIcodes),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function j7(i,n){1&i&&t.nrm(0,"span",72)}function O7(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"a",99),t.nI1(2,"translate"),t.nrm(3,"span",62),t.k0s(),t.j41(4,"span",100),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundCABIcodes=!0)}),t.k0s(),t.DNE(5,j7,1,0,"span",69),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(4);t.R7$(),t.Y8G("matTooltip",t.bMT(2,13,o.getAltText("cabi_code")))("routerLink",t.lJ4(15,Da))("queryParams",o.getRouterParams("cabi_code",e.cabi_code))("state",t.l_i(16,Ct,o.database!==o.record.coll,o.record.item.super_record_CABI?"cabi":o.record.coll.toLowerCase())),t.BMQ("id",o.taPrefix+"DisplayName-"+e.cabi_code+"-"+a)("data-ta",o.taPrefix+"DisplayName-"+e.cabi_code+"-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(19,Rx,o.record.ut,o.qid,e.cabi_code)),t.BMQ("data-ta",o.taPrefix+"cabiCodes-"+a)("id",o.taPrefix+"cabiCodes-"+a),t.R7$(),t.Y8G("wosSearchHighlight",t.ziG(23,_t,o.record.ut,o.qid,o.record.item.super_record_CABI?"abstract":"cabi_code",e.cabi_description)),t.BMQ("data-ta",o.taPrefix+"cabiCodes-"+a)("id",o.taPrefix+"cabiCodes-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function B7(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,O7,6,28,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_CABI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"cabiCodesLabel")("id",e.taPrefix+"cabiCodesLabel"),t.R7$(),t.JRh(t.bMT(3,5,"CCO_search_field_name")),t.R7$(3),t.Y8G("ngForOf",e.cabiCodesList)}}function Y7(i,n){if(1&i&&(t.j41(0,"div",90),t.DNE(1,N7,3,3,"div",74)(2,B7,6,9,"ng-template",null,12,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_CABI)("ngIfElse",e)}}function X7(i,n){1&i&&t.eu8(0)}function q7(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",101),t.DNE(2,X7,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(4),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function H7(i,n){1&i&&t.nrm(0,"span",72)}function V7(i,n){if(1&i&&(t.qex(0),t.j41(1,"span",81),t.EFF(2),t.k0s(),t.j41(3,"span",102),t.EFF(4),t.k0s(),t.DNE(5,H7,1,0,"span",69),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(4);t.R7$(),t.BMQ("data-ta",o.taPrefix+"intPatentClassification-"+a)("id",o.taPrefix+"intPatentClassification-"+a),t.R7$(),t.SpI(" ",e.code,""),t.R7$(),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",o.taPrefix+"intPatentClassificationDesc-"+a)("id",o.taPrefix+"intPatentClassificationDesc-"+a),t.R7$(),t.SpI(" ",e.cct,""),t.R7$(),t.Y8G("ngIf",!r)}}function z7(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,V7,6,8,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_INSPEC)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"intPatentClassificationLabel")("id",e.taPrefix+"intPatentClassificationLabel"),t.R7$(),t.JRh(t.bMT(3,5,"IP_search_field_name")),t.R7$(3),t.Y8G("ngForOf",e.record.item.indexg.ipcg)}}function Q7(i,n){if(1&i&&(t.j41(0,"div",90),t.qex(1),t.DNE(2,q7,3,2,"div",74),t.bVm(),t.DNE(3,z7,6,9,"ng-template",null,13,t.C5r),t.k0s()),2&i){const e=t.sdS(4),a=t.XpG(2);t.R7$(2),t.Y8G("ngIf",a.record.item.super_record_INSPEC)("ngIfElse",e)}}function U7(i,n){if(1&i&&(t.j41(0,"a",104),t.nI1(1,"translate"),t.nrm(2,"span",62),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.FS9("cdxAnalyticsCategory",o.record.coll.toLowerCase()+"-codes"),t.Y8G("matTooltip",t.bMT(1,9,"chemicalIndexAlt"))("routerLink",t.eq3(11,It,o.database.toLowerCase()))("queryParams",o.getRouterParams("chemical",a)),t.BMQ("id",o.taPrefix+"DisplayName-"+a+"-"+r)("data-ta",o.taPrefix+"DisplayName-"+a+"-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(13,id,o.record.ut,o.qid,a)),t.BMQ("data-ta",o.taPrefix+"chemicalIndex-"+r)("id",o.taPrefix+"chemicalIndex-"+r)}}function J7(i,n){if(1&i&&t.nrm(0,"span",105),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,id,o.record.ut,o.qid,a)),t.BMQ("data-ta",o.taPrefix+"chemicalIndex-"+r)("id",o.taPrefix+"chemicalIndex-"+r)}}function W7(i,n){1&i&&t.nrm(0,"span",72)}function K7(i,n){if(1&i&&(t.qex(0),t.DNE(1,U7,3,17,"a",103)(2,J7,1,7,"ng-template",null,14,t.C5r)(4,W7,1,0,"span",69),t.bVm()),2&i){const e=n.last,a=t.sdS(3),r=t.XpG(3);t.R7$(),t.Y8G("ngIf",r.buildSiloOneClickLink)("ngIfElse",a),t.R7$(3),t.Y8G("ngIf",!e)}}function Z7(i,n){if(1&i&&(t.j41(0,"div",41)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,K7,5,3,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"chemicalIndexLabel")("id",e.taPrefix+"chemicalIndexLabel"),t.R7$(),t.JRh(t.bMT(3,4,"CH_search_field_name")),t.R7$(3),t.Y8G("ngForOf",e.record.item.chemical)}}function tC(i,n){if(1&i&&(t.j41(0,"a",104),t.nI1(1,"translate"),t.nrm(2,"span",62),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.FS9("cdxAnalyticsCategory",o.record.coll.toLowerCase()+"-codes"),t.Y8G("matTooltip",t.bMT(1,9,"astronomicalAlt"))("routerLink",t.eq3(11,It,o.database.toLowerCase()))("queryParams",o.getRouterParams("astronomical",a)),t.BMQ("id",o.taPrefix+"DisplayName-"+a+"-"+r)("data-ta",o.taPrefix+"DisplayName-"+a+"-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(13,ad,o.record.ut,o.qid,a)),t.BMQ("data-ta",o.taPrefix+"astronomicalObject-"+r)("id",o.taPrefix+"astronomicalObject-"+r)}}function eC(i,n){if(1&i&&t.nrm(0,"span",105),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,ad,o.record.ut,o.qid,a)),t.BMQ("data-ta",o.taPrefix+"astronomicalObject-"+r)("id",o.taPrefix+"v-"+r)}}function nC(i,n){1&i&&t.nrm(0,"span",72)}function iC(i,n){if(1&i&&(t.qex(0),t.DNE(1,tC,3,17,"a",103)(2,eC,1,7,"ng-template",null,14,t.C5r)(4,nC,1,0,"span",69),t.bVm()),2&i){const e=n.last,a=t.sdS(3),r=t.XpG(3);t.R7$(),t.Y8G("ngIf",r.buildSiloOneClickLink)("ngIfElse",a),t.R7$(3),t.Y8G("ngIf",!e)}}function aC(i,n){if(1&i&&(t.j41(0,"div",41)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,iC,5,3,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"astronomicalObject")("id",e.taPrefix+"astronomicalObject"),t.R7$(),t.JRh(t.bMT(3,4,"astronomical_name")),t.R7$(3),t.Y8G("ngForOf",e.record.item.astronomicalindex)}}function rC(i,n){1&i&&t.eu8(0)}function oC(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",106),t.DNE(2,rC,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(4),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundINSPECclassification),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function sC(i,n){1&i&&t.nrm(0,"span",72)}function lC(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"a",107,16),t.nI1(3,"translate"),t.bIt("menuOpened",function(){const r=t.eBV(e).index,o=t.XpG(4);return t.Njj(o.expanded[r]=!0)})("menuClosed",function(){const r=t.eBV(e).index,o=t.XpG(4);return t.Njj(o.expanded[r]=!1)})("keydown.enter",function(){t.eBV(e);const r=t.sdS(2);return t.Njj(r.menuOpen?r.closeMenu():r.openMenu())})("keydown.tab",function(){t.eBV(e);const r=t.sdS(2);return t.Njj(r.closeMenu())}),t.j41(4,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundINSPECclassification=!0)}),t.k0s(),t.j41(5,"mat-icon",108),t.EFF(6),t.k0s()(),t.j41(7,"mat-menu",109,17)(9,"a",110),t.nI1(10,"translate"),t.nI1(11,"translate"),t.nI1(12,"translate"),t.j41(13,"mat-icon",111),t.EFF(14,"open_in_new"),t.k0s(),t.EFF(15),t.nI1(16,"translate"),t.nrm(17,"img",112),t.k0s(),t.nrm(18,"hr"),t.j41(19,"a",113),t.nI1(20,"translate"),t.j41(21,"mat-icon",111),t.EFF(22,"search"),t.k0s(),t.EFF(23),t.nI1(24,"translate"),t.k0s()(),t.j41(25,"span",114),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundINSPECclassification=!0)}),t.k0s(),t.DNE(26,sC,1,0,"span",69),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.sdS(2),s=t.sdS(8),l=t.XpG(4);t.R7$(),t.Y8G("matMenuTriggerFor",s)("matTooltip",t.bMT(3,26,"classificationCodesAlt"))("ngClass",t.eq3(40,rd,o.menuOpen)),t.BMQ("aria-expanded",l.expanded[a]),t.R7$(3),t.Y8G("wosSearchHighlight",t.ziG(42,_t,l.record.ut,l.qid,l.record.item.super_record_INSPEC?"abstract":"Classification",e.code)),t.BMQ("data-ta",l.taPrefix+"InspecClassification-"+a)("id",l.taPrefix+"InspecClassification-"+a),t.R7$(2),t.JRh(l.expanded[a]?"arrow_drop_up":"arrow_drop_down"),t.R7$(3),t.Y8G("matTooltip",t.bMT(10,28,"inspecView"))("href",l.subjectClasification+e.code,t.B4B),t.BMQ("id",l.taPrefix+"ViewInInspec-"+a)("data-ta",l.taPrefix+"ViewInInspec-"+a)("aria-label",t.bMT(11,30,"ViewInInspec")+" "+e.code+t.bMT(12,32,"OpenInNewWindow")),t.R7$(6),t.SpI("",t.bMT(16,34,"ViewInInspec")," "),t.R7$(4),t.Y8G("matTooltip",t.bMT(20,36,"classificationCodesAlt"))("routerLink",t.lJ4(47,od))("queryParams",l.getRouterParams("classification",e.code))("state",t.l_i(48,Ct,l.database!==l.record.coll,l.record.item.super_record_INSPEC?"inspec":l.record.coll.toLowerCase())),t.BMQ("id",l.taPrefix+"search in WebOfScience-"+a)("data-ta",l.taPrefix+"search in WebOfScience-"+a),t.R7$(4),t.SpI("",t.bMT(24,38,"searchWebOfScience")," "),t.R7$(2),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.ziG(51,_t,l.re
1cord.ut,l.qid,l.record.item.super_record_INSPEC?"abstract":"Classification",e.cct)),t.BMQ("data-ta",l.taPrefix+"ClassificationDesc-"+a)("id",l.taPrefix+"ClassificationDesc-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function cC(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,lC,27,56,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_INSPEC)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"classificationLabel")("id",e.taPrefix+"classificationLabel"),t.R7$(),t.JRh(t.bMT(3,5,"classificationCodes_plural")),t.R7$(3),t.Y8G("ngForOf",e.record.item.indexg.ccg)}}function dC(i,n){if(1&i&&(t.j41(0,"div"),t.qex(1),t.DNE(2,oC,3,3,"div",74),t.bVm(),t.DNE(3,cC,6,9,"ng-template",null,15,t.C5r),t.k0s()),2&i){const e=t.sdS(4),a=t.XpG(2);t.R7$(2),t.Y8G("ngIf",a.record.item.super_record_INSPEC)("ngIfElse",e)}}function uC(i,n){1&i&&t.eu8(0)}function _C(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",115),t.DNE(2,uC,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(4),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function pC(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",116),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(9,Ut,e.record.item.super_record_INSPEC)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"CODENLabel")("id",e.taPrefix+"CODENLAbel"),t.R7$(),t.JRh(t.bMT(3,7,"CODEN_search_field_name")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"CODEN")("id",e.taPrefix+"CODEN"),t.R7$(),t.JRh(e.record.item.bibliog.jrefg.jrog.cdn)}}function hC(i,n){if(1&i&&(t.j41(0,"div",90),t.qex(1),t.DNE(2,_C,3,2,"div",74),t.bVm(),t.DNE(3,pC,6,11,"ng-template",null,18,t.C5r),t.k0s()),2&i){const e=t.sdS(4),a=t.XpG(2);t.R7$(2),t.Y8G("ngIf",a.record.item.super_record_INSPEC)("ngIfElse",e)}}function mC(i,n){1&i&&t.eu8(0)}function gC(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",117),t.DNE(2,mC,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(4),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundINSPECcontrolledIndex),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function fC(i,n){1&i&&t.nrm(0,"span",72)}function bC(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"a",118,16),t.nI1(3,"translate"),t.bIt("menuOpened",function(){const r=t.eBV(e).index,o=t.XpG(4);return t.Njj(o.expanded[r]=!0)})("menuClosed",function(){const r=t.eBV(e).index,o=t.XpG(4);return t.Njj(o.expanded[r]=!1)})("keydown.enter",function(){t.eBV(e);const r=t.sdS(2);return t.Njj(r.menuOpen?r.closeMenu():r.openMenu())})("keydown.tab",function(){t.eBV(e);const r=t.sdS(2);return t.Njj(r.closeMenu())}),t.j41(4,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundINSPECcontrolledIndex=!0)}),t.k0s(),t.j41(5,"mat-icon",108),t.EFF(6),t.k0s()(),t.j41(7,"mat-menu",109,20)(9,"a",119),t.nI1(10,"translate"),t.nI1(11,"translate"),t.nI1(12,"translate"),t.j41(13,"mat-icon",111),t.EFF(14,"open_in_new"),t.k0s(),t.EFF(15),t.nI1(16,"translate"),t.nrm(17,"img",112),t.k0s(),t.nrm(18,"hr"),t.j41(19,"a",113),t.nI1(20,"translate"),t.j41(21,"mat-icon",111),t.EFF(22,"search"),t.k0s(),t.EFF(23),t.nI1(24,"translate"),t.k0s()(),t.DNE(25,fC,1,0,"span",69),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.sdS(2),s=t.sdS(8),l=t.XpG(4);t.R7$(),t.Y8G("matMenuTriggerFor",s)("matTooltip",t.bMT(3,22,"controlledIndexAlt"))("ngClass",t.eq3(36,rd,o.menuOpen)),t.BMQ("aria-expanded",l.expanded[a]),t.R7$(3),t.Y8G("wosSearchHighlight",t.ziG(38,_t,l.record.ut,l.qid,l.record.item.super_record_INSPEC?"abstract":"controlled_index",e.term)),t.BMQ("data-ta",l.taPrefix+"controlled_index-"+a)("id",l.taPrefix+"controlled_index-"+a),t.R7$(2),t.JRh(l.expanded[a]?"arrow_drop_up":"arrow_drop_down"),t.R7$(3),t.Y8G("matTooltip",t.bMT(10,24,"inspecView"))("href",l.contrlledTerms+l.replaceParentheses(l.encodeURIComponent(e.term)),t.B4B),t.BMQ("id",l.taPrefix+"controlledViewInInspec-"+a)("data-ta",l.taPrefix+"controlledViewInInspec-"+a)("aria-label",t.bMT(11,26,"ViewInInspec")+" "+e.term+t.bMT(12,28,"OpenInNewWindow")),t.R7$(6),t.SpI("",t.bMT(16,30,"ViewInInspec")," "),t.R7$(4),t.Y8G("matTooltip",t.bMT(20,32,"controlledIndexAlt"))("routerLink",t.lJ4(43,od))("queryParams",l.getRouterParams("controlled_index",e.term))("state",t.l_i(44,Ct,l.database!==l.record.coll,l.record.item.super_record_INSPEC?"inspec":l.record.coll.toLowerCase())),t.BMQ("id",l.taPrefix+"controlled_term-"+a)("data-ta",l.taPrefix+"controlled_term-"+a),t.R7$(4),t.SpI("",t.bMT(24,34,"searchWebOfScience")," "),t.R7$(2),t.Y8G("ngIf",!r)}}function vC(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,bC,26,47,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_INSPEC)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"controlled_index")("id",e.taPrefix+"controlled_index"),t.R7$(),t.JRh(t.bMT(3,5,"CIX_analyze_name")),t.R7$(3),t.Y8G("ngForOf",e.record.item.indexg.cindg.term)}}function xC(i,n){if(1&i&&(t.j41(0,"div"),t.qex(1),t.DNE(2,gC,3,3,"div",74),t.bVm(),t.DNE(3,vC,6,9,"ng-template",null,19,t.C5r),t.k0s()),2&i){const e=t.sdS(4),a=t.XpG(2);t.R7$(2),t.Y8G("ngIf",a.record.item.super_record_INSPEC)("ngIfElse",e)}}function CC(i,n){1&i&&t.eu8(0)}function RC(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",120),t.DNE(2,CC,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(4),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundINSPECuncontrolledIndex),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function yC(i,n){1&i&&t.nrm(0,"span",72)}function TC(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"span",121),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundINSPECuncontrolledIndex=!0)}),t.k0s(),t.DNE(2,yC,1,0,"span",69),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(4);t.R7$(),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.ziG(5,_t,o.record.ut,o.qid,o.record.item.super_record_INSPEC?"abstract":"uncontrolled_index",e.term)),t.BMQ("data-ta",o.taPrefix+"uncontrolled_index-"+a)("id",o.taPrefix+"uncontrolled_index-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function IC(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,TC,3,10,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_INSPEC)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"uncontrolled_index")("id",e.taPrefix+"uncontrolled_index"),t.R7$(),t.JRh(t.bMT(3,5,"UIX_
1search_field_name")),t.R7$(3),t.Y8G("ngForOf",null==e.record.item.indexg.ucindg?null:e.record.item.indexg.ucindg.term)}}function kC(i,n){if(1&i&&(t.j41(0,"div",90),t.qex(1),t.DNE(2,RC,3,3,"div",74),t.bVm(),t.DNE(3,IC,6,9,"ng-template",null,21,t.C5r),t.k0s()),2&i){const e=t.sdS(4),a=t.XpG(2);t.R7$(2),t.Y8G("ngIf",a.record.item.super_record_INSPEC)("ngIfElse",e)}}function FC(i,n){1&i&&t.eu8(0)}function wC(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",122),t.DNE(2,FC,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(4),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundFSTAsection),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function MC(i,n){if(1&i){const e=t.RV6();t.j41(0,"span")(1,"span"),t.EFF(2," : "),t.k0s(),t.j41(3,"a",89),t.nI1(4,"translate"),t.j41(5,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundFSTAsection=!0)}),t.k0s()()()}if(2&i){const e=t.XpG(4);t.R7$(3),t.FS9("cdxAnalyticsCategory",e.record.coll.toLowerCase()+"_section"),t.Y8G("routerLink",t.lJ4(12,sd))("queryParams",e.getRouterParams("FSTA_section",null==e.record.item?null:e.record.item.Subsection))("state",t.l_i(13,Ct,e.database!==e.record.coll,e.record.item.super_record_FSTA?"fsta":e.record.coll.toLowerCase()))("matTooltip",t.bMT(4,10,e.record.coll.toLowerCase()+"sectionAlt")),t.BMQ("id",e.taPrefix+"subsection")("data-ta",e.taPrefix+"subsection"),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(16,_t,e.record.ut,e.qid,e.record.item.super_record_FSTA?"abstract":e.record.coll+"_section",null==e.record.item?null:e.record.item.Subsection)),t.BMQ("data-ta",e.taPrefix+"subsection")("id",e.taPrefix+"subsection")}}function SC(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43)(5,"a",123),t.nI1(6,"translate"),t.j41(7,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.termFoundFSTAsection=!0)}),t.k0s()(),t.DNE(8,MC,6,21,"span",44),t.k0s()()}if(2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(18,Ut,e.record.item.super_record_FSTA)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"sectionLabel")("id",e.taPrefix+"sectionLabel"),t.R7$(),t.JRh(t.bMT(3,14,"FSTAsection")),t.R7$(3),t.Y8G("routerLink",t.lJ4(20,sd))("queryParams",e.getRouterParams("FSTA_section",null==e.record.item?null:e.record.item.Section))("state",t.l_i(21,Ct,e.database!==e.record.coll,e.record.item.super_record_FSTA?"fsta":e.record.coll.toLowerCase()))("matTooltip",t.bMT(6,16,e.record.coll.toLowerCase()+"sectionAlt")),t.BMQ("id",e.taPrefix+"section")("data-ta",e.taPrefix+"section"),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(24,_t,e.record.ut,e.qid,e.record.item.super_record_FSTA?"abstract":e.record.coll+"_section",null==e.record.item?null:e.record.item.Section)),t.BMQ("data-ta",e.taPrefix+"section")("id",e.taPrefix+"section"),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item?null:e.record.item.Subsection)}}function AC(i,n){if(1&i&&(t.j41(0,"div",90),t.qex(1),t.DNE(2,wC,3,3,"div",74),t.bVm(),t.DNE(3,SC,9,29,"ng-template",null,22,t.C5r),t.k0s()),2&i){const e=t.sdS(4),a=t.XpG(2);t.R7$(2),t.Y8G("ngIf",a.record.item.super_record_FSTA)("ngIfElse",e)}}function EC(i,n){if(1&i&&(t.j41(0,"a",104),t.nI1(1,"translate"),t.nrm(2,"span",62),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.FS9("cdxAnalyticsCategory",o.record.coll.toLowerCase()+"-CAS-registry-number"),t.Y8G("matTooltip",t.bMT(1,9,o.getAltText("cas_reg_num")))("routerLink",t.eq3(11,It,o.database.toLowerCase()))("queryParams",o.getRouterParams("cas_reg_num",a)),t.BMQ("id",o.taPrefix+"DisplayName-"+a+"-"+r)("data-ta",o.taPrefix+"DisplayName-"+a+"-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(13,ld,o.record.ut,o.qid,a)),t.BMQ("data-ta",o.taPrefix+"casRegNum-"+r)("id",o.taPrefix+"casRegNum-"+r)}}function PC(i,n){if(1&i&&t.nrm(0,"span",105),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,ld,o.record.ut,o.qid,a)),t.BMQ("data-ta",o.taPrefix+"casRegNum-"+r)("id",o.taPrefix+"casRegNum-"+r)}}function GC(i,n){1&i&&t.nrm(0,"span",72)}function DC(i,n){if(1&i&&(t.qex(0),t.DNE(1,EC,3,17,"a",103)(2,PC,1,7,"ng-template",null,23,t.C5r)(4,GC,1,0,"span",69),t.bVm()),2&i){const e=n.last,a=t.sdS(3),r=t.XpG(3);t.R7$(),t.Y8G("ngIf",r.buildSiloOneClickLink)("ngIfElse",a),t.R7$(3),t.Y8G("ngIf",!e)}}function $C(i,n){if(1&i&&(t.j41(0,"div",41)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,DC,5,3,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"casRegNumLabel")("id",e.taPrefix+"casRegNumLabel"),t.R7$(),t.JRh(t.bMT(3,4,"CR_search_field_name")),t.R7$(3),t.Y8G("ngForOf",e.casRegNumList)}}function LC(i,n){if(1&i&&(t.j41(0,"a",86),t.nI1(1,"translate"),t.nrm(2,"span",62),t.k0s()),2&i){const e=t.XpG(3);t.FS9("cdxAnalyticsCategory",e.record.coll.toLowerCase()+"_collection"),t.Y8G("routerLink",t.eq3(11,It,e.database.toLowerCase()))("queryParams",e.getRouterParams(e.record.coll.toLowerCase()+"_collection",e.record.journal_collection))("matTooltip",t.bMT(1,9,e.record.coll.toLowerCase()+"CollectionAlt")),t.BMQ("id",e.taPrefix+"journalCollection")("data-ta",e.taPrefix+"journalCollection"),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(13,_t,e.re
1cord.ut,e.qid,e.record.coll.toLowerCase()+"_collection",e.record.journal_collection)),t.BMQ("data-ta",e.taPrefix+"journalCollection")("id",e.taPrefix+"journalCollection")}}function NC(i,n){if(1&i&&t.nrm(0,"span",105),2&i){const e=t.XpG(3);t.Y8G("wosSearchHighlight",t.ziG(3,_t,e.record.ut,e.qid,e.record.coll.toLowerCase()+"_collection",e.record.journal_collection)),t.BMQ("data-ta",e.taPrefix+"journalCollection")("id",e.taPrefix+"journalCollection")}}function jC(i,n){1&i&&(t.j41(0,"span",125),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.SpI("\xa0(",t.bMT(2,1,"providedByClarivate"),")\xa0"))}function OC(i,n){if(1&i&&(t.j41(0,"div",41),t.qex(1),t.j41(2,"h3",73),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",43),t.DNE(6,LC,3,18,"a",85)(7,NC,1,8,"ng-template",null,24,t.C5r)(9,jC,3,3,"span",124),t.k0s(),t.bVm(),t.k0s()),2&i){const e=t.sdS(8),a=t.XpG(2);t.R7$(2),t.BMQ("data-ta",a.taPrefix+"journalCollectionLabel")("id",a.taPrefix+"journalCollectionLabel"),t.R7$(),t.JRh(t.bMT(4,6,a.record.coll.toUpperCase()+"Collection")),t.R7$(3),t.Y8G("ngIf",a.buildSiloOneClickLink)("ngIfElse",e),t.R7$(3),t.Y8G("ngIf",a.hostContentCollections.includes(a.database))}}function BC(i,n){1&i&&t.eu8(0)}function YC(i,n){1&i&&(t.j41(0,"span",125),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.SpI("\xa0(",t.bMT(2,1,"providedByClarivate"),")\xa0"))}function XC(i,n){if(1&i&&(t.j41(0,"div",88)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.nrm(5,"span",105),t.DNE(6,YC,3,3,"span",124),t.k0s()()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.R7$(),t.BMQ("data-ta",a.taPrefix+"journalCollectionLabel")("id",a.taPrefix+"journalCollectionLabel"),t.R7$(),t.JRh(t.bMT(3,7,e.superRecordCollection+"Collection")),t.R7$(3),t.Y8G("wosSearchHighlight",t.ziG(9,_t,a.record.ut,a.qid,e.superRecordCollection+"_collection",e.journal_collection)),t.BMQ("data-ta",a.taPrefix+"journalCollection")("id",a.taPrefix+"journalCollection"),t.R7$(),t.Y8G("ngIf",a.hostContentCollections.includes(e.superRecordCollection))}}function qC(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",87),t.DNE(2,BC,1,0,"ng-container",79),t.k0s(),t.DNE(3,XC,7,14,"ng-template",null,25,t.C5r),t.k0s()),2&i){const e=n.$implicit,a=t.sdS(4),r=t.XpG(3);t.R7$(),t.Y8G("record",r.record)("collection",e.superRecordCollection)("fieldTitle",e.superRecordCollection+"Collection"),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function HC(i,n){if(1&i&&(t.j41(0,"div",90),t.DNE(1,qC,5,4,"div",47),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",null==e.record||null==e.record.super_record_fields?null:e.record.super_record_fields.journal_collection)}}function VC(i,n){1&i&&t.nrm(0,"span",72)}function zC(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",62),t.nI1(2,"translate"),t.DNE(3,VC,1,0,"span",69),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(3);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(6,yx,o.record.ut,o.qid,t.bMT(2,4,e.edition))),t.BMQ("data-ta",o.taPrefix+"edition-"+a)("id",o.taPrefix+"edition-"+a),t.R7$(2),t.Y8G("ngIf",!r)}}function QC(i,n){1&i&&t.nrm(0,"span",72)}function UC(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",62),t.DNE(2,QC,1,0,"span",69),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(3);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(4,Tx,o.record.ut,o.qid,e.subject)),t.BMQ("data-ta",o.taPrefix+"discipline-"+a)("id",o.taPrefix+"discipline-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function JC(i,n){if(1&i&&(t.j41(0,"div")(1,"div",41)(2,"h3",73),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",43),t.DNE(6,zC,4,10,"ng-container",47),t.k0s()(),t.j41(7,"div",41)(8,"h3",73),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"span",43),t.DNE(12,UC,3,8,"ng-container",47),t.k0s()()()),2&i){const e=t.XpG(2);t.R7$(2),t.BMQ("data-ta",e.taPrefix+"editionLabel")("id",e.taPrefix+"editionLabel"),t.R7$(),t.JRh(t.bMT(4,8,"cccEditions")),t.R7$(3),t.Y8G("ngForOf",e.record.item.subjects),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"disciplineLabel")("id",e.taPrefix+"disciplineLabel"),t.R7$(),t.JRh(t.bMT(10,10,"discipline")),t.R7$(3),t.Y8G("ngForOf",e.record.item.subjects)}}function WC(i,n){1&i&&t.eu8(0)}function KC(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",127),t.DNE(2,WC,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(3);t.R7$(),t.Y8G("record",a.record),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function ZC(i,n){1&i&&t.nrm(0,"span",72)}function t5(i,n){if(1&i&&(t.qex(0),t.j41(1,"a",128),t.nI1(2,"translate"),t.nrm(3,"span",62),t.k0s(),t.DNE(4,ZC,1,0,"span",69),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(5);t.R7$(),t.Y8G("routerLink",t.eq3(10,It,o.record.item.super_record_ZOOREC?"zoorec":o.record.coll.toLowerCase()))("matTooltip",t.bMT(2,8,"BroadTermsAlt"))("queryParams",o.getQuickSearchString(e||"","BT","true"))("state",t.l_i(12,Ct,o.database!==o.record.coll,o.record.item.super_record_ZOOREC?"zoorec":o.record.coll.toLowerCase())),t.BMQ("data-ta",o.taPrefix+"broadTerms-"+a)("id",o.taPrefix+"broadTerms-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(15,_t,o.record.ut,o.qid,o.record.item.super_record_ZOOREC?"abstract":"broad_terms",e||"")),t.R7$(),t.Y8G("ngIf",!r)}}function e5(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,t5,5,20,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(4);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_ZOOREC)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"broadTermsLabel")("id",e.taPrefix+"broadTermsLabel"),t.R7$(),t.JRh(t.bMT(3,5,"broadTerm")),t.R7$(3),t.Y8G("ngForOf",e.record.item.ZRIndex.BroadTermsList)}}function n5(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,KC,3,2,"div",74)(2,e5,6,9,"ng-template",null,26,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(3);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_ZOOREC)("ngIfElse",e)}}function i5(i,n){if(1&i&&t.nrm(0,"app-full-record-descriptor-data",129),2&i){const e=t.XpG(3);t.Y8G("buildSiloOneClickLink",e.buildSiloOneClickLink)("qid",e.qid)("record",e.record)("database",e.database)}}function a5(i,n){1&i&&t.eu8(0)}function r5(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",130),t.DNE(2,a5,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(3);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundZRSuperTaxa),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function o5(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"span")(2,"a",131),t.nI1(3,"translate"),t.j41(4,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(5);return t.Njj(r.termFoundZRSuperTaxa=!0)}),t.k0s(),t.nrm(5,"br"),t.k0s()(),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(5);t.R7$(),t.BMQ("aria-level",e.Indent),t.R7$(),t.Y8G("routerLink",t.eq3(12,It,r.record.item.super_record_ZOOREC?"zoorec":r.record.coll.toLowerCase()))("matTooltip",t.bMT(3,10,"SuperTaxaAltLevel")+e.Indent)("queryParams",r.getQuickSearchString(e.SuperTaxa?e.SuperTaxa:"","ST"))("state",t.l_i(14,Ct,r.database!==r.record.coll,r.record.item.super_record_ZOOREC?"zoorec":r.record.coll.toLowerCase())),t.BMQ("data-ta",r.taPrefix+"superTaxa-"+a)("id",r.taPrefix+"superTaxa-"+a),t.R7$(2),t.HbH(r.getClassName(e.Indent)),t.Y8G("wosSearchHighlight",t.ziG(17,_t,r.record.ut,r.qid,r.record.item.super_record_ZOOREC?"abstract":"super_taxa",e.SuperTaxa?e.SuperTaxa:""))}}function s5(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,o5,6,22,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(4);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_ZOOREC)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"superTaxaLabel")("id",e.taPrefix+"superTaxaLabel"),t.R7$(),t.JRh(t.bMT(3,5,"superTaxa")),t.R7$(3),t.Y8G("ngForOf",e.record.item.ZRIndex.ZRTaxonomicData.SuperTaxaList)}}function l5(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,r5,3,3,"div",74)(2,s5,6,9,"ng-template",null,27,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(3);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_ZOOREC)("ngIfElse",e)}}function c5(i,n){1&i&&t.eu8(0)}function d5(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",132),t.DNE(2,c5,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(3);t.R7$(),t.Y8G("record",a.record),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function u5(i,n){if(1&i&&(t.j41(0,"th",148)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(5);t.R7$(),t.BMQ("data-ta",e.taPrefix+"systematics-data-table-heading-term")("id",e.taPrefix+"systematics-data-table-heading-term"),t.R7$(),t.JRh(t.bMT(3,3,"classifier"))}}function _5(i,n){if(1&i&&(t.j41(0,"td",150)(1,"a",151),t.nI1(2,"translate"),t.nrm(3,"span",62),t.k0s()()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(5);t.R7$(),t.Y8G("routerLink",t.eq3(9,It,r.record.item.super_record_ZOOREC?"zoorec":r.record.coll.toLowerCase()))("matTooltip",t.bMT(2,7,"OrganismClassifierAlt"))("queryParams",r.getQuickSearchString(e.OrganismClassifier?e.OrganismClassifier:"","SD"))("state",t.l_i(11,Ct,r.database!==r.record.coll,r.record.item.super_record_ZOOREC?"zoorec":r.record.coll.toLowerCase())),t.BMQ("data-ta",r.taPrefix+"OrganismClassifier-"+a)("id",r.taPrefix+"OrganismClassifier-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(14,_t,r.record.ut,r.qid,r.record.item.super_record_ZOOREC?"abstract":"OrganismClassifier",e.OrganismClassifier?e.OrganismClassifier:""))}}function p5(i,n){if(1&i&&(t.j41(0,"th",148)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(5);t.R7$(),t.BMQ("data-ta",e.taPrefix+"systematics-data-table-heading-OrganismName")("id",e.taPrefix+"systematics-data-table-heading-OrganismName"),t.R7$(),t.JRh(t.bMT(3,3,"OrganismName"))}}function h5(i,n){if(1&i&&(t.j41(0,"td",150)(1,"a",152),t.nI1(2,"translate"),t.nrm(3,"span",62),t.k0s()()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(5);t.R7$(),t.Y8G("routerLink",t.eq3(9,It,r.record.item.super_record_ZOOREC?"zoorec":r.record.coll.toLowerCase()))("matTooltip",t.bMT(2,7,"OrganismNameAlt"))("queryParams",r.getQuickSearchString(null!=e.OrganismName&&e.OrganismName.OrganismName?null==e.OrganismName?null:e.OrganismName.OrganismName:"","SD"))("state",t.l_i(11,Ct,r.database!==r.record.coll,r.record.item.super_record_ZOOREC?"zoorec":r.record.coll.toLowerCase())),t.BMQ("data-ta",r.taPrefix+"OrganismClassifier-"+a)("id",r.taPrefix+"OrganismClassifier-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(14,_t,r.record.ut,r.qid,r.record.item.super_record_ZOOREC?"abstract":"OrganismName",null!=e.OrganismName&&e.OrganismName.OrganismName?e.OrganismName.OrganismName:""))}}function m5(i,n){if(1&i&&(t.j41(0,"th",148)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(5);t.R7$(),t.BMQ("data-ta",e.taPrefix+"systematics-data-table-heading-OrganismAuthordate")("id",e.taPrefix+"systematics-data-table-heading-OrganismAuthordate"),t.R7$(),t.JRh(t.bMT(3,3,"OrganismAuthordate"))}}function g5(i,n){if(1&i&&t.nrm(0,"td",153),2&i){const e=n.$implicit,a=t.XpG(5);t.Y8G("wosSearchHighlight",t.sMw(1,Ix,a.record.ut,a.qid,e.OrganismAuthordate?e.OrganismAuthordate:""))}}function f5(i,n){if(1&i&&(t.j41(0,"th",148)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(5);t.R7$(),t.BMQ("data-ta",e.taPrefix+"systematics-data-table-heading-SystematicsControlledTerm")("id",e.taPrefix+"systematics-data-table-heading-SystematicsControlledTerm"),t.R7$(),t.JRh(t.bMT(3,3,"SystematicsControlledTerm"))}}function b5(i,n){if(1&i&&(t.j41(0,"div")(1,"a",154),t.nI1(2,"translate"),t.nrm(3,"span",62),t.k0s()()),2&i){const e=n.$implicit,a=n.index,r=t.XpG().index,o=t.XpG(5);t.R7$(),t.Y8G("queryParams",o.getQuickSearchString(e.SystematicsControlledTerm?e.SystematicsControlledTerm:"","SD"))("routerLink",t.eq3(9,It,o.record.item.super_record_ZOOREC?"zoorec":o.record.coll.toLowerCase()))("matTooltip",t.bMT(2,7,"SystematicsControlledTermAlt")+a)("state",t.l_i(11,Ct,o.database!==o.record.coll,o.record.item.super_record_ZOOREC?"zoorec":o.record.coll.toLowerCase())),t.BMQ("data-ta",o.taPrefix+"OrganismClassifier-"+r+"-"+a)("id",o.taPrefix+"OrganismClassifier-"+r+"-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(14,_t,o.record.ut,o.qid,o.record.item.super_record_ZOOREC?"abstract":"SystematicsControlledTerm",e.SystematicsControlledTerm))}}function v5(i,n){if(1&i&&(t.j41(0,"td",150),t.DNE(1,b5,4,19,"div",47),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngForOf",e.SystematicsEntryList)}}function x5(i,n){if(1&i&&(t.j41(0,"th",148)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(5);t.R7$(),t.BMQ("data-ta",e.taPrefix+"systematics-data-table-heading-SystematicsModifier")("id",e.taPrefix+"systematics-data-table-heading-SystematicsModifier"),t.R7$(),t.JRh(t.bMT(3,3,"SystematicsModifier"))}}function C5(i,n){1&i&&t.nrm(0,"span",72)}function R5(i,n){if(1&i&&(t.j41(0,"div",62),t.DNE(1,C5,1,0,"span",69),t.k0s()),2&i){const e=n.$implicit,a=n.last,r=t.XpG
1(6);t.Y8G("wosSearchHighlight",t.ziG(2,_t,r.record.ut,r.qid,r.record.item.super_record_ZOOREC?"abstract":"SystematicsModifier",e.SystematicsModifier?e.SystematicsModifier:"")),t.R7$(),t.Y8G("ngIf",!a)}}function y5(i,n){if(1&i&&(t.j41(0,"td",150),t.DNE(1,R5,2,7,"div",155),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngForOf",e.SystematicsEntryList)}}function T5(i,n){if(1&i&&(t.j41(0,"th",148)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(5);t.R7$(),t.BMQ("data-ta",e.taPrefix+"systematics-data-table-heading-SystematicsDetails")("id",e.taPrefix+"systematics-data-table-heading-SystematicsDetails"),t.R7$(),t.JRh(t.bMT(3,3,"SystematicsDetails"))}}function I5(i,n){if(1&i&&t.nrm(0,"span",62),2&i){const e=t.XpG(2).$implicit,a=t.XpG(5);t.Y8G("wosSearchHighlight",t.sMw(1,kx,a.record.ut,a.qid,e.OrganismSpec.OrgRole))}}function k5(i,n){1&i&&t.nrm(0,"span",72)}function F5(i,n){if(1&i&&t.nrm(0,"span",62),2&i){const e=t.XpG(2).$implicit,a=t.XpG(5);t.Y8G("wosSearchHighlight",t.sMw(1,Fx,a.record.ut,a.qid,e.OrganismSpec.FossilIndicator))}}function w5(i,n){1&i&&t.nrm(0,"span",72)}function M5(i,n){if(1&i&&t.nrm(0,"span",62),2&i){const e=t.XpG(2).$implicit,a=t.XpG(5);t.Y8G("wosSearchHighlight",t.ziG(1,_t,a.record.ut,a.qid,a.record.item.super_record_ZOOREC?"abstract":"OrgDetail",e.OrganismSpec.OrgDetail))}}function S5(i,n){if(1&i&&(t.j41(0,"span"),t.DNE(1,I5,1,5,"span",156)(2,k5,1,0,"span",69)(3,F5,1,5,"span",156)(4,w5,1,0,"span",69)(5,M5,1,6,"span",156),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf",e.OrganismSpec.OrgRole),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.OrgRole&&e.OrganismSpec.FossilIndicator),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.FossilIndicator),t.R7$(),t.Y8G("ngIf",(e.OrganismSpec.OrgRole||e.OrganismSpec.FossilIndicator)&&e.OrganismSpec.OrgDetail),t.R7$(),t.Y8G("ngIf",e.OrganismSpec.OrgDetail)}}function A5(i,n){1&i&&t.nrm(0,"span")}function E5(i,n){if(1&i&&(t.j41(0,"td",150),t.DNE(1,S5,6,5,"span",44)(2,A5,1,0,"span",44),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.OrganismSpec),t.R7$(),t.Y8G("ngIf",!e.OrganismSpec)}}function P5(i,n){1&i&&t.nrm(0,"tr",157)}function G5(i,n){1&i&&t.nrm(0,"tr",158)}function D5(i,n){if(1&i&&(t.j41(0,"section",133)(1,"h3",134),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",135)(5,"table",136,29)(7,"caption"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.qex(10,137),t.DNE(11,u5,4,5,"th",138)(12,_5,4,19,"td",139),t.bVm(),t.qex(13,140),t.DNE(14,p5,4,5,"th",138)(15,h5,4,19,"td",139),t.bVm(),t.qex(16,141),t.DNE(17,m5,4,5,"th",138)(18,g5,1,5,"td",142),t.bVm(),t.qex(19,143),t.DNE(20,f5,4,5,"th",138)(21,v5,2,1,"td",139),t.bVm(),t.qex(22,144),t.DNE(23,x5,4,5,"th",138)(24,y5,2,1,"td",139),t.bVm(),t.qex(25,145),t.DNE(26,T5,4,5,"th",138)(27,E5,3,2,"td",139),t.bVm(),t.DNE(28,P5,1,0,"tr",146)(29,G5,1,0,"tr",147),t.k0s()()()),2&i){const e=t.XpG(4);t.Y8G("ngClass",t.eq3(13,Ut,e.record.item.super_record_ZOOREC)),t.R7$(2),t.JRh(t.bMT(3,9,"SystematicsData")),t.R7$(3),t.Y8G("dataSource",e.record.item.ZRIndex.ZRTaxonomicData.SystematicsList),t.BMQ("data-ta",e.taPrefix+"systematics-data-table")("id",e.taPrefix+"systematics-data-table"),t.R7$(3),t.JRh(t.bMT(9,11,"systematicsListTable")),t.R7$(20),t.Y8G("matHeaderRowDef",e.getSystematicsTableDisplayedColumns())("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",e.getSystematicsTableDisplayedColumns())}}function $5(i,n){if(1&i&&(t.qex(0),t.DNE(1,d5,3,2,"div",74)(2,D5,30,15,"ng-template",null,28,t.C5r),t.bVm()),2&i){const e=t.sdS(3),a=t.XpG(3);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_ZOOREC)("ngIfElse",e)}}function L5(i,n){1&i&&t.eu8(0)}function N5(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",159),t.DNE(2,L5,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(3);t.R7$(),t.Y8G("record",a.record),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function j5(i,n){1&i&&t.nrm(0,"span",72)}function O5(i,n){if(1&i&&(t.qex(0),t.j41(1,"a",160),t.nI1(2,"translate"),t.nrm(3,"span",62),t.k0s(),t.DNE(4,j5,1,0,"span",69),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(5);t.R7$(),t.Y8G("routerLink",t.eq3(10,It,o.record.item.super_record_ZOOREC?"zoorec":o.record.coll.toLowerCase()))("matTooltip",t.bMT(2,8,"TaxaNoteAlt"))("queryParams",o.getQuickSearchString(e||"","TN","true"))("state",t.l_i(12,Ct,o.database!==o.record.coll,o.record.item.super_record_ZOOREC?"zoorec":o.record.coll.toLowerCase())),t.BMQ("data-ta",o.taPrefix+"taxaNote-"+a)("id",o.taPrefix+"taxaNote-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(15,_t,o.record.ut,o.qid,o.record.item.super_record_ZOOREC?"abstract":"taxa_notes",e||"")),t.R7$(),t.Y8G("ngIf",!r)}}function B5(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,O5,5,20,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(4);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_ZOOREC)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"taxaNoteLabel")("id",e.taPrefix+"taxaNoteLabel"),t.R7$(),t.JRh(t.bMT(3,5,"taxaNote")),t.R7$(3),t.Y8G("ngForOf",e.record.item.ZRIndex.ZRTaxonomicData.TaxaNotesList)}}function Y5(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,N5,3,2,"div",74)(2,B5,6,9,"ng-template",null,30,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(3);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_ZOOREC)("ngIfElse",e)}}function X5(i,n){if(1&i&&(t.qex(0),t.DNE(1,n5,4,2,"div",44)(2,i5,1,4,"app-full-record-descriptor-data",126)(3,l5,4,2,"div",44)(4,$5,4,2,"ng-container",44)(5,Y5,4,2,"div",44),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(null==e.record||null==e.record.item||null==e.record.item.ZRIndex||null==e.record.item.ZRIndex.BroadTermsList?null:e.record.item.ZRIndex.BroadTermsList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item||null==e.record.item.ZRIndex||null==e.record.item.ZRIndex.DescriptorsData||null==e.record.item.ZRIndex.DescriptorsData.DescriptorsList?null:e.record.item.ZRIndex.DescriptorsData.DescriptorsList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record||null==e.record.item||null==e.record.item.ZRIndex||null==e.record.item.ZRIndex.ZRTaxonomicData||null==e.record.item.ZRIndex.ZRTaxonomicData.SuperTaxaList?null:e.record.item.ZRIndex.ZRTaxonomicData.SuperTaxaList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record||null==e.record.item||null==e.record.item.ZRIndex||null==e.record.item.ZRIndex.ZRTaxonomicData||null==e.record.item.ZRIndex.ZRTaxonomicData.SystematicsList?null:e.record.item.ZRIndex.ZRTaxonomicData.SystematicsList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record||null==e.record.item||null==e.record.item.ZRIndex||null==e.record.item.ZRIndex.ZRTaxonomicData||null==e.record.item.ZRIndex.ZRTaxonomicData.TaxaNotesList?null:e.record.item.ZRIndex.ZRTaxonomicData.TaxaNotesList.length)>0)}}function q5(i,n){1&i&&t.eu8(0)}function H5(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",162),t.DNE(2,q5,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG(2);const e=t.sdS(34),a=t.XpG();t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundMedlineMeshHeading),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function V5(i,n){if(1&i&&(t.qex(0,161),t.DNE(1,H5,3,3,"div",74),t.bVm()),2&i){t.XpG();const e=t.sdS(34),a=t.XpG();t.R7$(),t.Y8G("ngIf",a.record.item.super_record_MEDLINE)("ngIfElse",e)}}function z5(i,n){if(1&i&&(t.j41(0,"th",148)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"meshTerms-table-heading-heading")("id",e.taPrefix+"meshTerms-table-heading-heading"),t.R7$(),t.SpI(" ",t.bMT(3,3,"heading")," ")}}function Q5(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,"*"),t.k0s())}function U5(i,n){if(1&i){const e=t.RV6();t.qex(0),t.DNE(1,Q5,2,0,"span",44),t.j41(2,"a",165),t.nI1(3,"translate"),t.j41(4,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundMedlineMeshHeading=!0)}),t.k0s()(),t.bVm()}if(2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngIf","Y"===e.descriptorName.MajorTopicYN),t.R7$(),t.Y8G("routerLink",t.eq3(8,It,a.record.item.super_record_MEDLINE?"medl
1ine":a.record.coll.toLowerCase()))("matTooltip",t.bMT(3,6,"meshHeadingAlt"))("queryParams",a.getMeshTermsRouterParams(e.descriptorName.DescriptorName))("state",t.l_i(10,Ct,a.database!==a.record.coll,a.record.item.super_record_MEDLINE?"medline":a.record.coll.toLowerCase())),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(13,_t,a.record.ut,a.qid,a.record.item.super_record_MEDLINE?"abstract":"mesh_term_heading",e.descriptorName.DescriptorName))}}function J5(i,n){if(1&i&&(t.j41(0,"td",150),t.DNE(1,U5,5,18,"ng-container",44),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.descriptorName)}}function W5(i,n){if(1&i&&(t.j41(0,"th",148)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"meshTerms-table-heading-qualifier")("id",e.taPrefix+"meshTerms-table-heading-qualifier"),t.R7$(),t.SpI(" ",t.bMT(3,3,"qualifier")," ")}}function K5(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,"*"),t.k0s())}function Z5(i,n){if(1&i&&(t.j41(0,"td",150),t.DNE(1,K5,2,0,"span",44),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.qualifierName&&"Y"===e.qualifierName.MajorTopicYN),t.R7$(2),t.JRh(e.qualifierName?e.qualifierName.QualifierName:"")}}function tR(i,n){1&i&&t.nrm(0,"tr",157)}function eR(i,n){1&i&&t.nrm(0,"tr",158)}function nR(i,n){if(1&i&&(t.j41(0,"section",133)(1,"h3",134),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",135)(5,"table",136,31)(7,"caption"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.qex(10,163),t.DNE(11,z5,4,5,"th",138)(12,J5,2,1,"td",139),t.bVm(),t.qex(13,164),t.DNE(14,W5,4,5,"th",138)(15,Z5,4,2,"td",139),t.bVm(),t.DNE(16,tR,1,0,"tr",146)(17,eR,1,0,"tr",147),t.k0s()()()),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(13,Ut,e.record.item.super_record_MEDLINE)),t.R7$(2),t.JRh(t.bMT(3,9,"meshTerms")),t.R7$(3),t.Y8G("dataSource",e.flattenedMeshHeadingList),t.BMQ("data-ta",e.taPrefix+"meshTerms-table")("id",e.taPrefix+"meshTerms-table"),t.R7$(3),t.JRh(t.bMT(9,11,"meshTermsTable")),t.R7$(8),t.Y8G("matHeaderRowDef",e.meshTermsColumns)("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",e.meshTermsColumns)}}function iR(i,n){1&i&&t.eu8(0)}function aR(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",166),t.DNE(2,iR,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG(2);const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundMedlineChemicalRegistryNumber),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function rR(i,n){if(1&i&&(t.qex(0,161),t.DNE(1,aR,3,3,"div",74),t.bVm()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_MEDLINE)("ngIfElse",e)}}function oR(i,n){if(1&i&&(t.j41(0,"th",148)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(4);t.R7$(),t.BMQ("data-ta",e.taPrefix+"chemical-list-table-heading-registryNumber")("id",e.taPrefix+"chemical-list-table-heading-registryNumber"),t.R7$(),t.SpI(" ",t.bMT(3,3,"registryNumber")," ")}}function sR(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",150)(1,"a",169),t.nI1(2,"translate"),t.j41(3,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundMedlineChemicalRegistryNumber=!0)}),t.EFF(4),t.k0s()()()}if(2&i){const e=n.$implicit,a=t.XpG(4);t.R7$(),t.Y8G("routerLink",t.eq3(8,It,a.record.item.super_record_MEDLINE?"medline":a.record.coll.toLowerCase()))("queryParams",a.getRegistryNumberRouterParams(e.RegistryNumber))("state",t.l_i(10,Ct,a.database!==a.record.coll,a.record.item.super_record_MEDLINE?"medline":a.record.coll.toLowerCase()))("matTooltip",t.bMT(2,6,"registryNumberAlt")),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(13,_t,a.record.ut,a.qid,a.record.item.super_record_MEDLINE?"abstract":"chemical_registry_number",e.RegistryNumber)),t.R7$(),t.JRh(e.RegistryNumber)}}function lR(i,n){if(1&i&&(t.j41(0,"th",148)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(4);t.R7$(),t.BMQ("data-ta",e.taPrefix+"chemical-list-table-heading-substance")("id",e.taPrefix+"chemical-list-table-heading-substance"),t.R7$(),t.SpI(" ",t.bMT(3,3,"substance")," ")}}function cR(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",150)(1,"a",170),t.nI1(2,"translate"),t.j41(3,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.termFoundMedlineChemicalRegistryNumber=!0)}),t.EFF(4),t.k0s()()()}if(2&i){const e=n.$implicit,a=t.XpG(4);t.R7$(),t.Y8G("routerLink",t.eq3(8,It,a.record.item.super_record_MEDLINE?"medl
1ine":a.record.coll.toLowerCase()))("queryParams",a.getNameOfSubstanceRouterParams(e.NameOfSubstance.NameOfSubstance))("state",t.l_i(10,Ct,a.database!==a.record.coll,a.record.item.super_record_MEDLINE?"medline":a.record.coll.toLowerCase()))("matTooltip",t.bMT(2,6,"substanceAlt")),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(13,_t,a.record.ut,a.qid,a.record.item.super_record_MEDLINE?"abstract":"chemical",e.NameOfSubstance.NameOfSubstance)),t.R7$(),t.JRh(e.NameOfSubstance.NameOfSubstance)}}function dR(i,n){1&i&&t.nrm(0,"tr",157)}function uR(i,n){1&i&&t.nrm(0,"tr",158)}function _R(i,n){if(1&i&&(t.j41(0,"section",133)(1,"h3",134),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",135)(5,"table",136,33)(7,"caption"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.qex(10,167),t.DNE(11,oR,4,5,"th",138)(12,sR,5,18,"td",139),t.bVm(),t.qex(13,168),t.DNE(14,lR,4,5,"th",138)(15,cR,5,18,"td",139),t.bVm(),t.DNE(16,dR,1,0,"tr",146)(17,uR,1,0,"tr",147),t.k0s()()()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(13,Ut,e.record.item.super_record_MEDLINE)),t.R7$(2),t.JRh(t.bMT(3,9,"chemical")),t.R7$(3),t.Y8G("dataSource",e.record.item.ChemicalList),t.BMQ("data-ta",e.taPrefix+"chemical-list-table")("id",e.taPrefix+"chemical-list-table"),t.R7$(3),t.JRh(t.bMT(9,11,"chemicalListTable")),t.R7$(8),t.Y8G("matHeaderRowDef",e.chemicalListColumns)("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",e.chemicalListColumns)}}function pR(i,n){if(1&i&&(t.j41(0,"div",41)(1,"h3",171),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"usPatentClassLabel")("id",e.taPrefix+"usPatentClassLabel"),t.R7$(),t.JRh(t.bMT(3,6,"patentClass")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"usPatentClass")("id",e.taPrefix+"usPatentClass"),t.R7$(),t.JRh(e.record.item.Bibliographic.Patent.USPatentClass)}}function hR(i,n){if(1&i&&t.nrm(0,"app-full-record-taxonomic-data",129),2&i){const e=t.XpG(3);t.Y8G("buildSiloOneClickLink",e.buildSiloOneClickLink)("qid",e.qid)("record",e.record)("database",e.database)}}function mR(i,n){1&i&&t.eu8(0)}function gR(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",173),t.DNE(2,mR,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(4);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundBCImajorConceptData),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function fR(i,n){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(6);t.BMQ("data-ta",o.taPrefix+"majorConcept-MCBroaderTerms-"+r)("id",o.taPrefix+"majorConcept-MCBroaderTerms-"+r),t.R7$(),t.SpI("(",a.MCBroaderTerms,")")}}function bR(i,n){1&i&&t.nrm(0,"span",72)}function vR(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"a",174),t.nI1(2,"translate"),t.j41(3,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.termFoundBCImajorConceptData=!0)}),t.k0s()(),t.DNE(4,fR,2,3,"span",44)(5,bR,1,0,"span",69),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(6);t.R7$(),t.Y8G("routerLink",t.eq3(11,It,o.record.item.super_record_BCI?"bci":o.record.coll.toLowerCase()))("matTooltip",t.bMT(2,9,"majorConceptAlt"))("queryParams",o.getQuickSearchString(e.MajorConcept?e.MajorConcept:"","MC"))("state",t.l_i(13,Ct,o.database!==o.record.coll,o.record.item.super_record_BCI?"bci":o.record.coll.toLowerCase())),t.BMQ("data-ta",o.taPrefix+"majorConcept-majorConcept-"+a)("id",o.taPrefix+"majorConcept-majorConcept-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(16,_t,o.record.ut,o.qid,o.record.item.super_record_BCI?"abstract":"major_concepts",e.MajorConcept?e.MajorConcept:"")),t.R7$(),t.Y8G("ngIf",e.MCBroaderTerms),t.R7$(),t.Y8G("ngIf",!r)}}function xR(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,vR,6,21,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(5);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_BCI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"majorConceptsLabel")("id",e.taPrefix+"majorConceptsLabel"),t.R7$(),t.JRh(t.bMT(3,5,"majorConcepts")),t.R7$(3),t.Y8G("ngForOf",e.record.item.Index.MajorConceptData.MajorConceptList)}}function CR(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,gR,3,3,"div",74)(2,xR,6,9,"ng-template",null,34,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(4);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_BCI)("ngIfElse",e)}}function RR(i,n){1&i&&t.eu8(0)}function yR(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",175),t.DNE(2,RR,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(4);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundBCIconceptCode),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function TR(i,n){1&i&&t.nrm(0,"span",72)}function IR(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"a",177),t.nI1(2,"translate"),t.j41(3,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.termFoundBCIconceptCode=!0)}),t.k0s()(),t.DNE(4,TR,1,0,"span",69),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(6);t.R7$(),t.Y8G("routerLink",t.eq3(10,It,o.record.item.super_record_BCI?"bci":o.record.coll.toLowerCase()))("matTooltip",t.bMT(2,8,"conceptCodeAlt"))("queryParams",o.getQuickSearchString(e||"","CC"))("state",t.l_i(12,Ct,o.database!==o.record.coll,o.record.item.super_record_BCI?"bci":o.record.coll.toLowerCase())),t.BMQ("data-ta",o.taPrefix+"conceptCode-conceptCode-"+a)("id",o.taPrefix+"conceptCode-conceptCode-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(15,_t,o.record.ut,o.qid,o.record.item.super_record_BCI?"abstract":"concept_codes",e)),t.R7$(),t.Y8G("ngIf",!r)}}function kR(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",176),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,IR,5,20,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(5);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_BCI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"conceptCodeLabel")("id",e.taPrefix+"conceptCodeLabel"),t.R7$(),t.JRh(t.bMT(3,5,"conceptCode")),t.R7$(3),t.Y8G("ngForOf",e.record.item.Index.ConceptCodeList)}}function FR(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,yR,3,3,"div",74)(2,kR,6,9,"ng-template",null,35,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(4);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_BCI)("ngIfElse",e)}}function wR(i,n){if(1&i&&t.nrm(0,"app-full-record-taxonomic-data",129),2&i){const e=t.XpG(4);t.Y8G("buildSiloOneClickLink",e.buildSiloOneClickLink)("qid",e.qid)("record",e.record)("database",e.database)}}function MR(i,n){1&i&&t.eu8(0)}function SR(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",178),t.DNE(2,MR,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(4);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundBCIdiseaseData),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function AR(i,n){if(1&i&&(t.j41(0,"th",148)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(6);t.R7$(),t.BMQ("data-ta",e.taPrefix+"disease-data-table-heading-term")("id",e.taPrefix+"disease-data-table-heading-term"),t.R7$(),t.JRh(t.bMT(3,3,"term"))}}function ER(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",186),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.termFoundBCIdiseaseData=!0)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(6);t.Y8G("wosSearchHighlight",t.ziG(3,_t,r.record.ut,r.qid,r.record.item.super_record_BCI?"abstract":"disease_data",e.DiseaseTerm?e.DiseaseTerm:"")),t.BMQ("data-ta",r.taPrefix+"disease-data-term-"+a)("id",r.taPrefix+"disease-data-term-"+a)}}function PR(i,n){if(1&i&&(t.j41(0,"th",148)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(6);t.R7$(),t.BMQ("data-ta",e.taPrefix+"disease-data-table-heading-variant")("id",e.taPrefix+"disease-data-table-heading-variant"),t.R7$(),t.JRh(t.bMT(3,3,"variant"))}}function GR(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",186),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.termFoundBCIdiseaseData=!0)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(6);t.Y8G("wosSearchHighlight",t.ziG(3,_t,r.record.ut,r.qid,r.record.item.super_record_BCI?"abstract":"disease_data",e.DiseaseVariant?e.DiseaseVariant:"")),t.BMQ("data-ta",r.taPrefix+"disease-data-variant-"+a)("id",r.taPrefix+"disease-data-variant-"+a)}}function DR(i,n){if(1&i&&(t.j41(0,"th",187)(1,"div",188),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(6);t.R7$(),t.BMQ("data-ta",e.taPrefix+"disease-data-table-heading-meshTerm")("id",e.taPrefix+"disease-data-table-heading-meshTerm"),t.R7$(),t.JRh(t.bMT(3,3,"meshTerm"))}}function $R(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",186),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.termFoundBCIdiseaseData=!0)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(6);t.Y8G("wosSearchHighlight",t.ziG(3,_t,r.record.ut,r.qid,r.record.item.super_record_BCI?"abstract":"disease_data",e.MeSHTerm?e.MeSHTerm:"")),t.BMQ("data-ta",r.taPrefix+"disease-data-meshTerm-"+a)("id",r.taPrefix+"disease-data-meshTerm-"+a)}}function LR(i,n){if(1&i&&(t.j41(0,"th",187)(1,"div",188),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(6);t.R7$(),t.BMQ("data-ta",e.taPrefix+"disease-data-table-heading-affiliation")("id",e.taPrefix+"disease-data-table-heading-affiliation"),t.R7$(),t.JRh(t.bMT(3,3,"affiliation"))}}function NR(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,"; "),t.k0s())}function jR(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",191),t.nI1(1,"translate"),t.j41(2,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(8);return t.Njj(r.termFoundBCIdiseaseData=!0)}),t.k0s(),t.DNE(3,NR,2,0,"span",44),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(2).index,s=t.XpG(6);t.Y8G("routerLink",t.eq3(10,It,s.record.item.super_record_BCI?"bci":s.record.coll.toLowerCase()))("matTooltip",t.bMT(1,8,"diseaseAlt"))("queryParams",s.getQuickSearchString(e,"DS"))("state",t.l_i(12,Ct,s.database!==s.record.coll,s.record.item.super_record_BCI?"bci":s.record.coll.toLowerCase())),t.BMQ("data-ta",s.taPrefix+"disease-data-diseaseAffiliation-"+o+"-"+a)("id",s.taPrefix+"disease-data-diseaseAffiliation-"+o+"-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(15,_t,s.record.ut,s.qid,s.record.item.super_record_BCI?"abstract":"disease_data",e)),t.R7$(),t.Y8G("ngIf",!r)}}function OR(i,n){if(1&i&&(t.j41(0,"span"),t.DNE(1,jR,4,20,"a",190),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",e.DiseaseAffiliation.split(", "))}}function BR(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",192),t.nI1(1,"translate"),t.j41(2,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(7);return t.Njj(r.termFoundBCIdiseaseData=!0)}),t.k0s()()}if(2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(6);t.Y8G("routerLink",t.eq3(9,It,o.record.item.super_record_BCI?"bci":o.record.coll.toLowerCase()))("matTooltip",t.bMT(1,7,"diseaseAlt"))("queryParams",o.getQuickSearchString(a.DiseaseAffiliation?a.DiseaseAffiliation:"","DS"))("state",t.l_i(11,Ct,o.database!==o.record.coll,o.record.item.super_record_BCI?"bci":o.record.coll.toLowerCase())),t.BMQ("data-ta",o.taPrefix+"disease-data-diseaseAffiliation-"+r)("id",o.taPrefix+"disease-data-diseaseAffiliation-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(14,_t,o.record.ut,o.qid,o.record.item.super_record_BCI?"abstract":"disease_data",a.DiseaseAffiliation?a.DiseaseAffiliation:""))}}function YR(i,n){if(1&i&&(t.j41(0,"td",150),t.DNE(1,OR,2,1,"span",44)(2,BR,3,19,"a",189),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",null==e.DiseaseAffiliation?null:e.DiseaseAffiliation.includes(", ")),t.R7$(),t.Y8G("ngIf",!(null!=e.DiseaseAffiliation&&e.DiseaseAffiliation.includes(", ")))}}function XR(i,n){if(1&i&&(t.j41(0,"th",187)(1,"div",188),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(6);t.R7$(),t.BMQ("data-ta",e.taPrefix+"disease-data-table-heading-detail")("id",e.taPrefix+"disease-data-table-heading-detail"),t.R7$(),t.JRh(t.bMT(3,3,"detail"))}}function qR(i,n){if(1&i){const e=t.RV6();t.j41(0,"td",186),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.termFoundBCIdiseaseData=!0)}),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(6);t.Y8G("wosSearchHighlight",t.ziG(3,_t,r.record.ut,r.qid,r.record.item.super_record_BCI?"abstract":"disease_data",e.DiseaseDetail?e.DiseaseDetail:"")),t.BMQ("data-ta",r.taPrefix+"disease-data-detail-"+a)("id",r.taPrefix+"disease-data-detail-"+a)}}function HR(i,n){1&i&&t.nrm(0,"tr",157)}function VR(i,n){1&i&&t.nrm(0,"tr",158)}function zR(i,n){if(1&i&&(t.j41(0,"section",133)(1,"h3",134),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",135)(5,"table",136,37)(7,"caption"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.qex(10,179),t.DNE(11,AR,4,5,"th",138)(12,ER,1,8,"td",180),t.bVm(),t.qex(13,181),t.DNE(14,PR,4,5,"th",138)(15,GR,1,8,"td",180),t.bVm(),t.qex(16,182),t.DNE(17,DR,4,5,"th",183)(18,$R,1,8,"td",180),t.bVm(),t.qex(19,184),t.DNE(20,LR,4,5,"th",183)(21,YR,3,2,"td",139),t.bVm(),t.qex(22,185),t.DNE(23,XR,4,5,"th",183)(24,qR,1,8,"td",180),t.bVm(),t.DNE(25,HR,1,0,"tr",146)(26,VR,1,0,"tr",147),t.k0s()()()),2&i){const e=t.XpG(5);t.Y8G("ngClass",t.eq3(15,Ut,e.record.item.super_record_BCI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"disease-data-label")("id",e.taPrefix+"disease-data-label"),t.R7$(),t.JRh(t.bMT(3,11,"diseaseData")),t.R7$(3),t.Y8G("dataSource",e.record.item.Index.DiseaseData.DiseaseList),t.BMQ("data-ta",e.taPrefix+"disease-data-table")("id",e.taPrefix+"disease-data-table"),t.R7$(3),t.JRh(t.bMT(9,13,"diseaseTable")),t.R7$(17),t.Y8G("matHeaderRowDef",e.diseaseColumns)("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",e.diseaseColumns)}}function QR(i,n){if(1&i&&(t.qex(0),t.DNE(1,SR,3,3,"div",74)(2,zR,27,17,"ng-template",null,36,t.C5r),t.bVm()),2&i){const e=t.sdS(3),a=t.XpG(4);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_BCI)("ngIfElse",e)}}function UR(i,n){if(1&i&&(t.j41(0,"th",187)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(5);t.R7$(),t.BMQ("data-ta",e.taPrefix+"geneName-data-table-heading-term")("id",e.taPrefix+"geneName-data-table-heading-term"),t.R7$(),t.JRh(t.bMT(3,3,"term"))}}function JR(i,n){if(1&i&&t.nrm(0,"td",153),2&i){const e=n.$implicit,a=t.XpG(5);t.Y8G("wosSearchHighlight",t.sMw(1,Do,a.record.ut,a.qid,e.GeneNameTerm?e.GeneNameTerm:""))}}function WR(i,n){if(1&i&&(t.j41(0,"th",187)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(5);t.R7$(),t.BMQ("data-ta",e.taPrefix+"geneName-data-table-heading-variant")("id",e.taPrefix+"geneName-data-table-heading-variant"),t.R7$(),t.JRh(t.bMT(3,3,"variant"))}}function KR(i,n){if(1&i&&t.nrm(0,"td",153),2&i){const e=n.$implicit,a=t.XpG(5);t.Y8G("wosSearchHighlight",t.sMw(1,Do,a.record.ut,a.qid,e.GeneNameVariant&&e.GeneNameVariant.length>0?e.GeneNameVariant[0].GeneNameVariant:""))}}function ZR(i,n){if(1&i&&(t.j41(0,"th",187)(1,"div",149),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(5);t.R7$(),t.BMQ("data-ta",e.taPrefix+"geneName-data-table-heading-details")("id",e.taPrefix+"geneName-data-table-heading-details"),t.R7$(),t.JRh(t.bMT(3,3,"details"))}}
1function t8(i,n){if(1&i&&t.nrm(0,"td",153),2&i){const e=n.$implicit,a=t.XpG(5);t.Y8G("wosSearchHighlight",t.sMw(1,Do,a.record.ut,a.qid,e.GeneDetail?e.GeneDetail:""))}}function e8(i,n){1&i&&t.nrm(0,"tr",157)}function n8(i,n){1&i&&t.nrm(0,"tr",158)}function i8(i,n){if(1&i&&(t.qex(0),t.j41(1,"section",193)(2,"h3",134),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",135)(6,"table",136)(7,"caption"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.qex(10,194),t.DNE(11,UR,4,5,"th",183)(12,JR,1,5,"td",142),t.bVm(),t.qex(13,195),t.DNE(14,WR,4,5,"th",183)(15,KR,1,5,"td",142),t.bVm(),t.qex(16,196),t.DNE(17,ZR,4,5,"th",183)(18,t8,1,5,"td",142),t.bVm(),t.DNE(19,e8,1,0,"tr",146)(20,n8,1,0,"tr",147),t.k0s()()(),t.bVm()),2&i){const e=t.XpG(4);t.R7$(3),t.JRh(t.bMT(4,8,"geneNameData")),t.R7$(3),t.Y8G("dataSource",e.record.item.Index.GeneNameData.GeneNameList),t.BMQ("data-ta",e.taPrefix+"geneName-data-table")("id",e.taPrefix+"geneName-data-table"),t.R7$(2),t.JRh(t.bMT(9,10,"geneNameTable")),t.R7$(11),t.Y8G("matHeaderRowDef",e.getGeneNameDataTableDisplayedColumns())("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",e.getGeneNameDataTableDisplayedColumns())}}function a8(i,n){1&i&&t.eu8(0)}function r8(i,n){if(1&i&&(t.j41(0,"div")(1,"app-full-record-super-record-field",197),t.DNE(2,a8,1,0,"ng-container",79),t.k0s()()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(4);t.R7$(),t.Y8G("record",a.record)("termFoundFlag",a.termFoundBCImiscDescriptors),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function o8(i,n){1&i&&t.nrm(0,"span",72)}function s8(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"span",83),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.termFoundBCImiscDescriptors=!0)}),t.k0s(),t.DNE(2,o8,1,0,"span",69),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(6);t.R7$(),t.Y8G("wosSearchHighlight",t.ziG(4,_t,o.record.ut,o.qid,o.record.item.super_record_BCI?"abstract":"misc_descriptors",e.MiscDescriptor)),t.BMQ("data-ta",o.taPrefix+"miscDescriptors-"+a)("id",o.taPrefix+"miscDescriptors-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function l8(i,n){if(1&i&&(t.j41(0,"div",92)(1,"h3",73),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",43),t.DNE(5,s8,3,9,"ng-container",47),t.k0s()()),2&i){const e=t.XpG(5);t.Y8G("ngClass",t.eq3(7,Ut,e.record.item.super_record_BCI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"miscDescriptorsLabel")("id",e.taPrefix+"miscDescriptorsLabel"),t.R7$(),t.JRh(t.bMT(3,5,"miscDescriptors")),t.R7$(3),t.Y8G("ngForOf",e.record.item.Index.MiscellaneousDescriptors.MiscDescriptorsList)}}function c8(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,r8,3,3,"div",74)(2,l8,6,9,"ng-template",null,38,t.C5r),t.k0s()),2&i){const e=t.sdS(3),a=t.XpG(4);t.R7$(),t.Y8G("ngIf",a.record.item.super_record_BCI)("ngIfElse",e)}}function d8(i,n){if(1&i&&(t.qex(0),t.DNE(1,CR,4,2,"div",44)(2,FR,4,2,"div",44)(3,wR,1,4,"app-full-record-taxonomic-data",126),t.nrm(4,"app-full-record-chemicaldata",172),t.DNE(5,QR,4,2,"ng-container",44)(6,i8,21,12,"ng-container",44)(7,c8,4,2,"div",44),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngIf",(null==e.record.item.Index.MajorConceptData||null==e.record.item.Index.MajorConceptData.MajorConceptList?null:e.record.item.Index.MajorConceptData.MajorConceptList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item.Index.ConceptCodeList?null:e.record.item.Index.ConceptCodeList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item.Index.TaxonomicData||null==e.record.item.Index.TaxonomicData.TaxonomicList?null:e.record.item.Index.TaxonomicData.TaxonomicList.length)>0),t.R7$(),t.Y8G("record",e.record)("database",e.database)("qid",e.qid)("buildSiloOneClickLink",e.buildSiloOneClickLink),t.R7$(),t.Y8G("ngIf",(null==e.record.item.Index.DiseaseData||null==e.record.item.Index.DiseaseData.DiseaseList?null:e.record.item.Index.DiseaseData.DiseaseList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item.Index.GeneNameData||null==e.record.item.Index.GeneNameData.GeneNameList?null:e.record.item.Index.GeneNameData.GeneNameList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item.Index.MiscellaneousDescriptors||null==e.record.item.Index.MiscellaneousDescriptors.MiscDescriptorsList?null:e.record.item.Index.MiscellaneousDescriptors.MiscDescriptorsList.length)>0)}}
1function u8(i,n){if(1&i&&(t.qex(0),t.DNE(1,rR,2,2,"ng-container",49)(2,_R,18,15,"ng-template",null,32,t.C5r)(4,pR,6,8,"div",46)(5,hR,1,4,"app-full-record-taxonomic-data",126)(6,d8,8,10,"ng-container",44),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(null==e.record.item.ChemicalList?null:e.record.item.ChemicalList.length)>0),t.R7$(3),t.Y8G("ngIf",e.record.item.Bibliographic&&e.record.item.Bibliographic.Patent&&e.record.item.Bibliographic.Patent.USPatentClass),t.R7$(),t.Y8G("ngIf",(null==e.record.item.DescriptorsData||null==e.record.item.DescriptorsData.TaxonomicData||null==e.record.item.DescriptorsData.TaxonomicData.TaxonomicList?null:e.record.item.DescriptorsData.TaxonomicData.TaxonomicList.length)>0),t.R7$(),t.Y8G("ngIf",e.record.item.Index)}}function _8(i,n){if(1&i&&(t.j41(0,"div",40)(1,"div",41)(2,"h2",42),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",43),t.DNE(6,Ex,2,1,"div",44)(7,Xx,5,4,"div",45),t.nI1(8,"feature"),t.DNE(9,Qx,5,5,"div",45),t.nI1(10,"feature"),t.k0s()(),t.DNE(11,Zx,6,4,"div",46)(12,o7,4,2,"div",44)(13,u7,6,6,"div",46)(14,b7,4,1,"div",47)(15,T7,4,2,"div",48)(16,S7,4,2,"div",48)(17,$7,4,2,"div",48)(18,Y7,4,2,"div",48)(19,Q7,5,2,"div",48)(20,Z7,6,6,"div",46)(21,aC,6,6,"div",46)(22,dC,5,2,"div",44)(23,hC,5,2,"div",48)(24,xC,5,2,"div",44)(25,kC,5,2,"div",48)(26,AC,5,2,"div",48)(27,$C,6,6,"div",46)(28,OC,10,8,"div",46)(29,HC,2,1,"div",48)(30,JC,13,12,"div",44)(31,X5,6,5,"ng-container",44)(32,V5,2,2,"ng-container",49)(33,nR,18,15,"ng-template",null,0,t.C5r)(35,u8,7,4,"ng-container",44),t.k0s()),2&i){const e=t.XpG();t.R7$(3),t.JRh(t.bMT(4,27,"categoriesClassification")),t.R7$(3),t.Y8G("ngIf",e.re
1cord.category_info&&e.record.category_info.subjects),t.R7$(),t.Y8G("ngIf",(null==e.record.citation_related?null:e.record.citation_related.citation_topics)&&!t.bMT(8,29,"nxPresentationControl_hide_CitationTopics_4_cancelled")),t.R7$(2),t.Y8G("ngIf",(null==e.record.citation_related||null==e.record.citation_related.SDG?null:e.record.citation_related.SDG.length)>0&&!t.bMT(10,31,"nxPresentationControl_hide_SDG_4_cancelled")),t.R7$(2),t.Y8G("ngIf",e.showWOSCategories&&(null==e.record||null==e.record.category_info?null:e.record.category_info.subjects.length)>0),t.R7$(),t.Y8G("ngIf",null==e.record.item?null:e.record.item.Keywords),t.R7$(),t.Y8G("ngIf",e.articleCategorySubject.length>0),t.R7$(),t.Y8G("ngForOf",e.superRecordColl),t.R7$(),t.Y8G("ngIf",e.descriptorsList.length>0),t.R7$(),t.Y8G("ngIf",e.broadDescriptorsList.length>0),t.R7$(),t.Y8G("ngIf",e.organismDescriptorsList.length>0),t.R7$(),t.Y8G("ngIf",e.cabiCodesList.length>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item||null==e.record.item.indexg||null==e.record.item.indexg.ipcg?null:e.record.item.indexg.ipcg.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item||null==e.record.item.chemical?null:e.record.item.chemical.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item||null==e.record.item.astronomicalindex?null:e.record.item.astronomicalindex.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item||null==e.record.item.indexg||null==e.record.item.indexg.ccg?null:e.record.item.indexg.ccg.length)>0),t.R7$(),t.Y8G("ngIf",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.jrefg||null==e.record.item.bibliog.jrefg.jrog?null:e.record.item.bibliog.jrefg.jrog.cdn),t.R7$(),t.Y8G("ngIf",(null==e.record.item||null==e.record.item.indexg||null==e.record.item.indexg.cindg||null==e.record.item.indexg.cindg.term?null:e.record.item.indexg.cindg.term.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record.item||null==e.record.item.indexg||null==e.record.item.indexg.ucindg||null==e.record.item.indexg.ucindg.term?null:e.record.item.indexg.ucindg.term.length)>0),t.R7$(),t.Y8G("ngIf",!1),t.R7$(),t.Y8G("ngIf",e.casRegNumList.length>0),t.R7$(),t.Y8G("ngIf",null==e.record?null:e.record.journal_collection),t.R7$(),t.Y8G("ngIf",(null==e.record||null==e.record.super_record_fields||null==e.record.super_record_fields.journal_collection?null:e.record.super_record_fields.journal_collection.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.record||null==e.record.item||null==e.record.item.subjects?null:e.record.item.subjects.length)>0),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item?null:e.record.item.ZRIndex),t.R7$(),t.Y8G("ngIf",(null==e.flattenedMeshHeadingList?null:e.flattenedMeshHeadingList.length)>
10),t.R7$(3),t.Y8G("ngIf",e.record.item)}}let p8=(()=>{class i extends Be.${constructor(e,a){super(e),this.config=a,this.showThisGroup=!0,this.taPrefix="CategoriesTa-",this.diseaseColumnsDefault=["DiseaseTerm","DiseaseVariant","MeSHTerm","DiseaseAffiliation","DiseaseDetail"],this.diseaseColumns=this.diseaseColumnsDefault,this.chemicalListColumnsDefault=["RegistryNumber","NameOfSubstance"],this.chemicalListColumns=this.chemicalListColumnsDefault,this.meshTermsColumnsDefault=["descriptorName","qualifierName"],this.meshTermsColumns=this.meshTermsColumnsDefault,this.systematicsColumnsDefault=["OrganismClassifier","OrganismName","OrganismAuthordate","SystematicsControlledTerm","SystematicsModifier","SystematicsDetails"],this.systematicsColumns=this.systematicsColumnsDefault,this.isECSearchableField=!1,this.articleCategorySubject=[],this.superRecArticleCategorySubjectList={},this.expanded=[],this.descriptorsList=[],this.broadDescriptorsList=[],this.organismDescriptorsList=[],this.cabiCodesList=[],this.casRegNumList=[],this.showWOScategoryCollections=this.config.getSettings().app.fullRecord.showWOScategoryCollections,this.showWOSCategories=!0,this.flattenedMeshHeadingList=[],this.isRTL$=K.Y.isRTL$,this.encodeURIComponent=encodeURIComponent,this.hostContentCollections=a.getSettings().app.fullRecord.hostContentCollections,this.subjectClasification=a.getSettings().environment.subjectClasification,this.contrlledTerms=a.getSettings().environment.contrlledTerms}ngOnChanges(e){this.flattenedMeshHeadingList=[],this.articleCategorySubject=[],this.descriptorsList=[],this.broadDescriptorsList=[],this.organismDescriptorsList=[],this.cabiCodesList=[],this.casRegNumList=[],this.superRecordColl=[],e.record&&this.record&&(this.showThisGroup=!1,this.showCategoriesClassification()),e.database&&(this.isECSearchableField=this.config.getSettings().app.search.databases[this.database].general.advanced.fields.includes("EC")),e.record&&this.record.item&&this.record.item.MeshHeadingList&&(this.flattenedMeshHeadingList=[],this.constructFlattenedMeshTermsList()),e.record&&this.record.item&&(this.getSuperRecordClusteredCollections(),this.superRecordColl.forEach(a=>{this.record.item["article-categories-"+a]&&this.superRecordarticleCategorySubjectList(a)})),this.record.item?.["article-categories"]?.["subj-group"]?.length>0&&this.articleCategorySubjectList(),this.record.item?.index?.des?.length>0&&this.getDescriptorsList(),this.record.item?.index?.ups?.length>0&&this.getBroadDescriptorsList(),this.record.item?.index?.ods?.length>0&&this.getOrganismDescriptorsList(),this.record.item?.index?.ccs?.cc?.length>0&&this.getcabiCodesList(),this.record.item?.index?.rys?.length>0&&this.getCasRegNumList(),this.showWOSCategories=this.showWOScategoryCollections.includes(this.record.coll),this.isRTL$.pipe((0,Ee.Q)(this.destroyed$)).subscribe(()=>this.isRTL=this.isRTL$.getValue())}getDescriptorsList(){const e=this.record.item?.index?.des;for(let a=0;a<e.length;a++)this.descriptorsList[a]=e[a].de}getBroadDescriptorsList(){const e=this.record.item?.index?.ups;for(let a=0;a<e.length;a++)this.broadDescriptorsList[a]=e[a].up}getOrganismDescriptorsList(){const e=this.record.item?.index?.ods;for(let a=0;a<e.length;a++)this.organismDescriptorsList[a]=e[a].od}getcabiCodesList(){const e=this.record.item?.index?.ccs?.cc;for(let a=0;a<e.length;a++)this.cabiCodesList[a]={cabi_code:e[a].cabi_code,cabi_description:e[a].cabi_description||""}}getCasRegNumList(){const e=this.record.item?.index?.rys;for(let a=0;a<e.length;a++)this.casRegNumList[a]=e[a].ry}articleCategorySubjectList(){const e=this.record.item["article-categories"]["subj-group"];for(let a=0;a<e.length;a++)this.articleCategorySubject[a]=e[a].subject}superRecordarticleCategorySubjectList(e){const a=this.record.item["article-categories-"+e]["subj-group"],r=[];for(let o=0;o<a.length;o++)r[o]=a[o].subject;this.superRecArticleCategorySubjectList[e]=r}ngAfterViewChecked(){this.diseaseTable&&(this.diseaseColumns=this.hideEmptyTableColumns(this.diseaseColumnsDefault,this.diseaseTable.dataSource)),this.chemicalListTable&&(this.chemicalListColumns=this.hideEmptyTableColumns(this.chemicalListColumnsDefault,this.chemicalListTable.dataSource)),this.meshTermsTable&&(this.meshTermsColumns=this.hideEmptyTableColumns(this.meshTermsColumnsDefault,this.meshTermsTable.dataSource)),this.systematicsTable&&(this.systematicsColumns=this.hideEmptyTableColumns(this.systematicsColumnsDefault,this.systematicsTable.dataSource))}getExtendedSubjects(e){return"extended"===e.ascatype}showCategoriesClassification(){this.showThisGroup=!!(this.record.category_info&&this.record.category_info.subjects||this.record.item&&this.record.item.Index)}getMeshTermsRouterParams(e){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:"MH",rowText:e}])}}getRegistryNumberRouterParams(e){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:"RN",rowText:e}])}}getNameOfSubstanceRouterParams(e){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:"CH",rowText:e}])}}getQuickSearchString(e,a,r){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:a,rowText:e}]),disableEdit:r}}constructFlattenedMeshTermsList(){const e=this.record.item?.MeshHeadingList?.MeshHeading;e&&e.forEach(a=>{const r=a.DescriptorName,o=a.QualifierName;o?o.forEach((s,l)=>{this.flattenedMeshHeadingList.push(0===l?{descriptorName:r,qualifierName:s}:{descriptorName:null,qualifierName:s})}):this.flattenedMeshHeadingList.push({descriptorName:r,qualifierName:null})})}getGeneNameDataTableDisplayedColumns(){const e=["geneNameTerm"];return this.record.item?.Index?.GeneNameData?.GeneNameList?.filter(a=>!!a.GeneNameVariant).length>0&&e.push("geneNameVariant"),this.record.item?.Index?.GeneNameData?.GeneNameList?.filter(a=>!!a.GeneDetail).length>0&&e.push("geneDetail"),e}getSystematicsTableDisplayedColumns(){const e=[];return this.record.item?.ZRIndex?.ZRTaxonomicData?.SystematicsList?.filter(a=>!!a.OrganismClassifier).length>0&&e.push("OrganismClassifier"),this.record.item?.ZRIndex?.ZRTaxonomicData?.SystematicsList?.filter(a=>!!a.OrganismName).length>0&&e.push("OrganismName"),this.record.item?.ZRIndex?.ZRTaxonomicData?.SystematicsList?.filter(a=>!!a.OrganismAuthordate).length>0&&e.push("OrganismAuthordate"),this.record.item?.ZRIndex?.ZRTaxonomicData?.SystematicsList?.filter(a=>a.SystematicsEntryList?.filter(r=>r.SystematicsControlledTerm).length>0).length>0&&e.push("SystematicsControlledTerm"),this.record.item?.ZRIndex?.ZRTaxonomicData?.SystematicsList?.filter(a=>a.SystematicsEntryList?.filter(r=>r.SystematicsModifier).length>0).length>0&&e.push("SystematicsModifier"),this.record.item?.ZRIndex?.ZRTaxonomicData?.SystematicsList?.filter(a=>!!a.OrganismSpec).length>0&&e.push("SystematicsDetails"),e}hideEmptyTableColumns(e,a){const r={};return e.forEach(o=>{r[o]=a.every(s=>!s[o])}),e.filter(o=>!r[o])}getClassName(e){return void 0!==e?"h_L".concat(e):"h_L"}getRouterParams(e,a,r){let o;switch(e){case"broad_descriptors":o="BD";break;case"cabi_code":o="CCO";break;case"cas_reg_num":o="CR";break;case"categories":o="EC";break;case"scielo_collection":o="C2";break;case"classification":o="CL";break;case"controlled_index":o="CIX";break;case"chemical":o="CH";break;case"astronomical":o="AO";break;case"FSTA_section":o="FS";break;default:o="DE"}return{queryJson:JSON.stringify([{rowBoolean:null,rowField:o,rowText:a}]),disableEdit:r}}
1getAltText(e){switch(e){case"descriptors":return"descriptorsAlt";case"organism_descriptors":return"organismDescriptorsAlt";case"broad_descriptors":return"broadDescriptorsAlt";case"cabi_code":return"cabiCodeAlt";case"cas_reg_num":return"casRegistryNumberAlt";default:return""}}getTraditionalSubjects(e){return"traditional"===e.ascatype&&"Not Available"!==e.subject}getSuperRecordClusteredCollections(){this.superRecordColl=this.record.clustered_EWUIDs.filter(e=>e.coll_id!==this.record.coll&&this.record.item["super_record_"+e.coll_id]&&!0===this.record.item["super_record_"+e.coll_id]).map(e=>e.coll_id)}replaceParentheses(e){return e.replace(/\(/g,"%28").replace(/\)/g,"%29")}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(Dt.w))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-categories-classification"]],viewQuery:function(a,r){if(1&a&&(t.GBs(gx,5),t.GBs(fx,5),t.GBs(bx,5),t.GBs(vx,5)),2&a){let o;t.mGM(o=t.lsd())&&(r.diseaseTable=o.first),t.mGM(o=t.lsd())&&(r.chemicalListTable=o.first),t.mGM(o=t.lsd())&&(r.meshTermsTable=o.first),t.mGM(o=t.lsd())&&(r.systematicsTable=o.first)}},inputs:{record:"record",qid:"qid",database:"database",buildSiloOneClickLink:"buildSiloOneClickLink"},features:[t.Vt3,t.OA$],decls:1,vars:1,consts:[["meshTerms",""],["FvMacro",""],["FvMeso",""],["FvMicro",""],["FvSDG",""],["cancelledVersion",""],["fstaKeywords",""],["categories",""],["superArticleCategory",""],["cabiDesc",""],["broadDesc",""],["orgDesc",""],["cabiCodes",""],["intPatentClassification",""],["codeDataNoClick",""],["classification",""],["menuTrigger","matMenuTrigger"],["menu","matMenu"],["CODEN",""],["controlledIndex",""],["controlledMenu","matMenu"],["uncontrolledIndex",""],["sectionsSubsection",""],["casRegNums",""],["journalCollections",""],["superRecJournalCollections",""],["broadTermsList",""],["superTaxaList",""],["SystematicsData",""],["systematicsTable",""],["taxaNotesList",""],["meshTermsTable",""],["ChemicalList",""],["chemicalListTable",""],["majorConceptData",""],["ConceptCodeList",""],["diseaseData",""],["diseaseTable",""],["miscDescriptors",""],["class","catg-classification-section",4,"ngIf"],[1,"catg-classification-section"],[1,"cdx-two-column-grid-container"],[1,"cdx-grid-label"],[1,"cdx-grid-data"],[4,"ngIf"],["class","flex-align-left",4,"ngIf"],["class","cdx-two-column-grid-container",4,"ngIf"],[4,"ngFor","ngForOf"],["class","category-content-row",4,"ngIf"],["class","content-row",4,"ngIf"],["dir","auto","class","colonMark cdx-default-styles",3,"ngClass",4,"ngIf"],[3,"ngClass","wosSearchHighlight"],["dir","auto","class","semiColonMark",3,"ngClass",4,"ngIf"],["dir","auto","class","value",3,"ngClass",4,"ngIf"],["dir","auto",1,"colonMark","cdx-default-styles",3,"ngClass"],["dir","auto",1,"semiColonMark",3,"ngClass"],["dir","auto",1,"value",3,"ngClass"],[1,"flex-align-left"],[1,"colonMark","cdx-grid-data","cdx-default-styles"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","macro-citation-topic","cdxAnalyticsAction","click","class","value-link no-underline-link",3,"routerLink","matTooltip","state","ngClass","queryParams",4,"ngIf","ngIfElse"],["inline","true",1,"top-minus-10"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","macro-citation-topic","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"routerLink","matTooltip","state","ngClass","queryParams"],[3,"wosSearchHighlight"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","meso-citation-topic","cdxAnalyticsAction","click","class","value-link no-underline-link",3,"routerLink","matTooltip","state","ngClass","queryParams",4,"ngIf","ngIfElse"],["inline","true"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","meso-citation-topic","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"routerLink","matTooltip","state","ngClass","queryParams"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","micro-citation-topic","cdxAnalyticsAction","click","class","value-link no-underline-link",3,"routerLink","matTooltip","state","ngClass","queryParams",4,"ngIf","ngIfElse"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","micro-citation-topic","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"routerLink","matTooltip","state","ngClass","queryParams"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click","class","value-link no-underline-link",3,"routerLink","matTooltip","state","cdxAnalyticsCategory","ngClass","queryParams",4,"ngIf","ngIfElse"],["dir","auto","class","semiColonMark",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"routerLink","matTooltip","state","cdxAnalyticsCategory","ngClass","queryParams"],[3,"ngClass"],["dir","auto",1,"semiColonMark"],["dir","auto",1,"label","cdx-grid-label"],[4,"ngIf","ngIfElse"],["dir","auto","class","font-size-16 semiColonMark",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click",1,"no-underline-link",3,"ngClass","routerLink","matTooltip","queryParams","state"],["dir","auto",1,"font-size-16","semiColonMark"],["collection","FSTA","fieldTitle","Descriptors",3,"record","termFoundFlag"],[4,"ngTemplateOutlet"],["dir","auto","class","label colonMark",4,"ngIf"],[1,"value"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-keywords_link","cdxAnalyticsAction","click",1,"ke
1ywordLink",3,"routerLink","state","matTooltip","id","queryParams"],[3,"termMatched","wosSearchHighlight"],["dir","auto",1,"label","colonMark"],["class","category","cdxAnalyticsEvent","","cdxAnalyticsAction","Click",3,"routerLink","queryParams","matTooltip","cdxAnalyticsCategory",4,"ngIf","ngIfElse"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click",1,"category",3,"routerLink","queryParams","matTooltip","cdxAnalyticsCategory"],[3,"record","collection","fieldTitle"],[1,"cdx-two-column-grid-container","cdx-zero-padding"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click",1,"category",3,"routerLink","queryParams","state","matTooltip","cdxAnalyticsCategory"],[1,"category-content-row"],["collection","CABI","fieldTitle","DE_search_field_name",3,"record","termFoundFlag"],[1,"cdx-two-column-grid-container",3,"ngClass"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","'cabi-descriptors'",1,"category",3,"matTooltip","routerLink","queryParams","state"],["collection","CABI","fieldTitle","BD_search_field_name",3,"record","termFoundFlag"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","'cabi-broad-descriptors'",1,"category",3,"matTooltip","routerLink","queryParams","state"],["collection","CABI","fieldTitle","OD_search_field_name",3,"record","termFoundFlag"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","'cabi-organism-descriptor'",1,"category",3,"matTooltip","routerLink","queryParams","state"],["collection","CABI","fieldTitle","CCO_search_field_name",3,"record","termFoundFlag"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","'cabi-codes'",1,"category",3,"matTooltip","routerLink","queryParams","state"],[1,"value","padding-left-3--reversible",3,"termMatched","wosSearchHighlight"],["collection","INSPEC","fieldTitle","INSPECintPatentClassification",3,"record"],[1,"value","padding-left-3--reversible",3,"ngClass"],["class","category","cdxAnalyticsEvent","","cdxAnalyticsAction","Click",3,"matTooltip","routerLink","queryParams","cdxAnalyticsCategory",4,"ngIf","ngIfElse"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click",1,"category",3,"matTooltip","routerLink","queryParams","cdxAnalyticsCategory"],[1,"value",3,"wosSearchHighlight"],["collection","INSPEC","fieldTitle","INSPECclassification",3,"record","termFoundFlag"],["tabindex","0","role","button","cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","'inspec-codes'",1,"category",3,"menuOpened","menuClosed","keydown.enter","keydown.tab","matMenuTriggerFor","matTooltip","ngClass"],["inline","true",1,"font-size-26","icon-position"],["yPosition","below"],["mat-menu-item","","target","_blank","matTooltipPosition","above",1,"category","jcrSideNav-color",3,"matTooltip","href"],[1,"menu-icons"],["src","/wos/static/images/IAicon.svg","alt","IA icon",1,"icon-ia-position"],["mat-menu-item","","cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","'inspec-codes'",1,"category","jcrSideNav-color",3,"matTooltip","routerLink","queryParams","state"],[1,"value","padding-left-3--reversible",3,"termMatched","ngClass","wosSearchHighlight"],["collection","INSPEC","fieldTitle","INSPECcoden",3,"record"],[1,"value","cdx-grid-data"],["collection","INSPEC","fieldTitle","INSPECcontrolledIndex",3,"record","termFoundFlag"],["tabindex","0","role","button","cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","inspec-controlledIndex",1,"category",3,"menuOpened","menuClosed","keydown.enter","keydown.tab","matMenuTriggerFor","matTooltip","ngClass"],["mat-menu-item","","target","_blank","rel","noopener noreferrer","matTooltipPosition","above",1,"category","jcrSideNav-color",3,"matTooltip","href"],["collection","INSPEC","fieldTitle","INSPECuncontrolledIndex",3,"record","termFoundFlag"],[1,"value",3,"termMatched","ngClass","wosSearchHighlight"],["collection","FSTA","fieldTitle","FSTAsection",3,"record","termFoundFlag"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","fsta-section",1,"category",3,"routerLink","queryParams","state","matTooltip"],["dir","auto","class","value",4,"ngIf"],["dir","auto",1,"value"],[3,"buildSiloOneClickLink","qid","record","database",4,"ngIf"],["collection","ZOOREC","fieldTitle","broadTerm",3,"re
1cord"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","zoorec-broadTerm",3,"routerLink","matTooltip","queryParams","state"],[3,"buildSiloOneClickLink","qid","record","database"],["collection","ZOOREC","fieldTitle","superTaxa",3,"record","termFoundFlag"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","zoorec-superTaxa",3,"routerLink","matTooltip","queryParams","state"],["collection","ZOOREC","fieldTitle","SystematicsData",3,"record"],[1,"nextGen-Table","cdx-two-column-grid-container",3,"ngClass"],["dir","auto",1,"table-label","cdx-grid-label"],[1,"cdx-table-wrapper","cdx-table-wrapper-fixed","cdx-grid-data"],["mat-table","",3,"dataSource"],["matColumnDef","OrganismClassifier"],["mat-header-cell","","scope","col","scope","col",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","OrganismName"],["matColumnDef","OrganismAuthordate"],["mat-cell","",3,"wosSearchHighlight",4,"matCellDef"],["matColumnDef","SystematicsControlledTerm"],["matColumnDef","SystematicsModifier"],["matColumnDef","SystematicsDetails"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","scope","col","scope","col"],[1,"cdx-table-header-cell"],["mat-cell",""],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","zoorec-OrganismClassifier",3,"routerLink","matTooltip","queryParams","state"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","zoorec-OrganismName",3,"routerLink","matTooltip","queryParams","state"],["mat-cell","",3,"wosSearchHighlight"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","zoorec-SystematicscontrolledTerm",3,"queryParams","routerLink","matTooltip","state"],[3,"wosSearchHighlight",4,"ngFor","ngForOf"],[3,"wosSearchHighlight",4,"ngIf"],["mat-header-row",""],["mat-row",""],["collection","ZOOREC","fieldTitle","taxaNote",3,"record"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","zoorec-taxaNote",3,"routerLink","matTooltip","queryParams","state"],[1,"content-row"],["collection","MEDLINE","fieldTitle","meshTerms",3,"record","termFoundFlag"],["matColumnDef","descriptorName"],["matColumnDef","qualifierName"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","medline-mesh-term-heading",3,"routerLink","matTooltip","queryParams","state"],["collection","MEDLINE","fieldTitle","chemical",3,"record","termFoundFlag"],["matColumnDef","RegistryNumber"],["matColumnDef","NameOfSubstance"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","medline-chem",3,"routerLink","queryParams","state","matTooltip"],[3,"routerLink","queryParams","state","matTooltip"],[1,"label","cdx-grid-label"],[3,"record","database","qid","buildSiloOneClickLink"],["collection","BCI","fieldTitle","majorConcepts",3,"record","termFoundFlag"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","bci-majorConcept",3,"routerLink","matTooltip","queryParams","state"],["collection","BCI","fieldTitle","conceptCode",3,"record","termFoundFlag"],["dir","auto",1,"wrapping-label","cdx-grid-label"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","bci-conceptCode",3,"routerLink","matTooltip","queryParams","state"],["collection","BCI","fieldTitle","diseaseData",3,"record","termFoundFlag"],["matColumnDef","DiseaseTerm"],["mat-cell","",3,"wosSearchHighlight","termMatched",4,"matCellDef"],["matColumnDef","DiseaseVariant"],["matColumnDef","MeSHTerm"],["mat-header-cell","","scope","col",4,"matHeaderCellDef"],["matColumnDef","DiseaseAffiliation"],["matColumnDef","DiseaseDetail"],["mat-cell","",3,"termMatched","wosSearchHighlight"],["mat-header-cell","","scope","col"],["translate","",1,"cdx-table-header-cell"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","bci-diseaseAffiliation",3,"routerLink","matTooltip","queryParams","state",4,"ngIf"],[3,"routerLink","matTooltip","queryParams","state",4,"ngFor","ngForOf"],[3,"routerLink","matTooltip","queryParams","state"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","bci-diseaseAffiliation",3,"routerLink","matTooltip","queryParams","state"],[1,"nextGen-Table","cdx-two-column-grid-container"],["matColumnDef","geneNameTerm"],["matColumnDef","geneNameVariant"],["matColumnDef","geneDetail"],["collection","BCI","fieldTitle","miscDescriptors",3,"record","termFoundFlag"]],template:function(a,r){1&a&&t.DNE(0,_8,36,33,"div",39),2&a&&t.Y8G("ngIf",r.showThisGroup)},dependencies:[A.YU,A.Sq,A.bT,A.T3,ot.Wk,V.Mm,ie.w,jt.An,$t.ig,xt.oV,Lt.kk,Lt.fb,Lt.Cp,X.Zl,X.tL,X.ji,X.cC,X.YV,X.iL,X.KS,X.$R,X.YZ,X.NB,Ot.P,Ea,J3,Av,mx,A.PV,V.D9,Se.h],styles:[".category-content-row[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]{color:var(--sys-primary)!important;font-size:.875rem!important}.category-content-row[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]:hover{color:#4125af!important;text-decoration:underline!important}hr[_ngcontent-%COMP%]{border:1px #EEEEEE solid}.mat-mdc-menu-item[_ngcontent-%COMP%]{color:#5d33bf!important}.icon-ia-position[_ngcontent-%COMP%]{width:30px;padding-left:5px}"]})}}return i})();const cd=i=>["/",i,"general-summary"],dd=(i,n,e)=>[i,n,"conf_title",e];
1function h8(i,n){if(1&i&&(t.j41(0,"a",10),t.nrm(1,"span",11),t.k0s()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(2);t.Y8G("ngClass","section-label-data full-record-detail-section-links")("routerLink",t.eq3(8,cd,o.database.toLowerCase()))("queryParams",o.getRouterParams(a.conf_titles[0].conf_title)),t.BMQ("id",o.taPrefix+"conference-"+a.conf_titles[0].conf_title+"-"+r)("data-ta",o.taPrefix+"conference-"+a.conf_titles[0].conf_title+"-"+r),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(10,dd,o.record.ut,o.qid,a.conf_titles[0].conf_title)),t.BMQ("data-ta",o.taPrefix+"conference-"+r)("id",o.taPrefix+"conference-"+r)}}function m8(i,n){if(1&i&&t.nrm(0,"span",12),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(2);t.Y8G("wosSearchHighlight",t.sMw(3,dd,o.record.ut,o.qid,a.conf_titles[0].conf_title)),t.BMQ("id",o.taPrefix+"conference-"+r)("data-ta",o.taPrefix+"conference-"+r)}}function g8(i,n){if(1&i&&(t.j41(0,"span",15),t.EFF(1),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2).index,s=t.XpG(2);t.BMQ("id",s.taPrefix+"conf-loc-host-"+o+"-"+r)("data-ta",s.taPrefix+"conf-loc-host-"+o+"-"+r),t.R7$(),t.SpI("",a.conf_host,", ")}}
1function f8(i,n){if(1&i&&(t.j41(0,"span",15),t.EFF(1),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2).index,s=t.XpG(2);t.BMQ("id",s.taPrefix+"conf-composite-location-"+o+"-"+r)("data-ta",s.taPrefix+"conf-composite-locatio-"+o+"-"+r),t.R7$(),t.JRh(a.composite_location)}}function b8(i,n){if(1&i&&(t.j41(0,"span",15),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(2).index,s=t.XpG(2);t.BMQ("id",s.taPrefix+"conf-loc-city-"+o+"-"+r)("data-ta",s.taPrefix+"conf-loc-city-"+o+"-"+r),t.R7$(),t.SpI("",a.conf_city,", ")}}function v8(i,n){if(1&i&&(t.DNE(0,b8,2,3,"span",13),t.j41(1,"span",15),t.EFF(2),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2).index,s=t.XpG(2);t.Y8G("ngIf",a.conf_city),t.R7$(),t.BMQ("id",s.taPrefix+"conf-loc-state-"+o+"-"+r)("data-ta",s.taPrefix+"conf-loc-state-"+o+"-"+r),t.R7$(),t.JRh(a.conf_state)}}function x8(i,n){if(1&i&&(t.qex(0),t.j41(1,"div")(2,"h3",8),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,g8,2,3,"span",13)(6,f8,2,3,"span",14)(7,v8,3,4,"ng-template",null,1,t.C5r),t.k0s(),t.bVm()),2&i){const e=n.$implicit,a=t.sdS(8);t.R7$(3),t.JRh(t.bMT(4,4,"location")),t.R7$(2),t.Y8G("ngIf",e.conf_host),t.R7$(),t.Y8G("ngIf",e.composite_location)("ngIfElse",a)}}function C8(i,n){if(1&i&&(t.qex(0),t.j41(1,"div")(2,"h3",8),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",15),t.EFF(6),t.k0s()(),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(2).index,o=t.XpG(2);t.R7$(3),t.JRh(t.bMT(4,4,"date")),t.R7$(2),t.BMQ("id",o.taPrefix+"conf-date-"+r+"-"+a)("data-ta",o.taPrefix+"conf-date-"+r+"-"+a),t.R7$(),t.JRh(e.conf_date)}}function R8(i,n){1&i&&(t.j41(0,"h3",8),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.JRh(t.bMT(2,1,"sponsors")))}function y8(i,n){1&i&&(t.j41(0,"h3",8),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.JRh(t.bMT(2,1,"sponsor")))}function T8(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,"; "),t.k0s())}function I8(i,n){if(1&i&&(t.qex(0),t.DNE(1,R8,3,3,"h3",16)(2,y8,3,3,"h3",16),t.j41(3,"span",15),t.EFF(4),t.k0s(),t.DNE(5,T8,2,0,"span",3),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.first,o=n.last,s=t.XpG(3),l=s.$implicit,c=s.index,d=t.XpG(2);t.R7$(),t.Y8G("ngIf",r&&l.sponsors.length>1),t.R7$(),t.Y8G("ngIf",r&&1===l.sponsors.length),t.R7$(),t.BMQ("id",d.taPrefix+"conf-sponsor-"+c+"-"+a)("data-ta",d.taPrefix+"conf-sponsor-"+c+"-"+a),t.R7$(),t.JRh(e),t.R7$(),t.Y8G("ngIf",!o)}}function k8(i,n){if(1&i&&(t.qex(0),t.DNE(1,I8,6,6,"ng-container",7),t.bVm()),2&i){const e=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngForOf",e.sponsors)}}function F8(i,n){if(1&i&&(t.qex(0),t.j41(1,"div")(2,"h3",8),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span"),t.DNE(6,h8,2,14,"a",9),t.k0s(),t.DNE(7,m8,1,7,"ng-template",null,0,t.C5r),t.k0s(),t.DNE(9,x8,9,6,"ng-container",7)(10,C8,7,6,"ng-container",7)(11,k8,2,1,"ng-container",3),t.bVm()),2&i){const e=t.sdS(8),a=t.XpG().$implicit,r=t.XpG
1(2);t.R7$(3),t.JRh(t.bMT(4,6,"meeting")),t.R7$(3),t.Y8G("ngIf",r.buildSiloOneClickLink&&r.isCFSearchableField)("ngIfElse",e),t.R7$(3),t.Y8G("ngForOf",a.conf_locations),t.R7$(),t.Y8G("ngForOf",a.conf_dates),t.R7$(),t.Y8G("ngIf",a.sponsors&&a.sponsors.length>0)}}function w8(i,n){if(1&i&&(t.j41(0,"a",18)(1,"span"),t.EFF(2),t.k0s()()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2).index,s=t.XpG(2);t.Y8G("routerLink",t.eq3(7,cd,s.database.toLowerCase()))("queryParams",s.getRouterParams(a.conf_info)),t.BMQ("id",s.taPrefix+"conference-"+a.conf_info+"-"+r)("data-ta",s.taPrefix+"conference-"+a.conf_info+"-"+r),t.R7$(),t.BMQ("id",s.taPrefix+"conf-infos-"+o+"-"+r)("data-ta",s.taPrefix+"conf-infos-"+o+"-"+r),t.R7$(),t.JRh(a.conf_info)}}function M8(i,n){if(1&i&&(t.j41(0,"span",15),t.EFF(1),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2).index,s=t.XpG(2);t.BMQ("id",s.taPrefix+"conf-infos-"+o+"-"+r)("data-ta",s.taPrefix+"conf-infos-"+o+"-"+r),t.R7$(),t.JRh(a.conf_info)}}function S8(i,n){if(1&i&&(t.j41(0,"div")(1,"span"),t.DNE(2,w8,3,9,"a",17)(3,M8,2,3,"ng-template",null,2,t.C5r),t.k0s()()),2&i){const e=t.sdS(4),a=t.XpG(4);t.R7$(2),t.Y8G("ngIf",a.buildSiloOneClickLink&&a.isCFSearchableField)("ngIfElse",e)}}function A8(i,n){if(1&i&&(t.qex(0),t.DNE(1,S8,5,2,"div",7),t.bVm()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.conf_infos)}}function E8(i,n){if(1&i&&(t.qex(0),t.DNE(1,F8,12,8,"ng-container",3)(2,A8,2,1,"ng-container",3),t.bVm()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.conf_titles),t.R7$(),t.Y8G("ngIf",!e.conf_titles)}}function P8(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",4)(2,"h2",5),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",6),t.DNE(6,E8,3,2,"ng-container",7),t.k0s()(),t.bVm()),2&i){const e=t.XpG();t.R7$(2),t.BMQ("data-ta",e.taPrefix+"confDataHeading")("id",e.taPrefix+"confDataHeading"),t.R7$(),t.JRh(t.bMT(4,4,"conference")),t.R7$(3),t.Y8G("ngForOf",e.record.conferences)}}let G8=(()=>{class i{constructor(e){this.config=e,this.isCFSearchableField=!1,this.taPrefix="ConfTa-"}ngOnInit(){}ngOnChanges(){this.isCFSearchableField=this.config.getSettings().app.search.databases[this.database].general.advanced.fields.includes("CF")}getRouterParams(e){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:"CF",rowText:e}]),eventMode:"oneClickSearch"}}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Dt.w))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-conferences"]],inputs:{record:"record",qid:"qid",database:"database",buildSiloOneClickLink:"buildSiloOneClickLink"},features:[t.OA$],decls:1,vars:1,consts:[["meeting",""],["buildlocation",""],["confText",""],[4,"ngIf"],[1,"cdx-two-column-grid-container"],[1,"cdx-grid-label"],[1,"cdx-grid-data"],[4,"ngFor","ngForOf"],["dir","auto",1,"label","colonMark"],[3,"ngClass","routerLink","queryParams",4,"ngIf","ngIfElse"],[3,"ngClass","routerLink","queryParams"],[3,"wosSearchHighlight"],[1,"value",3,"wosSearchHighlight"],["class","value",4,"ngIf"],["class","value",4,"ngIf","ngIfElse"],[1,"value"],["dir","auto","class","label colonMark",4,"ngIf"],[3,"routerLink","queryParams",4,"ngIf","ngIfElse"],[3,"routerLink","queryParams"]],template:function(a,r){1&a&&t.DNE(0,P8,7,6,"ng-container",3),2&a&&t.Y8G("ngIf",r.record&&r.record.conferences&&r.record.conferences.length>0)},dependencies:[A.YU,A.Sq,A.bT,ot.Wk,ie.w,$t.ig,V.D9],encapsulation:2})}}return i})();var Ei=S(1134);const D8=["fundtable"],$o=i=>({"cdx-two-column-grid-container":i}),ud=(i,n,e)=>[i,n,"funding_text",e],_d=()=>["expandedDetail"],on=i=>["/",i,"general-summary"],Lo=(i,n,e)=>[i,n,"funding_agency",e],$a=(i,n,e)=>[i,n,"funding_grant_number",e],Jt=(i,n,e)=>[i,n,"funding_details",e],pd=i=>({displayNone:i}),No=(i,n,e)=>[i,n,"grantInfo",e],$8=()=>["/","grants","general-summary"],ei=(i,n)=>({siloSearchWarning:i,collection:n}),hd=i=>["/","grants","full-record",i],md=()=>({siloViewRecordWarning:!0}),jo=(i,n,e)=>[i,n,"grant_agency",e],L8=(i,n,e)=>[i,n,"grant_status",e],N8=(i,n,e)=>[i,n,"grant_type",e],j8=(i,n,e)=>[i,n,"grant_date",e];function O8(i,n){if(1&i&&(t.j41(0,"div",7)(1,"h2",8),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"div",9),t.k0s()),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(7,$o,"CSCD"===e.record.coll||e.record.item.super_record_CSCD||e.record.item.super_record_RSCI)),t.R7$(),t.BMQ("data-ta",e.taPrefix+"fundingTitle")("id",e.taPrefix+"fundingTitle"),t.R7$(),t.JRh(t.bMT(3,5,"funding")),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(9,ud,e.record.ut,e.qid,null==e.record.fund_ack?null:e.record.fund_ack.fund_text))}}
1function B8(i,n){if(1&i&&(t.j41(0,"div",15)(1,"a",16),t.nI1(2,"translate"),t.j41(3,"mat-icon",17),t.EFF(4,"open_in_new"),t.k0s(),t.j41(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s()()()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("matTooltip",t.bMT(2,4,"searchPivotFundingTooltip")),t.R7$(4),t.BMQ("data-ta",e.taPrefix+"searchPivotFunding")("id",e.taPrefix+"searchPivotFunding"),t.R7$(),t.SpI(" ",t.bMT(7,6,"searchPivotFunding"),"")}}function Y8(i,n){1&i&&t.nrm(0,"hr",18)}function X8(i,n){if(1&i&&t.nrm(0,"div",22),2&i){const e=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,ud,e.record.ut,e.qid,e.record.fund_ack.fund_text))}}function q8(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"button",19),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.toggleFundAck())}),t.EFF(2),t.nI1(3,"translate"),t.j41(4,"mat-icon",20),t.EFF(5),t.k0s()(),t.DNE(6,X8,1,5,"div",21),t.bVm()}if(2&i){const e=t.XpG(2);t.R7$(),t.BMQ("id",e.taPrefix+"fundAck")("data-ta",e.taPrefix+"fundAck"),t.R7$(),t.SpI(" ",t.bMT(3,5,e.expanded?"closeFunding":"viewFunding")," "),t.R7$(3),t.JRh(e.expanded?"expand_less":"expand_more"),t.R7$(),t.Y8G("ngIf",e.expanded)}}function H8(i,n){if(1&i&&(t.j41(0,"th",37)(1,"div",38),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"fund-table-fundingAgency")("id",e.taPrefix+"fund-table-fundingAgency"),t.R7$(),t.SpI("",t.bMT(3,3,"fundingAgency")," ")}}function V8(i,n){1&i&&t.nrm(0,"br")}
1function z8(i,n){if(1&i&&(t.j41(0,"section")(1,"a",41),t.nI1(2,"translate"),t.nrm(3,"span",42),t.k0s(),t.DNE(4,V8,1,0,"br",13),t.k0s()),2&i){const e=n.$implicit,a=n.last,r=t.XpG(2).dataIndex,o=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.eq3(12,on,o.database?o.database.toLowerCase():o.record.coll.toLowerCase()))("matTooltip",t.bMT(2,10,"fundingAgency")+": "+e)("ngClass","section-label-data full-record-detail-section-links")("queryParams",o.getQuickSearchString('"'+e+'"',"FO","true")),t.BMQ("data-ta",o.taPrefix+"fundingAgency-"+e)("id",o.taPrefix+"fundingAgency-"+e),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(14,Lo,o.record.ut,o.qid,e)),t.BMQ("id",o.taPrefix+"fundingShowHide-"+r+"-agencyName")("data-ta",o.taPrefix+"fundingShowHide-"+r+"-agencyName"),t.R7$(),t.Y8G("ngIf",!a)}}function Q8(i,n){if(1&i&&(t.j41(0,"section"),t.DNE(1,z8,5,18,"section",40),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",e.agencies)}}function U8(i,n){if(1&i&&(t.j41(0,"td",39),t.DNE(1,Q8,2,1,"section",13),t.k0s()),2&i){const e=n.dataIndex,a=t.XpG(3);t.BMQ("id",a.taPrefix+"fundingShowHide-"+e)("data-ta",a.taPrefix+"fundingShowHide-"+e),t.R7$(),t.Y8G("ngIf",a.shownAgenciesIndices.includes(e))}}function J8(i,n){if(1&i&&(t.j41(0,"div",44),t.EFF(1,"grant"),t.k0s()),2&i){const e=t.XpG(4);t.BMQ("data-ta",e.taPrefix+"fund-table-heading-grant")("id",e.taPrefix+"fund-table-heading-grant")}}
1function W8(i,n){if(1&i&&(t.j41(0,"th",37),t.DNE(1,J8,2,2,"div",43),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngIf",e.isContainsGrants)}}function K8(i,n){if(1&i&&(t.qex(0),t.j41(1,"a",46),t.nI1(2,"translate"),t.nrm(3,"span",42),t.k0s(),t.bVm()),2&i){const e=t.XpG().$implicit,a=t.XpG(2).dataIndex,r=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.eq3(9,on,r.database?r.database.toLowerCase():r.record.coll.toLowerCase()))("matTooltip",t.bMT(2,7,"grant")+": "+a)("ngClass","section-label-data full-record-detail-section-links")("queryParams",r.getQuickSearchString('"'+e+'"',"FG","true")),t.BMQ("data-ta",r.taPrefix+"fundingGrants"+a)("id",r.taPrefix+"fundingGrants"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(11,$a,r.record.ut,r.qid,e))}}function Z8(i,n){if(1&i&&(t.qex(0),t.DNE(1,K8,4,15,"ng-container",13),t.nI1(2,"entitlements"),t.bVm()),2&i){const e=t.XpG(5);t.R7$(),t.Y8G("ngIf",t.bMT(2,1,"GRANTS")&&"GRANTS:"!==e.record.coll)}}function t6(i,n){if(1&i&&(t.qex(0),t.DNE(1,Z8,3,3,"ng-container",40),t.bVm()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngForOf",a.grantNumber(e.grant))}}function e6(i,n){if(1&i&&(t.j41(0,"td",45),t.DNE(1,t6,2,1,"ng-container",13),t.k0s()),2&i){const e=n.$implicit,a=n.dataIndex,r=t.XpG(3);t.BMQ("id",r.taPrefix+"fund-table-grant-"+a)("data-ta",r.taPrefix+"fund-table-grant-"+a),t.R7$(),t.Y8G("ngIf",e.grant)}}function n6(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",48),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.toggleAllDetails())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()}if(2&i){const e=t.XpG(4);t.Y8G("matTooltip",t.bMT(1,4,e.expandedText?"fundingHideDetailAlt":"fundingMoreDetailAlt")),t.BMQ("id",e.taPrefix+"fundingShowHide")("data-ta",e.taPrefix+"fundingShowHide"),t.R7$(2),t.SpI(" ",t.bMT(3,6,e.expandedIndices.length!==e.indicesWithDetails.length?"showAllDetails":"hideAllDetails")," ")}}function i6(i,n){if(1&i&&(t.j41(0,"th",37),t.DNE(1,n6,4,8,"button",47),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngIf",e.indicesWithDetails.length>0)}}function a6(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",50),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(),o=r.$implicit,s=r.dataIndex,l=t.XpG(3);return t.Njj(o.data?l.toggleGrantDetails(s):l.nop())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()}if(2&i){const e=t.XpG().dataIndex,a=t.XpG(3);t.Y8G("matTooltip",t.bMT(1,4,a.expandedText?"fundingHideDetailAlt":"fundingMoreDetailAlt")),t.BMQ("id",a.taPrefix+"fundingShowHide"+e)("data-ta",a.taPrefix+"fundingShowHide"+e),t.R7$(2),t.SpI(" ",t.bMT(3,6,a.expandedIndices.includes(e)?"hideDetails":"showDetail
1s")," ")}}function r6(i,n){if(1&i&&(t.j41(0,"td",45),t.DNE(1,a6,4,8,"button",49),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.data)}}function o6(i,n){if(1&i&&(t.j41(0,"p")(1,"span",53),t.EFF(2),t.k0s(),t.nrm(3,"span",42),t.k0s()),2&i){const e=t.XpG(2).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",a.appearedInFundingSource,":"),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Jt,a.record.ut,a.qid,e.data.fundingDataSource))}}function s6(i,n){if(1&i&&(t.j41(0,"p")(1,"span",53),t.EFF(2),t.k0s(),t.nrm(3,"span",42),t.k0s()),2&i){const e=t.XpG(2).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",a.appearedInSource,":"),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Jt,a.record.ut,a.qid,e.data.appearedInSource))}}function l6(i,n){if(1&i&&(t.j41(0,"p")(1,"span",53),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.EFF(4),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",t.bMT(3,2,"totalAwardAmount"),":"),t.R7$(2),t.SpI(" ",a.getCurrencyString(e.data.grantData.totalAwardAmount,e.data.grantData.currency)+" "+e.data.grantData.currency," ")}}function c6(i,n){if(1&i&&(t.j41(0,"p")(1,"span",53),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",42),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",t.bMT(3,2,"grantProjectTitle"),":"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(4,Jt,a.record.ut,a.qid,e.data.grantData.grantProjectTitle))}}function d6(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,", "),t.k0s())}function u6(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",42),t.DNE(2,d6,2,0,"span",13),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=t.XpG(7);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Jt,r.record.ut,r.qid,e)),t.R7$(),t.Y8G("ngIf",!a)}}function _6(i,n){if(1&i&&(t.j41(0,"p")(1,"span",53),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,u6,3,6,"ng-container",40),t.k0s()),2&i){const e=t.XpG(3).$implicit;t.R7$(2),t.SpI("",t.bMT(3,2,"program"),":"),t.R7$(2),t.Y8G("ngForOf",e.data.grantData.program_names)}}function p6(i,n){if(1&i&&(t.j41(0,"p")(1,"span",53),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.EFF(4),t.k0s()),2&i){const e=t.XpG(3).$implicit;t.R7$(2),t.SpI("",t.bMT(3,2,"startDate"),":"),t.R7$(2),t.SpI(" ",e.data.grantData.startDate," ")}}function h6(i,n){if(1&i&&(t.j41(0,"p")(1,"span",53),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.EFF(4),t.k0s()),2&i){const e=t.XpG(3).$implicit;t.R7$(2),t.SpI("",t.bMT(3,2,"endDate"),":"),t.R7$(2),t.SpI(" ",e.data.grantData.endDate," ")}}function m6(i,n){if(1&i&&(t.j41(0,"p")(1,"span",53),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",42),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",t.bMT(3,2,"grantStatus"),":"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(4,Jt,a.record.ut,a.qid,e.data.grantData.grantStatus))}}function g6(i,n){if(1&i&&(t.j41(0,"p",55)(1,"span",53),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.EFF(4),t.k0s()),2&i){const e=t.XpG(2).$implicit;t.R7$(2),t.SpI("",t.bMT(3,2,"Email"),":"),t.R7$(2),t.SpI(" ",e.principalInvestigatorEmail," ")}}function f6(i,n){if(1&i&&(t.j41(0,"p",55)(1,"span",53),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.EFF(4),t.k0s()),2&i){const e=t.XpG(2).$implicit;t.R7$(2),t.SpI("",t.bMT(3,2,"uniqueIdentifier"),":"),t.R7$(2),t.SpI(" ",e.principalInvestigatorId," ")}}function b6(i,n){if(1&i&&(t.j41(0,"p",55)(1,"span",53),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",42),t.k0s()),2&i){const e=t.XpG(2).index,a=t.XpG(4).$implicit,r=t.XpG
1(3);t.R7$(2),t.SpI("",t.bMT(3,2,"principalInvestigatorInstitution"),":"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(4,Jt,r.record.ut,r.qid,r.getArrayElement(a.data.grantData.principalInvestigators)[e].principalInvestigatorInstitution))}}function v6(i,n){if(1&i&&(t.qex(0),t.j41(1,"p")(2,"span",53),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"span",42),t.k0s(),t.DNE(6,g6,5,4,"p",54)(7,f6,5,4,"p",54)(8,b6,5,8,"p",54),t.bVm()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(4).$implicit,s=t.XpG(3);t.R7$(3),t.SpI("",t.bMT(4,5,"principalInvestigator"),": "),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(7,Jt,s.record.ut,s.qid,a.principalInvestigator)),t.R7$(),t.Y8G("ngIf",a.principalInvestigatorEmail),t.R7$(),t.Y8G("ngIf",a.principalInvestigatorId),t.R7$(),t.Y8G("ngIf",s.getArrayElement(o.data.grantData.principalInvestigators)&&s.getArrayElement(o.data.grantData.principalInvestigators).length>0&&s.getArrayElement(o.data.grantData.principalInvestigators)[r])}}function x6(i,n){if(1&i&&(t.qex(0),t.DNE(1,v6,9,11,"ng-container",13),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(7);t.R7$(),t.Y8G("ngIf",0==a.isArray(e))}}function C6(i,n){if(1&i&&(t.qex(0),t.DNE(1,x6,2,1,"ng-container",40),t.bVm()),2&i){const e=t.XpG(3).$implicit;t.R7$(),t.Y8G("ngForOf",e.data.grantData.principalInvestigators)}}function R6(i,n){if(1&i&&(t.qex(0),t.j41(1,"p")(2,"span",53),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"span",42),t.k0s(),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(7);t.R7$(3),t.SpI("",t.bMT(4,2,"coPrincipalInvestigator"),":"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(4,Jt,a.record.ut,a.qid,e))}}function y6(i,n){if(1&i&&(t.qex(0),t.DNE(1,R6,6,8,"ng-container",40),t.bVm()),2&i){const e=t.XpG(3).$implicit;t.R7$(),t.Y8G("ngForOf",e.data.grantData.coPrincipalInvestigators)}}function T6(i,n){if(1&i&&(t.j41(0,"p")(1,"span",53),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",42),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",t.bMT(3,2,"grantSummary"),":"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(4,Jt,a.record.ut,a.qid,e.data.grantData.grantSummary))}}function I6(i,n){if(1&i&&(t.j41(0,"p")(1,"span",53),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",42),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",t.bMT(3,2,"keyWords"),":"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(4,Jt,a.record.ut,a.qid,a.getKeywordsTextFromList(e.data.grantData.keywords)))}}function k6(i,n){if(1&i&&(t.qex(0),t.DNE(1,l6,5,4,"p",13)(2,c6,5,8,"p",13)(3,_6,5,4,"p",13)(4,p6,5,4,"p",13)(5,h6,5,4,"p",13)(6,m6,5,8,"p",13)(7,C6,2,1,"ng-container",13)(8,y6,2,1,"ng-container",13)(9,T6,5,8,"p",13)(10,I6,5,8,"p",13),t.bVm()),2&i){const e=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngIf",e.data.grantData.totalAwardAmount&&e.data.grantData.currency),t.R7$(),t.Y8G("ngIf",e.data.grantData.grantProjectTitle),t.R7$(),t.Y8G("ngIf",e.data.grantData.program_names&&e.data.grantData.program_names.length>0),t.R7$(),t.Y8G("ngIf",e.data.grantData.startDate),t.R7$(),t.Y8G("ngIf",e.data.grantData.endDate),t.R7$(),t.Y8G("ngIf",e.data.grantData.grantStatus),t.R7$(),t.Y8G("ngIf",e.data.grantData.principalInvestigators&&e.data.grantData.principalInvestigators.length>0),t.R7$(),t.Y8G("ngIf",e.data.grantData.coPrincipalInvestigators&&e.data.grantData.coPrincipalInvestigators.length>0),t.R7$(),t.Y8G("ngIf",e.data.grantData.grantSummary),t.R7$(),t.Y8G("ngIf",e.data.grantData.keywords)}}function F6(i,n){if(1&i&&(t.j41(0,"div",52),t.DNE(1,o6,4,6,"p",13)(2,s6,4,6,"p",13)(3,k6,11,10,"ng-container",13),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf",e.data.fundingDataSource),t.R7$(),t.Y8G("ngIf",e.data.appearedInSource),t.R7$(),t.Y8G("ngIf",e.data.grantData)}}function w6(i,n){if(1&i&&(t.j41(0,"td",45),t.DNE(1,F6,4,3,"div",51),t.k0s()),2&i){const e=n.$implicit,a=t.XpG(3);t.BMQ("colspan",a.NonGrantLinkColumns.length),t.R7$(),t.Y8G("ngIf",e.data)}}function M6(i,n){1&i&&t.nrm(0,"tr",56)}function S6(i,n){if(1&i&&t.nrm(0,"tr",57),2&i){const e=n.dataIndex,a=t.XpG(3);t.Y8G("ngClass",a.grayIndices.includes(e)?"gray-indices":"")}}function A6(i,n){if(1&i&&t.nrm(0,"tr",57),2&i){const e=n.$implicit,a=n.dataIndex,r=t.XpG(3);t.Y8G("ngClass",t.eq3(1,pd,!(r.expandedIndices.includes(a)&&e.data)))}}function E6(i,n){if(1&i&&(t.qex(0),t.j41(1,"section",23)(2,"div",24),t.nrm(3,"p",25),t.j41(4,"table",26,0)(6,"caption",27),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.qex(9,28),t.DNE(10,H8,4,5,"th",29)(11,U8,2,3,"td",30),t.bVm(),t.qex(12,31),t.DNE(13,W8,2,1,"th",29)(14,e6,2,3,"td",32),t.bVm(),t.qex(15,33),t.DNE(16,i6,2,1,"th",29)(17,r6,2,1,"td",32),t.bVm(),t.qex(18,34),t.DNE(19,w6,2,2,"td",32),t.bVm(),t.DNE(20,M6,1,0,"tr",35)(21,S6,1,1,"tr",36)(22,A6,1,3,"tr",36),t.k0s()()(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngClass",e.expandedText&&"expandChildren"),t.R7$(3),t.Y8G("dataSource",e.isNotIndexedData),t.BMQ("data-ta",e.taPrefix+"fund-table")("id",e.taPrefix+"fund-table"),t.R7$(3),t.JRh(t.bMT(8,9,"fundingTable")),t.R7$(13),t.Y8G("matHeaderRowDef",e.NonGrantLinkColumns)("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",e.NonGrantLinkColumns),t.R7$(),t.Y8G("matRowDefColumns",t.lJ4(11,_d))}}function P6(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",65),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.toggleAgencyText())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()}if(2&i){const e=t.XpG(4);t.Y8G("matTooltip",t.bMT(1,4,e.expandedText?"fundingHideDetailAlt":"fundingMoreDetailAlt")),t.BMQ("id",e.taPrefix+"fundingMoreInfoShowHide")("data-ta",e.taPrefix+"fundingMoreInfoShowHide"),t.R7$(2),t.SpI(" ",t.bMT(3,6,e.expandedText?"hideDetails":"showDetail
1s"),"")}}function G6(i,n){if(1&i&&(t.j41(0,"th",37)(1,"div",63),t.EFF(2),t.nI1(3,"translate"),t.DNE(4,P6,4,8,"button",64),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"fund-table-grant-info-ID")("id",e.taPrefix+"fund-table-grant-info-ID"),t.R7$(),t.SpI("",t.bMT(3,4,"id")," "),t.R7$(2),t.Y8G("ngIf",e.showHideControl&&((null==e.record.fund_ack.grants[0]?null:e.record.fund_ack.grants[0].grant_data)||(null==e.record.fund_ack.grants[0]?null:e.record.fund_ack.grants[0].grant_info)||(null==e.record.fund_ack.grants[0]?null:e.record.fund_ack.grants[0].grant_source)))}}function D6(i,n){if(1&i&&(t.j41(0,"td",45)(1,"a",66),t.nI1(2,"translate"),t.nrm(3,"span",42),t.k0s()()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.eq3(8,on,r.database.toLowerCase()))("matTooltip",t.bMT(2,6,"grantAlt"))("queryParams",r.getQuickSearchString(e.grant?e.grant:"","ALLDB"===r.database?"FG":"GI","true")),t.BMQ("data-ta",r.taPrefix+"fundGrantLine-"+a)("id",r.taPrefix+"fundGrantLine-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(10,No,r.record.ut,r.qid,e.grant))}}function $6(i,n){if(1&i&&(t.j41(0,"th",37)(1,"div",67),t.EFF(2,"agency"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"fundAgency")("id",e.taPrefix+"fundAgency")}}function L6(i,n){if(1&i&&t.nrm(0,"span",42),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,No,a.record.ut,a.qid,e.agencies))}}function N6(i,n){if(1&i&&(t.j41(0,"td",45)(1,"a",66),t.nI1(2,"translate"),t.nrm(3,"span",42),t.k0s(),t.DNE(4,L6,1,5,"ng-template",null,1,t.C5r),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.eq3(8,on,r.database.toLowerCase()))("matTooltip",t.bMT(2,6,"agencyAlt"))("queryParams",r.getQuickSearchString(e.agencies.length>0?e.agencies[0]:"","ALLDB"===r.database?"FO":"GI","true")),t.BMQ("data-ta",r.taPrefix+"fundAgencyLine-"+a)("id",r.taPrefix+"fundAgencyLine-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(10,No,r.record.ut,r.qid,e.agencies))}}function j6(i,n){1&i&&t.nrm(0,"tr",56)}function O6(i,n){1&i&&t.nrm(0,"tr",68)}function B6(i,n){if(1&i&&(t.qex(0),t.j41(1,"h3",58),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"section",23)(5,"div",24)(6,"table",59,0)(8,"caption",27),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.qex(11,60),t.DNE(12,G6,5,6,"th",29)(13,D6,4,14,"td",32),t.bVm(),t.qex(14,61),t.DNE(15,$6,3,2,"th",29)(16,N6,6,14,"td",32),t.bVm(),t.DNE(17,j6,1,0,"tr",35)(18,O6,1,0,"tr",62),t.k0s()()(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"fund-grant-info")("id",e.taPrefix+"fund-grant-info"),t.R7$(),t.JRh(t.bMT(3,11,"grantInfo")),t.R7$(2),t.Y8G("ngClass",e.expandedText&&"expandChildren"),t.R7$(2),t.Y8G("dataSource",e.transactionsNew),t.BMQ("data-ta",e.taPrefix+"fund-table-grant-info")("id",e.taPrefix+"fund-table-grant-info"),t.R7$(3),t.JRh(t.bMT(10,13,"fundingTable")),t.R7$(8),t.Y8G("matHeaderRowDef",e.displayedColumnsMed)("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumnsMed)}}function Y6(i,n){1&i&&t.nrm(0,"span",75)}function X6(i,n){if(1&i&&(t.j41(0,"span",72),t.nrm(1,"span",73),t.DNE(2,Y6,1,0,"span",74),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=e.last,s=t.XpG(4);t.xc7("display","CSCD"===s.record.coll||a.grant_info.superRecordCollection&&s.showRciSuperRecord?"inline":"none"),t.Y8G("ngClass",a.grant_info.superRecordCollection&&"common-super-record-field"),t.R7$(),t.Y8G("innerHTML",null==a||null==a.grant_info?null:a.grant_info.grant_info,t.npT),t.BMQ("data-ta",s.taPrefix+"CSCDGrants-"+r)("id",s.taPrefix+"CSCDGrants-"+r)("lang","zh-cn"),t.R7$(),t.Y8G("ngIf",!o)}}function q6(i,n){if(1&i&&(t.qex(0),t.DNE(1,X6,3,8,"span",71),t.bVm()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.grant_info)}}function H6(i,n){if(1&i&&(t.j41(0,"div",70),t.DNE(1,q6,2,1,"ng-container",40),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngForOf",e.record.fund_ack.grants)}}function V6(i,n){if(1&i&&(t.qex(0),t.DNE(1,H6,2,1,"div",69),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(null==e.record.fund_ack||null==e.record.fund_ack.grants?null:e.record.fund_ack.grants.length)>0)}}function z6(i,n){if(1&i&&(t.j41(0,"div",7)(1,"div",10)(2,"h2",8),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,B8,8,8,"div",11),t.nI1(6,"feature"),t.k0s(),t.DNE(7,Y8,1,0,"hr",12)(8,q8,7,7,"ng-container",13),t.j41(9,"span",14),t.DNE(10,E6,23,12,"ng-container",13)(11,B6,19,15,"ng-container",13)(12,V6,2,1,"ng-container",13),t.k0s()()),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(14,$o,!(null!=e.record.fund_ack&&e.record.fund_ack.fund_text||e.isEnablePivotRP))),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"fundingTitle")("id",e.taPrefix+"fundingTitle"),t.R7$(),t.JRh(t.bMT(4,10,"funding")),t.R7$(2),t.Y8G("ngIf",t.bMT(6,12,"nxShowPivotFundingLink")&&e.isEnablePivotRP&&"WOSCC"===e.database),t.R7$(2),t.Y8G("ngIf",null==e.record.fund_ack?null:e.record.fund_ack.fund_text),t.R7$(),t.Y8G("ngIf",null==e.record.fund_ack?null:e.record.fund_ack.fund_text),t.R7$(2),t.Y8G("ngIf","MEDLINE"!=e.record.coll&&"CSCD"!=e.record.coll&&!e.hideNonGrantLinkTable&&e.shownAgencie
1sIndices.length>0),t.R7$(),t.Y8G("ngIf","MEDLINE"===e.record.coll),t.R7$(),t.Y8G("ngIf","CSCD"===e.record.coll||!0===e.record.item.super_record_CSCD||!0===e.record.item.super_record_RSCI)}}function Q6(i,n){if(1&i&&(t.j41(0,"th",37)(1,"div",38),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"fund-table-fundingAgency")("id",e.taPrefix+"fund-table-fundingAgency"),t.R7$(),t.SpI("",t.bMT(3,3,"fundingAgency")," ")}}function U6(i,n){if(1&i&&(t.j41(0,"a",80),t.nI1(1,"translate"),t.nrm(2,"span",42),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(2).dataIndex,r=t.XpG(3);t.Y8G("routerLink",t.lJ4(12,$8))("matTooltip",t.bMT(1,10,"fundingAgency")+": "+e)("state",t.l_i(13,ei,r.database!==r.record.coll&&"WOSCC"!==r.database,r.record.coll))("ngClass","section-label-data full-record-detail-section-links")("queryParams",r.getQuickSearchString('"'+e+'"',"FO","true")),t.BMQ("data-ta",r.taPrefix+"fundingAgency-"+e)("id",r.taPrefix+"fundingAgency-"+e),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(16,Lo,r.record.ut,r.qid,e)),t.BMQ("id",r.taPrefix+"fundingShowHide-"+a+"-agencyName")("data-ta",r.taPrefix+"fundingShowHide-"+a+"-agencyName")}}function J6(i,n){if(1&i&&(t.j41(0,"span",42),t.EFF(1),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(2).dataIndex,r=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(4,Lo,r.record.ut,r.qid,e)),t.BMQ("id",r.taPrefix+"fundingShowHide-"+a+"-agencyName")("data-ta",r.taPrefix+"fundingShowHide-"+a+"-agencyName"),t.R7$(),t.JRh(e)}}function W6(i,n){1&i&&t.nrm(0,"br")}function K6(i,n){if(1&i&&(t.j41(0,"section"),t.DNE(1,U6,3,20,"a",79),t.nI1(2,"entitlements"),t.DNE(3,J6,2,8,"ng-template",null,2,t.C5r)(5,W6,1,0,"br",13),t.k0s()),2&i){const e=n.last,a=t.sdS(4),r=t.XpG(2).$implicit,o=t.XpG(3);t.R7$(),t.Y8G("ngIf",t.bMT(2,3,"GRANTS")&&"GRANTS:"!==o.record.coll&&(null==r.data||null==r.data.grantData?null:r.data.grantData.pguid))("ngIfElse",a),t.R7$(4),t.Y8G("ngIf",!e)}}function Z6(i,n){if(1&i&&(t.j41(0,"section"),t.DNE(1,K6,6,5,"section",40),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",e.agencies)}}function ty(i,n){if(1&i&&(t.j41(0,"td",39),t.DNE(1,Z6,2,1,"section",13),t.k0s()),2&i){const e=n.dataIndex,a=t.XpG(3);t.BMQ("id",a.taPrefix+"fundingShowHide-"+e)("data-ta",a.taPrefix+"fundingShowHide-"+e),t.R7$(),t.Y8G("ngIf",a.shownAgenciesIndices.includes(e))}}function ey(i,n){if(1&i&&(t.j41(0,"th",37)(1,"div",44),t.EFF(2,"grant"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"fund-table-heading-grant")("id",e.taPrefix+"fund-table-heading-grant")}}function ny(i,n){if(1&i&&(t.qex(0),t.j41(1,"a",82),t.nI1(2,"translate"),t.nrm(3,"span",42),t.k0s(),t.bVm()),2&i){const e=t.XpG().$implicit,a=t.XpG(2),r=a.$implicit,o=a.dataIndex,s=t.XpG(3);t.R7$(),t.Y8G("matTooltip",t.bMT(2,6,"fundingGrantsLinkAlt"))("routerLink",t.eq3(8,hd,"GRANTS:"+(null==r||null==r.data||null==r.data.grantData?null:r.data.grantData.pguid.split(":")[2])))("queryParams",t.lJ4(10,md)),t.BMQ("id",s.taPrefix+"fundingGrantsLink"+o)("data-ta",s.taPrefix+"fundingGrantsLink"+o),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(11,$a,s.record.ut,s.qid,e))}}function iy(i,n){if(1&i&&t.nrm(0,"span",42),2&i){const e=t.XpG().$implicit,a=t.XpG(5);t.Y8G("wosSearchHighlight",t.sMw(1,$a,a.record.ut,a.qid,e))}}function ay(i,n){if(1&i&&(t.qex(0),t.DNE(1,ny,4,15,"ng-container",81),t.nI1(2,"entitlements"),t.DNE(3,iy,1,5,"ng-template",null,3,t.C5r),t.bVm()),2&i){const e=t.sdS(4),a=t.XpG(2).$implicit,r=t.XpG
1(3);t.R7$(),t.Y8G("ngIf",t.bMT(2,2,"GRANTS")&&"GRANTS:"!==r.record.coll&&(null==a.data||null==a.data.grantData?null:a.data.grantData.pguid))("ngIfElse",e)}}function ry(i,n){if(1&i&&(t.qex(0),t.DNE(1,ay,5,4,"ng-container",40),t.bVm()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngForOf",a.grantNumber(e.grant))}}function oy(i,n){if(1&i&&(t.j41(0,"td",45),t.DNE(1,ry,2,1,"ng-container",13),t.k0s()),2&i){const e=n.$implicit,a=n.dataIndex,r=t.XpG(3);t.BMQ("id",r.taPrefix+"fund-table-grant-"+a)("data-ta",r.taPrefix+"fund-table-grant-"+a),t.R7$(),t.Y8G("ngIf",e.grant)}}function sy(i,n){if(1&i&&(t.j41(0,"th",37)(1,"div",44),t.EFF(2,"grantsLink"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"fund-table-heading-grant")("id",e.taPrefix+"fund-table-heading-grant-link")}}function ly(i,n){if(1&i&&(t.qex(0),t.j41(1,"button",83),t.nI1(2,"translate"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.bVm()),2&i){const e=t.XpG(),a=e.$implicit,r=e.dataIndex,o=t.XpG(3);t.R7$(),t.Y8G("matTooltip",t.bMT(2,6,"fundingGrantsLinkAlt"))("routerLink",t.eq3(10,hd,"GRANTS:"+(null==a||null==a.data||null==a.data.grantData?null:a.data.grantData.pguid.split(":")[2])))("queryParams",t.lJ4(12,md)),t.BMQ("id",o.taPrefix+"fundingGrantsLink"+r)("data-ta",o.taPrefix+"fundingGrantsLink"+r),t.R7$(2),t.SpI(" ",t.bMT(4,8,"ViewInGrantsCollection")," ")}}function cy(i,n){if(1&i&&(t.j41(0,"td",45),t.DNE(1,ly,5,13,"ng-container",13),t.k0s()),2&i){const e=n.$implicit,a=n.dataIndex,r=t.XpG(3);t.BMQ("id",r.taPrefix+"fund-table-grant-link"+a)("data-ta",r.taPrefix+"fund-table-grant-link"+a),t.R7$(),t.Y8G("ngIf",null==e||null==e.data||null==e.data.grantData?null:e.data.grantData.pguid)}}function dy(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",85),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.newToggleAllDetails())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()}if(2&i){const e=t.XpG(4);t.Y8G("matTooltip",t.bMT(1,4,e.expandedText?"fundingHideDetailAlt":"fundingMoreDetailAlt")),t.BMQ("id",e.taPrefix+"fundingShowHides")("data-ta",e.taPrefix+"fundingShowHides"),t.R7$(2),t.SpI(" ",t.bMT(3,6,e.grantDetailsIndice.length!==e.newIndicesWithDetails.length?"showAllDetails":"hideAllDetails")," ")}}function uy(i,n){if(1&i&&(t.j41(0,"th",37),t.DNE(1,dy,4,8,"button",84),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngIf",e.newIndicesWithDetails.length>0)}}function _y(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",65),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(),o=r.$implicit,s=r.dataIndex,l=t.XpG(3);return t.Njj(o.data?l.newToggleGrantDetails(s):l.nop())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()}if(2&i){const e=t.XpG().dataIndex,a=t.XpG(3);t.Y8G("matTooltip",t.bMT(1,4,a.expandedText?"fundingHideDetailAlt":"fundingMoreDetailAlt")),t.BMQ("id",a.taPrefix+"fundingShowHides"+e)("data-ta",a.taPrefix+"fundingShowHides"+e),t.R7$(2),t.SpI(" ",t.bMT(3,6,a.grantDetailsIndice.includes(e)?"hideDetails":"showDetail
1s")," ")}}function py(i,n){if(1&i&&(t.j41(0,"td",45),t.DNE(1,_y,4,8,"button",64),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.data)}}function hy(i,n){if(1&i&&(t.j41(0,"p")(1,"span",86),t.EFF(2),t.k0s(),t.nrm(3,"span",42),t.k0s()),2&i){const e=t.XpG(2).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",a.appearedInFundingSource,":"),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Jt,a.record.ut,a.qid,e.data.fundingDataSource))}}function my(i,n){if(1&i&&(t.j41(0,"p")(1,"span",86),t.EFF(2),t.k0s(),t.nrm(3,"span",42),t.k0s()),2&i){const e=t.XpG(2).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",a.appearedInSource,":"),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Jt,a.record.ut,a.qid,e.data.appearedInSource))}}function gy(i,n){if(1&i&&(t.j41(0,"p")(1,"span",86),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.EFF(4),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",t.bMT(3,2,"totalAwardAmount"),":"),t.R7$(2),t.SpI(" ",a.getCurrencyString(e.data.grantData.totalAwardAmount,e.data.grantData.currency)+" "+e.data.grantData.currency," ")}}function fy(i,n){if(1&i&&(t.j41(0,"p")(1,"span",86),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",42),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",t.bMT(3,2,"grantProjectTitle"),":"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(4,Jt,a.record.ut,a.qid,e.data.grantData.grantProjectTitle))}}function by(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,", "),t.k0s())}function vy(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",42),t.DNE(2,by,2,0,"span",13),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=t.XpG(7);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,Jt,r.record.ut,r.qid,e)),t.R7$(),t.Y8G("ngIf",!a)}}function xy(i,n){if(1&i&&(t.j41(0,"p")(1,"span",86),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,vy,3,6,"ng-container",40),t.k0s()),2&i){const e=t.XpG(3).$implicit;t.R7$(2),t.SpI("",t.bMT(3,2,"program"),":"),t.R7$(2),t.Y8G("ngForOf",e.data.grantData.program_names)}}function Cy(i,n){if(1&i&&(t.j41(0,"p")(1,"span",86),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.EFF(4),t.k0s()),2&i){const e=t.XpG(3).$implicit;t.R7$(2),t.SpI("",t.bMT(3,2,"startDate"),":"),t.R7$(2),t.SpI(" ",e.data.grantData.startDate," ")}}function Ry(i,n){if(1&i&&(t.j41(0,"p")(1,"span",86),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.EFF(4),t.k0s()),2&i){const e=t.XpG(3).$implicit;t.R7$(2),t.SpI("",t.bMT(3,2,"endDate"),":"),t.R7$(2),t.SpI(" ",e.data.grantData.endDate," ")}}function yy(i,n){if(1&i&&(t.j41(0,"p")(1,"span",86),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",42),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",t.bMT(3,2,"grantStatus"),":"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(4,Jt,a.record.ut,a.qid,e.data.grantData.grantStatus))}}function Ty(i,n){if(1&i&&(t.j41(0,"p",55)(1,"span",86),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.EFF(4),t.k0s()),2&i){const e=t.XpG(2).$implicit;t.R7$(2),t.SpI("",t.bMT(3,2,"Email"),":"),t.R7$(2),t.SpI(" ",e.principalInvestigatorEmail," ")}}function Iy(i,n){if(1&i&&(t.j41(0,"p",55)(1,"span",86),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.EFF(4),t.k0s()),2&i){const e=t.XpG(2).$implicit;t.R7$(2),t.SpI("",t.bMT(3,2,"uniqueIdentifier"),":"),t.R7$(2),t.SpI(" ",e.principalInvestigatorId," ")}}function ky(i,n){if(1&i&&(t.j41(0,"p",55)(1,"span",86),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",42),t.k0s()),2&i){const e=t.XpG(2).index,a=t.XpG(4).$implicit,r=t.XpG
1(3);t.R7$(2),t.SpI("",t.bMT(3,2,"principalInvestigatorInstitution"),":"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(4,Jt,r.record.ut,r.qid,r.getArrayElement(a.data.grantData.principalInvestigators)[e].principalInvestigatorInstitution))}}function Fy(i,n){if(1&i&&(t.qex(0),t.j41(1,"p")(2,"span",86),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"span",42),t.k0s(),t.DNE(6,Ty,5,4,"p",54)(7,Iy,5,4,"p",54)(8,ky,5,8,"p",54),t.bVm()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(4).$implicit,s=t.XpG(3);t.R7$(3),t.SpI("",t.bMT(4,5,"principalInvestigator"),": "),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(7,Jt,s.record.ut,s.qid,a.principalInvestigator)),t.R7$(),t.Y8G("ngIf",a.principalInvestigatorEmail),t.R7$(),t.Y8G("ngIf",a.principalInvestigatorId),t.R7$(),t.Y8G("ngIf",s.getArrayElement(o.data.grantData.principalInvestigators)&&s.getArrayElement(o.data.grantData.principalInvestigators).length>0&&s.getArrayElement(o.data.grantData.principalInvestigators)[r])}}function wy(i,n){if(1&i&&(t.qex(0),t.DNE(1,Fy,9,11,"ng-container",13),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(7);t.R7$(),t.Y8G("ngIf",0==a.isArray(e))}}function My(i,n){if(1&i&&(t.qex(0),t.DNE(1,wy,2,1,"ng-container",40),t.bVm()),2&i){const e=t.XpG(3).$implicit;t.R7$(),t.Y8G("ngForOf",e.data.grantData.principalInvestigators)}}function Sy(i,n){if(1&i&&(t.qex(0),t.j41(1,"p")(2,"span",86),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"span",42),t.k0s(),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(7);t.R7$(3),t.SpI("",t.bMT(4,2,"coPrincipalInvestigator"),":"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(4,Jt,a.record.ut,a.qid,e))}}function Ay(i,n){if(1&i&&(t.qex(0),t.DNE(1,Sy,6,8,"ng-container",40),t.bVm()),2&i){const e=t.XpG(3).$implicit;t.R7$(),t.Y8G("ngForOf",e.data.grantData.coPrincipalInvestigators)}}function Ey(i,n){if(1&i&&(t.j41(0,"p")(1,"span",86),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",42),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",t.bMT(3,2,"grantSummary"),":"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(4,Jt,a.record.ut,a.qid,e.data.grantData.grantSummary))}}function Py(i,n){if(1&i&&(t.j41(0,"p")(1,"span",86),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",42),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(3);t.R7$(2),t.SpI("",t.bMT(3,2,"keyWords"),":"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(4,Jt,a.record.ut,a.qid,a.getKeywordsTextFromList(e.data.grantData.keywords)))}}function Gy(i,n){if(1&i&&(t.qex(0),t.DNE(1,gy,5,4,"p",13)(2,fy,5,8,"p",13)(3,xy,5,4,"p",13)(4,Cy,5,4,"p",13)(5,Ry,5,4,"p",13)(6,yy,5,8,"p",13)(7,My,2,1,"ng-container",13)(8,Ay,2,1,"ng-container",13)(9,Ey,5,8,"p",13)(10,Py,5,8,"p",13),t.bVm()),2&i){const e=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngIf",e.data.grantData.totalAwardAmount&&e.data.grantData.currency),t.R7$(),t.Y8G("ngIf",e.data.grantData.grantProjectTitle),t.R7$(),t.Y8G("ngIf",e.data.grantData.program_names&&e.data.grantData.program_names.length>0),t.R7$(),t.Y8G("ngIf",e.data.grantData.startDate),t.R7$(),t.Y8G("ngIf",e.data.grantData.endDate),t.R7$(),t.Y8G("ngIf",e.data.grantData.grantStatus),t.R7$(),t.Y8G("ngIf",e.data.grantData.principalInvestigators&&e.data.grantData.principalInvestigators.length>0),t.R7$(),t.Y8G("ngIf",e.data.grantData.coPrincipalInvestigators&&e.data.grantData.coPrincipalInvestigators.length>0),t.R7$(),t.Y8G("ngIf",e.data.grantData.grantSummary),t.R7$(),t.Y8G("ngIf",e.data.grantData.keywords)}}function Dy(i,n){if(1&i&&(t.j41(0,"div",52),t.DNE(1,hy,4,6,"p",13)(2,my,4,6,"p",13)(3,Gy,11,10,"ng-container",13),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf",e.data.fundingDataSource),t.R7$(),t.Y8G("ngIf",e.data.appearedInSource),t.R7$(),t.Y8G("ngIf",e.data.grantData)}}function $y(i,n){if(1&i&&(t.j41(0,"td",45),t.DNE(1,Dy,4,3,"div",51),t.k0s()),2&i){const e=n.$implicit,a=t.XpG(3);t.BMQ("colspan",a.displayedColumns.length),t.R7$(),t.Y8G("ngIf",e.data)}}function Ly(i,n){1&i&&t.nrm(0,"tr",56)}function Ny(i,n){if(1&i&&t.nrm(0,"tr",57),2&i){const e=n.dataIndex,a=t.XpG(3);t.Y8G("ngClass",a.grayIndices.includes(e)?"gray-indices":"")}}function jy(i,n){if(1&i&&t.nrm(0,"tr",57),2&i){const e=n.$implicit,a=n.dataIndex,r=t.XpG(3);t.Y8G("ngClass",t.eq3(1,pd,!(r.grantDetailsIndice.includes(a)&&e.data)))}}function Oy(i,n){if(1&i&&(t.qex(0),t.j41(1,"h2",8),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"hr",76),t.j41(5,"section",23)(6,"div",24),t.nrm(7,"p",25),t.j41(8,"table",26,0)(10,"caption",27),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.qex(13,61),t.DNE(14,Q6,4,5,"th",29)(15,ty,2,3,"td",30),t.bVm(),t.qex(16,60),t.DNE(17,ey,3,2,"th",29)(18,oy,2,3,"td",32),t.bVm(),t.qex(19,77),t.DNE(20,sy,3,2,"th",29)(21,cy,2,3,"td",32),t.bVm(),t.qex(22,78),t.DNE(23,uy,2,1,"th",29)(24,py,2,1,"td",32),t.bVm(),t.qex(25,34),t.DNE(26,$y,2,2,"td",32),t.bVm(),t.DNE(27,Ly,1,0,"tr",35)(28,Ny,1,1,"tr",36)(29,jy,1,3,"tr",36),t.k0s()()(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"fundingGrantsIndexTitle")("id",e.taPrefix+"fundingGrantsIndexTitle"),t.R7$(),t.JRh(t.bMT(3,12,"fundingGrantsIndex")),t.R7$(3),t.Y8G("ngClass",e.expandedText&&"expandChildren"),t.R7$(3),t.Y8G("dataSource",e.isGrantsIndexData),t.BMQ("data-ta",e.taPrefix+"fund-grants-index-table")("id",e.taPrefix+"fund-table"),t.R7$(3),t.JRh(t.bMT(12,14,"fundingTable")),t.R7$(16),t.Y8G("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",t.lJ4(16,_d))}}function By(i,n){if(1&i&&(t.j41(0,"div",7)(1,"span",14),t.DNE(2,Oy,30,17,"ng-container",13),t.k0s()()),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(2,$o,"CSCD"===e.record.coll||e.record.item.super_record_CSCD||e.record.item.super_record_RSCI)),t.R7$(2),t.Y8G("ngIf","MEDLINE"!=e.record.coll&&"CSCD"!=e.record.coll&&!e.hideTable&&e.isGrantsIndexData.length>0)}}function Yy(i,n){if(1&i&&(t.j41(0,"h2",89),t.EFF(1),t.nI1(2,"dbvaluetranslate"),t.k0s()),2&i){const e=t.XpG(2);t.BMQ("data-ta",e.taPrefix+"journalLabel")("id",e.taPrefix+"journalLabel"),t.R7$(),t.JRh(t.i5U(2,3,"grantDetails",e.record.coll))}}function Xy(i,n){1&i&&t.nrm(0,"span",75)}function qy(i,n){if(1&i&&(t.qex(0),t.j41(1,"a",94),t.nI1(2,"translate"),t.nrm(3,"span",42),t.DNE(4,Xy,1,0,"span",74),t.k0s(),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=t.XpG
1().last,o=t.XpG(5);t.R7$(),t.Y8G("routerLink",t.eq3(11,on,"WOS"===o.record.coll?"woscc":o.record.coll.toLowerCase()))("matTooltip",t.bMT(2,9,"grantagencyAlt"))("state",t.l_i(13,ei,o.database!==o.record.coll&&"WOSCC"!==o.database,o.record.coll))("ngClass","section-label-data full-record-detail-section-links")("queryParams",o.getQuickSearchString(e["data-item-id"],"FO","true")),t.BMQ("id",o.taPrefix+"grantAgency")("data-ta",o.taPrefix+"grantAgency"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(16,jo,o.record.ut,o.qid,e["data-item-id"])),t.R7$(),t.Y8G("ngIf",!a||!r)}}function Hy(i,n){1&i&&t.nrm(0,"span",75)}function Vy(i,n){if(1&i&&(t.j41(0,"a",94),t.nI1(1,"translate"),t.nrm(2,"span",42),t.DNE(3,Hy,1,0,"span",74),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.last,o=t.XpG(5);t.Y8G("routerLink",t.eq3(11,on,"WOS"===o.record.coll?"woscc":o.record.coll.toLowerCase()))("matTooltip",t.bMT(1,9,"grantagencyAlt"))("state",t.l_i(13,ei,o.database!==o.record.coll&&"WOSCC"!==o.database,o.record.coll))("ngClass","section-label-data full-record-detail-section-links")("queryParams",o.getQuickSearchString(a.name,"FO","true")),t.BMQ("id",o.taPrefix+"grantAgency")("data-ta",o.taPrefix+"grantAgency"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(16,jo,o.record.ut,o.qid,a.name)),t.R7$(),t.Y8G("ngIf",!r)}}function zy(i,n){if(1&i&&(t.qex(0),t.DNE(1,qy,5,20,"ng-container",40)(2,Vy,4,20,"a",93),t.bVm()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngForOf",e["data-item-ids"]),t.R7$(),t.Y8G("ngIf",!e["data-item-ids"])}}function Qy(i,n){if(1&i&&(t.j41(0,"div",91)(1,"h3",92),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div"),t.DNE(5,zy,3,2,"ng-container",40),t.k0s()()),2&i){const e=t.XpG(4);t.R7$(),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",e.taPrefix+"FundingAgency")("id",e.taPrefix+"FundingAgency"),t.R7$(),t.JRh(t.bMT(3,5,"FundingAgency")),t.R7$(3),t.Y8G("ngForOf",null==e.record.item?null:e.record.item.grant_agencies)}}function Uy(i,n){if(1&i&&(t.j41(0,"div",91)(1,"h3",92),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"a",95),t.nI1(5,"translate"),t.nrm(6,"span",42),t.k0s()()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",a.taPrefix+"FundingAgency")("id",a.taPrefix+"FundingAgency"),t.R7$(),t.JRh(t.bMT(3,11,"FundingAgency")),t.R7$(2),t.Y8G("routerLink",t.eq3(15,on,"WOS"===a.record.coll?"woscc":a.record.coll.toLowerCase()))("matTooltip",t.bMT(5,13,"grantagencyAlt"))("state",t.l_i(17,ei,a.database!==a.record.coll&&"WOSCC"!==a.database,a.record.coll))("queryParams",a.getQuickSearchString(e.grant_agency.grant_agency,"FO","true")),t.BMQ("id",a.taPrefix+"grantAgency")("data-ta",a.taPrefix+"grantAgency"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(20,jo,a.record.ut,a.qid,e.grant_agency.grant_agency))}}function Jy(i,n){1&i&&t.nrm(0,"span",75)}function Wy(i,n){if(1&i&&(t.qex(0),t.j41(1,"a",96),t.nI1(2,"translate"),t.nrm(3,"span",42),t.DNE(4,Jy,1,0,"span",74),t.k0s(),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(5);t.R7$(),t.Y8G("routerLink",t.eq3(11,on,"WOS"===o.record.coll?"woscc":o.record.coll.toLowerCase()))("matTooltip",t.bMT(2,9,"grantnumberAlt"))("state",t.l_i(13,ei,o.database!==o.record.coll&&"WOSCC"!==o.database,o.record.coll))("ngClass","section-label-data full-record-detail-section-links")("queryParams",o.getQuickSearchString(e,"FG","true")),t.BMQ("id",o.taPrefix+"grantId")("data-ta",o.taPrefix+"grantId"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(16,$a,o.record.ut,o.qid,e)),t.R7$(),t.Y8G("ngIf",!r)}}function Ky(i,n){if(1&i&&(t.j41(0,"div",91)(1,"h3",92),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div"),t.DNE(5,Wy,5,20,"ng-container",40),t.k0s()()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",a.taPrefix+"grantId")("id",a.taPrefix+"grantId"),t.R7$(),t.JRh(t.bMT(3,5,"grantId")),t.R7$(3),t.Y8G("ngForOf",e.grant_ids)}}function Zy(i,n){if(1&i&&(t.j41(0,"div",91)(1,"h3",92),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",97),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(4);t.R7$(),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",a.taPrefix+"grantStatus")("id",a.taPrefix+"grantStatus"),t.R7$(),t.JRh(t.bMT(3,8,"GrantStatus")),t.R7$(2),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(10,L8,a.record.ut,a.qid,e.grantStatus)),t.BMQ("id",a.taPrefix+"grantStatus")("data-ta",a.taPrefix+"grantStatus")}}
1function tT(i,n){if(1&i&&(t.j41(0,"div",91)(1,"h3",92),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"a",98),t.nI1(5,"translate"),t.nrm(6,"span",99),t.k0s()()),2&i){const e=t.XpG().$implicit,a=t.XpG(4);t.R7$(),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",a.taPrefix+"grantType")("id",a.taPrefix+"grantType"),t.R7$(),t.JRh(t.bMT(3,14,"GrantType")),t.R7$(2),t.Y8G("routerLink",t.eq3(18,on,"WOS"===a.record.coll?"woscc":a.record.coll.toLowerCase()))("matTooltip",t.bMT(5,16,"granttypeAlt"))("state",t.l_i(20,ei,a.database!==a.record.coll&&"WOSCC"!==a.database,a.record.coll))("queryParams",a.getQuickSearchString(e.grantType,"GTY","true")),t.BMQ("id",a.taPrefix+"grantType")("data-ta",a.taPrefix+"grantType"+a.a),t.R7$(2),t.Y8G("ngClass","section-label-data full-record-detail-section-links")("wosSearchHighlight",t.sMw(23,N8,a.record.ut,a.qid,e.grantType)),t.BMQ("id",a.taPrefix+"grantType")("data-ta",a.taPrefix+"grantType")}}function eT(i,n){if(1&i&&(t.j41(0,"div",91)(1,"h3",92),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",100),t.EFF(5),t.nI1(6,"currency"),t.k0s()()),2&i){const e=t.XpG().$implicit,a=t.XpG(4);t.R7$(),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",a.taPrefix+"grantAwardAmount")("id",a.taPrefix+"grantAwardAmount"),t.R7$(),t.JRh(t.bMT(3,8,"GrantAwardAmount")),t.R7$(2),t.Y8G("ngClass","section-label-data"),t.BMQ("id",a.taPrefix+"grantAmountCurrency")("data-ta",a.taPrefix+"grantAmountCurrency"),t.R7$(),t.SpI(" ",t.i5U(6,10,e.totalAwardAmount,e.currency)+" "+e.currency," ")}}function nT(i,n){if(1&i&&(t.j41(0,"div",91)(1,"h3",92),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",97),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(4);t.R7$(),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",a.taPrefix+"grantStartDate")("id",a.taPrefix+"grantStartDate"),t.R7$(),t.JRh(t.bMT(3,8,"GrantStartDate")),t.R7$(2),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(10,j8,a.record.ut,a.qid,e.startDate)),t.BMQ("id",a.taPrefix+"grantStartDate")("data-ta",a.taPrefix+"grantStartDate")}}function iT(i,n){if(1&i&&(t.j41(0,"div",91)(1,"h3",92),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",100),t.EFF(5),t.k0s()()),2&i){const e=t.XpG().$implicit,a=t.XpG(4);t.R7$(),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",a.taPrefix+"grantendDate")("id",a.taPrefix+"grantendDate"),t.R7$(),t.JRh(t.bMT(3,8,"GrantendDate")),t.R7$(2),t.Y8G("ngClass","section-label-data"),t.BMQ("id",a.taPrefix+"grantendDate")("data-ta",a.taPrefix+"grantendDate"),t.R7$(),t.SpI(" ",e.endDate," ")}}function aT(i,n){if(1&i&&(t.qex(0),t.DNE(1,Zy,5,14,"div",90)(2,tT,7,27,"div",90)(3,eT,7,13,"div",90)(4,nT,5,14,"div",90)(5,iT,6,10,"div",90),t.bVm()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.grantStatus),t.R7$(),t.Y8G("ngIf",e.grantType),t.R7$(),t.Y8G("ngIf",e.currency&&e.totalAwardAmount),t.R7$(),t.Y8G("ngIf",e.startDate),t.R7$(),t.Y8G("ngIf",e.endDate)}}function rT(i,n){if(1&i&&(t.qex(0),t.DNE(1,Qy,6,7,"div",90)(2,Uy,7,24,"div",90)(3,Ky,6,7,"div",90)(4,aT,6,5,"ng-container",40),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngIf",null==a.record.item?null:a.record.item.grant_agencies),t.R7$(),t.Y8G("ngIf",!a.record.grant_agency&&!(null!=a.record.item&&a.record.item.grant_agencies)&&(null==e.grant_agency?null:e.grant_agency.grant_agency)),t.R7$(),t.Y8G("ngIf",(null==e.grant_ids?null:e.grant_ids.length)>0),t.R7$(),t.Y8G("ngForOf",e.grant_data)}}function oT(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,rT,5,4,"ng-container",40),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",null==e.record.fund_ack?null:e.record.fund_ack.grants)}}function sT(i,n){if(1&i&&(t.j41(0,"div",87),t.DNE(1,Yy,3,6,"h2",88),t.j41(2,"span",14),t.DNE(3,oT,2,1,"div",13),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",null==e.record?null:e.record.fund_ack),t.R7$(2),t.Y8G("ngIf",e.re
1cord.fund_ack)}}let lT=(()=>{class i{constructor(e,a,r,o,s){this.change=e,this.translate=a,this.store=r,this.config=o,this.router=s,this.showHideControl=!1,this.hideTable=!1,this.hideNonGrantLinkTable=!1,this.expanded=!1,this.expandedText=!1,this.displayedColumnsDefault=["agency","grant","button","grantsLink"],this.NonGrantLinkTableColumns=["grantagency","grants","buttons"],this.NonGrantLinkColumns=[],this.displayedColumns=[],this.displayedColumnsMed=["grant","agency"],this.transactionsNew=[],this.isGrantsIndexData=[],this.isNotIndexedData=[],this.isContainsGrants=!1,this.appearedInSource="",this.appearedInFundingSource="",this.taPrefix="FundingTa-",this.grantDetailsIndice=[],this.expandedIndices=[],this.indicesWithDetails=[],this.newIndicesWithDetails=[],this.showGrantsLinks=[],this.shownAgenciesIndices=[],this.grayIndices=[],this.isEnablePivotRP=!1,this.displayGrantDetailSectionCollections=this.config.getSettings().app.fullRecord.displayGrantDetailsSectionCollections,this.appearedInSource=this.translate.instant("appearedInSource"),this.appearedInFundingSource=this.translate.instant("appearedInFundingSource"),r.select(B.zg).subscribe(l=>this.entitlements=l).unsubscribe()}ngAfterViewInit(){this.translate.onLangChange.subscribe(e=>{this.appearedInSource=this.translate.instant("appearedInSource"),this.appearedInFundingSource=this.translate.instant("appearedInFundingSource"),this.expandedText=!1,this.hideTable=!1,this.hideNonGrantLinkTable=!1,this.loadFundingTable()&&this.fundTable.renderRows()})}nop(){}ngOnChanges(e){e.record&&this.record&&(this.expandedText=!1,this.hideTable=!1,this.hideNonGrantLinkTable=!1,this.loadFundingTable())}ngOnInit(){this.store.select(B.vC).subscribe(e=>{this.isEnablePivotRP=JSON.parse(e.customerInfo?.enablePivotRP)}).unsubscribe()}toggleGrantDetails(e){this.expandedIndices.includes(e)?this.expandedIndices=this.expandedIndices.filter(a=>a!==e):this.expandedIndices.push(e)}newToggleGrantDetails(e){this.grantDetailsIndice.includes(e)?this.grantDetailsIndice=this.grantDetailsIndice.filter(a=>a!==e):this.grantDetailsIndice.push(e)}showGrantDetails(e){this.expandedIndices.includes(e)||this.expandedIndices.push(e)}toggleAllDetails(){if(this.expandedIndices.length===this.indicesWithDetails.length)this.expandedIndices=[];else{const e=[];for(const a of this.indicesWithDetails)e.push(a);this.expandedIndices=e}}newToggleAllDetails(){if(this.grantDetailsIndice.length===this.newIndicesWithDetails.length)this.grantDetailsIndice=[];else{const e=[];for(const a of this.newIndicesWithDetails)e.push(a);this.grantDetailsIndice=e}}toggleFundAck(){this.expanded=!this.expanded}toggleAgencyText(){this.expandedText=!this.expandedText}arraysEqual(e,a){if(!(e&&a&&this.isArray(e)&&this.isArray(a)&&e.length===a.length))return!1;for(let r=0;r<e.length;r++)if(e[r]!==a[r])return!1;return!0}isArray(e){return Array.isArray(e)}getArrayElement(e){for(const a of e)if(this.isArray(a))return a;return null}loadFundingTable(){const e=this;if(e.showHideControl=!1,e.shownAgenciesIndices=[],e.grantDetailsIndice=[],e.expandedIndices=[],e.transactionsNew=[],e.isGrantsIndexData=[],e.isNotIndexedData=[],e.grayIndices=[],e.indicesWithDetails=[],e.newIndicesWithDetails=[],this.showGrantsLinks=[],e.isContainsGrants=!1,!this.record.fund_ack||!this.record.fund_ack.grants)return!1;this.record.fund_ack.grants.forEach(function(l){(l?.grant_ids||l?.grant_agency)&&(e.isGrantsIndexData=e.isGrantsIndexData.concat(e.parseTransactions(l)).filter(c=>c.data?.grantData?.pguid),e.isNotIndexedData=e.isNotIndexedData.concat(e.parseTransactions(l)).filter(c=>(c?.grant&&!c.data?.grantData?.pguid&&(e.isContainsGrants=!0),!c.data?.grantData?.pguid)))}),this.record.fund_ack.grants.forEach(this.record.fund_ack.grants[0].grant_info&&this.showRciSuperRecord?function(l){e.transactionsNew=e.transactionsNew.concat(e.parseTransactions(l))}:function(l){l.grant_info||(e.transactionsNew=e.transactionsNew.concat(e.parseTransactions(l)))}),e.shownAgenciesIndices=e.getShownAgenciesIndices(e.transactionsNew),e.grayIndices=e.getGrayIndices(e.shownAgenciesIndices,e.transactionsNew),e.newIndicesWithDetails=e.getTransactionIndicesHavingData(e.isGrantsIndexData),e.indicesWithDetails=e.getTransactionIndicesHavingData(e.isNotIndexedData),this.showGrantsLinks=this.getGrantsDataHavingpguid(this.transactionsNew);const a=[],r=[];return e.newIndicesWithDetails.length<1&&a.push("button"),e.transactionsNew.filter(l=>
1l.grant).length<1&&a.push("grant"),0===e.shownAgenciesIndices.length&&a.push("agency"),(0===this.showGrantsLinks.length||!this.entitlements.GRANTS)&&a.push("grantsLink"),e.isNotIndexedData.filter(l=>l.grant).length<1&&r.push("grants"),e.indicesWithDetails.length<1&&r.push("buttons"),0===e.shownAgenciesIndices.length&&r.push("grantagency"),e.NonGrantLinkColumns=e.NonGrantLinkTableColumns.filter(l=>!r.includes(l)),e.displayedColumns=e.displayedColumnsDefault.filter(l=>!a.includes(l)),e.expandDetailsContainingHighlightedTerms(),0===e.displayedColumns.length?(e.hideTable=!0,!1):0!==e.NonGrantLinkColumns.length||(e.hideNonGrantLinkTable=!0,!1)}getTransactionIndicesHavingData(e){const a=[];for(const[r,o]of e.entries())o.data&&a.push(r);return a}getGrayIndices(e,a){const r=[];let o=0;for(let s=0;s<a.length;s++)e.includes(s)&&0!==s&&(o+=1),o%2!=0&&r.push(s);return r}getShownAgenciesIndices(e){const a=[];for(const[r,o]of e.entries())if(0!==r)this.arraysEqual(o.agencies,e[r-1].agencies)||a.push(r);else{if(0===e[r].agencies.length)return a;a.push(0)}return a}getGrantsDataHavingpguid(e){const a=[];for(const r of e)r.data?.grantData?.pguid&&a.push(r.data.grantData.pguid);return a}parseTransactions(e){const a=[],r=[];if(e.grant_agency&&e.grant_agency["data-item-id"]&&e.grant_agency["data-item-id"].length>0){this.showHideControl=!0;for(const o of e.grant_agency["data-item-id"])r.push(o["data-item-id"])}else e.grant_agency&&e.grant_agency.grant_agency&&r.push(e.grant_agency.grant_agency);if(!e.grant_data&&!e.grant_ids){const o={appearedInSource:e.grant_agency&&e.grant_agency.grant_agency?e.grant_agency.grant_agency:void 0,fundingDataSource:e.grant_source?e.grant_source:void 0};return o.appearedInSource===r[0]&&(o.appearedInSource=void 0),a.push({agencies:r,data:o.appearedInSource||o.fundingDataSource?o:void 0}),a}if(e.grant_data&&e.grant_data.length>0)for(const o of e.grant_data){const s={};s.grantData=o,s.appearedInSource=e.grant_agency.grant_agency,s.fundingDataSource=e.grant_source,a.push({agencies:r,grant:o.grant_id,data:s})}if(e.grant_ids&&e.grant_ids?.length>0)for(const o of e.grant_ids)if(a.filter(s=>s.grant!==o).length===a.length){const s={appearedInSource:e.grant_agency&&e.grant_agency.grant_agency?e.grant_agency.grant_agency:void 0,fundingDataSource:e.grant_source?e.grant_source:void 0};s.appearedInSource===r[0]&&(s.appearedInSource=void 0),a.push({agencies:r,grant:o,data:s.appearedInSource||s.fundingDataSource?s:void 0})}return a}getCurrencyString(e,a){const r=parseInt(e,10);return new Intl.NumberFormat("en-US",{style:"currency",currency:a}).format(r)}getKeywordsTextFromList(e){let a="";if(e)for(const r of e)r!==e[e.length-1]?a=a+r+", ":a+=r;return a}getQuickSearchString(e,a,r){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:a,rowText:e}]),disableEdit:r}}getConcatenatedTransactionText(e){let a="";for(const r of e.agencies)a=a+r+" ";if(e.data){const r=["fundingDataSource","appearedInSource"];for(const o of r)e.data[o]&&(a=a+e.data[o]+" ");if(e.data.grantData){a=a+this.getKeywordsTextFromList(e.data.grantData.keywords||[])+" ";const o=["grantStatus","grantType","grantSummary","grantProjectTitle"];for(const s of o)e.data.grantData[s]&&(a=a+e.data.grantData[s]+" ");if(e.data.grantData.program_names&&e.data.grantData.program_names.length>0)for(const s of e.data.grantData.program_names)a=a+s+" ";if(e.data.grantData.principalInvestigators&&e.data.grantData.principalInvestigators.length>0)for(const s of e.data.grantData.principalInvestigators)if(Array.isArray(s))for(const l of s)a=a+l.principalInvestigatorInstitution+" ";else a=a+s.principalInvestigator+" ",a=a+s.principalInvestigatorEmail+" ";if(e.data.grantData.coPrincipalInvestigators&&e.data.grantData.coPrincipalInvestigators.length>0)for(const s of e.data.grantData.coPrincipalInvestigators)a=a+s+" "}}return a}expandDetailsContainingHighlightedTerms(){if(!this.transactionsNew||0===this.transactionsNew.length)return;const e=[];for(const[a,r]of this.transactionsNew.entries())r.data&&e.push({text:this.getConcatenatedTransactionText(r),index:a});this.store.select(B.wr,this.qid).pipe((0,ge.s)(1)).subscribe(a=>{if(a)for(const r of e)for(const o of Object.keys(a))""!==r.text&&a[o].test(r.text)&&this.showGrantDetails(r.index)})}getDisplayFlag(){return!!(this.record.fund_ack.grants&&this.record.fund_ack.grants[0].grant_info&&this.showRciSuperRecord)||this.record.fund_ack.grants&&(!this.hideTable||!this.hideNonGrantLinkTable)}grantNumber(e){return void 0!==e?e.split(","):[]}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(V.c$),t.rXU(Gt.il),t.rXU(Dt.w),t.rXU(ot.Ix))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-funding"]],viewQuery:function(a,r){if(1&a&&t.GBs(D8,5),2&a){let o;t.mGM(o=t.lsd())&&(r.fundTable=o.first)}},inputs:{record:"record",qid:"qid",database:"database",buildSiloOneClickLink:"buildSiloOneClickLink",showRciSuperRecord:"showRciSuperRecord"},features:[t.OA$],decls:9,vars:12,consts:[["fundtable",""],["agencyLine",""],["justAgencyName",""],["justGrantNumber",""],["class","funding-info-section",3,"ngClass",4,"ngIf"],[1,"margin-bottom-40"],["class","funding-info-section cdx-two-column-grid-container",4,"ngIf"],[1,"funding-info-section",3,"ngClass"],[1,"cdx-grid-label"],[1,"cdx-grid-data",3,"wosSearchHighlight"],[1,"cdx-two-column-grid-Funding-container","cdx-margin-top-24"],["class","pivotFundingSection",4,"ngIf"],["class","cdx-horizontal-line",4,"ngIf"],[4,"ngIf"],[1,"cdx-grid-data"],[1,"pivotFundingSection"],["mat-button","","color","primary","href","https://pivot.proquest.com/grants/main","target","_blank","rel","noopener noreferrer",1,"no-underline-link",3,"matTooltip"],["inline","true",1,"font-size-16"],[1,"cdx-horizontal-line"],["mat-button","","color","primary","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-funding-text","cdxAnalyticsAction","click",1,"margin-top-5","view-related-record",3,"click"],["inline","true",1,"font-size-20"],["class","value",3,"wosSearchHighlight",4,"ngIf"],[1,"value",3,"wosSearchHighlight"],[1,"nextGen-Table","funding-table",3,"ngClass"],[1,"cdx-table-wrapper","cdx-table-wrapper-fixed"],["id","fundingDetailsDescription",1,"hiddenFundText"],["mat-table","","multiTemplateDataRows","","aria-describedby","fundingDetailsDescription",1,"newFunding",3,"dataSource"],["hidden",""],["matColumnDef","grantagency"],["scope","col","mat-header-cell","",4,"matHeaderCellDef"],["class","line-height: 20px tablerows","mat-cell","",4,"matCellDef"],["matColumnDef","grants"],["mat-cell","",4,"matCellDef"],["matColumnDef","buttons"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["scope","col","mat-header-cell",""],[1,"cdx-table-header-cell","header-color"],["mat-cell","",1,"line-height:","20px","tablerows"],[4,"ngFor","ngForOf"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","fundingAgency","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"routerLink","matTooltip","ngClass","queryParams"],[3,"wosSearchHighlight"],["class","cdx-table-header-cell header-color","translate","",4,"ngIf"],["translate","",1,"cdx-table-header-cell","header-color"],["mat-cell",""],["cdxAnalyticsEvent","","cdxAnalyticsCategory","fundingGrants","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"routerLink","matTooltip","ngClass","queryParams"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-funding-detail","cdxAnalyticsAction","click","mat-button","","class","font-size-13 fd-header-button",3,"matTooltip","click",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-funding-detail","cdxAnalyticsAction","click","mat-button","",1,"font-size-13","fd-header-button",3,"click","matTooltip"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-funding-detail","cdxAnalyticsAction","click","mat-button","","class","show-detail
1s-txt font-size-13 fd-button",3,"matTooltip","click",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-funding-detail","cdxAnalyticsAction","click","mat-button","",1,"show-details-txt","font-size-13","fd-button",3,"click","matTooltip"],["class","new-funding-detail",4,"ngIf"],[1,"new-funding-detail"],[1,"label"],["class","margin-left-10--reversible",4,"ngIf"],[1,"margin-left-10--reversible"],["mat-header-row",""],["mat-row","",3,"ngClass"],["dir","auto",1,"label","colonMark"],["mat-table","","aria-describedby","fundingDetailsDescription",1,"newFunding",3,"dataSource"],["matColumnDef","grant"],["matColumnDef","agency"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"cdx-table-header-cell"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-funding-detail","cdxAnalyticsAction","click","mat-stroked-button","","class"," mat-stroked-button show-details-txt font-size-13 fd-button",3,"matTooltip","click",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-funding-detail","cdxAnalyticsAction","click","mat-stroked-button","",1,"mat-stroked-button","show-details-txt","font-size-13","fd-button",3,"click","matTooltip"],[3,"routerLink","matTooltip","queryParams"],["translate","",1,"cdx-table-header-cell"],["mat-row",""],["class","content-row",4,"ngIf"],[1,"content-row"],[3,"ngClass","display",4,"ngIf"],[3,"ngClass"],[3,"innerHTML"],["dir","auto","class","semiColonMark",4,"ngIf"],["dir","auto",1,"semiColonMark"],[1,"cdx-horizontal-line","cdx-margin-bottom-24"],["matColumnDef","grantsLink"],["matColumnDef","button"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","fundingAgency","cdxAnalyticsAction","click","class","value-link no-underline-link",3,"routerLink","matTooltip","state","ngClass","queryParams",4,"ngIf","ngIfElse"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","fundingAgency","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"routerLink","matTooltip","state","ngClass","queryParams"],[4,"ngIf","ngIfElse"],[3,"matTooltip","routerLink","queryParams"],["mat-stroked-button","",1,"mat-stroked-button","font-size-13","fd-button","viewgrantscolor",3,"matTooltip","routerLink","queryParams"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-funding-detail","cdxAnalyticsAction","click","mat-stroked-button","","class"," mat-stroked-button  font-size-13 fd-header-button",3,"matTooltip","click",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-funding-detail","cdxAnalyticsAction","click","mat-stroked-button","",1,"mat-stroked-button","font-size-13","fd-header-button",3,"click","matTooltip"],[1,"label","font-weigth-700"],[1,"funding-info-section","cdx-two-column-grid-container"],["dir","auto","class","cdx-grid-label header-margin-direction",4,"ngIf"],["dir","auto",1,"cdx-grid-label","header-margin-direction"],["class","cdx-two-column-grid-container",4,"ngIf"],[1,"cdx-two-column-grid-container"],["dir","auto",1,"cdx-default-styles","colonMark",3,"ngClass"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","grant-agency-search","cdxAnalyticsAction","click","class","value-link no-underline-link",3,"routerLink","matTooltip","state","ngClass","queryParams",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","grant-agency-search","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"routerLink","matTooltip","state","ngClass","queryParams"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","grant-agency-search","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"routerLink","matTooltip","state","queryParams"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","grant-id-search","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"routerLink","matTooltip","state","ngClass","queryParams"],[1,"value",3,"ngClass","wosSearchHighlight"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","grant-type-search","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"routerLink","matTooltip","state","queryParams"],[3,"ngClass","wosSearchHighlight"],[1,"value",3,"ngClass"]],template:function(a,r){1&a&&(t.DNE(0,O8,5,13,"div",4),t.nI1(1,"feature"),t.DNE(2,z6,13,16,"div",4),t.nI1(3,"feature"),t.nrm(4,"div",5),t.DNE(5,By,3,4,"div",4),t.nI1(6,"feature"),t.DNE(7,sT,4,2,"div",6),t.nI1(8,"feature")),2&a&&(t.Y8G("ngIf",r.record.fund_ack&&(null==r.record.fund_ack?null:r.record.fund_ack.fund_text)&&!r.record.fund_ack.grants&&!(null!=r.displayGrantDetailSectionCollections&&r.displayGrantDetailSectionCollections.includes(r.record.coll))&&!t.bMT(1,4,"nxPresentationControl_FullRecord_Hide_FundingAgencyTable")),t.R7$(2),t.Y8G("ngIf",r.record.fund_ack&&r.getDisplayFlag()&&!(null!=r.displayGrantDetailSectionCollections&&r.displayGrantDetailSectionCollections.includes(r.record.coll))&&!t.bMT(3,6,"nxPresentationControl_FullRecord_Hide_FundingAgencyTable")),t.R7$(3),t.Y8G("ngIf",r.record.fund_ack&&r.getDisplayFlag()&&!(null!=r.displayGrantDetailSectionCollections&&r.displayGrantDetailSectionCollections.includes(r.record.coll))&&!t.bMT(6,8,"nxPresentationControl_FullRecord_Hide_FundingAgencyTable")),t.R7$(2),t.Y8G("ngIf",r.record.fund_ack&&r.getDisplayFlag()&&(null==r.displayGrantDetailSectionCollections?null:r.displayGrantDetailSectionCollections.includes(r.record.coll))&&!t.bMT(8,10,"nxPresentationControl_FullRecord_Hide_FundingAgencyTable")))},dependencies:[A.YU,A.Sq,A.bT,ot.Wk,V.Mm,ie.w,jt.An,$t.ig,ht.It,ht.$z,xt.oV,X.Zl,X.tL,X.ji,X.cC,X.YV,X.iL,X.KS,X.$R,X.YZ,X.NB,Ot.P,A.oe,V.D9,Se.h,Pn.N,Ei.Q],encapsulation:2})}}return i})();var cT=S(32048);const dT=i=>({"open-view-all":i});
1function uT(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",15),t.nI1(1,"async"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.switchView())}),t.j41(3,"span"),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}if(2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(9,dT,t.bMT(1,3,e.isMobile$))),t.BMQ("aria-label",t.bMT(2,5,"openViewAll")),t.R7$(4),t.JRh(t.bMT(5,7,"openViewAll"))}}function _T(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",16),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.switchView())}),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}2&i&&(t.BMQ("aria-label",t.bMT(1,2,"closeViewAll")),t.R7$(3),t.JRh(t.bMT(4,4,"closeViewAll")))}function pT(i,n){if(1&i&&(t.qex(0),t.nrm(1,"app-review-details",17),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("isPublicReviewExist",e.isPublicReviewExist)("journals",e.journals)("roundNumbers",e.roundNumbers)("journalNames",e.journalNames)("peerReviewContent",e.peerReviewContent)("communityReview",e.communityReview)("isIndexed",!0)}}let hT=(()=>{class i extends Be.${constructor(e,a,r,o,s){super(a,r),this.store=e,this.change=a,this.translate=r,this.config=o,this.http=s,this.close=new t.bkB,this.isMobile$=K.Y.isMobile$,this.roundNumbers=[],this.journals=[],this.isViewHidden=!1,this.taPrefix="FRPReview-",this.communityReview=[],this.isPublicReviewExist=!1,this.journalNames=new Map,this.authorIdUrl=o.getSettings().environment.authorIdUrl,this.publonsResearcherUrl=o.getSettings().environment.publonsResearcherUrl}ngOnChanges(){this.journalNames.clear();const e=this.record.ut;this.roundNumbers=[],this.journals=[],this.communityReview=[],this.isPublicReviewExist=!1,this.peerReviewContentSubscription?.unsubscribe(),this.peerReviewContent=void 0,this.peerReviewContent$=this.store.select(B.YA,{peerReviewContentId:e}),this.peerReviewContentSubscription=this.peerReviewContent$.subscribe(a=>{this.peerReviewContent=a,this.filterData(),this.doChange()})}filterData(){const e=this.peerReviewContent.reviews,a=this.peerReviewContent.authorResponses,r=this.peerReviewContent.decisionLetters;void 0!==e&&(this.communityReview=e.filter(o=>!0!==o.isPrepub),e.filter(o=>!1!==o.isPrepub).filter(o=>{this.isPublicReviewExist=!0,this.roundNumbers.push(o.reviewRoundNumber),this.extractJournals(o.journal)})),void 0!==a&&this.doFilter(a),void 0!==r&&this.doFilter(r),this.getUniqueValue(),this.roundNumbers.sort((o,s)=>s-o),console.log("roundNumbers",this.roundNumbers),console.log("journals",this.journals)}getUniqueValue(){this.roundNumbers=K.Y.getUniqueValues(this.roundNumbers),this.journals=K.Y.getUniqueValues(this.journals)}extractJournals(e){null!=e&&(this.journals.push(e.pk),this.journalNames.set(e.pk,e.name))}switchView(){return this.isViewHidden=!this.isViewHidden,this.isViewHidden?this.accordion.openAll():this.accordion.closeAll()}doFilter(e){e.filter(a=>{this.isPublicReviewExist=!0,this.roundNumbers.push(a.reviewRoundNumber),this.extractJournals(a.journal)})}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Gt.il),t.rXU(t.gRc),t.rXU(V.c$),t.rXU(Dt.w),t.rXU(pa.Qq))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-peer-reviews"]],viewQuery:function(a,r){if(1&a&&t.GBs(Zn.BS,5),2&a){let o;t.mGM(o=t.lsd())&&(r.accordion=o.first)}},inputs:{record:"record"},outputs:{close:"close"},features:[t.Vt3,t.OA$],decls:26,vars:20,consts:[[1,"fr-peer-reviews-page","cdx-redesign-peer"],[1,"cdx-right-panel-main","cdx-grid-space"],[1,"display-actions-alignment",2,"width","95%"],["color","primary","mat-icon-button","",3,"click"],["inline","true"],[1,"cdx-black"],["mat-icon-button","",3,"click"],[1,"cdx-horizontal-line","cdx-margin-bottom-24"],[1,"fr-peer-reviews-container"],[1,"title","text--large","full-record-peer"],["mat-stroked-button","","color","primary","attr.data-ta","rotate-button-id",3,"ngClass","click",4,"ngIf"],["mat-stroked-button","","color","primary","class","","attr.data-ta","rotate-button-id",3,"click",4,"ngIf"],["multi","",1,"fr-peer-reviews-accordion"],[4,"ngIf"],[1,"margin-top-30",3,"innerHTML"],["mat-stroked-button","","color","primary","attr.data-ta","rotate-button-id",3,"click","ngClass"],["mat-stroked-button","","color","primary","attr.data-ta","rotate-button-id",1,"",3,"click"],[3,"isPublicReviewExist","journals","roundNumbers","journalNames","peerReviewContent","communityReview","isIndexed"]],template:function(a,r){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),t.nI1(4,"translate"),t.bIt("click",function(){return r.close.emit()}),t.j41(5,"mat-icon",4),t.EFF(6,"arrow_back"),t.k0s()(),t.j41(7,"span",5),t.EFF(8),t.nI1(9,"translate"),t.k0s()(),t.j41(10,"button",6),t.nI1(11,"translate"),t.bIt("click",function(){return r.close.emit()}),t.j41(12,"mat-icon",4),t.EFF(13,"clear"),t.k0s()()(),t.nrm(14,"hr",7),t.j41(15,"div")(16,"div",8)(17,"h2",9),t.EFF(18),t.nI1(19,"translate"),t.k0s(),t.DNE(20,uT,6,11,"button",10)(21,_T,5,6,"button",11),t.k0s(),t.j41(22,"mat-accordion",12),t.DNE(23,pT,2,7,"ng-container",13),t.k0s()(),t.nrm(24,"div",14),t.nI1(25,"translate"),t.k0s()),2&a&&(t.R
17$(3),t.BMQ("aria-label",t.bMT(4,10,"backToTheRecordPage")),t.R7$(5),t.JRh(t.bMT(9,12,"openPeerReview")),t.R7$(2),t.BMQ("aria-label",t.bMT(11,14,"closePeerReviewInfo")),t.R7$(7),t.BMQ("data-ta",r.taPrefix+"ppReviewHeader")("id",r.taPrefix+"ppReviewHeader"),t.R7$(),t.JRh(r.isPublicReviewExist?t.bMT(19,16,"publicPeerReviews"):""),t.R7$(2),t.Y8G("ngIf",!r.isViewHidden),t.R7$(),t.Y8G("ngIf",r.isViewHidden),t.R7$(2),t.Y8G("ngIf",r.isPublicReviewExist||r.communityReview),t.R7$(),t.Y8G("innerHTML",t.bMT(25,18,"licenseStatement"),t.npT))},dependencies:[A.YU,A.bT,jt.An,ht.$z,ht.iY,Zn.BS,cT.A,A.Jj,V.D9],styles:[".mat-icon[_ngcontent-%COMP%]{height:auto!important;width:auto!important}.fr-peer-reviews-closer[_ngcontent-%COMP%], .fr-peer-reviews-page[_ngcontent-%COMP%]{margin:2rem}.fr-peer-reviews-container[_ngcontent-%COMP%]{display:flex;align-content:center;justify-content:space-between}.fr-journal-header[_ngcontent-%COMP%]{font-size:1rem;color:#000;font-weight:600}.fr-journal-info[_ngcontent-%COMP%]{font-size:1rem;color:#000;font-weight:500}.open-view-all[_ngcontent-%COMP%]{text-wrap:wrap}.fr-peer-reviews-accordion[_ngcontent-%COMP%]   .mat-expansion-panel.mat-expansion-panel[_ngcontent-%COMP%]{width:100%;box-shadow:0 0!important;margin:0;border-radius:0}.fr-peer-reviews-accordion[_ngcontent-%COMP%]   .mat-expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0 1.25rem 0 0!important}.fr-peer-reviews-accordion[_ngcontent-%COMP%]   .mat-expansion-panel[_ngcontent-%COMP%]:not(:last-child){border-bottom:0 solid transparent!important}.fr-peer-review-pub-detail[_ngcontent-%COMP%]{font-size:14px;letter-spacing:0;line-height:18px}.full-record-peer[_ngcontent-%COMP%]{display:inline-block!important;width:80%}.full-record-peer-title[_ngcontent-%COMP%]{display:inline-block!important;text-align:right;width:100%}.display-inline-block[_ngcontent-%COMP%]{display:inline-block!important}.display-inline-flex[_ngcontent-%COMP%]{display:inline-flex!important}.attachment[_ngcontent-%COMP%]{width:24px!important;margin-right:5px!important}button.mat-stroked-button[_ngcontent-%COMP%]{white-space:normal;text-align:center}.example-headers-align[_ngcontent-%COMP%]   .mat-expansion-panel-header-title[_ngcontent-%COMP%], .example-headers-align[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.example-headers-align[_ngcontent-%COMP%]   .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}.doi-component[_ngcontent-%COMP%]{border-radius:0;box-sizing:border-box;position:relative;border:none;padding:0;cursor:text;margin:0;display:block;font-size:.875rem;outline:0}.doi-component[_ngcontent-%COMP%]   .doi-title[_ngcontent-%COMP%]{margin-top:-10px;margin-bottom:.25rem;width:0;margin-left:0;text-align:left;font-size:.75rem;font-weight:600;text-decoration:none}.textfield[_ngcontent-%COMP%]{position:relative;cursor:text;border-radius:3px;padding:1.25rem .75rem .375rem;background-color:#fff;border:1px solid #ccc}.copy-button[_ngcontent-%COMP%]{min-width:5.6875rem;margin-left:6px}@media (max-width: 1250px){.copy-clipboard[_ngcontent-%COMP%]{width:70%!important}}@media (max-width: 900px){.copy-clipboard[_ngcontent-%COMP%]{width:90%!important}.text[_ngcontent-%COMP%]{font-size:14px!important}}.indicator-icon[_ngcontent-%COMP%]{border-radius:.1875rem;padding:.1875rem;height:1.25rem;width:1.25rem;display:inline-block;align-self:center}.indicator-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{position:relative;top:-.25rem}.help-circle[_ngcontent-%COMP%]{color:#e7c303!important}.cdx-redesign-peer[_ngcontent-%COMP%]   .cdx-grid-space[_ngcontent-%COMP%]{display:flex!important}.cdx-redesign-peer[_ngcontent-%COMP%]     .mat-expansion-panel-header-title{color:#000!important}.cdx-redesign-peer[_ngcontent-%COMP%]     .mat-expansion-panel-header{font-size:18px!important;font-weight:400!important}.cdx-redesign-peer[_ngcontent-%COMP%]   .mat-expansion-panel.mat-expansion-panel[_ngcontent-%COMP%]{border:1px solid #E0E0E0}.cdx-redesign-peer[_ngcontent-%COMP%]   .mat-expansion-panel[_ngcontent-%COMP%]   .mat-expansion-panel-header[_ngcontent-%COMP%]{padding-left:1.25rem!important}.cdx-redesign-peer[_ngcontent-%COMP%]   .copy-clipboard[_ngcontent-%COMP%]{height:40px!important}"]})}}return i})();const gd=(i,n,e)=>[i,n,"full_address",e],mT=i=>({"cdx-label":i}),gT=()=>({"section-label-data":!0}),fT=()=>({"section-label-data colonMark":!0}),bT=(i,n,e)=>[i,n,"author",e],vT=i=>["/",i,"general-summary"],fd=(i,n,e)=>[i,n,"org_enhanced",e];
1function xT(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"button",3),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.toggleExpand())}),t.j41(3,"mat-icon",4),t.EFF(4),t.k0s()(),t.bVm()}if(2&i){const e=t.XpG();t.R7$(),t.BMQ("id",e.taPrefix+e.type+"ShowHideBtn-"+e.parentIdx)("data-ta",e.taPrefix+e.type+"ShowHideBtn-"+e.parentIdx)("aria-label",t.bMT(2,4,"clickArrow")),t.R7$(3),t.JRh(e.expanded?"arrow_drop_up":"arrow_drop_down")}}function CT(i,n){if(1&i){const e=t.RV6();t.j41(0,"span",5),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.expanded=!0)}),t.k0s()}if(2&i){const e=t.XpG();t.Y8G("ngClass",e.isEnhanced(e.address)?"margin-left-35--reversible":"")("wosSearchHighlight",t.sMw(5,gd,e.record.ut,e.qid,null==e.address.address_spec?null:e.address.address_spec.full_address.full_address))("ngClass","section-label-data"),t.BMQ("data-ta",e.taPrefix+"RepAddressFull-"+e.parentIdx)("id",e.taPrefix+"RepAddressFull-"+e.parentIdx)}}function RT(i,n){if(1&i&&(t.j41(0,"strong",10),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.SpI("",e.address.address_spec.addr_no,"\xa0")}}function yT(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",12),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(4);t.R7$(),t.Y8G("ngClass",t.lJ4(3,fT))("wosSearchHighlight",t.sMw(4,bT,a.record.ut,a.qid,e.full_name)),t.BMQ("lang",a.address.address_spec.lang_id)}}function TT(i,n){if(1&i&&(t.qex(0),t.DNE(1,yT,2,8,"ng-container",11),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngForOf",e.address.names)}}function IT(i,n){if(1&i&&(t.j41(0,"a",7)(1,"span")(2,"sup"),t.DNE(3,RT,2,1,"strong",8),t.k0s()(),t.DNE(4,TT,2,1,"ng-container",1),t.nrm(5,"span",9),t.k0s()),2&i){const e=t.XpG(2);t.FCK("id","",e.addrId,"",e.address.address_spec.addr_no,""),t.Y8G("ngClass",t.eq3(10,mT,!e.infoLabel&&e.isEnhanced(e.address))),t.BMQ("data-ta",e.taPrefix+"AuthAddr-"+e.address.address_spec.addr_no),t.R7$(3),t.Y8G("ngIf",e.addressLinkingAvailable),t.R7$(),t.Y8G("ngIf",!e.addressLinkingAvailable&&(null==e.address.names?null:e.address.names.length)>0),t.R7$(),t.Y8G("ngClass",t.lJ4(12,gT))("wosSearchHighlight",t.sMw(13,gd,e.record.ut,e.qid,e.address.address_spec.full_address.full_address)),t.BMQ("lang",e.address.address_spec.lang_id)}}function kT(i,n){if(1&i&&(t.j41(0,"span"),t.DNE(1,IT,6,17,"a",6),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",null==e.address||null==e.address.address_spec.full_address?null:e.address.address_spec.full_address.full_address)}}function FT(i,n){if(1&i&&(t.qex(0,18),t.j41(1,"a",19),t.nI1(2,"translate"),t.nI1(3,"translate"),t.nrm(4,"span",16),t.j41(5,"mat-icon",20),t.EFF(6,"open_in_new"),t.k0s()(),t.bVm()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(2);t.R7$(),t.FS9("href",a.ror_id,t.B4B),t.Y8G("matTooltip",t.bMT(2,6,"rorView")+" "+t.bMT(3,8,"OpenInNewWindow")),t.BMQ("id",o.taPrefix+"ViewInROR-"+r)("data-ta",o.taPrefix+"ViewInROR-"+r)("aria-label",a.ror_id),t.R7$(3),t.Y8G("wosSearchHighlight",t.sMw(10,fd,o.record.ut,o.qid,a.ror_id))}}function wT(i,n){1&i&&(t.j41(0,"div")(1,"h3",14),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,FT,7,14,"ng-container",17),t.nI1(5,"feature"),t.k0s()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,2,"ROR")),t.R7$(2),t.Y8G("ngIf",!t.bMT(5,4,"nxPresentationControl_FullRecord_Hide_RORID")))}function MT(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"div",13)(2,"h3",14),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"a",15),t.nI1(6,"translate"),t.bIt("termMatched",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.openAddresses())}),t.nrm(7,"span",16),t.k0s(),t.DNE(8,wT,6,6,"div",1),t.k0s(),t.bVm()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(2);t.R7$(),t.Y8G("hidden",!r.expanded),t.R7$(2),t.JRh(t.bMT(4,11,"orgEnhanced")),t.R7$(2),t.Y8G("ngClass","section-label-data")("matTooltip",t.bMT(6,13,"addressesView"))("queryParams",r.getRouterParam(e.organization,"OG","true"))("routerLink",t.eq3(15,vT,"WOS"===(null==r.record?null:r.record.coll)?"woscc":null==r.record?null:r.record.coll.toLowerCase())),t.BMQ("data-ta",r.taPrefix+"RepOrgEnhancedName-"+r.type+"-"+r.parentIdx+"-"+a)("id",r.taPrefix+"RepOrgEnhancedName-"+r.type+"-"+r.parentIdx+"-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(17,fd,r.record.ut,r.qid,e.organization)),t.BMQ("lang",r.lang),t.R7$(),t.Y8G("ngIf",e.ror_id)}}
1function ST(i,n){if(1&i&&(t.qex(0),t.DNE(1,MT,9,21,"ng-container",11),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.address.address_spec.organizations.filter(e.myOrgFilterFunction))}}let AT=(()=>{class i{onScroll(){const e=document.querySelector(".top-sticky-pageControl"),a=document.querySelector(".mat-menu-panel");if(a&&e){const r=e.getBoundingClientRect();a.getBoundingClientRect().top<r.bottom?a.setAttribute("style","visibility: hidden"):a.setAttribute("style","visibility: visible")}}constructor(){this.openAddressesOutput=new t.bkB,this.addressLinkingAvailable=!1,this.taPrefix="FRAOrgTa-",this.expanded=!1,this.addrId="address_",this.isMenuOpen=!1}ngOnChanges(){"addresses"===this.type&&this.record?.names&&Object.keys(this.record.names).forEach(e=>{Object.keys(this.record.names[e]).forEach(a=>{this.record.names[e][a].forEach(r=>{r?.addr_no&&(this.addressLinkingAvailable=!0)})})})}isEnhanced(e){return!e.address_spec.organizations?.some(a=>"Y"===a.pref)}toggleExpand(){this.expanded=!this.expanded}myOrgFilterFunction(e){return e.pref}getRouterParam(e,a,r){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:a,rowText:e}]),disableEdit:r}}openAddresses(){this.expanded=!0,this.hidenByDefault&&this.openAddressesOutput.emit(!0)}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-author-organization"]],hostBindings:function(a,r){1&a&&t.bIt("scroll",function(s){return r.onScroll(s)},!1,t.tSv)},inputs:{address:"address",record:"record",type:"type",qid:"qid",parentIdx:"parentIdx",infoLabel:"infoLabel",hidenByDefault:"hidenByDefault"},outputs:{openAddressesOutput:"openAddressesOutput"},features:[t.OA$],decls:6,vars:5,consts:[[3,"ngClass"],[4,"ngIf"],["class","value",3,"ngClass","wosSearchHighlight","termMatched",4,"ngIf"],["mat-icon-button","","color","primary",1,"margin-left-minus-10","auth-info-button",3,"click"],[1,"font-size-26"],[1,"value",3,"termMatched","ngClass","wosSearchHighlight"],["tabindex","-1","class","no-underline-link margin-left-30--reversible",3,"ngClass","id",4,"ngIf"],["tabindex","-1",1,"no-underline-link","margin-left-30--reversible",3,"ngClass","id"],["class","label",4,"ngIf"],[1,"value","padding-right-5--reversible",3,"ngClass","wosSearchHighlight"],[1,"label"],[4,"ngFor","ngForOf"],[1,"value","semiColonMark","padding-right-5--reversible",3,"ngClass","wosSearchHighlight"],[1,"rorDisplay",3,"hidden"],["dir","auto",1,"label","colonMark"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","'ROR-ID'",1,"value","beta-link","citation-count-color",3,"termMatched","ngClass","matTooltip","queryParams","routerLink"],[3,"wosSearchHighlight"],["class","rorDisplay",4,"ngIf"],[1,"rorDisplay"],["cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","'ROR-ID'","target","_blank","rel","noopener noreferrer",1,"value","beta-link","citation-count-color",3,"matTooltip","href"],[1,"font-size-18","icon-inline-aligned"]],template:function(a,r){1&a&&(t.j41(0,"div")(1,"span",0),t.DNE(2,xT,5,6,"ng-container",1),t.k0s(),t.DNE(3,CT,1,9,"span",2)(4,kT,2,1,"span",1)(5,ST,2,1,"ng-container",1),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngClass","addresses"===r.type?"dropdown-button-div":""),t.R7$(),t.Y8G("ngIf",!r.isEnhanced(r.address)),t.R7$(),t.Y8G("ngIf","reprint"===r.type),t.R7$(),t.Y8G("ngIf","addresses"===r.type),t.R7$(),t.Y8G("ngIf",r.address.address_spec.organizations))},dependencies:[A.YU,A.Sq,A.bT,ot.Wk,ie.w,jt.An,$t.ig,ht.iY,xt.oV,Ot.P,V.D9,Se.h],encapsulation:2,changeDetection:0})}}return i})();const ET=(i,n,e)=>[i,n,"author",e];
1function PT(i,n){if(1&i&&(t.j41(0,"h3",10),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(3);t.Y8G("ngClass","section-label-data"),t.R7$(),t.JRh(t.bMT(2,2,e.addressDisplay))}}function GT(i,n){1&i&&(t.j41(0,"span",13),t.EFF(1,";"),t.k0s()),2&i&&t.Y8G("ngClass","section-label-data")}function DT(i,n){if(1&i&&(t.j41(0,"div"),t.nrm(1,"span",11),t.nI1(2,"translate"),t.DNE(3,GT,2,1,"span",12),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=t.XpG().$implicit,o=t.XpG(2);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(4,ET,o.record.ut,o.qid,null!=e&&e.display_name?null==e?null:e.display_name:t.bMT(2,2,"anonymous"))),t.R7$(2),t.Y8G("ngIf",a!=r.names.length-1)}}function $T(i,n){if(1&i&&(t.j41(0,"span",14),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(3);t.Y8G("ngClass","section-label-data"),t.R7$(),t.SpI("(",t.bMT(2,2,e.authorDisplay),")")}}function LT(i,n){if(1&i&&(t.j41(0,"div",4)(1,"div",5),t.DNE(2,PT,3,4,"h3",6)(3,DT,4,8,"div",7)(4,$T,3,4,"span",8),t.k0s(),t.nrm(5,"app-full-record-author-organization",9),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(2);t.BMQ("id",r.taPrefix+"RepAddrTitle-"+a)("data-ta",r.taPrefix+"RepAddrTitle-"+a),t.R7$(2),t.Y8G("ngIf",r.addressDisplay),t.R7$(),t.Y8G("ngForOf",e.names),t.R7$(),t.Y8G("ngIf",r.authorDisplay),t.R7$(),t.Y8G("type",r.type)("address",e)("record",r.record)("qid",r.qid)("parentIdx",a)("infoLabel",r.infoLabel)}}function NT(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,LT,6,11,"div",3),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.addresses)}}function jT(i,n){if(1&i){const e=t.RV6();t.j41(0,"span")(1,"app-full-record-author-organization",16),t.bIt("openAddressesOutput",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.openAddresses())}),t.k0s()()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(2);t.R7$(),t.Y8G("type",r.type)("hidenByDefault",r.hidenByDefault)("address",e)("record",r.record)("qid",r.qid)("parentIdx",a)("infoLabel",r.infoLabel)}}function OT(i,n){if(1&i&&(t.j41(0,"div",15),t.DNE(1,jT,2,7,"span",7),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.addresses)}}function BT(i,n){if(1&i&&(t.j41(0,"h3",20),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG().index,a=t.XpG(2);t.BMQ("data-ta",a.taPrefix+"AuthRepEmailTitle-"+e)("id",a.taPrefix+"AuthRepEmailTitle-"+e),t.R7$(),t.SpI("",t.bMT(2,3,"emailAddresses")," ")}}function YT(i,n){if(1&i&&(t.j41(0,"a",21),t.nI1(1,"translate"),t.EFF(2),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2);t.Mz_("href","mailto:",a,"",t.B4B),t.Y8G("matTooltip",t.bMT(1,7,"emailAlt"))("ngClass","section-label-data full-record-detail-section-links"),t.BMQ("data-ta",o.taPrefix+"AuthRepEmailAddr-"+r)("id",o.taPrefix+"AuthRepEmailAddr-"+r),t.R7$(2),t.JRh(a)}}function XT(i,n){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2);t.BMQ("id",o.taPrefix+"AuthRepEmailAddr-"+r),t.R7$(),t.JRh(a)}}function qT(i,n){1&i&&t.nrm(0,"span",22)}function HT(i,n){if(1&i&&(t.qex(0),t.DNE(1,BT,3,5,"h3",17)(2,YT,3,9,"a",18),t.nI1(3,"feature"),t.DNE(4,XT,2,2,"ng-template",null,0,t.C5r)(6,qT,1,0,"span",19),t.bVm()),2&i){const e=n.first,a=n.last,r=t.sdS(5);t.R7$(),t.Y8G("ngIf",e),t.R7$(),t.Y8G("ngIf",!t.bMT(3,4,"nxPresentationControl_FullRecord_Disable_clickonAuthorEmail"))("ngIfElse",r),t.R7$(4),t.Y8G("ngIf",!a)}}function VT(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,HT,7,6,"ng-container",7),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.emailAddresses)}}let bd=(()=>{class i extends Be.${constructor(e,a){super(e,null),this.cdr=e,this.config=a,this.openAddressesOutput=new t.bkB,this.correspondingAddressCollections=this.config.getSettings().app.fullRecord.correspondingAddressCollections,this.taPrefix="FRAiinTa-",this.expanded=!1,this.emailsExist=!1}ngOnChanges(){("reprint"===this.type||"addresses"===this.type)&&this.correspondingAddressCollections.includes(this.record?.coll)&&"ALLDB"!==this.database&&(this.addressDisplay="correspondingAddress",this.authorDisplay="correspondingAuthor",super.ngOnChanges()),"emails"===this.type&&(this.emailAddresses=this.getEmailAddresses(),this.emailsExist=this.emailAddresses.length>0,super.ngOnChanges())}getEmailAddresses(){const e=[];
1if(this.addresses&&!this.hasEmails&&[].concat(...this.addresses).forEach(r=>{r.address_spec.email_addr?.length>0&&r.address_spec.email_addr.forEach(o=>{e.includes(o)||e.push(o)})}),this.reprinAddress&&!this.hasPreEmails&&this.reprinAddress?.forEach(a=>{a.names?.forEach(r=>{r.email_addr?.length>0&&r.email_addr.forEach(o=>{e.includes(o)||e.push(o)})})}),this.record.names?.author&&this.hasEmails){const a=this.record.names.author;Object.keys(a).forEach(r=>{a[r].forEach(o=>{null!==o&&o.email_addr&&(e.includes(o.email_addr)||e.push(o.email_addr))})})}return e}openAddresses(){this.expanded=!0,this.hidenByDefault&&this.openAddressesOutput.emit(!0)}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(Dt.w))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-author-item"]],inputs:{type:"type",qid:"qid",record:"record",addresses:"addresses",reprinAddress:"reprinAddress",database:"database",hasEmails:"hasEmails",hasPreEmails:"hasPreEmails",infoLabel:"infoLabel",hidenByDefault:"hidenByDefault"},outputs:{openAddressesOutput:"openAddressesOutput"},features:[t.Vt3,t.OA$],decls:3,vars:3,consts:[["noemail",""],[4,"ngIf"],["class","margin-top-minus-6",4,"ngIf"],["dir","auto",4,"ngFor","ngForOf"],["dir","auto"],[1,"flex-display-align-center"],["dir","auto","class","colonMark",3,"ngClass",4,"ngIf"],[4,"ngFor","ngForOf"],["class","value margin-left-5--reversible",3,"ngClass",4,"ngIf"],[3,"type","address","record","qid","parentIdx","infoLabel"],["dir","auto",1,"colonMark",3,"ngClass"],[1,"value","section-label-data","author-display-name",3,"wosSearchHighlight"],["class","value spaced",3,"ngClass",4,"ngIf"],[1,"value","spaced",3,"ngClass"],[1,"value","margin-left-5--reversible",3,"ngClass"],[1,"margin-top-minus-6"],[3,"openAddressesOutput","type","hidenByDefault","address","record","qid","parentIdx","infoLabel"],["dir","auto","class","colonMark",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-author-email-addresses","cdxAnalyticsAction","click","class","value-link no-underline-link",3,"href","matTooltip","ngClass",4,"ngIf","ngIfElse"],["dir","auto","class","semiColonMark",4,"ngIf"],["dir","auto",1,"colonMark"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-author-email-addresses","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"href","matTooltip","ngClass"],["dir","auto",1,"semiColonMark"]],template:function(a,r){1&a&&t.DNE(0,NT,2,1,"div",1)(1,OT,2,1,"div",2)(2,VT,2,1,"div",1),2&a&&(t.Y8G("ngIf","reprint"===r.type&&r.addresses),t.R7$(),t.Y8G("ngIf","addresses"===r.type),t.R7$(),t.Y8G("ngIf","emails"===r.type&&r.emailsExist))},dependencies:[A.YU,A.Sq,A.bT,ie.w,$t.ig,xt.oV,Ot.P,AT,V.D9,Se.h],encapsulation:2,changeDetection:0})}}return i})();const Oo=i=>({"cdx-two-column-grid-container":i}),Bo=i=>({"cdx-grid-data":i});function zT(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",4),t.nrm(2,"app-full-record-author-item",5),t.k0s(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngClass",e.areNonEnglishHidden?"container-hidden":"container-visible"),t.R7$(),t.Y8G("type","addresses")("qid",e.qid)("infoLabel",e.infoLabel)("record",e.record)("addresses",e.nonEngAuthorAddresses.slice(e.addressesToShow))}}function QT(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.toggleNonEngAddressView())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&i){const e=t.XpG(2);t.BMQ("data-ta",e.taPrefix+"nonEngAddressView")("id",e.taPrefix+"nonEngAddressView"),t.R7$(),t.SpI(" ",t.bMT(2,3,e.areNonEnglishHidden?"moreAddresses":"lessAddresses")," ")}}function UT(i,n){if(1&i&&(t.j41(0,"div",2)(1,"h3",3),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",4),t.nrm(5,"app-full-record-author-item",5),t.DNE(6,zT,3,6,"ng-container",6)(7,QT,3,5,"button",7),t.k0s()()),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(15,Oo,!e.infoLabel)),t.R7$(),t.Y8G("ngClass",e.infoLabel?"section-label-data colonMark":"cdx-grid-label"),t.BMQ("data-ta",e.taPrefix+"addressesLabel")("id",e.taPrefix+"addressesLabel"),t.R7$(),t.SpI("",t.bMT(3,13,"authAddresses")," "),t.R7$(2),t.Y8G("ngClass",t.eq3(17,Bo,!e.infoLabel)),t.R7$(),t.Y8G("type","addresses")("qid",e.qid)("infoLabel",e.infoLabel)("record",e.record)("addresses",e.nonEngAuthorAddresses.slice(0,e.addressesToShow)),t.R7$(),t.Y8G("ngIf",(null==e.nonEngAuthorAddresses?null:e.nonEngAuthorAddresses.length)>e.addressesToShow),t.R7$(),t.Y8G("ngIf",(null==e.nonEngAuthorAddresses?null:e.nonEngAuthorAddresses.length)>e.addressesToShow)}}
1function JT(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"div",4)(2,"app-full-record-author-item",11),t.bIt("openAddressesOutput",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.areAddressesHidden=!1)}),t.k0s()(),t.bVm()}if(2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngClass",e.areAddressesHidden?"container-hidden":"container-visible"),t.R7$(),t.Y8G("type","addresses")("hidenByDefault",!0)("qid",e.qid)("infoLabel",e.infoLabel)("record",e.record)("addresses",e.engAuthorAddresses.slice(e.addressesToShow))}}function WT(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.toggleAddressView())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&i){const e=t.XpG(2);t.BMQ("data-ta",e.taPrefix+"authorAddressView")("id",e.taPrefix+"authorAddressView"),t.R7$(),t.SpI(" ",t.bMT(2,3,e.areAddressesHidden?"moreAddresses":"lessAddresses"),"")}}function KT(i,n){if(1&i&&(t.j41(0,"div",2)(1,"h3",3),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",4),t.nrm(5,"app-full-record-author-item",9),t.DNE(6,JT,3,7,"ng-container",6)(7,WT,3,5,"button",10),t.k0s()()),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(16,Oo,!e.infoLabel)),t.R7$(),t.Y8G("ngClass",e.infoLabel?"section-label-data colonMark":"cdx-grid-label"),t.BMQ("data-ta",e.taPrefix+"addressesLabel")("id",e.taPrefix+"addressesLabel"),t.R7$(),t.SpI("",t.bMT(3,14,"authAddresses")," "),t.R7$(2),t.Y8G("ngClass",t.eq3(18,Bo,!e.infoLabel)),t.R7$(),t.Y8G("type","addresses")("hidenByDefault",!1)("qid",e.qid)("infoLabel",e.infoLabel)("record",e.record)("addresses",e.engAuthorAddresses.slice(0,e.addressesToShow)),t.R7$(),t.Y8G("ngIf",(null==e.engAuthorAddresses?null:e.engAuthorAddresses.length)>e.addressesToShow),t.R7$(),t.Y8G("ngIf",(null==e.engAuthorAddresses?null:e.engAuthorAddresses.length)>e.addressesToShow)}}function ZT(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",4),t.nrm(2,"app-full-record-author-item",5),t.k0s(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngClass",e.areEditorsHidden?"container-hidden":"container-visible"),t.R7$(),t.Y8G("type","addresses")("qid",e.qid)("infoLabel",e.infoLabel)("record",e.record)("addresses",e.editorAddresses.slice(e.addressesToShow))}}function tI(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.toggleEditorView())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&i){const e=t.XpG(2);t.BMQ("data-ta",e.taPrefix+"editorAddressView")("id",e.taPrefix+"editorAddressView"),t.R7$(),t.SpI(" ",t.bMT(2,3,e.areEditorsHidden?"moreAddresses":"lessAddresses"),"")}}function eI(i,n){if(1&i&&(t.j41(0,"div",2)(1,"h3",3),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",4),t.nrm(5,"app-full-record-author-item",5),t.DNE(6,ZT,3,6,"ng-container",6)(7,tI,3,5,"button",10),t.k0s()()),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(15,Oo,!e.infoLabel)),t.R7$(),t.Y8G("ngClass",e.infoLabel?"section-label-data colonMark":"cdx-grid-label"),t.BMQ("data-ta",e.taPrefix+"editorAddressesLabel")("id",e.taPrefix+"editorAddressesLabel"),t.R7$(),t.JRh(t.bMT(3,13,"editorAddresses")),t.R7$(2),t.Y8G("ngClass",t.eq3(17,Bo,!e.infoLabel)),t.R7$(),t.Y8G("type","addresses")("qid",e.qid)("infoLabel",e.infoLabel)("record",e.record)("addresses",e.editorAddresses.slice(0,e.addressesToShow)),t.R7$(),t.Y8G("ngIf",(null==e.editorAddresses?null:e.editorAddresses.length)>e.addressesToShow),t.R7$(),t.Y8G("ngIf",(null==e.editorAddresses?null:e.editorAddresses.length)>e.addressesToShow)}}let nI=(()=>{class i extends Be.${constructor(e,a){super(a,e),this.taPrefix="FRACTa-",this.areAddressesHidden=!0,this.areEditorsHidden=!0,this.areNonEnglishHidden=!0}ngOnChanges(e){e.record&&(this.loadAddressFromNewDataNode(),super.ngOnChanges())}toggleAddressView(){this.areAddressesHidden=!this.areAddressesHidden;const e=document.getElementById(this.taPrefix+"authorAddressView");void 0!==e&&this.areAddressesHidden&&setTimeout(()=>{e.blur(),e.focus()},500)}ngAfterViewInit(){this.eventsSubscription=this.events.subscribe(e=>{this.openAddresses(e)})}openAddresses(e){this.areAddressesHidden=!1,this.change.detectChanges(),document.getElementById("address_"+e)?.focus()}calculateIndex(e){return Number(this.addressesToShow)+e}toggleEditorView(){this.areEditorsHidden=!this.areEditorsHidden}toggleNonEngAddressView(){this.areNonEnglishHidden=!this.areNonEnglishHidden}loadAddressFromNewDataNode(){this.engAuthorAddresses=[],this.nonEngAuthorAddresses=[],this.editorAddresses=[],this.record.address_data?.address?.forEach(e
1=>{e.names&&"book_editor"===e.names[0]?.role&&this.editorAddresses.push(e),e.address_spec.full_address.lang_id&&"en"!==e.address_spec.full_address.lang_id&&this.nonEngAuthorAddresses.push(e),!this.nonEngAuthorAddresses.includes(e)&&!this.editorAddresses.includes(e)&&this.engAuthorAddresses.push(e)})}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(V.c$),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-addresses-data"]],inputs:{ut:"ut",qid:"qid",record:"record",addressesToShow:"addressesToShow",openAllAddresses:"openAllAddresses",events:"events",infoLabel:"infoLabel"},features:[t.Vt3,t.OA$],decls:4,vars:8,consts:[["class","author-info-section",3,"ngClass",4,"ngIf"],[3,"type","infoLabel","addresses","hasEmails","record"],[1,"author-info-section",3,"ngClass"],["dir","auto",3,"ngClass"],[3,"ngClass"],[3,"type","qid","infoLabel","record","addresses"],[4,"ngIf"],["mat-button","","class","margin-top-10","color","primary",3,"click",4,"ngIf"],["mat-button","","color","primary",1,"margin-top-10",3,"click"],[3,"type","hidenByDefault","qid","infoLabel","record","addresses"],["mat-button","","color","primary","class","margin-top-10",3,"click",4,"ngIf"],[3,"openAddressesOutput","type","hidenByDefault","qid","infoLabel","record","addresses"]],template:function(a,r){1&a&&(t.DNE(0,UT,8,19,"div",0)(1,KT,8,20,"div",0)(2,eI,8,19,"div",0),t.nrm(3,"app-full-record-author-item",1)),2&a&&(t.Y8G("ngIf",r.nonEngAuthorAddresses&&r.nonEngAuthorAddresses.length>0),t.R7$(),t.Y8G("ngIf",(null==r.engAuthorAddresses?null:r.engAuthorAddresses.length)>0),t.R7$(),t.Y8G("ngIf",(null==r.editorAddresses?null:r.editorAddresses.length)>0),t.R7$(),t.Y8G("type","emails")("infoLabel",r.infoLabel)("addresses",null==r.record.address_data?null:r.record.address_data.address)("hasEmails",!1)("record",r.record))},dependencies:[A.YU,A.bT,$t.ig,ht.$z,bd,V.D9],encapsulation:2,changeDetection:0})}}return i})();const iI=["preprintVersionTable"];function aI(i,n){if(1&i&&(t.j41(0,"th",13),t.nI1(1,"translate"),t.j41(2,"div",14),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&i){const e=t.XpG(2);t.BMQ("aria-label",t.bMT(1,4,"version")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"data-table-heading-term")("id",e.taPrefix+"data-table-heading-term"),t.R7$(),t.JRh(t.bMT(4,6,"version"))}}function rI(i,n){if(1&i&&(t.j41(0,"td",15)(1,"span"),t.EFF(2),t.k0s()()),2&i){const e=n.$implicit;t.R7$(2),t.JRh(e.versionNumber)}}function oI(i,n){if(1&i&&(t.j41(0,"th",13)(1,"div",16),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"data-table-heading-date")("id",e.taPrefix+"data-table-heading-date"),t.R7$(),t.JRh(t.bMT(3,3,"pubdate_tableHeader_small"))}}function sI(i,n){if(1&i&&(t.j41(0,"td",15)(1,"span"),t.EFF(2),t.k0s()()),2&i){const e=n.$implicit;t.R7$(2),t.JRh(e.versionDate)}}function lI(i,n){if(1&i&&(t.j41(0,"th",13)(1,"div",16),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"data-table-heading-link")("id",e.taPrefix+"data-table-heading-link"),t.R7$(),t.JRh(t.bMT(3,3,"externalLink"))}}function cI(i,n){if(1&i&&(t.j41(0,"td",15)(1,"a",17),t.EFF(2),t.k0s()()),2&i){const e=n.$implicit;t.R7$(),t.FS9("href",e.external_link,t.B4B),t.R7$(),t.SpI(" ",e.external_link,"")}}function dI(i,n){1&i&&t.nrm(0,"tr",18)}function uI(i,n){1&i&&t.nrm(0,"tr",19)}function _I(i,n){if(1&i&&(t.qex(0),t.j41(1,"section",2)(2,"h3",3),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",4)(6,"table",5,0)(8,"caption"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.qex(11,6),t.DNE(12,aI,5,8,"th",7)(13,rI,3,1,"td",8),t.bVm(),t.qex(14,9),t.DNE(15,oI,4,5,"th",7)(16,sI,3,1,"td",8),t.bVm(),t.qex(17,10),t.DNE(18,lI,4,5,"th",7)(19,cI,3,2,"td",8),t.bVm(),t.DNE(20,dI,1,0,"tr",11)(21,uI,1,0,"tr",12),t.k0s()()(),t.bVm()),2&i){const e=t.XpG();t.R7$(3),t.JRh(t.bMT(4,8,"preprintFamily")),t.R7$(3),t.Y8G("dataSource",e.dataSource),t.BMQ("data-ta",e.taPrefix+"data-table")("id",e.taPrefix+"data-table"),t.R7$(3),t.JRh(t.bMT(10,10,"preprintFamily")),t.R7$(11),t.Y8G("matHeaderRowDef",e.preprintColumns)("matHeaderRowDefSticky",!0),t.R7$(),t.Y8G("matRowDefColumns",e.preprintColumns)}}let pI=(()=>{class i{constructor(e){this.change=e,this.taPrefix="PreprintVersionTableTa-",this.preprintColumnsDefault=["version","versionDate","url"],this.preprintColumns=[]}ngOnChanges(e){e.record&&(this.setRequiredColumns(),this.setColumnOrder(),this.updateDataSource())}setRequiredColumns(){const e=this.record.external_links;this.preprintColumns=[];const a=this;e.forEach(function(r){a.processColumns(r.versionNumber,"version"),a.processColumns(r.versionDate,"versionDate"),a.processColumns(r.external_link,"url")})}processColumns(e,a){e&&(this.preprintColumns.includes(a)||this.preprintColumns.push(a))}
1showColumn(e){return this.preprintColumns.includes(e)}setColumnOrder(){const e=[];this.preprintColumnsDefault.forEach(a=>{this.preprintColumns.includes(a)&&e.push(a)}),this.preprintColumns=e}updateDataSource(){this.dataSource=this.record.external_links.filter(e=>"preprintlink"===e.target_type)}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-preprint-version-table"]],viewQuery:function(a,r){if(1&a&&t.GBs(iI,5),2&a){let o;t.mGM(o=t.lsd())&&(r.preprintVersionTable=o.first)}},inputs:{record:"record"},features:[t.OA$],decls:1,vars:1,consts:[["preprintVersionTable",""],[4,"ngIf"],[1,"nextGen-Table","cdx-two-column-grid-container"],["dir","auto",1,"table-label","cdx-grid-label"],[1,"cdx-table-wrapper","cdx-table-wrapper-fixed","cdx-grid-data"],["mat-table","",3,"dataSource"],["matColumnDef","version"],["mat-header-cell","","scope","col",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","versionDate"],["matColumnDef","url"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","scope","col"],[1,"cdx-table-header-cell","cdk-visually-hidden"],["mat-cell",""],[1,"cdx-table-header-cell"],["target","_blank","rel","noopener noreferrer",3,"href"],["mat-header-row",""],["mat-row",""]],template:function(a,r){1&a&&t.DNE(0,_I,22,12,"ng-container",1),2&a&&t.Y8G("ngIf",(null==r.record||null==r.record.external_links?null:r.record.external_links.length)>0)},dependencies:[A.bT,$t.ig,X.Zl,X.tL,X.ji,X.cC,X.YV,X.iL,X.KS,X.$R,X.YZ,X.NB,V.D9],encapsulation:2})}}return i})();const hI=["sidenav"],vd=i=>({"cdx-two-column-grid-container":i}),mI=i=>({"cdx-grid-data":i}),Yo=(i,n)=>["/",i,"full-record",n],Xo=()=>({siloViewRecordWarning:!0}),gI=i=>({siloViewRecordWarning:!0,collection:i,doc:1}),fI=i=>({collection:i}),bI=i=>
1({doi:i}),vI=i=>({pubMedID:i}),xI=i=>["/","woscc","full-record",i],CI=()=>({siloViewRecordWarning:!0,collection:"WOS",doc:1}),xd=(i,n,e,a)=>[i,!0,n,e,a],RI=(i,n,e)=>[i,n,"title",e],yI=(i,n,e,a)=>({qid:i,sort:n,doc:e,siloViewRecordWarning:!0,from:a,collection:"PPRN"}),TI=i=>["/","pprn","full-record",i],II=(i,n,e)=>["/",i,"summary",n,e,1],kI=()=>["author","anon"],FI=()=>["assignee"],wI=()=>["book_editor","corp","book_corp","book","editor","additional_author","inventor","principal_investigator","co_principal_investigator"],Cd=(i,n,e)=>[i,n,"doi",e],qo=(i,n,e)=>[i,n,"source",e],MI=()=>["editor"],sn=i=>["/",i,"general-summary"],Rd=(i,n,e)=>[i,n,"assignee",e],SI=(i,n,e)=>[i,n,"assigneeName",e],AI=(i,n,e)=>[i,n,"assigneeCode",e],EI=(i,n,e)=>[i,n,"primrary_accession_number",e],PI=(i,n,e)=>[i,n,"articleNumber",e],yd=(i,n,e)=>[i,n,"date",e],Td=(i,n)=>({siloSearchWarning:i,collection:n}),GI=(i,n,e)=>[i,n,"program_name",e],DI=(i,n,e)=>[i,n,"doctype",e],$I=(i,n,e)=>[i,n,"dataType",e],LI=i=>({"mobile-overlay":i}),NI=(i,n)=>({"collapsible-abstract contracted":i,"cdx-two-column-grid-container":n}),Id=(i,n,e)=>[i,n,"abstract",e],jI=(i,n,e)=>[i,n,"dissertationAndThesisSubjects",e],kd=(i,n,e)=>[i,n,"ipcs",e],OI=(i,n,e)=>[i,n,"class_codes",e],BI=(i,n,e)=>[i,n,"classCodes",e],YI=(i,n,e)=>[i,n,"manual_codes",e],XI=(i,n,e)=>[i,n,"manualCodes",e],Ho=()=>({type:"date",format:"dd MMM yyyy"}),qI=i=>({pubdate:i}),Fd=i=>({date:i}),HI=(i,n,e)=>[i,n,"fos",e],VI=(i,n,e)=>[i,n,"license",e],zI=(i,n)=>({type:"highlight",ut:i,qid:n}),QI=i=>({dcr:i}),wd=(i,n,e)=>[i,n,"ring_index_number",e],UI=i=>({scnd:i}),JI=i=>({drn:i});function WI(i,n){if(1&i){const e=t.RV6();t.j41(0,"section",15)(1,"mat-button-toggle-group",16,0),t.bIt("click",function(){t.eBV(e);const r=t.sdS(2),o=t.XpG();return t.Njj(o.updateRecord(r.value))}),t.j41(3,"mat-button-toggle",17),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"mat-button-toggle",18),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("dir",e.record.isArabicRecord?"rtl":"ltr"),t.R7$(),t.BMQ("id",e.taPrefix+"arabicToggleButton"),t.R7$(3),t.JRh(t.bMT(5,4,"record_lang_toggle_English")),t.R7$(3),t.JRh(t.bMT(8,6,"record_lang_toggle_arabic"))}}function KI(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,"; "),t.k0s())}function ZI(i,n){if(1&i&&(t.j41(0,"span")(1,"a",54),t.nI1(2,"lowercase"),t.nI1(3,"translate"),t.nI1(4,"translate"),t.j41(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.DNE(8,KI,2,0,"span",24),t.k0s()),2&i){const e=n.$implicit,a=n.last,r=t.XpG(3);t.R7$(),t.Mz_("cdxAnalyticsCategory","","view-super-record-in-"+e,"}"),t.Y8G("routerLink",t.l_i(19,Yo,t.bMT(2,11,e),r.getRciSuperRecordUt(e)))("queryParams",t.lJ4(22,Xo))("state",t.eq3(23,gI,e))("matTooltip",t.bMT(3,13,"viewRecordInCollection")+" "+e),t.BMQ("data-ta",r.taPrefix+"viewSuperRecordLink"+e+"common")("id",r.taPrefix+"viewSuperRecordLink"+e+"common")("aria-label",t.bMT(4,15,e+"_name")),t.R7$(5),t.JRh(t.bMT(7,17,e+"_name")),t.R7$(2),t.Y8G("ngIf",!a)}}function tk(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",48)(1,"div",49)(2,"span",50),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,ZI,9,25,"span",51),t.k0s(),t.j41(6,"div",52)(7,"label")(8,"mat-slide-toggle",53),t.nI1(9,"translate"),t.nI1(10,"translate"),t.bIt("toggleChange",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.rciSuperRecordToggled())}),t.k0s(),t.EFF(11),t.nI1(12,"translate"),t.k0s()()()}if(2&i){const e=t.XpG(2);t.R7$(3),t.JRh(t.bMT(4,6,"rciSuperRecordDesc")),t.R7$(2),t.Y8G("ngForOf",e.superRecordRciList),t.R7$(3),t.Y8G("matTooltip",t.bMT(9,8,"toggleShowSuperRecord"))("aria-label",t.bMT(10,10,"showRciSuperRecordLabel"))("checked",e.showRciSuperRecord),t.R7$(3),t.SpI(" ",t.bMT(12,12,"showRciSuperRecordLabel")," ")}}function ek(i,n){1&i&&t.nrm(0,"hr",55)}function nk(i,n){if(1&i&&(t.j41(0,"div",56),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(2);t.BMQ("aria-atomic",!0)("data-ta",e.taPrefix+"nonWosRecordMsg")("id",e.taPrefix+"nonWosRecordMsg"),t.R7$(),t.SpI(" ",t.i5U(2,4,"nonWosRecordMsg",t.eq3(7,fI,e.record.coll))," ")}}function ik(i,n){if(1&i&&(t.j41(0,"div",56),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(2);t.BMQ("aria-atomic",!0)("data-ta",e.taPrefix+"referenceOnlyRecordMsg")("id",e.taPrefix+"referenceOnlyRecordMsg"),t.R7$(),t.SpI(" ",t.bMT(2,4,"referenceOnlyRecordMsg")," ")}}function ak(i,n){if(1&i&&(t.j41(0,"span")(1,"div",59),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"a",60),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.BMQ("data-ta",o.taPrefix+"retraction-"+r)("id",o.taPrefix+"retraction-"+r),t.R7$(),t.BMQ("data-ta",o.taPrefix+"retractionRetractedType-"+r)("id",o.taPrefix+"retractionRetractedType-"+r),t.R7$(),t.JRh(t.bMT(3,9,a.type+"Description")),t.R7$(2),t.Y8G("routerLink",t.l_i(11,Yo,o.database.toLowerCase(),a.uid)),t.BMQ("data-ta",o.taPrefix+"retractedLink-"+r)("id",o.taPrefix+"retractedLink-"+r),t.R7$(),t.SpI(" ",a.titles[0].title," ")}}function rk(i,n){1&i&&(t.j41(0,"div"),t.nrm(1,"mat-icon",62),t.k0s())}function ok(i,n){if(1&i&&(t.j41(0,"span",65),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(3).index,a=t.XpG(3);t.BMQ("data-ta",a.taPrefix+"retractionNotice-"+e)("id",a.taPrefix+"retractionNotice-"+e),t.R7$(),t.SpI("",t.bMT(2,3,"retractionNotice"),": ")}}function sk(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",27)(2,"div",59),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,ok,3,5,"span",63),t.j41(6,"a",64),t.EFF(7),t.k0s()(),t.bVm()),2&i){const e=t.XpG(2),a=e.$implicit,r=e.index,o=t.XpG(3);t.R7$(),t.Y8G("ngClass","RetractionOf"===a.type?"rel_retracted":""),t.R7$(),t.BMQ("data-ta",o.taPrefix+"retractionRetractedType-Description-"+r)("id",o.taPrefix+"retractionRetractedType-Description-"+r),t.R7$(),t.JRh(t.bMT(4,9,a.type+"Description")),t.R7$(2),t.Y8G("ngIf","RetractionOf"===a.type),t.R7$(),t.Y8G("routerLink",t.l_i(11,Yo,o.database.toLowerCase(),a.uid)),t.BMQ("data-ta",o.taPrefix+"retractionType-description-link-"+r)("id",o.taPrefix+"retractionType-description-link-"+r),t.R7$(),t.SpI(" ",a.titles[0].title," ")}}function lk(i,n){if(1&i&&(t.j41(0,"li")(1,"span",65),t.EFF(2),t.k0s()()),2&i){const e=n.$implicit;t.R7$(2),t.JRh(e.startsWith("+")?e.slice(1):e)}}function ck(i,n){if(1&i&&(t.nrm(0,"div",71),t.nI1(1,"translate"),t.nI1(2,"translate")),2&i){const e=t.XpG(4).$implicit;t.Y8G("innerHTML",e.doi?t.i5U(1,1,"retractionDoiInfoLink",t.eq3(7,bI,e.doi)):t.i5U(2,4,"retractionPubmedInfoLink",t.eq3(9,vI,e.pubMedID)),t.npT)}}function dk(i,n){if(1&i&&(t.j41(0,"div",67),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"ul",68),t.DNE(4,lk,3,1,"li",51),t.nI1(5,"slice"),t.k0s(),t.DNE(6,ck,3,11,"div",69),t.nrm(7,"div",70),t.nI1(8,"translate"),t.k0s()),2&i){const e=t.XpG(3).$implicit;t.Y8G("ngClass","Y"===e.CORPDF?"margin-top-20":""),t.R7$(),t.SpI(" ",t.bMT(2,5,"retractionReasonDesc"),": "),t.R7$(3),t.Y8G("ngForOf",t.brH(5,7,e.reason.split(";"),0,-1)),t.R7$(2),t.Y8G("ngIf",e.doi||e.pubMedID&&e.pubMedID>0),t.R7$(),t.Y8G("innerHTML",t.bMT(8,11,"findMoreRetractionLink"),t.npT)}}function uk(i,n){if(1&i&&(t.qex(0),t.DNE(1,dk,9,13,"div",66),t.bVm()),2&i){const e=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngIf",e.reason)}}function _k(i,n){if(1&i&&(t.j41(0,"div",61),t.DNE(1,rk,2,0,"div",24),t.j41(2,"div"),t.DNE(3,sk,8,14,"ng-container",24),t.nI1(4,"feature"),t.DNE(5,uk,2,1,"ng-container",24),t.nI1(6,"feature"),t.k0s()()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf","RetractionOf"===e.type),t.R7$(2),t.Y8G("ngIf",!e.CORPDF||"Y"===e.CORPDF||t.bMT(4,3,"WOSVX-39776-skip-retraction-CORPDF-flag")),t.R7$(2),t.Y8G("ngIf",t.bMT(6,5,"WOSVX-39776-show-retraction-notice-with-reasons")&&"Y"===e.RWDB)}}function pk(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,ak,6,14,"span",24)(2,_k,7,7,"div",58),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",("ConcernIn"===e.type||"WithdrawalIn"===e.type||"RetractionIn"===e.type)&&e.titles&&e.titles.length>0),t.R7$(),t.Y8G("ngIf",("ConcernOf"===e.type||"WithdrawalOf"===e.type||"RetractionOf"===e.type)&&e.titles)}}function hk(i,n){if(1&i&&(t.j41(0,"div",57),t.DNE(1,pk,3,2,"div",51),t.k0s()),2&i){const e=t.XpG(2);t.Y8G("ngClass","retraction"===e.record.retractionRetractedType||"retracted"===e.record.retractionRetractedType?"error-code warning-orange-bg re_retracted_div":"error-code light-blue-bg re_retracted_div"),t.BMQ("aria-atomic",!0),t.R7$(),t.Y8G("ngForOf",e.retractions)}}function mk(i,n){if(1&i&&(t.j41(0,"div",73)(1,"div",74),t.nrm(2,"mat-icon",75),t.j41(3,"span",76),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",77)(7,"a",78),t.nI1(8,"translate"),t.EFF(9),t.nI1(10,"translate"),t.k0s()()()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.BMQ("data-ta",o.taPrefix+" preprintLink-"+r)("id",o.taPrefix+" preprintLink-"+r),t.R7$(3),t.BMQ("data-ta",o.taPrefix+" PreprintLinktoWOSccDesc-"+r)("id",o.taPrefix+"PreprintLinktoWOSccDesc-"+r),t.R7$(),t.SpI(" ",t.bMT(5,13,a.type+"Description")," "),t.R7$(3),t.FS9("cdxAnalyticsCategory","PreprintLinktoWOScc-"+a.uid),t.FS9("title",t.bMT(8,15,"PreprintLinkToWOScc")),t.Y8G("routerLink",t.eq3(19,xI,a.uid))("queryParams",t.lJ4(21,Xo))("state",t.lJ4(22,CI)),t.BMQ("data-ta",o.taPrefix+"PreprintLinktoWOScc-"+r)("id",o.taPrefix+"PreprintLinktoWOScc-"+r),t.R7$(2),t.SpI(" ",t.bMT(10,17,"view_publication")," ")}}function gk(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,mk,11,23,"div",72),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf","PreprintLinktoWOScc"===e.type&&e.titles&&e.titles.length>0)}}function fk(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,gk,2,1,"div",51),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.record.related_records)}}function bk(i,n){if(1&i&&(t.j41(0,"h2",82),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(3);t.BMQ("data-ta",e.taPrefix+"preprintDisclaimer")("id",e.taPrefix+"preprintDisclaimer"),t.R7$(),t.JRh(t.bMT(2,3,e.record.coll+"_label"))}}function vk(i,n){if(1&i&&(t.nrm(0,"span",83),t.nI1(1,"translate")),2&i){const e=t.XpG(3);t.Y8G("innerHTML",t.bMT(1,1,e.record.coll+"_disclaimer"),t.npT)}}function xk(i,n){if(1&i&&(t.j41(0,"div",79),t.DNE(1,bk,3,5,"h2",80)(2,vk,2,3,"span",81),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",e.displayIconCollections.includes(e.record.coll)),t.R7$(),t.Y8G("ngIf",e.displayDisclaimerCollections.includes(e.record.coll))}}function Ck(i,n){1&i&&(t.j41(0,"span"),t.nrm(1,"mat-icon",87),t.k0s())}function Rk(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",85)(1,"mat-slide-toggle",86),t.nI1(2,"async"),t.nI1(3,"async"),t.bIt("change",function(r){t.eBV(e);const o=t.XpG(3);return t.Njj(o.translateTitle(r))}),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.DNE(6,Ck,2,0,"span",24),t.nI1(7,"async"),t.k0s()}if(2&i){const e=t.XpG(3);t.R7$(),t.Y8G("checked",t.bMT(2,4,e.titleTranslationToggleVal$))("disabled",e.isTranslating&&"PENDING"===t.bMT(3,6,e.titleTranslationStatus$)),t.R7$(3),t.SpI(" ",t.bMT(5,8,"translateTitle")," "),t.R7$(2),t.Y8G("ngIf",e.isTranslating&&"PENDING"===t.bMT(7,10,e.titleTranslationStatus$))}}function yk(i,n){1&i&&(t.j41(0,"span"),t.nrm(1,"mat-icon",90),t.k0s())}function Tk(i,n){if(1&i&&(t.j41(0,"span"),t.DNE(1,yk,2,0,"span",24),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&i){const e=t.XpG(5);t.R7$(),t.Y8G("ngIf",0===(null==e.retractions?null:e.retractions.length)&&"retracted"===e.record.retractionRetractedType),t.R7$(),t.SpI("",t.bMT(3,2,e.record.retractionRetractedType+"Label"),": ")}}function Ik(i,n){if(1&i&&(t.nrm(0,"h2",91),t.nI1(1,"async"),t.nI1(2,"encode")),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG().$implicit,s=t.XpG(3);t.Y8G("dir",t.bMT(1,5,s.titleTranslationToggleVal$)&&"ar"===(null==s.search.display||null==s.search.display.params?null:s.search.display.params.translatedLang)&&"ar"===o?"rtl":"ltr")("wosSearchHighlight",t.sMw(9,RI,s.record.ut,s.qid,t.bMT(2,7,s.getDisplayTitle(a.title)))),t.BMQ("data-ta",s.taPrefix+"fullRecordtitle-"+r)("id",s.taPrefix+"fullRecordtitle-"+r)("lang",o)}}function kk(i,n){if(1&i&&(t.j41(0,"div",27),t.DNE(1,Tk,4,4,"span",24),t.nI1(2,"feature"),t.DNE(3,Ik,3,13,"h2",89),t.nI1(4,"async"),t.k0s()),2&i){const e=n.$implicit,a=n.first,r=t.XpG
1(4);t.xc7("display",!e.superRecordCollection||e.superRecordCollection&&r.showRciSuperRecord?"inline":"none"),t.Y8G("ngClass",e.superRecordCollection&&"common-super-record-field"),t.R7$(),t.Y8G("ngIf",!t.bMT(2,5,"nxDisableRetraction")&&null!=r.record.retractionRetractedType&&r.record.retractionRetractedType.length>0&&a),t.R7$(2),t.Y8G("ngIf",!e.smartTranslated||t.bMT(4,7,r.titleTranslationToggleVal$))}}function Fk(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,kk,5,9,"div",88),t.k0s()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngForOf",a.record.titles.item[e])}}function wk(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,Rk,8,12,"div",84)(2,Fk,2,1,"div",51),t.nI1(3,"async"),t.nI1(4,"languagesPipe"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf","general_semantic"===(null==e.search?null:e.search.mode)&&"nlp"===(null==e.search||null==e.search.display?null:e.search.display.key)&&(null==e.search||null==e.search.display||null==e.search.display.params?null:e.search.display.params.translatedLang)),t.R7$(),t.Y8G("ngForOf",t.iJd(4,4,t.ziG(10,xd,e.record.titles.item,e.database,e.originalLang,t.bMT(3,2,e.titleTranslationToggleVal$)?null==e.search.display||null==e.search.display.params?null:e.search.display.params.translatedLang:null)))}}function Mk(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",95),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.showCitedDialog("highlyCited"))}),t.nrm(2,"mat-icon",96),t.j41(3,"span",97),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}if(2&i){const e=t.XpG().ngIf,a=t.XpG(2);t.Y8G("matTooltip",t.bMT(1,6,"highlyCitedTitle")),t.BMQ("data-ta",a.taPrefix+"highlyCitedTitle-"+e)("id",a.taPrefix+"highlyCitedTitle-"+e),t.R7$(3),t.BMQ("data-ta",a.taPrefix+"highlyCited-"+e)("id",a.taPrefix+"highlyCited-"+e),t.R7$(),t.JRh(t.bMT(5,8,"highlyCitedPaper"))}}function Sk(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",98),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.showCitedDialog("hotPaper"))}),t.nrm(2,"mat-icon",99),t.j41(3,"span",97),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}if(2&i){const e=t.XpG().ngIf,a=t.XpG(2);t.Y8G("matTooltip",t.bMT(1,6,"hotPaperTitle")),t.BMQ("data-ta",a.taPrefix+"hotPaperTitle-"+e)("id",a.taPrefix+"hotPaperTitle-"+e),t.R7$(3),t.BMQ("data-ta",a.taPrefix+"hotPaper-"+e)("id",a.taPrefix+"hotPaper-"+e),t.R7$(),t.JRh(t.bMT(5,8,"hotPaper"))}}function Ak(i,n){if(1&i&&(t.j41(0,"div",92),t.DNE(1,Mk,6,10,"button",93)(2,Sk,6,10,"button",94),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",null==e.record.ic_related?null:e.record.ic_related.highly_cited),t.R7$(),t.Y8G("ngIf",null==e.record.ic_related?null:e.record.ic_related.hot_paper)}}function Ek(i,n){if(1&i&&(t.j41(0,"a",101),t.nI1(1,"translate"),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("matTooltip",t.bMT(1,7,"prePrintAssociatedArticleToolTip"))("queryParams",t.lJ4(11,Xo))("state",t.ziG(12,yI,a.qid,a.sort,a.doc,e.uid))("routerLink",t.eq3(17,TI,e.uid)),t.BMQ("data-ta",a.taPrefix+"viewPrePrintVersionRecord")("id",a.taPrefix+"viewPrePrintVersionRecord"),t.R7$(2),t.SpI("",t.bMT(3,9,"prePrintAssociatedLabel")," ")}}function Pk(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,Ek,4,19,"a",100),t.k0s()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf","WosLinktoPreprint"===e.type&&e.uid)}}function Gk(i,n){if(1&i&&(t.j41(0,"span"),t.DNE(1,Pk,2,1,"div",51),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.record.related_records)}}function Dk(i,n){if(1&i&&(t.j41(0,"a",102),t.nI1(1,"translate"),t.nrm(2,"mat-icon",103),t.j41(3,"span",104),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&i){const e=t.XpG(2);t.Y8G("matTooltip",t.bMT(1,5,"associatedData_viewSummaryLinkTooltip"))("routerLink",t.sMw(9,II,e.database.toLowerCase(),e.associatedDataInfo.id,e.sort)),t.BMQ("id",e.taPrefix+"ViewSummaryLink")("data-ta",e.taPrefix+"ViewSummaryLink"),t.R7$(4),t.JRh(t.bMT(5,7,"associatedDataLabel"))}}function $k(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"button",107),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.scrollTo("app-full-record-patent-family"))}),t.j41(3,"mat-icon",108),t.EFF(4,"arrow_downward"),t.k0s(),t.j41(5,"span",109),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.bVm()}if(2&i){const e=t.XpG(3);t.R7$(),t.Y8G("matTooltip",t.bMT(2,4,"jumpToPatentFamilyTable")),t.BMQ("id",e.taPrefix+"patentFamilyRef")("data-ta",e.taPrefix+"patentFamilyRef"),t.R7$(5),t.JRh(t.bMT(7,6,"patentFamily"))}}function Lk(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"button",110),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.scrollTo("#chemicalInfo"))}),t.j41(3,"mat-icon",108),t.EFF(4,"arrow_downward"),t.k0s(),t.j41(5,"span",109),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.bVm()}if(2&i){const e=t.XpG(3);t.R7$(),t.Y8G("matTooltip",t.bMT(2,4,"jumpTochemInfoTable")),t.BMQ("id",e.taPrefix+"chemInfoRef")("data-ta",e.taPrefix+"chemInfoRef"),t.R7$(5),t.JRh(t.bMT(7,6,"chemInfo"))}}function Nk(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h3",106),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,$k,8,8,"ng-container",24)(6,Lk,8,8,"ng-container",24),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,3,"indicateLabel")),t.R7$(3),t.Y8G("ngIf",e.showPatentFamilyButton),t.R7$(),t.Y8G("ngIf",e.re
1cord&&(e.record.compounds||e.record.markush_number||e.record.derwent_compounds||e.record.derwent_registry))}}function jk(i,n){if(1&i&&(t.j41(0,"span",113),t.EFF(1),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.BMQ("data-ta",o.taPrefix+"patentAssignee-0-"+r)("id",o.taPrefix+"patentAssignee-"+r),t.R7$(),t.SpI("",a.PatentAssignee,"; ")}}function Ok(i,n){if(1&i&&(t.j41(0,"span",113),t.EFF(1),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.BMQ("data-ta",o.taPrefix+"patentAssignee-1-"+r)("id",o.taPrefix+"patentAssignee-"+r),t.R7$(),t.JRh(a.PatentAssignee)}}function Bk(i,n){if(1&i&&(t.qex(0),t.DNE(1,jk,2,3,"span",112)(2,Ok,2,3,"span",112),t.bVm()),2&i){const e=n.last;t.R7$(),t.Y8G("ngIf",!e),t.R7$(),t.Y8G("ngIf",e)}}function Yk(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h3",111),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,Bk,3,2,"ng-container",51),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"patentAssigneeLabel")("id",e.taPrefix+"patentAssigneeLabel"),t.R7$(),t.SpI("",t.bMT(3,4,"patentAssignee")," "),t.R7$(3),t.Y8G("ngForOf",e.record.item.Bibliographic.Patent.PatentAssignee)}}function Xk(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",114)(1,"app-full-record-authors",115),t.nI1(2,"languagesPipe"),t.bIt("openAddresses",function(r){t.eBV(e);const o=t.XpG(2);return t.Njj(o.openAddressView(r))}),t.k0s()()}if(2&i){const e=t.XpG(2);t.R7$(),t.Y8G("database",e.database)("qid",e.qid)("isArabicRecord",e.record.isArabicRecord)("ut",e.record.ut)("types",t.lJ4(12,kI))("langs",t.brH(2,8,e.record.names,!0,e.database))("authors",e.record.names)("contributors",e.record.contributors)}}function qk(i,n){if(1&i&&(t.j41(0,"div"),t.nrm(1,"app-full-record-authors",116),t.nI1(2,"languagesPipe"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("database",e.database)("qid",e.qid)("ut",e.record.ut)("types",t.lJ4(12,FI))("langs",t.brH(2,8,e.record.names,!0,e.database))("requiresLink","FSTA"===e.database)("authors",e.record.names)("contributors",e.record.contributors)}}function Hk(i,n){if(1&i){const e=t.RV6();t.j41(0,"div")(1,"app-full-record-authors",117),t.nI1(2,"languagesPipe"),t.bIt("openAddresses",function(r){t.eBV(e);const o=t.XpG(2);return t.Njj(o.openAddressView(r))}),t.k0s()()}if(2&i){const e=t.XpG(2);t.R7$(),t.Y8G("database",e.database)("qid",e.qid)("ut",e.record.ut)("types",t.lJ4(11,wI))("langs",t.brH(2,7,e.record.names,!0,e.database))("authors",e.record.names)("contributors",e.record.contributors)}}function Vk(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-jcr-sidenav",123),t.bIt("navExpanded",function(r){t.eBV(e);const o=t.XpG(3);return t.Njj(o.updateNavStatus(r))}),t.k0s()}if(2&i){const e=t.XpG(3);t.Y8G("database",e.database)("qid",e.qid)("record",e.record)("SourceTitle",!0)("showIcon",!1)("largeSize",!1)}}function zk(i,n){if(1&i&&(t.j41(0,"span",124)(1,"h3",125),t.EFF(2),t.nI1(3,"dbvaluetranslate"),t.k0s(),t.j41(4,"span",113),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"volumeLabel")("id",e.taPrefix+"volumeLabel"),t.R7$(),t.JRh(t.i5U(3,7,"volumeLabel",e.database)),t.R7$(2),t.BMQ("aria-describedby",e.taPrefix+"volumeLabel")("data-ta",e.taPrefix+"volume")("id",e.taPrefix+"volume"),t.R7$(),t.JRh(e.record.pub_info.vol)}}function Qk(i,n){if(1&i&&(t.j41(0,"span",124)(1,"h3",125),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",113),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"issueLabel")("id",e.taPrefix+"issueLabel"),t.R7$(),t.JRh(t.bMT(3,6,"issueLabel")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"issue")("id",e.taPrefix+"issue"),t.R7$(),t.JRh(e.record.pub_info.issue)}}function Uk(i,n){if(1&i&&(t.j41(0,"span",124)(1,"h3",126),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",113),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"pagesLabel")("id",e.taPrefix+"pagesLabel"),t.R7$(),t.JRh(t.bMT(3,6,"pagesLabel")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"pageNo")("id",e.taPrefix+"pageNo"),t.R7$(),t.JRh(e.record.pub_info.page_no)}}function Jk(i,n){if(1&i&&(t.j41(0,"span",124)(1,"h3",126),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",113),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"supplementLabel")("id",e.taPrefix+"supplementLabel"),t.R7$(),t.JRh(t.bMT(3,6,"supplementLabel")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"supplement")("id",e.taPrefix+"supplement"),t.R7$(),t.JRh(e.record.pub_info.supplement)}}function Wk(i,n){if(1&i&&(t.j41(0,"span",124)(1,"h3",126),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",113),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"special-issueLabel")("id",e.taPrefix+"special-issueLabel"),t.R7$(),t.JRh(t.bMT(3,6,"special_issueLabel")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"special-issue")("id",e.taPrefix+"special-issue"),t.R7$(),t.JRh(e.record.pub_info.special_issue)}}function Kk(i,n){if(1&i&&(t.j41(0,"span",124)(1,"h3",126),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",113),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"partNoLabel")("id",e.taPrefix+"partNoLabel"),t.R7$(),t.JRh(t.bMT(3,6,"part_noLabel")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"partNo")("id",e.taPrefix+"partNo"),t.R7$(),t.JRh(e.record.pub_info.part_no)}}function Zk(i,n){if(1&i&&(t.j41(0,"span",124)(1,"h3",126),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",113),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.BMQ("data-ta",e.taPrefix+"meetingAbsLabel")("id",e.taPrefix+"meetingAbsLabel"),t.R7$(),t.JRh(t.bMT(3,6,"meetingAbsLabel")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"meetingAbs")("id",e.taPrefix+"meetingAbs"),t.R7$(),t.JRh(e.record.meetingAbs)}}function tF(i,n){1&i&&t.nrm(0,"span",133)}
1function eF(i,n){1&i&&(t.j41(0,"span"),t.nrm(1,"br"),t.k0s())}function nF(i,n){if(1&i&&(t.j41(0,"span")(1,"a",130),t.nrm(2,"span",131),t.k0s(),t.DNE(3,tF,1,0,"span",132)(4,eF,2,0,"span",24),t.k0s()),2&i){const e=n.$implicit,a=n.last,r=t.XpG(5);t.R7$(),t.FS9("href",e.external_link,t.B4B),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(6,Cd,r.record.ut,r.qid,r.record.doi)),t.BMQ("data-ta",r.taPrefix+"DOI")("id",r.taPrefix+"DOI"),t.R7$(),t.Y8G("ngIf",!a),t.R7$(),t.Y8G("ngIf",a)}}function iF(i,n){if(1&i&&(t.j41(0,"span"),t.DNE(1,nF,5,10,"span",51),t.k0s()),2&i){const e=t.XpG(4);t.R7$(),t.Y8G("ngForOf",e.doiExternalLinks)}}function aF(i,n){if(1&i&&t.nrm(0,"span",134),2&i){const e=t.XpG(4);t.Y8G("wosSearchHighlight",t.sMw(3,Cd,e.record.ut,e.qid,e.record.doi)),t.BMQ("data-ta",e.taPrefix+"DOI")("id",e.taPrefix+"DOI")}}function rF(i,n){if(1&i&&(t.j41(0,"div",127)(1,"h3",128),t.EFF(2,"DOI"),t.k0s(),t.DNE(3,iF,2,1,"span",129)(4,aF,1,7,"ng-template",null,1,t.C5r),t.k0s()),2&i){const e=t.sdS(5),a=t.XpG(3);t.R7$(),t.BMQ("data-ta",a.taPrefix+"DOILabel")("id",a.taPrefix+"DOILabel"),t.R7$(2),t.Y8G("ngIf","DRCI"==a.database&&a.doiExternalLinks.length>0)("ngIfElse",e)}}function oF(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h3",118),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",27),t.DNE(5,Vk,1,6,"app-jcr-sidenav",119),t.j41(6,"div",120)(7,"span",27),t.DNE(8,zk,6,10,"span",121)(9,Qk,6,8,"span",121)(10,Uk,6,8,"span",121)(11,Jk,6,8,"span",121)(12,Wk,6,8,"
1span",121)(13,Kk,6,8,"span",121)(14,Zk,6,8,"span",121)(15,rF,6,4,"div",122),t.k0s()()()()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("dir",e.auto),t.BMQ("data-ta",e.taPrefix+"sourceLabel")("id",e.taPrefix+"sourceLabel"),t.R7$(),t.JRh(t.bMT(3,15,"Source")),t.R7$(2),t.Y8G("ngClass","section-label-data"),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.titles?null:e.record.titles.source),t.R7$(2),t.Y8G("ngClass","section-label-data"),t.R7$(),t.Y8G("ngIf",e.record.pub_info.vol),t.R7$(),t.Y8G("ngIf",e.record.pub_info.issue),t.R7$(),t.Y8G("ngIf",e.record.pub_info.page_no),t.R7$(),t.Y8G("ngIf",e.record.pub_info.supplement),t.R7$(),t.Y8G("ngIf",e.record.pub_info.special_issue),t.R7$(),t.Y8G("ngIf",e.record.pub_info.part_no),t.R7$(),t.Y8G("ngIf",e.record.meetingAbs),t.R7$(),t.Y8G("ngIf",e.record.doi||e.doiExternalLinks.length>0)}}function sF(i,n){1&i&&t.nrm(0,"span",133)}function lF(i,n){if(1&i&&(t.j41(0,"span",105)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",138),t.EFF(5),t.k0s(),t.DNE(6,sF,1,0,"span",139),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG().$implicit,s=t.XpG(3);t.R7$(),t.BMQ("data-ta",s.taPrefix+"grantSouceLabel")("id",s.taPrefix+"grantSouceLabel"),t.R7$(),t.JRh(t.bMT(3,9,"grantSouceLabel")),t.R7$(2),t.Y8G("ngClass","section-label-data"),t.BMQ("lang",o)("id",s.taPrefix+"grantTitle-"+a)("data-ta",s.taPrefix+"grantTitle-"+a),t.R7$(),t.JRh(e.title),t.R7$(),t.Y8G("ngIf",!r)}}function cF(i,n){if(1&i&&(t.j41(0,"div",127),t.DNE(1,lF,7,11,"span",136),t.k0s()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngForOf",a.record.titles.grant_source[e])}}function dF(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,cF,2,1,"div",135),t.nI1(2,"languagesPipe"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.brH(2,1,e.record.titles.grant_source,!0,e.database))}}function uF(i,n){if(1&i&&(t.j41(0,"div",141)(1,"h3",142),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",143),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=t.XpG().$implicit,o=t.XpG(3);t.xc7("display",!e.superRecordCollection||e.superRecordCollection&&o.showRciSuperRecord?"grid":"none"),t.Y8G("ngClass",e.superRecordCollection&&"common-super-record-field"),t.R7$(),t.BMQ("data-ta",o.taPrefix+"bookSeriesLabel-"+a)("id",o.taPrefix+"bookSeriesLabel-"+a),t.R7$(),t.JRh(t.bMT(3,11,"bookSeriesLabel")),t.R7$(2),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(13,qo,o.record.ut,o.qid,e.title)),t.BMQ("lang",r)("data-ta",o.taPrefix+"bookSeries-"+a)("id",o.taPrefix+"bookSeries-"+a)}}function _F(i,n){if(1&i&&(t.j41(0,"div",127),t.DNE(1,uF,5,17,"div",140),t.k0s()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngForOf",a.record.titles.book_series[e])}}function pF(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,_F,2,1,"div",135),t.nI1(2,"languagesPipe"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.brH(2,1,e.record.titles.book_series,!0,e.database))}}function hF(i,n){if(1&i&&(t.j41(0,"div",141)(1,"h3",144),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",145),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=t.XpG().$implicit,o=t.XpG(3);t.xc7("display",!e.superRecordCollection||e.superRecordCollection&&o.showRciSuperRecord?"grid":"none"),t.Y8G("ngClass",e.superRecordCollection&&"common-super-record-field"),t.R7$(),t.BMQ("data-ta",o.taPrefix+"bookSubtitleLabel-"+a)("id",o.taPrefix+"bookSubtitleLabel-"+a),t.R7$(),t.JRh(t.bMT(3,10,"bookSubtitleLabel")),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(12,qo,o.record.ut,o.qid,e.title)),t.BMQ("lang",r)("data-ta",o.taPrefix+"bookSubtitle-"+a)("id",o.taPrefix+"bookSubtitle-"+a)}}function mF(i,n){if(1&i&&(t.j41(0,"div",127),t.DNE(1,hF,5,16,"div",140),t.k0s()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngForOf",a.record.titles.book_subtitle[e])}}function gF(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,mF,2,1,"div",135),t.nI1(2,"languagesPipe"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.brH(2,1,e.record.titles.book_subtitle,!0,e.database))}}function fF(i,n){if(1&i&&(t.j41(0,"div"),t.nrm(1,"app-full-record-authors",146),t.nI1(2,"languagesPipe"),t.nI1(3,"languagesPipe"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("database",e.database)("qid",e.qid)("ut",e.record.ut)("types",t.lJ4(15,MI))("langs",t.brH(2,7,e.record.names,!0,e.database))("authors",e.getAuthorsOfEditorRole(t.brH(3,11,e.record.names,!0,e.database)))("contributors",e.record.contributors)}}function bF(i,n){if(1&i&&(t.j41(0,"div",113)(1,"a",148),t.nI1(2,"translate"),t.nrm(3,"span",149),t.k0s(),t.j41(4,"a",148),t.nI1(5,"translate"),t.nrm(6,"span",149),t.k0s()()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.eq3(20,sn,o.database.toLowerCase()))("matTooltip",t.bMT(2,16,"authorAlt_assignee")+" "+a.name)("queryParams",o.getRouterParams(a.name,"AN")),t.BMQ("id",o.taPrefix+"assigneeName-"+r)("data-ta",o.taPrefix+"assigneeName-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(22,Rd,o.record.ut,o.qid,a.name)),t.BMQ("data-ta",o.taPrefix+"assigneeNameText-"+r)("id",o.taPrefix+"assigneeNameText-"+r),t.R7$(),t.Y8G("routerLink",t.eq3(26,sn,o.database.toLowerCase()))("matTooltip",t.bMT(5,18,"authorAlt_assigneeCode")+" "+a.code)("queryParams",o.getRouterParams(a.code,"AC")),t.BMQ("id",o.taPrefix+"assigneeCode-"+r)("data-ta",o.taPrefix+"assigneeCode-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(28,Rd,o.record.ut,o.qid,"("+o.getAssigneeCodeName(a.code)+")")),t.BMQ("data-ta",o.taPrefix+"assigneeCodeText-"+r)("id",o.taPrefix+"assigneeCodeText-"+r)}}function vF(i,n){if(1&i&&(t.j41(0,"div",113),t.nrm(1,"span",149)(2,"span",149),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(5,SI,o.record.ut,o.qid,a.name)),t.BMQ("data-ta",o.taPrefix+"assigneeName-"+r)("id",o.taPrefix+"assigneeName-"+r),t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(9,AI,o.record.ut,o.qid,"("+o.getAssigneeCodeName(a.code)+")")),t.BMQ("data-ta",o.taPrefix+"assigneeCode-"+r)}}function xF(i,n){if(1&i&&(t.qex(0),t.DNE(1,bF,7,32,"div",147)(2,vF,3,13,"ng-template",null,2,t.C5r),t.bVm()),2&i){const e=t.sdS(3),a=t.XpG(3);t.R7$(),t.Y8G("ngIf",a.buildSiloOneClickLink)("ngIfElse",e)}}function CF(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,xF,4,2,"ng-container",51),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("id",e.taPrefix+"assigneeNamesCodesLabel")("data-ta",e.taPrefix+"assigneeNamesCodesLabel"),t.R7$(),t.SpI(" ",t.bMT(3,4,"assigneeNamesCodesLabel"+(e.record.assignee_names_codes.length>1?"Plural":"Singular"))," "),t.R7$(3),t.Y8G("ngForOf",e.record.assignee_names_codes)}}function RF(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",145),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"panLabel")("id",e.taPrefix+"panLabel"),t.R7$(),t.JRh(t.bMT(3,6,"PAN_search_field_name")),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(8,EI,e.record.ut,e.qid,e.record.item.pan.substr(0,4)+"-"+e.record.item.pan.substr(4))),t.BMQ("data-ta",e.taPrefix+"pan")("id",e.taPrefix+"pan")}}function yF(i,n){if(1&i&&(t.j41(0,"div",150)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",151),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"itemUrlLabel")("id",e.taPrefix+"itemUrlLabel"),t.R7$(),t.JRh(t.bMT(3,6,"itemUrlLabel")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"itemUrl")("id",e.taPrefix+"itemUrl"),t.R7$(),t.JRh(e.itemUrl)}}function TF(i,n){if(1&i&&(t.j41(0,"a",153),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.FS9("href",e.sourceUrl,t.B4B),t.R7$(),t.JRh(e.sourceUrl)}}function IF(i,n){if(1&i&&(t.j41(0,"span",151),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.BMQ("data-ta",e.taPrefix+"sourceUrl")("id",e.taPrefix+"sourceUrl"),t.R7$(),t.JRh(e.sourceUrl)}}function kF(i,n){if(1&i&&(t.j41(0,"div",150)(1,"h3",137),t.EFF(2),t.nI1(3,"dbvaluetranslate"),t.k0s(),t.DNE(4,TF,2,2,"a",152)(5,IF,2,3,"ng-template",null,3,t.C5r),t.k0s()),2&i){const e=t.sdS(6),a=t.XpG(2);t.R7$(),t.BMQ("data-ta",a.taPrefix+"sourceUrlLabel")("id",a.taPrefix+"sourceUrlLabel"),t.R7$(),t.SpI("",t.i5U(3,5,"sourceUrlLabel",a.record.coll?a.record.coll:a.database)," "),t.R7$(2),t.Y8G("ngIf",a.enableHyperLink)("ngIfElse",e)}}function FF(i,n){if(1&i&&(t.j41(0,"div",150)(1,"h3",111),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",143),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"articleNumberLabel")("id",e.taPrefix+"articleNumberLabel"),t.R7$(),t.JRh(t.bMT(3,7,"articleNumberLabel")),t.R7$(2),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(9,PI,e.record.ut,e.qid,e.articleNumber)),t.BMQ("data-ta",e.taPrefix+"articleNumberValue")("id",e.taPrefix+"articleNumberValue")}}function wF(i,n){if(1&i&&(t.j41(0,"a",155),t.EFF(1),t.k0s()),2&i){const e=t.XpG().$implicit;t.Mz_("href","mailto:",e.external_link,"",t.B4B),t.R7$(),t.JRh(e.external_link)}}function MF(i,n){if(1&i&&(t.j41(0,"a",156),t.EFF(1),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.FS9("href",e.external_link,t.B4B),t.R7$(),t.JRh(a.getExternalURL(e.type,e.external_link))}}function SF(i,n){1&i&&t.nrm(0,"span",133)}
1function AF(i,n){if(1&i&&(t.qex(0),t.DNE(1,wF,2,3,"a",154)(2,MF,2,2,"ng-template",null,4,t.C5r)(4,SF,1,0,"span",139),t.bVm()),2&i){const e=n.last,a=t.sdS(3),r=t.XpG(3);t.R7$(),t.Y8G("ngIf",r.isExternalLinkEmail())("ngIfElse",a),t.R7$(3),t.Y8G("ngIf",!e)}}function EF(i,n){if(1&i&&(t.j41(0,"div",150)(1,"span",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,AF,5,3,"ng-container",51),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"ExternalLinks")("id",e.taPrefix+"ExternalLinks"),t.R7$(),t.JRh(e.isExternalLinkEmail()?t.bMT(3,4,"emailAddresses"):"URL"),t.R7$(3),t.Y8G("ngForOf",e.record.external_links)}}function PF(i,n){if(1&i&&(t.j41(0,"div",150)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",145),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"barticleNumberLabel")("id",e.taPrefix+"articleNumberLabel"),t.R7$(),t.JRh(t.bMT(3,6,"articleNumber")),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(8,qo,e.record.ut,e.qid,e.record.urn)),t.BMQ("data-ta",e.taPrefix+"articleNumber")("id",e.taPrefix+"articleNumber")}}function GF(i,n){if(1&i&&(t.j41(0,"div",150)(1,"h3",111),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",157),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"publishedLabel")("id",e.taPrefix+"publishedLabel"),t.R7$(),t.JRh(t.bMT(3,7,"publishedLabel")),t.R7$(2),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(9,yd,e.record.ut,e.qid,"true"===e.record.pub_info.pubyear_unknown?"Unknown":null!=e.dsiplayPubyear4PubdateCollections&&e.dsiplayPubyear4PubdateCollections.includes(e.record.coll)&&e.record.pub_info.pubyear?e.record.pub_info.pubyear:e.record.pub_info.pubdate)),t.BMQ("data-ta",e.taPrefix+"pubdate")("id",e.taPrefix+"pubdate")}}function DF(i,n){if(1&i&&(t.j41(0,"div",150)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",158),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"earlyAccessDateLabel")("id",e.taPrefix+"earlyAccessDateLabel"),t.R7$(),t.JRh(t.bMT(3,7,"earlyAccessDateLabel")),t.R7$(2),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(9,yd,e.record.ut,e.qid,e.record.pub_info.early_access_date)),t.BMQ("data-ta",e.taPrefix+"earlyAccess")("id",e.taPrefix+"earlyAccess")}}function $F(i,n){if(1&i&&(t.j41(0,"div",150)(1,"h3",111),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",159),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"indexedDateLabel")("id",e.taPrefix+"indexedDateLabel"),t.R7$(),t.JRh(t.bMT(3,7,"indexedDateLabel")),t.R7$(2),t.Y8G("ngClass","section-label-data"),t.BMQ("data-ta",e.taPrefix+"indexedDate")("id",e.taPrefix+"indexedDate"),t.R7$(),t.JRh(e.record.dates.availability_date.substring(0,10))}}function LF(i,n){if(1&i&&(t.j41(0,"div",150)(1,"h3",160),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"a",161),t.nI1(5,"translate"),t.nrm(6,"span",149),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"programName")("id",e.taPrefix+"programNameLabel"),t.R7$(),t.JRh(t.bMT(3,11,"programName")),t.R7$(2),t.FS9("cdxAnalyticsCategory","program_name"),t.Y8G("matTooltip",t.bMT(5,13,"programNameAlt"))("state",t.l_i(15,Td,e.database!==e.record.coll&&"ALLDB"===e.database,e.record.coll))("routerLink",t.eq3(18,sn,e.record.coll.toLowerCase()))("queryParams",e.getRouterParams(e.record.item.program_name,"PNA")),t.BMQ("data-ta",e.taPrefix+"programName")("id",e.taPrefix+"programName"),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(20,GI,e.record.ut,e.qid,e.record.item.program_name))}}function NF(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",143),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.R7$(),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(4,DI,r.record.ut,r.qid,r.addSemi(e,r.record.doctypes.length,a))),t.BMQ("data-ta",r.taPrefix+"doctype-"+a)("id",r.taPrefix+"doctype-"+a)}}function jF(i,n){if(1&i&&(t.j41(0,"div")(1,"h3",162),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",163),t.k0s()),2&i){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,4,"mediaSource")),t.R7$(2),t.Y8G("innerHTML",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog?null:e.record.item.bibliog.videog.videocol,t.npT),t.BMQ("data-ta",e.taPrefix+"mediaSource")("id",e.taPrefix+"mediaSource")}}function OF(i,n){if(1&i&&(t.j41(0,"div")(1,"h3",162),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",163),t.k0s()),2&i){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,4,"mediaType")),t.R7$(2),t.Y8G("innerHTML",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog?null:e.record.item.bibliog.videog.conttype,t.npT),t.BMQ("data-ta",e.taPrefix+"mediaType")("id",e.taPrefix+"mediaType")}}function BF(i,n){if(1&i&&(t.j41(0,"div")(1,"h3",162),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",163),t.k0s()),2&i){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,4,"duration")),t.R7$(2),t.Y8G("innerHTML",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog?null:e.record.item.bibliog.videog.duration,t.npT),t.BMQ("data-ta",e.taPrefix+"duration")("id",e.taPrefix+"duration")}}function YF(i,n){if(1&i&&(t.j41(0,"div")(1,"h3",162),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",163),t.k0s()),2&i){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,4,"displayDate")),t.R7$(2),t.Y8G("innerHTML",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog||null==e.record.item.bibliog.videog.pug||null==e.record.item.bibliog.videog.pug.pdt?null:e.record.item.bibliog.videog.pug.pdt.display_date,t.npT),t.BMQ("data-ta",e.taPrefix+"display_date")("id",e.taPrefix+"display_date")}}function XF(i,n){if(1&i&&(t.j41(0,"div")(1,"h3",162),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"span",163),t.k0s()),2&i){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,4,"DOI")),t.R7$(2),t.Y8G("innerHTML",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog||null==e.record.item.bibliog.videog.pug?null:e.record.item.bibliog.videog.pug.doi,t.npT),t.BMQ("data-ta",e.taPrefix+"doi")("id",e.taPrefix+"doi")}}function qF(i,n){if(1&i&&(t.j41(0,"div")(1,"h3",162),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"a",164),t.nI1(5,"translate"),t.nrm(6,"span",71),t.k0s()()),2&i){const e=t.XpG(4);t.R7$(2),t.JRh(t.bMT(3,7,"URL")),t.R7$(2),t.FS9("href",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog||null==e.record.item.bibliog.videog.pug?null:e.record.item.bibliog.videog.pug.url,t.B4B),t.Y8G("matTooltip",t.bMT(5,9,"inspec_media_urlLinkTooltip")),t.BMQ("data-ta","inspec_media_url-external-link"),t.R7$(2),t.Y8G("innerHTML",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog||null==e.record.item.bibliog.videog.pug?null:e.record.item.bibliog.videog.pug.url,t.npT),t.BMQ("data-ta",e.taPrefix+"mediaUrl")("id",e.taPrefix+"mediaUrl")}}function HF(i,n){if(1&i&&(t.qex(0),t.DNE(1,jF,5,6,"div",24)(2,OF,5,6,"div",24)(3,BF,5,6,"div",24)(4,YF,5,6,"div",24)(5,XF,5,6,"div",24)(6,qF,7,11,"div",24),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngIf",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog?null:e.record.item.bibliog.videog.videocol),t.R7$(),t.Y8G("ngIf",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog?null:e.record.item.bibliog.videog.conttype),t.R7$(),t.Y8G("ngIf",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog?null:e.record.item.bibliog.videog.duration),t.R7$(),t.Y8G("ngIf",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog||null==e.record.item.bibliog.videog.pug||null==e.record.item.bibliog.videog.pug.pdt?null:e.record.item.bibliog.videog.pug.pdt.display_date),t.R7$(),t.Y8G("ngIf",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog||null==e.record.item.bibliog.videog.pug?null:e.record.item.bibliog.videog.pug.doi),t.R7$(),t.Y8G("ngIf",null==e.record.item||null==e.record.item.bibliog||null==e.record.item.bibliog.videog||null==e.record.item.bibliog.videog.pug?null:e.record.item.bibliog.videog.pug.url)}}function VF(i,n){if(1&i&&(t.j41(0,"div",150)(1,"h3",111),t.EFF(2),t.nI1(3,"dbvaluetranslate"),t.k0s(),t.j41(4,"span"),t.DNE(5,NF,2,8,"ng-container",51)(6,HF,7,6,"ng-container",24),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"doctypeLabel")("id",e.taPrefix+"doctypeLabel"),t.R7$(),t.JRh(t.i5U(3,5,"docType",e.database)),t.R7$(3),t.Y8G("ngForOf",e.record.doctypes),t.R7$(),t.Y8G("ngIf",null==e.record.item||null==e.record.item.bibliog?null:e.record.item.bibliog.videog)}}function zF(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",131),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(3,$I,r.record.ut,r.qid,r.addSemi(e,r.record.item.DescriptorsData.DataTypeList.length,a))),t.BMQ("data-ta",r.taPrefix+"dataType-"+a)("id",r.taPrefix+"dataType-"+a)}}function QF(i,n){if(1&i&&(t.j41(0,"div",150)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,zF,2,7,"ng-container",51),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"dataTypeLabel")("id",e.taPrefix+"dataTypeLabel"),t.R7$(),t.JRh(t.bMT(3,4,"dataType")),t.R7$(3),t.Y8G("ngForOf",e.record.item.DescriptorsData.DataTypeList)}}function UF(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",105)(1,"h2",111),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"a",165),t.nI1(5,"translate"),t.bIt("click",function(r){t.eBV(e);const o=t.XpG(3);return r.preventDefault(),t.Njj(o.activateEcrLinkAndNavigate())})("keydown.enter",function(r){t.eBV(e);const o=t.XpG(3);return r.preventDefault(),t.Njj(o.activateEcrLinkAndNavigate())})("keydown.space",function(r){t.eBV(e);const o=t.XpG(3);return r.preventDefault(),t.Njj(o.activateEcrLinkAndNavigate())}),t.j41(6,"mat-icon",108),t.EFF(7,"arrow_downward"),t.k0s(),t.j41(8,"span",166),t.EFF(9),t.nI1(10,"translate"),t.k0s()()()}if(2&i){const e=t.XpG(3);t.R7$(),t.xc7("display","block"),t.BMQ("data-ta",e.taPrefix+"eccTitle")("id",e.taPrefix+"eccTitle"),t.R7$(),t.JRh(t.bMT(3,9,"indicateLabel")),t.R7$(2),t.Y8G("matTooltip",t.bMT(5,11,"jumpToEcr")),t.BMQ("id",e.taPrefix+"ecrCitedRef")("data-ta",e.taPrefix+"ecrCitedRef"),t.R7$(5),t.JRh(t.bMT(10,13,"ECR"))}}function JF(i,n){1&i&&(t.qex(0),t.DNE(1,UF,11,15,"div",29),t.nI1(2,"feature"),t.bVm()),2&i&&(t.R7$(),t.Y8G("ngIf",!t.bMT(2,1,"nxPresentationControl_FullRecord_Hide_EnrichedCitedReferencesButton")))}function WF(i,n){if(1&i){const e=t.RV6();t.j41(0,"div")(1,"div",167)(2,"h2",111),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"button",168),t.nI1(6,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.sdS(15);return t.Njj(r.open())}),t.j41(7,"mat-icon",108),t.EFF(8,"arrow_back"),t.k0s(),t.j41(9,"span",166),t.EFF(10),t.nI1(11,"translate"),t.k0s()()(),t.j41(12,"mat-sidenav-container",169),t.nI1(13,"async"),t.bIt("backdropClick",function(){t.eBV(e);const r=t.sdS(15);return t.Njj(r.close())}),t.j41(14,"mat-sidenav",170,5),t.bIt("keydown.escape",function(){t.eBV(e);const r=t.sdS(15);return t.Njj(r.close())}),t.j41(16,"app-full-record-peer-reviews",171),t.bIt("close",function(){t.eBV(e);const r=t.sdS(15);return t.Njj(r.close())}),t.k0s()()()()}if(2&i){const e=t.XpG(2);t.R7$(),t.BMQ("title",e.taPrefix+"OpenPeerReviewDialogBox"),t.R7$(),t.BMQ("data-ta",e.taPrefix+"peerReviewTitle")("id",e.taPrefix+"peerReviewTitle"),t.R7$(),t.SpI("",t.bMT(4,16,"openPeerReview"),"s"),t.R7$(2),t.Y8G("matTooltip",t.bMT(6,18,"openPeerReview")),t.BMQ("id",e.taPrefix+"peerReview")("data-ta",e.taPrefix+"peerReview"),t.R7$(5),t.JRh(t.bMT(11,20,"viewPeerReview")),t.R7$(2),t.Y8G("ngClass",t.eq3(24,LI,t.bMT(13,22,e.isMobile$)))("hasBackdrop",!0),t.R7$(2),t.Y8G("opened",e.openReview)("fixedTopGap",0)("fixedBottomGap",0)("fixedInViewport",!0)("autoFocus",!0),t.R7$(2),t.Y8G("record",e.record)}}function KF(i,n){if(1&i&&(t.j41(0,"div")(1,"div",172)(2,"h2",111),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"a",173),t.nI1(6,"translate"),t.nI1(7,"translate"),t.j41(8,"span",166),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"mat-icon",174),t.EFF(12,"open_in_new"),t.k0s()()()()),2&i){const e=n.ngIf,a=t.XpG(2);t.R7$(2),t.BMQ("data-ta",a.taPrefix+"pubPeerTitle")("id",a.taPrefix+"pubPeerTitle"),t.R7$(),t.JRh(t.bMT(4,9,"postPublicationPeerReviews")),t.R7$(2),t.Y8G("href",e.publisher_url,t.B4B)("matTooltip",t.bMT(6,11,"pubPeerLinkTooltip")),t.BMQ("id",a.taPrefix+"pubPeer
1Link")("data-ta",a.taPrefix+"pubPeerLink")("aria-label",t.bMT(7,13,"viewCommentsOnPubPeer")),t.R7$(4),t.JRh(t.bMT(10,15,"viewCommentsOnPubPeer"))}}function ZF(i,n){if(1&i&&(t.qex(0),t.nrm(1,"app-preprint-version-table",175),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("record",e.record)}}function tw(i,n){if(1&i&&(t.j41(0,"li")(1,"a",177),t.nI1(2,"translate"),t.nI1(3,"translate"),t.nI1(4,"translate"),t.nI1(5,"translate"),t.EFF(6),t.k0s()()),2&i){const e=n.$implicit,a=n.index,r=t.XpG(3);t.R7$(),t.FS9("href",e.external_link,t.B4B),t.Y8G("matTooltip",1===(null==r.record.external_links?null:r.record.external_links.length)?"PCI"===r.record.coll?t.bMT(2,4,"externalLink_pci_description"):t.bMT(3,6,"externalLink"):"PCI"===r.record.coll?t.bMT(4,8,"externalLink_pci_description"):t.bMT(5,10,"externalLinks")),t.BMQ("data-ta",r.taPrefix+"external_links-"+a),t.R7$(5),t.SpI(" ",e.external_link,"")}}function ew(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",105)(2,"h2",111),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.nI1(6,"translate"),t.nI1(7,"translate"),t.k0s(),t.j41(8,"span",176)(9,"ul"),t.DNE(10,tw,7,12,"li",51),t.k0s()()(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(2),t.BMQ("data-ta",e.taPrefix+"externalLinksTitle")("id",e.taPrefix+"externalLinks"),t.R7$(),t.JRh(1===(null==e.record.external_links?null:e.record.external_links.length)?"PCI"===e.record.coll?t.bMT(4,4,"externalLink_pci"):t.bMT(5,6,"externalLink"):"PCI"===e.record.coll?t.bMT(6,8,"externalLinks_pci"):t.bMT(7,10,"externalLinks")),t.R7$(7),t.Y8G("ngForOf",e.record.external_links)}}function nw(i,n){if(1&i&&(t.j41(0,"h2",32),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(6);t.BMQ("data-ta",e.taPrefix+"abstractTitle")("id",e.taPrefix+"abstractTitle"),t.R7$(),t.JRh(t.bMT(2,3,"abstract"))}}function iw(i,n){if(1&i&&(t.j41(0,"h3",111),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(4);t.BMQ("lang",e)("data-ta",a.taPrefix+"otherAbstract")("id",a.taPrefix+"otherAbstract"),t.R7$(),t.JRh(t.bMT(2,4,"otherAbstract"))}}function aw(i,n){if(1&i&&(t.j41(0,"h3",111),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(3).$implicit,a=t.XpG().$implicit,r=t.XpG
1(3);t.BMQ("lang",e)("data-ta",r.taPrefix+"NonBasicAbstract-"+a.key)("id",r.taPrefix+"NonBasicAbstract-"+a.key),t.R7$(),t.JRh(t.bMT(2,4,a.key+"_abstract"))}}function rw(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",184)(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",185),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"button",186),t.bIt("click",function(){t.eBV(e);const r=t.XpG(7);return t.Njj(r.togglePanel())}),t.EFF(8),t.nI1(9,"translate"),t.nI1(10,"translate"),t.j41(11,"mat-icon",187),t.EFF(12),t.k0s()()()}if(2&i){const e=t.XpG(7);t.R7$(2),t.JRh(t.bMT(3,6,"showDisclaimerText")),t.R7$(2),t.Y8G("hidden",!e.panelExpanded),t.BMQ("id",e.taPrefix+"hideDisclaimerText"),t.R7$(),t.JRh(t.bMT(6,8,"hideDisclaimerText")),t.R7$(3),t.SpI(" ",e.panelExpanded?t.bMT(10,12,"hideDisclaimer"):t.bMT(9,10,"showDisclaimer")," "),t.R7$(4),t.JRh(e.panelExpanded?"expand_less":"expand_more")}}function ow(i,n){if(1&i&&t.nrm(0,"div",188),2&i){const e=t.XpG(3).$implicit,a=t.XpG().$implicit,r=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(4,Id,r.record.ut,r.qid,a.value[e].copyright)),t.BMQ("data-ta",r.taPrefix+"copyright")("id",r.taPrefix+"copyright")("lang",e)}}function sw(i,n){if(1&i){const e=t.RV6();t.j41(0,"span",189)(1,"button",190),t.nI1(2,"translate"),t.bIt("click",function(r){t.eBV(e);const o=t.XpG(4).$implicit,s=t.XpG(3);return t.Njj(s.toggleExpand(r,o.key))}),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}if(2&i){t.XpG();const e=t.sdS(1),a=t.XpG(3).$implicit;t.R7$(),t.Y8G("matTooltip",t.bMT(2,2,null!=e.classList&&e.classList.contains("expanded")?"showLess":a.key.trim()+"_tooltip")),t.R7$(2),t.JRh(t.bMT(4,4,null!=e.classList&&e.classList.contains("expanded")?"showLess":a.key.trim()+"_showMore"))}}function lw(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",27,6),t.DNE(2,iw,3,6,"h3",179)(3,aw,3,6,"h3",179),t.j41(4,"span",33),t.DNE(5,rw,13,14,"div",180),t.j41(6,"div",181),t.nI1(7,"async"),t.nI1(8,"async"),t.bIt("translationClicked",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.translateAbstract())}),t.k0s(),t.DNE(9,ow,1,8,"div",182)(10,sw,5,6,"span",183),t.k0s()()}
1if(2&i){const e=t.sdS(1),a=t.XpG(2).$implicit,r=t.XpG().$implicit,o=t.XpG(3);t.Y8G("ngClass",t.l_i(18,NI,o.collapsibleAbstractTypes.includes(r.key),"basic"!==r.key)),t.R7$(2),t.Y8G("ngIf","other"===r.value[a].type),t.R7$(),t.Y8G("ngIf","basic"!==r.key&&"other"!==r.key),t.R7$(2),t.Y8G("ngIf","Y"===(null==r.value[a]?null:r.value[a].machine_translated)),t.R7$(),t.Y8G("dir",t.bMT(7,14,o.abstractTranslationStatus$)&&"ar"===(null==o.search.display||null==o.search.display.params?null:o.search.display.params.translatedLang)&&"ar"===a?"rtl":"ltr")("ngClass","section-label-data")("wosSearchHighlight",t.sMw(21,Id,o.record.ut,o.qid,r.value[a].abstract))("showTranslationButton",(null==o.search.display||null==o.search.display.params?null:o.search.display.params.translated)&&(null==o.record||null==o.record.abstract||null==o.record.abstract.basic||null==o.record.abstract.basic.en?null:o.record.abstract.basic.en.abstract)&&!(null!=o.record&&null!=o.record.abstract&&null!=o.record.abstract.basic&&o.record.abstract.basic[null==o.search.display||null==o.search.display.params?null:o.search.display.params.translatedLang]))("showTranslatingIcon",o.isTranslating&&"PENDING"===t.bMT(8,16,o.abstractTranslationStatus$)),t.BMQ("lang",a)("data-ta",o.taPrefix+"abstract-"+r.key)("id",o.taPrefix+"abstract-"+r.key),t.R7$(3),t.Y8G("ngIf",r.value[a].copyright),t.R7$(),t.Y8G("ngIf",o.collapsibleAbstractTypes.includes(r.key)&&!(null!=e.classList&&e.classList.contains("contracted")&&e.scrollHeight<=e.offsetHeight))}}function cw(i,n){if(1&i&&(t.qex(0),t.DNE(1,nw,3,5,"h2",40)(2,lw,11,25,"div",178),t.bVm()),2&i){const e=t.XpG().$implicit,a=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf","basic"===a.key),t.R7$(),t.Y8G("ngIf",a.value[e])}}function dw(i,n){if(1&i&&(t.j41(0,"div",27),t.DNE(1,cw,3,2,"ng-container",24),t.nI1(2,"async"),t.k0s()),2&i){const e=n.$implicit,a=t.XpG().$implicit,r=t.XpG
1(3);t.xc7("display",!a.value[e].superRecordCollection||a.value[e].superRecordCollection&&r.showRciSuperRecord?"grid":"none"),t.Y8G("ngClass",a.value[e].superRecordCollection&&"common-super-record-field")("ngClass",t.eq3(7,vd,"basic"===a.key)),t.R7$(),t.Y8G("ngIf",!(null!=a.value[e]&&a.value[e].smartTranslated&&!t.bMT(2,5,r.abstractTranslationStatus$)))}}function uw(i,n){if(1&i&&(t.qex(0),t.DNE(1,dw,3,9,"div",88),t.nI1(2,"async"),t.nI1(3,"languagesPipe"),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngForOf",t.iJd(3,3,t.ziG(9,xd,e.value,a.database,a.originalLang,t.bMT(2,1,a.abstractTranslationStatus$)?null==a.search.display||null==a.search.display.params?null:a.search.display.params.translatedLang:null)))}}function _w(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,uw,4,14,"ng-container",51),t.nI1(2,"keyvalue"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.i5U(2,1,e.record.abstract,e.orderOriginal))}}function pw(i,n){if(1&i&&(t.j41(0,"div",191)(1,"h3",192),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",151),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"CoiStatement")("id",e.taPrefix+"CoiStatementLabel"),t.R7$(),t.SpI(" ",t.bMT(3,6,"CoiStatement"),""),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"CoiStatement")("id",e.taPrefix+"CoiStatement"),t.R7$(),t.JRh(e.record.item.CoiStatement)}}function hw(i,n){1&i&&t.nrm(0,"span",133)}function mw(i,n){if(1&i&&(t.qex(0),t.j41(1,"span",113)(2,"a",193),t.nI1(3,"translate"),t.nrm(4,"span",149),t.k0s()(),t.DNE(5,hw,1,0,"span",139),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(3);t.R7$(2),t.Y8G("matTooltip",t.bMT(3,8,"dissertationAndThesisSubjectsAlt"))("routerLink",t.eq3(10,sn,o.record.coll.toLowerCase()))("queryParams",o.getRouterParams(e.gensubjvalue,"CLF"))("state",t.l_i(12,Td,o.database!==o.record.coll,o.record.coll)),t.BMQ("data-ta",o.taPrefix+"gensubjvalue-"+a)("id",o.taPrefix+"gensubjvalue-"+a),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(15,jI,o.record.ut,o.qid,e.gensubjvalue)),t.R7$(),t.Y8G("ngIf",!r)}}function gw(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h2",192),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,mw,6,19,"ng-container",51),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"dissertationAndThesisSubjects")("id",e.taPrefix+"dissertationAndThesisSubjects"),t.R7$(),t.JRh(t.bMT(3,4,"dissertationAndThesisSubjects")),t.R7$(3),t.Y8G("ngForOf",e.record.item.terms)}}function fw(i,n){1&i&&t.nrm(0,"span",133)}function bw(i,n){if(1&i&&(t.j41(0,"a",195),t.nI1(1,"translate"),t.j41(2,"span"),t.EFF(3),t.k0s(),t.DNE(4,fw,1,0,"span",139),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(3);t.FS9("href",e.download_url,t.B4B),t.Y8G("matTooltip",t.bMT(1,6,"documentationAbstractAlt")),t.R7$(2),t.BMQ("data-ta",o.taPrefix+"doc-abstract-"+a)("id",o.taPrefix+"doc-abstract-"+a),t.R7$(),t.JRh(e.item_desc),t.R7$(),t.Y8G("ngIf",!r)}}function vw(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,bw,5,8,"a",194),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"docummentAbstract")("id",e.taPrefix+"docummentAbstract"),t.R7$(),t.JRh(t.bMT(3,4,"documentationAbstract")),t.R7$(3),t.Y8G("ngForOf",e.pdfList)}}function xw(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",201),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e),t.XpG();const r=t.sdS(3);return t.Njj(r.open())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()}if(2&i){const e=t.XpG(3);t.Y8G("matTooltip",t.bMT(1,4,"patent_images_tooltip")),t.BMQ("data-ta",e.taPrefix+"imageLibrary-button")("id",e.taPrefix+"imageLibrary-button"),t.R7$(2),t.SpI("(",t.bMT(3,6,"patent_images_linktext"),")")}}function Cw(i,n){if(1&i){const e=t.RV6();t.j41(0,"div")(1,"mat-sidenav-container",196),t.bIt("backdropClick",function(){t.eBV(e);const r=t.sdS(3);return t.Njj(r.close())}),t.j41(2,"mat-sidenav",197,5),t.bIt("keydown.escape",function(){t.eBV(e);const r=t.sdS(3);return t.Njj(r.close())})("openedStart",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.openedStartOverlay())})("closedStart",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.closedStartOverlay())}),t.j41(4,"app-full-record-image-library",198),t.bIt("close",function(){t.eBV(e);const r=t.sdS(3);return t.Njj(r.close())}),t.k0s()()(),t.j41(5,"span",105)(6,"h3",137),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"span",33)(10,"span",199),t.EFF(11),t.k0s(),t.DNE(12,xw,4,8,"button",200),t.k0s()()()}if(2&i){const e=t.XpG(2);t.R7$(),t.Y8G("hasBackdrop",!0),t.R7$(),t.Y8G("fixedTopGap",0)("fixedBottomGap",0)("fixedInViewport",!0)("autoFocus",!0),t.R7$(2),t.Y8G("largeImages",e.largeImages)("smallImages",e.smallImages),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"imageLibrary")("id",e.taPrefix+"imageLibrary"),t.R7$(),t.JRh(t.bMT(8,12,"imageLibraryField")),t.R7$(4),t.SpI("",e.largeImages.length," "),t.R7$(),t.Y8G("ngIf",e.largeImages.length>0)}}function Rw(i,n){if(1&i&&(t.j41(0,"a",203),t.nI1(1,"translate"),t.nrm(2,"span",204),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.Y8G("matTooltip",t.bMT(1,8,"ipcAlt"))("routerLink",t.eq3(10,sn,o.database.toLowerCase()))("queryParams",o.getRouterParams(a,"IP")),t.BMQ("id",o.taPrefix+"DisplayName-"+a+"-"+r)("data-ta",o.taPrefix+"DisplayName-"+a+"-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(12,kd,o.record.ut,o.qid,a)),t.BMQ("data-ta",o.taPrefix+"ipcs-"+r)("id",o.taPrefix+"ipcs-"+r)}}function yw(i,n){if(1&i&&t.nrm(0,"span",205),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(3,kd,o.record.ut,o.qid,a)),t.BMQ("data-ta",o.taPrefix+"ipcs-"+r)("id",o.taPrefix+"ipcs-"+r)}}function Tw(i,n){if(1&i&&(t.j41(0,"span",113),t.EFF(1),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.R7$(),t.JRh(a.ipcDescription[e])}}function Iw(i,n){1&i&&t.nrm(0,"span",133)}
1function kw(i,n){if(1&i&&(t.qex(0),t.j41(1,"span"),t.DNE(2,Rw,3,16,"a",202)(3,yw,1,7,"ng-template",null,7,t.C5r)(5,Tw,2,1,"span",112),t.k0s(),t.DNE(6,Iw,1,0,"span",139),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=t.sdS(4),o=t.XpG(3);t.R7$(2),t.Y8G("ngIf",o.buildSiloOneClickLink)("ngIfElse",r),t.R7$(3),t.Y8G("ngIf",o.ipcDescription[e]),t.R7$(),t.Y8G("ngIf",!a)}}function Fw(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,kw,7,4,"ng-container",51),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"descriptorsLabel")("id",e.taPrefix+"descriptorsLabel"),t.R7$(),t.JRh(t.bMT(3,4,"IP_search_field_name")),t.R7$(3),t.Y8G("ngForOf",e.record.ipc)}}function ww(i,n){if(1&i&&(t.j41(0,"span",113)(1,"a",206),t.nI1(2,"translate"),t.nrm(3,"span",149),t.k0s(),t.j41(4,"span"),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.R7$(),t.Mz_("id","classCodesLink",r,""),t.Y8G("routerLink",t.eq3(11,sn,o.database.toLowerCase()))("matTooltip",t.bMT(2,9,"derwentClassCodesAlt"))("queryParams",o.getRouterParams(a.split("(")[0],"DC")),t.BMQ("id",o.taPrefix+"classCodeLink-"+r)("data-ta",o.taPrefix+"classCodesLink-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(13,OI,o.record.ut,o.qid,a.split("(")[0])),t.R7$(2),t.JRh(a.replace(a.split("(")[0],""))}}function Mw(i,n){if(1&i&&(t.j41(0,"span",113),t.nrm(1,"span",149),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(2,BI,a.record.ut,a.qid,e.split("(")[0])),t.R7$(2),t.JRh(e.replace(e.split("(")[0],""))}}function Sw(i,n){1&i&&t.nrm(0,"span",133)}function Aw(i,n){if(1&i&&(t.qex(0),t.DNE(1,ww,6,17,"span",147)(2,Mw,4,6,"ng-template",null,8,t.C5r)(4,Sw,1,0,"span",139),t.bVm()),2&i){const e=n.last,a=t.sdS(3),r=t.XpG(3);t.R7$(),t.Y8G("ngIf",r.buildSiloOneClickLink)("ngIfElse",a),t.R7$(3),t.Y8G("ngIf",!e)}}function Ew(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,Aw,5,3,"ng-container",51),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("id",e.taPrefix+"classCodesLabel")("data-ta",e.taPrefix+"classCodesLabel"),t.R7$(),t.JRh(t.bMT(3,4,"derwentClassCode")),t.R7$(3),t.Y8G("ngForOf",e.record.derwent_class_code)}}function Pw(i,n){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2).$implicit,a=t.XpG(3);t.R7$(),t.JRh(a.manualCodeDescription[e])}}function Gw(i,n){if(1&i&&(t.j41(0,"span",113)(1,"a",207),t.nI1(2,"translate"),t.nrm(3,"span",204),t.k0s(),t.DNE(4,Pw,2,1,"span",24),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.R7$(),t.Mz_("id","manualCodesLink",r,""),t.Y8G("routerLink",t.eq3(11,sn,o.database.toLowerCase()))("matTooltip",t.bMT(2,9,"derwentManualCodesAlt"))("queryParams",o.getRouterParams(a,"MAN")),t.BMQ("id",o.taPrefix+"manualCodesLink-"+r)("data-ta",o.taPrefix+"manualCodesLink-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(13,YI,o.record.ut,o.qid,a)),t.R7$(),t.Y8G("ngIf",o.manualCodeDescription[a])}}function Dw(i,n){if(1&i&&t.nrm(0,"span",131),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,XI,a.record.ut,a.qid,e))}}function $w(i,n){1&i&&t.nrm(0,"span",133)}function Lw(i,n){if(1&i&&(t.qex(0),t.DNE(1,Gw,5,17,"span",147)(2,Dw,1,5,"ng-template",null,9,t.C5r)(4,$w,1,0,"span",139),t.bVm()),2&i){const e=n.last,a=t.sdS(3),r=t.XpG(3);t.R7$(),t.Y8G("ngIf",r.buildSiloOneClickLink)("ngIfElse",a),t.R7$(3),t.Y8G("ngIf",!e)}}function Nw(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,Lw,5,3,"ng-container",51),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("id",e.taPrefix+"manualCodesLabel")("data-ta",e.taPrefix+"manualCodesLabel"),t.R7$(),t.JRh(t.bMT(3,4,"derwentManualCode")),t.R7$(3),t.Y8G("ngForOf",e.record.derwent_manual_code)}}function jw(i,n){if(1&i&&t.nrm(0,"app-generic-data-table",213),2&i){const e=t.XpG(3);t.Y8G("displayData",e.record.patent_details)("idPrefix","patentdetails")("showHeader",!0)("displayedColumns",e.tableViews.DIIDW.patent_details)("columnConfig",t.eq3(7,qI,t.lJ4(6,Ho)))("tableName","patent_details")}}function Ow(i,n){if(1&i&&t.nrm(0,"app-generic-data-table",214),2&i){const e=t.XpG(3);t.Y8G("displayData",e.record.application_details)("idPrefix","applicationdetails")("showHeader",!0)("displayedColumns",e.tableViews.DIIDW.application_details)("columnConfig",t.eq3(7,Fd,t.lJ4(6,Ho)))("tableName","application_details")}}function Bw(i,n){if(1&i&&t.nrm(0,"app-generic-data-table",215),2&i){const e=t.XpG(3);t.Y8G("displayData",e.record.further_application_details)("idPrefix","furtherapplicationdetails")("showHeader",!0)("displayedColumns",e.tableViews.DIIDW.further_application_details)("tableName","further_application_details")}}function Yw(i,n){if(1&i&&t.nrm(0,"app-generic-data-table",216),2&i){const e=t.XpG(3);t.Y8G("displayData",e.record.priority_info)("showHeader",!0)("displayedColumns",e.tableViews.DIIDW.priority_info)("columnConfig",t.eq3(6,Fd,t.lJ4(5,Ho)))("tableName","priority_info")}}function Xw(i,n){if(1&i&&t.nrm(0,"app-generic-data-table",217),2&i){const e=t.XpG(3);t.Y8G("displayData",e.record.designated_states)("showHeader",!0)("displayedColumns",e.tableViews.DIIDW.designated_states)("tableName","designated_states")}}function qw(i,n){if(1&i&&(t.qex(0),t.DNE(1,jw,1,9,"app-generic-data-table",208)(2,Ow,1,9,"app-generic-data-table",209)(3,Bw,1,5,"app-generic-data-table",210)(4,Yw,1,8,"app-generic-data-table",211)(5,Xw,1,4,"app-generic-data-table",212),t.bVm()),2&i){const e=t.XpG(2);
1t.R7$(),t.Y8G("ngIf",e.record.patent_details),t.R7$(),t.Y8G("ngIf",e.record.application_details),t.R7$(),t.Y8G("ngIf",e.record.further_application_details),t.R7$(),t.Y8G("ngIf",e.record.priority_info),t.R7$(),t.Y8G("ngIf",e.record.designated_states)}}function Hw(i,n){1&i&&t.nrm(0,"span",133)}function Vw(i,n){if(1&i&&(t.qex(0),t.nrm(1,"span",149),t.DNE(2,Hw,1,0,"span",139),t.bVm()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.XpG(3);t.R7$(),t.Y8G("wosSearchHighlight",t.sMw(4,HI,o.record.ut,o.qid,e)),t.BMQ("data-ta",o.taPrefix+"fos-"+a)("id",o.taPrefix+"fos-"+a),t.R7$(),t.Y8G("ngIf",!r)}}function zw(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,Vw,3,8,"ng-container",51),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"fosLabel")("id",e.taPrefix+"fosLabel"),t.R7$(),t.JRh(t.bMT(3,4,"fosLabel")),t.R7$(3),t.Y8G("ngForOf",e.record.field_of_search)}}function Qw(i,n){if(1&i&&t.nrm(0,"app-full-record-keywords",218),2&i){const e=t.XpG(2);t.Y8G("database",e.database)("qid",e.qid)("ut",e.record.ut)("originalLang",e.originalLang)("record",e.record)("buildSiloOneClickLink",e.buildSiloOneClickLink)}}function Uw(i,n){1&i&&t.nrm(0,"span",133)}function Jw(i,n){if(1&i&&(t.qex(0),t.j41(1,"span",113),t.EFF(2),t.k0s(),t.DNE(3,Uw,1,0,"span",139),t.bVm()),2&i){const e=n.$implicit,a=n.last;t.R7$(2),t.SpI(" ",e,""),t.R7$(),t.Y8G("ngIf",!a)}}function Ww(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h2",32),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,Jw,4,2,"ng-container",51),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"pqdt_authorKeyWords")("id",e.taPrefix+"pqdt_authorKeyWords"),t.R7$(),t.JRh(t.bMT(3,4,"authorKeyWords")),t.R7$(3),t.Y8G("ngForOf",e.record.item.pqdt_keywords)}}function Kw(i,n){if(1&i&&(t.j41(0,"h2",32),t.EFF(1),t.nI1(2,"dbvaluetranslate"),t.k0s()),2&i){const e=t.XpG(2);t.BMQ("data-ta",e.taPrefix+"authorInfo")("id",e.taPrefix+"authorInfo"),t.R7$(),t.JRh(t.i5U(2,3,"authorInfo",e.record.coll))}}function Zw(i,n){if(1&i&&(t.j41(0,"div",219),t.nrm(1,"app-full-record-author-item",220)(2,"app-full-record-author-item",221),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("type","reprint")("qid",e.qid)("record",e.record)("addresses",e.record.address_data.reprint_addresses.address),t.R7$(),t.Y8G("type","emails")("reprinAddress",null==e.record.address_data||null==e.record.address_data.reprint_addresses?null:e.record.address_data.reprint_addresses.address)("hasPreEmails",!1)("record",e.record)}}function tM(i,n){if(1&i&&(t.j41(0,"div",219),t.nrm(1,"app-full-record-author-item",222),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("type","emails")("addresses",null==e.record.address_data?null:e.record.address_data.address)("hasEmails",e.checkIfCitedauthEmailPresent())("record",e.record)}}function eM(i,n){if(1&i&&(t.qex(0),t.j41(1,"h3",223),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"a",224),t.nI1(5,"translate"),t.nrm(6,"span",149)(7,"br"),t.k0s(),t.bVm()),2&i){const e=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,5,"license_name")),t.R7$(2),t.Y8G("routerLink",t.eq3(9,sn,e.database.toLowerCase()))("queryParams",e.getRouterParams(e.record.item.license.lic_name,"LI"))("matTooltip",t.bMT(5,7,"licenseAlt_name")),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(11,VI,e.record.ut,e.qid,e.record.item.license.lic_name))}}function nM(i,n){if(1&i&&(t.qex(0),t.j41(1,"h3",223),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"a",225),t.EFF(5),t.k0s(),t.nrm(6,"br"),t.bVm()),2&i){const e=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,3,"license_uri")),t.R7$(2),t.FS9("href",null==e.record.item.license?null:e.record.item.license.lic_uri,t.B4B),t.R7$(),t.JRh(null==e.record.item.license?null:e.record.item.license.lic_uri)}}function iM(i,n){if(1&i&&(t.qex(0),t.j41(1,"h3",223),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",113),t.EFF(5),t.k0s(),t.bVm()),2&i){const e=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,2,"license_desc")),t.R7$(3),t.JRh(null==e.record.item.license?null:e.record.item.license.lic_desc)}}function aM(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h2",32),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",33),t.DNE(5,eM,8,15,"ng-container",24)(6,nM,7,5,"ng-container",24)(7,iM,6,4,"ng-container",24),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,4,"license")),t.R7$(3),t.Y8G("ngIf",null==e.record.item||null==e.record.item.license?null:e.record.item.license.lic_name),t.R7$(),t.Y8G("ngIf",null==e.record.item||null==e.record.item.license?null:e.record.item.license.lic_uri),t.R7$(),t.Y8G("ngIf",null==e.record.item||null==e.record.item.license?null:e.record.item.license.lic_desc)}}function rM(i,n){if(1&i&&t.nrm(0,"app-full-record-associated-data",226),2&i){const e=t.XpG(2);t.Y8G("searchInfo",e.associatedDataInfo)("database",e.database)}}function oM(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h2",32),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"div",227),t.k0s()),2&i){const e=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"dataAvailabilityStatement")),t.R7$(2),t.Y8G("innerHTML",e.record.data_availability_statement,t.npT)}}function sM(i,n){if(1&i&&t.nrm(0,"div",71),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.Y8G("innerHTML",a.COIStatement,t.npT),t.BMQ("id",o.taPrefix+"conflictOfInterest-"+r)("data-ta",o.taPrefix+"conflictOfInterest-"+r)}}function lM(i,n){if(1&i&&(t.qex(0),t.DNE(1,sM,1,3,"div",69),t.bVm()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.COIStatement)}}function cM(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h2",192),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",228),t.DNE(5,lM,2,1,"ng-container",51),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("data-ta",e.taPrefix+"conflictOfInterestLabel")("id",e.taPrefix+"conflictOfInterestLabel"),t.R7$(),t.JRh(t.bMT(3,4,"conflictOfInterest")),t.R7$(3),t.Y8G("ngForOf",null==e.record.item?null:e.record.item.COIStatements)}}function dM(i,n){if(1&i&&t.nrm(0,"app-full-record-categories-classification",229),2&i){const e=t.XpG(2);t.Y8G("database",e.database)("record",e.record)("qid",e.qid)("buildSiloOneClickLink",e.buildSiloOneClickLink)}}function uM(i,n){if(1&i&&t.nrm(0,"app-full-record-funding",230),2&i){const e=t.XpG(2);t.Y8G("record",e.record)("database",e.database)("qid",e.qid)("buildSiloOneClickLink",e.buildSiloOneClickLink)("showRciSuperRecord",e.showRciSuperRecord)}}function _M(i,n){if(1&i&&t.nrm(0,"app-full-record-hidden-section",231),2&i){const e=t.XpG(2);t.Y8G("record",e.record)("qid",e.qid)("database",e.database)("sort",e.sort)("doc",e.doc)("buildSiloOneClickLink",e.buildSiloOneClickLink)}}function pM(i,n){1&i&&t.nrm(0,"div",232)}function hM(i,n){if(1&i&&(t.j41(0,"div",19),t.nI1(1,"translate"),t.DNE(2,tk,13,14,"div",20)(3,ek,1,0,"hr",21)(4,nk,3,9,"div",22),t.nI1(5,"entitlements"),t.DNE(6,ik,3,6,"div",22)(7,hk,2,3,"div",23),t.nI1(8,"feature"),t.DNE(9,fk,2,1,"div",24)(10,xk,3,2,"div",25),t.j41(11,"div"),t.DNE(12,wk,5,15,"div",24),t.nI1(13,"feature"),t.DNE(14,Ak,3,2,"div",26),t.nrm(15,"hr",27),t.k0s(),t.DNE(16,Gk,2,1,"span",24)(17,Dk,6,13,"a",28),t.nI1(18,"entitlements"),t.DNE(19,Nk,7,5,"div",29)(20,Yk,6,6,"div",29)(21,Xk,3,13,"div",30)(22,qk,3,13,"div",24)(23,Hk,3,12,"div",24),t.j41(24,"div",31),t.nrm(25,"span",32),t.j41(26,"span",33),t.nrm(27,"app-full-record-author-identifiers",34),t.k0s()(),t.DNE(28,oF,16,17,"div",29),t.nI1(29,"feature"),t.j41(30,"div",35),t.DNE(31,dF,3,5,"div",24)(32,pF,3,5,"div",24)(33,gF,3,5,"div",24)(34,fF,4,16,"div",24)(35,CF,6,6,"div",29)(36,RF,5,12,"div",29)(37,yF,6,8,"div",36)(38,kF,7,8,"div",36)(39,FF,5,13,"div",36)(40,EF,6,6,"div",36)(41,PF,5,12,"div",36)(42,GF,5,13,"div",36),t.nI1(43,"feature"),t.DNE(44,DF,5,13,"div",36),t.nI1(45,"feature"),t.DNE(46,$F,6,9,"div",36)(47,LF,7,24,"div",36)(48,VF,7,8,"div",36)(49,QF,6,6,"div",36),t.k0s(),t.DNE(50,JF,3,3,"ng-container",24)(51,WF,17,26,"div",24),t.nI1(52,"async"),t.DNE(53,KF,13,17,"div",24),t.nI1(54,"async"),t.nrm(55,"app-full-record-conferences",37),t.DNE(56,ZF,2,1,"ng-container",24)(57,ew,11,12,"ng-container",24)(58,_w,3,4,"div",24)(59,pw,6,8,"div",38)(60,gw,6,6,"div",29)(61,vw,6,6,"div",29)(62,Cw,13,14,"div",24)(63,Fw,6,6,"div",29)(64,Ew,6,6,"div",29)(65,Nw,6,6,"div",29)(66,qw,6,5,"ng-container",24)(67,zw,6,6,"div",29)(68,Qw,1,6,"app-full-record-keywords",39)(69,Ww,6,6,"div",29),t.j41(70,"div",27),t.nI1(71,"feature"),t.DNE(72,Kw,3,6,"h2",40),t.nI1(73,"feature"),t.j41(74,"span",27),t.nI1(75,"feature"),t.DNE(76,Zw,3,8,"div",41),t.nI1(77,"feature"),t.nrm(78,"app-full-record-addresses-data",42),t.nI1(79,"feature"),t.DNE(80,tM,2,4,"div",41),t.nI1(81,"feature"),t.k0s()(),t.DNE(82,aM,8,6,"div",29)(83,rM,1,2,"app-full-record-associated-data",43)(84,oM,5,4,"div",29),t.nI1(85,"feature"),t.nI1(86,"feature"),t.DNE(87,cM,6,6,"div",29)(88,dM,1,4,"app-full-record-categories-classification",44)(89,uM,1,5,"app-full-record-funding",45)(90,_M,1,6,"app-full-record-hidden-section",46)(91,pM,1,0,"div",47),t.k0s()),2&i){const e=t.XpG();t.Y8G("dir",e.record.isArabicRecord?"rtl":null)("ngClass","cdx-full-record-top-border"),t.BMQ("aria-label",t.bMT(1,81,"fullRecordPage")),t.R7$(2),t.Y8G("ngIf",(null==e.superRecordRciList?null:e.superRecordRciList.length)>0),t.R7$(),t.Y8G("ngIf",(null==e.superRecordRciList?null:e.superRecordRciList.length)>0),t.R7$(),t.Y8G("ngIf",e.showWIPMsg&&!e.record.reference&&!t.bMT(5,83,e.record.coll)),t.R7$(2),t.Y8G("ngIf",e.showWIPMsg&&e.record.reference),t.R7$(),t.Y8G("ngIf",!t.bMT(8,85,"nxDisableRetraction")&&null!=e.record.retractionRetractedType&&e.record.related_records&&e.retractionsFilter().length>0),t.R7$(2),t.Y8G("ngIf","PPRN"===e.record.coll),t.R7$(),t.Y8G("ngIf",e.displayIconCollections.includes(e.record.coll)||e.displayDisclaimerCollections.includes(e.record.coll)),t.R7$(2),t.Y8G("ngIf",(null==e.record.titles?null:e.record.titles.item)&&!t.bMT(13,87,"enableProQuestFullText")),t.R7$(2),t.Y8G("ngIf",!(e.hideCitationNetworkCollections.includes(e.record.coll)&&"ALLDB"==e.database)&&!e.noCitationNetworkCollections.includes(e.record.coll)&&(null==e.record.citation_related?null:e.record.citation_related.counts[e.mostRelevantCitationDb])),t.R7$(),t.Y8G("ngClass","horizental-line-border"),t.R7$(),t.Y8G("ngIf",(null==e.record.related_records?null:e.record.related_records.length)>
10),t.R7$(),t.Y8G("ngIf",e.record.associated_data&&e.associatedDataInfo&&t.bMT(18,89,"DRCI")&&!e.nonAssociatedDataCollection.includes(e.databaseToUse)),t.R7$(2),t.Y8G("ngIf",e.showPatentFamilyButton||e.record.compounds||e.record.markush_number||e.record.derwent_compounds||e.record.derwent_registry),t.R7$(),t.Y8G("ngIf",!(e.record.names&&null!=e.record.names&&e.record.names.assignee)&&e.record.item&&e.record.item.Bibliographic&&e.record.item.Bibliographic.Patent&&e.record.item.Bibliographic.Patent.PatentAssignee),t.R7$(),t.Y8G("ngIf",e.record.names),t.R7$(),t.Y8G("ngIf",e.record.names&&!e.record.assignee_names_codes),t.R7$(),t.Y8G("ngIf",e.record.names),t.R7$(4),t.Y8G("qid",e.qid)("ut",e.record.ut)("contributors",e.record.contributors),t.R7$(),t.Y8G("ngIf",!t.bMT(29,91,"enableProQuestFullText")&&((null==e.record||null==e.record.titles?null:e.record.titles.source)||e.noSourceTitleRequiredForSourceSectionCollections.includes(null==e.record?null:e.record.coll)&&(e.record.pub_info.vol||e.record.pub_info.issue||e.record.pub_info.page_no||e.record.doi))),t.R7$(3),t.Y8G("ngIf",null==e.record.titles?null:e.record.titles.grant_source),t.R7$(),t.Y8G("ngIf",null==e.record.titles?null:e.record.titles.book_series),t.R7$(),t.Y8G("ngIf",null==e.record.titles?null:e.record.titles.book_subtitle),t.R7$(),t.Y8G("ngIf",e.re
1cord.names),t.R7$(),t.Y8G("ngIf",e.record.assignee_names_codes),t.R7$(),t.Y8G("ngIf",null==e.record.item?null:e.record.item.pan),t.R7$(),t.Y8G("ngIf",e.itemUrl),t.R7$(),t.Y8G("ngIf",e.sourceUrl),t.R7$(),t.Y8G("ngIf",e.articleNumber||e.articleNumber.length>0),t.R7$(),t.Y8G("ngIf",e.displayExternalLink()&&e.record.reference),t.R7$(),t.Y8G("ngIf",e.record.urn),t.R7$(),t.Y8G("ngIf",!t.bMT(43,93,"enableProQuestFullText")&&(null==e.record.pub_info?null:e.record.pub_info.pubdate)&&e.record.pub_info.pubdate.length>0&&!e.pubDateIgnoreList.includes(null==e.record.pub_info?null:e.record.pub_info.pubdate.toLowerCase())),t.R7$(2),t.Y8G("ngIf",!t.bMT(45,95,"enableProQuestFullText")&&(null==e.record.pub_info?null:e.record.pub_info.early_access_date)),t.R7$(2),t.Y8G("ngIf",null==e.record.dates?null:e.record.dates.availability_date),t.R7$(),t.Y8G("ngIf",null==e.record.item?null:e.record.item.program_name),t.R7$(),t.Y8G("ngIf",e.record.doctypes),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.item||null==e.record.item.DescriptorsData?null:e.record.item.DescriptorsData.DataTypeList),t.R7$(),t.Y8G("ngIf",(null==e.record.pub_info?null:e.record.pub_info.has_citation_context)&&"WOSCC"===e.database),t.R7$(),t.Y8G("ngIf",t.bMT(52,97,e.peerReviewExists$)),t.R7$(2),t.Y8G("ngIf",t.bMT(54,99,e.pubPeer$)),t.R7$(2),t.Y8G("record",e.record)("qid",e.qid)("database",e.database)("buildSiloOneClickLink",e.buildSiloOneClickLink),t.R7$(),t.Y8G("ngIf","PPRN"===e.record.coll&&(null==e.record.external_links?null:e.record.external_links.length)>0),t.R7$(),t.Y8G("ngIf",e.externalLinkCollections.includes(e.record.coll)&&(null==e.record.external_links?null:e.record.external_links.length)>
10),t.R7$(),t.Y8G("ngIf",e.record.abstract),t.R7$(),t.Y8G("ngIf",null==e.record.item?null:e.record.item.CoiStatement),t.R7$(),t.Y8G("ngIf",(null==e.record.item||null==e.record.item.terms?null:e.record.item.terms.length)>0),t.R7$(),t.Y8G("ngIf",e.pdfList&&e.pdfList.length>0),t.R7$(),t.Y8G("ngIf",e.largeImages&&e.largeImages.length>0),t.R7$(),t.Y8G("ngIf",(null==e.record.ipc?null:e.record.ipc.length)>0),t.R7$(),t.Y8G("ngIf",null==e.record?null:e.record.derwent_class_code),t.R7$(),t.Y8G("ngIf",null==e.record?null:e.record.derwent_manual_code),t.R7$(),t.Y8G("ngIf",1===(null==e.patentNumbers?null:e.patentNumbers.length)),t.R7$(),t.Y8G("ngIf",e.record.field_of_search),t.R7$(),t.Y8G("ngIf",e.record),t.R7$(),t.Y8G("ngIf",(null==e.record.item||null==e.record.item.pqdt_keywords?null:e.record.item.pqdt_keywords.length)>0),t.R7$(),t.Y8G("ngClass",t.eq3(117,vd,e.displayAuthorInfo()&&!t.bMT(71,101,"nxPresentationControl_FullRecord_Hide_AuthorInformation"))),t.R7$(2),t.Y8G("ngIf",e.displayAuthorInfo()&&!t.bMT(73,103,"nxPresentationControl_FullRecord_Hide_AuthorInformation")),t.R7$(2),t.Y8G("ngClass",t.eq3(119,mI,e.displayAuthorInfo()&&!t.bMT(75,105,"nxPresentationControl_FullRecord_Hide_AuthorInformation"))),t.R7$(2),t.Y8G("ngIf",e.re
1cord&&(null==e.record.address_data?null:e.record.address_data.reprint_addresses)&&!t.bMT(77,107,"nxPresentationControl_FullRecord_Hide_AuthorInformation")),t.R7$(2),t.Y8G("qid",e.qid)("ut",e.record.ut)("record",e.record)("events",e.openAddressesEventsSubject.asObservable())("infoLabel",e.displayAuthorInfo()&&!t.bMT(79,109,"nxPresentationControl_FullRecord_Hide_AuthorInformation"))("addressesToShow",e.addressesToShow),t.R7$(2),t.Y8G("ngIf",e.checkIfCitedauthEmailPresent()&&!t.bMT(81,111,"nxPresentationControl_FullRecord_Hide_AuthorInformation")),t.R7$(2),t.Y8G("ngIf",null==e.record.item?null:e.record.item.license),t.R7$(),t.Y8G("ngIf",e.record.associated_data&&e.associatedDataInfo),t.R7$(),t.Y8G("ngIf",e.record.data_availability_statement&&t.bMT(85,113,"nxEnableDataAvailabilityStatement")&&!t.bMT(86,115,"nxPresentationControl_Hide_DataAvailabilityStatement")),t.R7$(3),t.Y8G("ngIf",null==e.record.item?null:e.record.item.COIStatements),t.R7$(),t.Y8G("ngIf",e.showDocumentInformation&&e.record),t.R7$(),t.Y8G("ngIf",e.record&&e.record.fund_ack),t.R7$(),t.Y8G("ngIf",e.re
1cord&&e.showDocumentInformation&&(!e.record.doctypes||"CITED-REFERENCE"!==e.record.doctypes[0])),t.R7$(),t.Y8G("ngIf",!e.showDocumentInformation)}}function mM(i,n){if(1&i&&t.nrm(0,"app-generic-data-table",236),2&i){const e=t.XpG(2);t.Y8G("displayData",e.record.compounds)("idPrefix","compounds")("showHeader",!0)("displayedColumns",e.tableViews.DIIDW.compounds)("tableName","compounds")("columnConfig",t.eq3(9,QI,t.l_i(6,zI,e.record.ut,e.qid)))}}function gM(i,n){if(1&i&&t.nrm(0,"app-generic-data-table",215),2&i){const e=t.XpG(2);t.Y8G("displayData",e.record.markush_number)("idPrefix","markushnumber")("showHeader",!0)("displayedColumns",e.tableViews.DIIDW.markush_number)("tableName","markush_number")}}function fM(i,n){if(1&i&&(t.j41(0,"span",113)(1,"a",148),t.nI1(2,"translate"),t.nrm(3,"span",149),t.k0s()()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.eq3(8,sn,o.database.toLowerCase()))("matTooltip",t.bMT(2,6,"ringIndexNumberAlt"))("queryParams",o.getRouterParams(a,"RIN")),t.BMQ("id",o.taPrefix+"ringIndexNumber-"+r)("data-ta",o.taPrefix+"ringIndexNumber-"+r),t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(10,wd,o.record.ut,o.qid,a))}}function bM(i,n){if(1&i&&t.nrm(0,"span",149),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.Y8G("wosSearchHighlight",t.sMw(1,wd,a.record.ut,a.qid,e))}}function vM(i,n){1&i&&t.nrm(0,"span",133)}function xM(i,n){if(1&i&&(t.qex(0),t.DNE(1,fM,4,14,"span",147)(2,bM,1,5,"ng-template",null,10,t.C5r)(4,vM,1,0,"span",139),t.bVm()),2&i){const e=n.last,a=t.sdS(3),r=t.XpG(3);t.R7$(),t.Y8G("ngIf",r.buildSiloOneClickLink)("ngIfElse",a),t.R7$(3),t.Y8G("ngIf",!e)}}function CM(i,n){if(1&i&&(t.j41(0,"div",105)(1,"h3",137),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",33),t.DNE(5,xM,5,3,"ng-container",51),t.k0s()()),2&i){const e=t.XpG(2);t.R7$(),t.BMQ("id",e.taPrefix+"ringIndexNumberLabel")("data-ta",e.taPrefix+"ringIndexNumberLabel"),t.R7$(),t.JRh(t.bMT(3,4,"ringIndexNumberLabel")),t.R7$(3),t.Y8G("ngForOf",e.record.ring_index_number)}}function RM(i,n){if(1&i&&t.nrm(0,"app-generic-data-table",236),2&i){const e=t.XpG(2);t.Y8G("displayData",e.record.derwent_compounds)("idPrefix","derwent_compounds")("showHeader",!0)("displayedColumns",e.tableViews.DIIDW.derwent_compounds)("tableName","derwent_compounds")("columnConfig",t.eq3(6,UI,e.buildcolumnConfig("DCN","derwentCompoundAlt",e.database.toLowerCase(),e.record.ut,e.qid)))}}function yM(i,n){if(1&i&&t.nrm(0,"app-generic-data-table",236),2&i){const e=t.XpG(2);t.Y8G("displayData",e.record.derwent_registry)("idPrefix","derwent_registry")("showHeader",!0)("displayedColumns",e.tableViews.DIIDW.derwent_registry)("tableName","derwent_registry")("columnConfig",t.eq3(6,JI,e.buildcolumnConfig("DRN","derwentRegistryAlt",e.database.toLowerCase(),e.record.ut,e.qid)))}}function TM(i,n){if(1&i&&(t.j41(0,"div",233)(1,"h2",234),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,mM,1,11,"app-generic-data-table",235)(5,gM,1,5,"app-generic-data-table",210)(6,CM,6,6,"div",29)(7,RM,1,8,"app-generic-data-table",235)(8,yM,1,8,"app-generic-data-table",235),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"chemical-info-title")("id",e.taPrefix+"chemical-info-title"),t.R7$(),t.JRh(t.bMT(3,8,"chemical-info")),t.R7$(2),t.Y8G("ngIf",e.re
1cord.compounds),t.R7$(),t.Y8G("ngIf",e.record.markush_number),t.R7$(),t.Y8G("ngIf",(null==e.record.ring_index_number?null:e.record.ring_index_number.length)>0),t.R7$(),t.Y8G("ngIf",e.record.derwent_compounds),t.R7$(),t.Y8G("ngIf",e.record.derwent_registry)}}function IM(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-journal-info-card",237),t.bIt("navExpanded",function(r){t.eBV(e);const o=t.XpG();return t.Njj(o.updateNavStatus(r))}),t.k0s()}if(2&i){const e=t.XpG();t.Y8G("database",e.database)("qid",e.qid)("record",e.record)}}let kM=(()=>{class i extends Be.${constructor(e,a,r,o,s,l,c,d,u,_,h){super(d,s),this.store=e,this.config=a,this.dialog=r,this.languagesPipe=o,this.route=l,this.searchAidService=c,this.render=u,this.sanitizer=_,this.storage=h,this.navExpanded=new t.bkB,this.ecrActivatedChange=new t.bkB,this.viewSubviewRequested=new t.bkB,this.openAddressesEventsSubject=new za.B,this.openAllAddresses=!1,this.externalLinkCollections=this.config.getSettings().app.fullRecord.externalLinkCollections,this.addressesToShow=this.config.getSettings().app.fullRecord.authorAddressCount,this.retractionTypes=this.config.getSettings().app.fullRecord.retractionTypes,this.pubDateIgnoreList=this.config.getSettings().app.fullRecord.pubDateIgnoreList,this.nonAssociatedDataCollection=this.config.getSettings().app.summary.nonAssociatedDataCollection,this.superRecordRegionalCollections=this.config.getSettings().app.fullRecord.superRecordRegionalCollections,this.hideCitationNetworkCollections=this.config.getSettings().app.fullRecord.hideCitationNetworkCollections,this.noCitationNetworkCollections=this.config.getSettings().app.fullRecord.noCitationNetworkCollections,this.tableViews=this.config.getSettings().app.fullRecord.tableViews,this.showWIPMsg=!0,this.panelExpanded=!1,this.buildSiloOneClickLink=!1,this.sourceLangSortDBs=this.config.getSettings().app.summary.sourceLangSortDBs,this.citedRefExternalLinkType=["email","uri","other","ftp"],this.taPrefix="FullRTa-",this.ecrLinkActivated=!1,this.enableHyperLink=!1,this.selectedValue="",this.doiExternalLinks=[],this.articleNumber="",this.patentFamilyCollections=this.config.getSettings().app.fullRecord.patentFamilyCollections,this.showPatentFamilyButton=!1,this.nonJournalCardCollections=this.config.getSettings().app.fullRecord.nonJournalCardCollections,this.hideDocumentInformationCollections=this.config.getSettings().app.fullRecord.hideDocumentInformationCollections,this.dsiplayPubyear4PubdateCollections=this.config.getSettings().app.fullRecord.dsiplayPubyear4PubdateCollections,this.showDocumentInformation=!0,this.showJournalCard=!0,this.hideAbstracts=!0,this.collapsibleAbstractTypes=["abstract_phoenix","abstract_legacy","abstract_tech","abstract_extension","abstract_phoenix_equivalent","abstract_legacy_equivalent"],this.searchAidParams={database:"",name:"",type:"",searchAidString:""},this.manualCodeDescription={},this.ipcDescription={},this.largeImages=[],this.smallImages=[],this.pdfList=[],this.derwentAPISupportedCollections=this.config.getSettings().app.fullRecord.derwentAPISupportedCollections,this.showRciSuperRecord$=new y1.m(1),this.retractions=[],this.displayIconCollections=this.config.getSettings().app.summary.displayIconCollections,this.displayDisclaimerCollections=this.config.getSettings().app.summary.displayDisclaimerCollections,this.noSourceTitleRequiredForSourceSectionCollections=this.config.getSettings().app.fullRecord.noSourceTitleRequiredForSourceSectionCollections,this.useLinks4ProQuestFulltext=!0,this.proQuestFullTextLink=this.sanitizer.bypassSecurityTrustResourceUrl("https://www.proquest.com/docview/3332989775/embedded/YY97K9QG7YLSRWA6"),this.showRciSuperRecord$.next(!0),this.setShowRciSuperRecord(this.storage.get("showRciSuperRecord"))}ngAfterViewInit(){i.scrollToPart&&(this.scrollTo(i.scrollToPart),i.scrollToPart=null)}ngOnInit(){this.record?.coll&&(this.collection="WOS"===this.record.coll?"WOSCC":this.record.coll,this.store.select(B.IH,{collection:this.collection}).subscribe(e=>this.mostRelevantCitationDb=e).unsubscribe()),this.assignPubPeer()}assignPubPeer(){this.record?.ut&&(this.pubPeer$=this.store.select(B.GZ,{db:this.database,ut:this.record.ut}).pipe((0,Ft.p)(e=>!!e),(0,nn.T)(e=>{if(this.useLinks4ProQuestFulltext){let r=e.find(o=>"ProQuest_DissTheses"===o.publisher_id)?.publisher_url;r&&(r=r.replace("http:","https:"),this.proQuestFullTextLink=this.sanitizer.bypassSecurityTrustResourceUrl(r))}const a=e.find(r=>"PubPeer"===r.publisher_id);if(a)return{...a,publisher_url:K.Y.rewriteUrlForProxy(this.config,a.publisher_url)}}),(0,Ee.Q)(this.destroyed$)))}ngOnChanges(e){let a,r,o;if(e.record&&this.record?.ut&&(this.proQuestFullTextLink=this.sanitizer.bypassSecurityTrustResourceUrl("https://www.proquest.com/docview/3332989775/embedded/YY97K9QG7YLSRWA6"),this.assignPubPeer()),this.titleTranslationToggleVal$=this.store.select(B.v3({qid:this.qid})),this.titleTranslationStatus$=this.store.select(B.Xq({qid:this.search.id})),this.abstractTranslationStatus$=this.store.select(B.En({qid:this.search.id,sort:this.sort,docNum:this.doc})),this.sourceUrl="",this.itemUrl="",this.enableHyperLink=!1,this.articleNumber="",this.doiExternalLinks=[],this.manualCodeDescription={},this.openReview=!1,this.route.queryParams.subscribe(l=>{this.openReview="doi"===l.type}),this.originalRecord=this.record,e.record&&this.record&&this.record.coll){this.superRecordRciList=[],this.collection=this.record.coll,this.buildSiloOneClickLink="ALLDB"!==this.database&&(this.database===this.record.coll||"WOS"===this.record.coll&&"WOSCC"===this.database);for(const l of this.superRecordRegionalCollections)this.record.item&&this.record.item[`super_record_${l}`]&&this.superRecordRciList.push(l)}if(this.record.associated_data&&this.store.select(B.zg).subscribe(l=>{l?.DRCI&&this.store.select(B.ps,{queryId:this.qid,sort:this.sort,doc:this.doc}).pipe((0,Ee.Q)(this.destroyed$)).subscribe(c=>{c?.associatedData&&(this.associatedDataInfo=c.associatedData)})}).unsubscribe(),e.record&&this.record?.titles?.item&&(this.originalLang=this.sourceLangSortDBs.includes(this.database)?K.Y.getOriginalLanguages(this.record.titles.item):void 0),e.record&&this.record?.identifiers?.length>0){o=this.record?.identifiers.filter(c=>"art_no"===c.type);let l="";o?.length>
10&&(o.forEach(function(c){l.length>0&&(l+="; "),l+=c.value.replace("ARTN ","")}),this.articleNumber=l)}if(e.record&&this.record?.item?.Bibliographic?.urls?.url_spec?.length>0&&(a=this.record.item.Bibliographic.urls.url_spec.filter(l=>"item"===l.url.type),r=this.record.item.Bibliographic.urls.url_spec.filter(l=>"source"===l.url.type),a?.length>0&&(this.itemUrl=a[0].url.url+" [viewed "+a[0].url.date+"]"),r?.length>0&&(this.sourceUrl=r[0].url.url)),e.record&&this.record?.item?.Bibliographic?.urls&&this.record?.item?.Bibliographic?.urls[0]?.url&&(a=this.record.item.Bibliographic.urls.filter(l=>"item"===l.url.type),r=this.record.item.Bibliographic.urls.filter(l=>"source"===l.url.type),a?.length>0&&(this.itemUrl=a[0].url.url),r?.length>0&&(this.sourceUrl=r[0].url.url)),e.record&&this.record.external_links?.length>0&&(r=this.record.external_links.filter(l=>"source_url"===l.type),r.length>0&&(this.sourceUrl=r[0].external_link,this.enableHyperLink=!0),this.doiExternalLinks=this.record.external_links.filter(l=>"doi"===l.type)),this.record?.derwent_manual_code&&this.getSearchAidValue("DIIDW","manual_codes","search",this.record.derwent_manual_code).subscribe(l=>{this.manualCodeDescription=l,this.change.detectChanges()}),this.record?.ipc&&this.getSearchAidValue("DIIDW","ipcc","search",this.record.ipc).subscribe(l=>{this.ipcDescription=l,this.change.detectChanges()}),this.updateRecord(this.selectedValue?this.selectedValue:"en"),this.patentNumbers=this.record?.identifiers?.filter(l=>"patent_no"===l.type),(!this.patentNumbers||0===this.patentNumbers.length)&&this.record?.item?.Bibliographic?.Patent?.PatentNumber&&(this.patentNumbers=[{type:null,value:this.record.item.Bibliographic.Patent.PatentNumber}]),this.derwentAPISupportedCollections.includes(this.record.coll)){if(e.record&&(!e.record.previousValue||e.record.previousValue.ut!==e.record.currentValue.ut)&&(this.largeImages=[],this.smallImages=[],this.pdfList=[],this.patentNumbers.length>0)){const c=this.patentNumbers[0].value.replace(" ","");this.store.dispatch(new ii.GD.J1({patentNumber:c})),this.store.select(ii.Fn,{patentNumber:c}).pipe((0,Ee.Q)(this.destroyed$),(0,Ft.p)(d=>!!d)).subscribe(d=>{this.largeImages=d.imageUrl?.large,this.smallImages=d.imageUrl?.small,this.pdfList=d.pdfUrl,this.change.detectChanges()})}}else this.largeImages=[],this.smallImages=[],this.pdfList=[];this.databaseToUse=this.database,"ALLDB"===this.database&&this.record.coll&&(this.databaseToUse=this.record.coll),this.showJournalCard=!this.nonJournalCardCollections.includes(this.databaseToUse)&&!this.record.doctypes?.includes("Patent"),this.showDocumentInformation=!this.hideDocumentInformationCollections.includes(this.databaseToUse),this.showPatentFamilyButton=this.patentFamilyCollections.includes(this.databaseToUse)&&this.patentNumbers.length>1,this.peerReviewContent$=this.store.select(B.YA,{peerReviewContentId:this.record.ut}),this.peerReviewExists$=this.peerReviewContent$.pipe((0,Ft.p)(l=>!!l),(0,nn.T)(l=>l.reviews.length>0||l.authorResponses.length>0||l.decisionLetters.length>0))}togglePanel(){this.panelExpanded=!this.panelExpanded}showCitedDialog(e){this.dialog.open(T1.X,{height:"auto",width:"530px",data:{database:this.database,id:this.record.id,citeTypeKey:e,category:this.record.category_info?.esi_category}})}updateNavStatus(e){this.navExpanded.emit(e)}activateEcrLinkAndNavigate(){this.ecrLinkActivated=!0,this.ecrActivatedChange.emit(!0),setTimeout(()=>{this.goToElement("FRMiniCrlTa-snMcrl-citedReferencesHeading")},100),setTimeout(()=>{this.ecrLinkActivated=!1,this.ecrActivatedChange.emit(!1)},5e3)}openAddressView(e){this.openAddressesEventsSubject.next(e)}cacheCitingMetadata(){this.store.dispatch(new B.IV._A({database:this.database,records:{[this.record.ut]:this.record}}))}addSemi(e,a,r){return r<a-1?e+"; ":e}setShowRciSuperRecord(e){this.showRciSuperRecord=null===e||e,null===e&&this.storage.persist("showRciSuperRecord",this.showRciSuperRecord)}displayAuthorInfo(){return!!(this.record&&this.record.address_data&&this.record.address_data.address?.length>0&&(this.record.address_data.address[0]?.address_spec.full_address||this.record.address_data.address[0]?.address_spec.email_addr)||this.record&&this.record.address_data?.reprint_addresses&&this.record.address_data?.reprint_addresses.address?.length>0||this.record&&this.record.names?.author&&this.checkIfCitedauthEmailPresent())}getAuthorsOfEditorRole(e){const a={editor:{}};if(!e||0===e.length||!this.record.names)return a;const r=this.record.names[e[0]];return Object.keys(this.record.names[e[0]]).reduce((l,c)=>{const d=r[c].filter(u=>"ED"===u?.extended_role);return d.length>0&&(l.editor[c]=d),l},a)}getExternalURL(e,a){return!["uri","other"].includes(e)||a.startsWith("http://")||a.startsWith("https://")?a:"http://"+a}isExternalLinkEmail(){return this.record?.external_links?.filter(e=>"email"===e.type).length>0}displayExternalLink(){return this.record?.external_links?.length>0&&this.record.external_links.filter(e=>this.citedRefExternalLinkType.includes(e.type)).length>0}checkIfCitedauthEmailPresent(){let e=0;if(this.record.names?.author){const a=this.record.names.author;
1Object.keys(a).forEach(r=>{a[r].forEach(o=>{null!==o&&o.email_addr&&e++})})}return e>0}getDisplayTitle(e){return K.Y.normalizeTitleForDisplay(e)}updateRecord(e){if("ARCI"===this.record.coll||"ARCI"===this.database){if(this.selectedValue=e,"ar"===e)return this.buildArciRecord(this.originalRecord);if("en"===e)return this.buildArciRecordEnglish(this.originalRecord)}}translateTitle(e){const a=e.checked?this.search.display?.params?.translatedLang:"en";if("en"===a)this.store.dispatch(new B.IV.gC({qid:this.qid,sort:this.sort,language:a,requestType:Tn.Zg.TITLES,requestItems:[]})),this.change.detectChanges();else{let r=K.Y.createTitleTranslationRequest(Array.of(this.record),a,null,this.doc);this.store.dispatch(new B.IV.gC({qid:this.qid,sort:this.sort,language:a,requestType:Tn.Zg.TITLES,requestItems:r})),this.change.detectChanges()}}buildArciRecord(e){const a=K.Y.deepCopy(e);let r;a.isArabicRecord=!0,delete a.keywordslist?.en,delete a.titles?.source?.en,e?.names?.author?.ar&&(a.names.author={ar:this.mergeLangAuthors(a.names.author,"ar")}),e.abstract?.basic&&(e.abstract.basic.ar?a.abstract.basic={ar:e.abstract.basic.ar}:delete a.abstract.basic),e.titles?.item&&(e.titles.item.ar?a.titles.item={ar:e.titles.item.ar}:delete a.titles.item),r=a.addresses?.filter(function(o){return"ar"===o[0]?.lang_id}),a.addresses=r,this.record=a}buildArciRecordEnglish(e){const a=K.Y.deepCopy(e);let r;a.isArabicRecord=!1,delete a.abstract?.basic?.ar,delete a.titles?.source?.ar,delete a.keywordslist?.ar,delete a.titles?.item?.ar,e?.names?.author?.en&&(a.names.author={en:this.mergeLangAuthors(a.names.author,"en")}),a.titles?.item&&0===Object.keys(a.titles.item).length&&delete a.titles.item,a.abstract?.basic&&0===Object.keys(a.abstract.basic).length&&delete a.abstract.basic,r=a.addresses?.filter(function(o){return"en"===o[0]?.lang_id}),a.addresses=r,this.record=a}mergeLangAuthors(e,a){const r=[];return this.languagesPipe.transform(e,!0,this.database).forEach(function(s){e[s].forEach(function(l){l.seq_no=l.addr_no,s!==a&&delete l.addr_no}),r.push(...e[s])}),r.sort((s,l)=>s.seq_no>l.seq_no?1:-1),r}getRouterParams(e,a){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:a,rowText:e}])}}orderOriginal(){return 0}toggleExpand(e,a){const r=e.target.parentElement.parentElement.parentElement;r.className=r.classList.contains("expanded")?r.className.replace("expanded","contracted"):r.className.replace("contracted","expanded")}getAssigneeCodeName(e){return e.includes("-N")?e+"on-standard":e.includes("-I")?e+"ndividual":e.includes("-S")?e+"oviet Institute":e}buildcolumnConfig(e,a,r,o,s){return this.buildSiloOneClickLink?{type:"oneclick",fieldTag:e,matTooltip:a,database:r,highlight:{ut:o,qid:s}}:{type:"highlight",ut:o,qid:s}}getSearchAidValue(e,a,r,o){return this.searchAidService.getSearchAidTermDescription(e,a,r,o)}goToElement(e){const a=document.getElementById(e);a?a.focus():console.log("Reference not found")}scrollTo(e){const a=document.querySelector(e),r=a.querySelectorAll(".jump-link-anchor")[0];r&&r.focus();const s=document.querySelector(".top-sticky-pageControl app-page-controls").clientHeight,l=a.getBoundingClientRect().top+window.pageYOffset-s-16;window.scrollTo({top:l,behavior:"smooth"})}openedStartOverlay(){this.render.addClass(document.body,"overlay-open")}closedStartOverlay(){this.render.removeClass(document.body,"overlay-open")}rciSuperRecordToggled(){this.showRciSuperRecord=!this.showRciSuperRecord,this.storage.persist("showRciSuperRecord",this.showRciSuperRecord);const e=document.getElementsByClassName("common-super-record-field-grid"),a=document.getElementsByClassName("common-super-record-field");this.showRciSuperRecord$.next(this.showRciSuperRecord);for(const r of a)r.style.display=this.showRciSuperRecord?"inline":"none";for(const r of e)r.style.display=this.showRciSuperRecord?"grid":"none"}getRciSuperRecordUt(e){return this.record.clustered_EWUIDs.filter(a=>a.coll_id===e)[0].uid}retractionsFilter(){return this.retractions=this.record.related_records.filter(e=>this.retractionTypes.includes(e.type)&&e.titles?.length>0),this.retractions}translateAbstract(){this.isTranslating=!0;const e=this.record?.abstract?.basic?.en?.abstract;let a=[{key:`doc${this.doc}_abstract`,type:"abstract",text:e}];this.store.dispatch(new B.IV.gC({qid:this.search.id,sort:this.sort,language:this.search.display?.params?.translatedLang,requestType:Tn.Zg.ABSTRACT,requestItems:a})),this.change.detectChanges()}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Gt.il),t.rXU(Dt.w),t.rXU(mt.bZ),t.rXU(Cn.G),t.rXU(V.c$),t.rXU(ot.nX),t.rXU(I1.m),t.rXU(t.gRc),t.rXU(t.sFG),t.rXU(_a.up),t.rXU(Pc.R))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record"]],viewQuery:function(a,r){if(1&a&&t.GBs(hI,5),2&a){let o;t.mGM(o=t.lsd())&&(r.sidenav=o.first)}},inputs:{record:"record",database:"database",qid:"qid",sort:"sort",doc:"doc",loadDateCriteria:"loadDateCriteria",search:"search"},outputs:{navExpanded:"navExpanded",ecrActivatedChange:"ecrActivatedChange",viewSubviewRequested:"viewSubviewRequested"},features:[t.Vt3,t.OA$],decls:5,vars:6,consts:[["toggleButton","matButtonToggleGroup"],["doiText",""],["notOneClickSearch",""],["disableHyperLinkForSourceUrl",""],["notEmail",""],["sidenav",""],["refEl",""],["OtherIpc",""],["derwentCode",""],["code",""],["notOneClick",""],["class","lang-data-toggle",3,"dir",4,"ngIf"],["class","data-column","id","snMainArticle","role","regi
1on",3,"dir","ngClass",4,"ngIf"],["class","chemical-info","id","chemicalInfo",4,"ngIf"],[3,"database","qid","record","navExpanded",4,"ngIf"],[1,"lang-data-toggle",3,"dir"],[3,"click"],["value","en","checked","","role","button"],["value","ar","role","button"],["id","snMainArticle","role","region",1,"data-column",3,"dir","ngClass"],["class","label rci-super-record-desc",4,"ngIf"],["class","box-separator",4,"ngIf"],["role","alert","class","error-code light-red-bg",4,"ngIf"],["role","alert",3,"ngClass",4,"ngIf"],[4,"ngIf"],["class","margin-bottom-10 display-inline-flex",4,"ngIf"],["class","awards-replacement",4,"ngIf"],[3,"ngClass"],["mat-button","","class","associated-data-badge","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-all-associated-data","cdxAnalyticsAction","click",3,"matTooltip","routerLink",4,"ngIf"],["class","cdx-two-column-grid-container",4,"ngIf"],["id","full-record-authors-section",4,"ngIf"],[1,"cdx-two-column-grid-container","cdx-zero-padding"],[1,"cdx-grid-label"],[1,"cdx-grid-data"],[3,"qid","ut","contributors"],[1,"source-info"],["class","source-info-piece cdx-two-column-grid-container",4,"ngIf"],[3,"record","qid","database","buildSiloOneClickLink"],["class","abstract cdx-two-column-grid-container",4,"ngIf"],[3,"database","qid","ut","originalLang","record","buildSiloOneClickLink",4,"ngIf"],["class","cdx-grid-label",4,"ngIf"],["class","author-info-section",4,"ngIf"],[3,"qid","ut","record","events","infoLabel","addressesToShow"],["class","app-full-record-mini-crl",3,"searchInfo","database",4,"ngIf"],[3,"database","record","qid","buildSiloOneClickLink",4,"ngIf"],[3,"record","database","qid","buildSiloOneClickLink","showRciSuperRecord",4,"ngIf"],[3,"record","qid","database","sort","doc","buildSiloOneClickLink",4,"ngIf"],["class","margin-top-30",4,"ngIf"],[1,"label","rci-super-record-desc"],[1,"margin-top-5","margin-left-10--reversible"],["dir","auto","translate","",1,"colonMark"],[4,"ngFor","ngForOf"],[1,"rci-super-record-slide","margin-top-5","margin-left-10--reversible"],["color","primary",1,"toggle-section","margin-left-10",3,"toggleChange","matTooltip","aria-label","checked"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"routerLink","queryParams","state","matTooltip","cdxAnalyticsCategory"],[1,"box-separator"],["role","alert",1,"error-code","light-red-bg"],["role","alert",3,"ngClass"],["class","flex-container",4,"ngIf"],[1,"text--normal"],["title","retractionType + 'Description' | translate","id","retractedLink",3,"routerLink"],[1,"flex-container"],["svgIcon","warning_amber"],["class","label",4,"ngIf"],["title","retractionType + 'Description' | translate","id","retractionLink",3,"routerLink"],[1,"label"],["class","rel_retracted",3,"ngClass",4,"ngIf"],[1,"rel_retracted",3,"ngClass"],[1,"retaction-reason-list"],[3,"innerHTML",4,"ngIf"],[1,"margin-top-5",3,"innerHTML"],[3,"innerHTML"],["class","preprint-box",4,"ngIf"],[1,"preprint-box"],[1,"flex-display-align-center","flex-display-justify-start"],["role","img","svgIcon","chat-darker-blue",1,"cdx-mat-icon-36","margin-right-10--reversible"],[1,"font-size-16"],[1,"margin-right-10--reversible","font-size-16"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click","id","'preprintLinktoWOScc' + i",1,"view-link",3,"routerLink","queryParams","state","cdxAnalyticsCategory","title"],[1,"margin-bottom-10","display-inline-flex"],["class","label blueBox",4,"ngIf"],["class","value margin-left-10--reversible",3,"innerHTML",4,"ngIf"],[1,"label","blueBox"],[1,"value","margin-left-10--reversible",3,"innerHTML"],["style","margin-bottom: 5px;",4,"ngIf"],[2,"margin-bottom","5px"],["color","primary","id","new-search-updates","tabindex","0",3,"change","checked","disabled"],["role","img","svgIcon","circle-notch",1,"cdx-mat-icon-16","svg-spinner"],[3,"ngClass","display",4,"ngFor","ngForOf"],["class","title text--large cdx-title",3,"dir","wosSearchHighlight",4,"ngIf"],["svgIcon","warning_amber",1,"retractionIon"],[1,"title","text--large","cdx-title",3,"dir","wosSearchHighlight"],[1,"awards-replacement"],["mat-button","","class","flex-align margin-bottom-15 margin-top-15 margin-right-5--reversible",3,"matTooltip","click",4,"ngIf"],["mat-button","","class","flex-align margin-top-15",3,"matTooltip","click",4,"ngIf"],["mat-button","",1,"flex-align","margin-bottom-15","margin-top-15","margin-right-5--reversible",3,"click","matTooltip"],["role","img","svgIcon","trophy",1,"svg-icon-20","orange","margin-right-5--reversible"],[1,"capitalize-text","link-color-text","normal-space","cdx-black"],["mat-button","",1,"flex-align","margin-top-15",3,"click","matTooltip"],["inline","true","svgIcon","fire",1,"svg-icon-20","red","margin-right-5--reversible"],["mat-button","","class","blueBox label","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-associated-preprint-record","cdxAnalyticsAction","click",3,"matTooltip","queryParams","state","routerLink",4,"ngIf"],["mat-button","","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-associated-preprint-record","cdxAnalyticsAction","click",1,"blueBox","label",3,"matTooltip","queryParams","state","routerLink"],["mat-button","","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-all-associated-data","cdxAnalyticsAction","click",1,"associated-data-badge",3,"matTooltip","routerLink"],["role","img","svgIcon","database",1,"indicator-icon-ad"],[1,"icon-label"],[1,"cdx-two-column-grid-container"],[1,"cdx-grid-label","cdx-default-styles"],["mat-button","","color","primary",1,"patentFamily-button","jump-link-button","cdx-jump",3,"click","matTooltip"],["inline","true",1,"playlist-icon"],[1,"jump-link-text"],["mat-button","","color","primary",1,"chemicalInfo-button","jump-link-button","cdx-jump",3,"click","matTooltip"],[1,"label","cdx-grid-label"],["class","value",4,"ngIf"],[1,"value"],["id","full-record-authors-section"],[3,"openAddresses","database","qid","isArabicRecord","ut","types","langs","authors","contributors"],[3,"database","qid","ut","types","langs","requiresLink","authors","contributors"],[3,"openAddresses","database","qid","ut","types","langs","authors","contributors"],["dir","auto",1,"cdx-grid-label","header-margin-direction",3,"dir"],[3,"database","qid","record","SourceTitle","showIcon","largeSize","navExpanded",4,"ngIf"],[1,"flex-align"],["class","margin-right-20--reversible",4,"ngIf"],["class","source-info-piece",4,"ngIf"],[3,"navExpanded","database","qid","record","SourceTitle","showIcon","largeSize"],[1,"margin-right-20--reversible"],["dir","auto",1,"margin-left-30--reversible","label","cdx-label","colonMark"],["dir","auto",1,"label","cdx-label","colonMark"],[1,"source-info-piece"],["dir","auto",1,"label","colonMark","cdx-label"],[4,"ngIf","ngIfElse"],["rel","noopener noreferrer","target","_blank",1,"value-link",3,"href"],[1,"value",3,"wosSearchHighlight"],["class","semiColonMark","dir","auto",4,"ngIf"],["dir","auto",1,"semiColonMark"],["dir","auto",1,"value",3,"wosSearchHighlight"],["class","source-info-piece",4,"ngFor","ngForOf"],["class","cdx-two-column-grid-container",4,"ngFor","ngForOf"],["dir","auto",1,"label","cdx-grid-label"],[1,"value",3,"ngClass"],["dir","auto","class","semiColonMark",4,"ngIf"],["class","cdx-two-column-grid-container",3,"ngClass","display",4,"ngFor","ngForOf"],[1,"cdx-two-column-grid-container",3,"ngClass"],["
1id","bsLabel","dir","auto",1,"label","cdx-grid-label"],[1,"value",3,"ngClass","wosSearchHighlight"],["id","booksubtitleLabel","dir","auto",1,"label","cdx-grid-label"],[1,"value","cdx-grid-data",3,"wosSearchHighlight"],[3,"database","qid","ut","types","langs","authors","contributors"],["class","value",4,"ngIf","ngIfElse"],[3,"routerLink","matTooltip","queryParams"],[3,"wosSearchHighlight"],[1,"source-info-piece","cdx-two-column-grid-container"],[1,"value","cdx-grid-data"],["target","_blank","rel","noopener noreferrer","class","value-link no-underline-link cdx-grid-data",3,"href",4,"ngIf","ngIfElse"],["target","_blank","rel","noopener noreferrer",1,"value-link","no-underline-link","cdx-grid-data",3,"href"],["class","value-link",3,"href",4,"ngIf","ngIfElse"],[1,"value-link",3,"href"],["target","_blank","rel","noopener noreferrer",1,"value-link",3,"href"],["name","pubdate",1,"value",3,"ngClass","wosSearchHighlight"],["name","earlyAccess",1,"value",3,"ngClass","wosSearchHighlight"],["name","indexedDate",3,"ngClass"],["dir","auto",1,"label","header-margin-direction","cdx-grid-label"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"value-link","no-underline-link","cdx-grid-data",3,"matTooltip","state","cdxAnalyticsCategory","routerLink","queryParams"],["dir","auto",1,"label","colonMark"],[1,"value",3,"innerHTML"],["target","_blank","rel","noopener noreferrer","cdxAnalyticsEvent","","cdxAnalyticsCategory","inspec_media_url","cdxAnalyticsAction","click",1,"value-link","no-underline-link",3,"href","matTooltip"],["href","#","role","button",1,"cdx-grid-label","cdx-column","ecr-link",3,"click","keydown.enter","keydown.space","matTooltip"],[1,"font-size-13"],["id","OpenPeerReviewDialogBox","role","dialog",1,"cdx-two-column-grid-container"],["mat-button","",1,"cdx-grid-label","cdx-column",3,"click","matTooltip"],[1,"patent-image-sidenav-container",3,"backdropClick","ngClass","hasBackdrop"],["role","figure","fixedInViewport","true","mode","over","position","end",2,"width","60%",3,"keydown.escape","opened","fixedTopGap","fixedBottomGap","fixedInViewport","autoFocus"],[3,"close","record"],["id","PubPeerBlock",1,"cdx-two-column-grid-container"],["target","_blank","rel","noopener noreferrer",1,"cdx-grid-label","cdx-column","pubpeer-link",3,"href","matTooltip"],["inline","true","aria-hidden","true",1,"open-in-new-icon"],[3,"re
1cord"],[1,"value","cdx-grid-data","external-links-list"],["target","_blank","rel","noopener noreferrer",1,"wos-new-primary-color",3,"href","matTooltip"],[3,"ngClass",4,"ngIf"],["class","label cdx-grid-label",4,"ngIf"],["class","show-more-less",4,"ngIf"],[1,"abstract--instance","abstract-size",3,"translationClicked","dir","ngClass","wosSearchHighlight","showTranslationButton","showTranslatingIcon"],["class","abstract--instance",3,"wosSearchHighlight",4,"ngIf"],["class","show-more-wrapper",4,"ngIf"],[1,"show-more-less"],[3,"hidden"],["mat-button","","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"click"],["inline","true",1,"font-size-14"],[1,"abstract--instance",3,"wosSearchHighlight"],[1,"show-more-wrapper"],[1,"show-more-less",3,"click","matTooltip"],[1,"abstract","cdx-two-column-grid-container"],["dir","auto",1,"cdx-grid-label"],[3,"matTooltip","routerLink","queryParams","state"],["class","value-link pdfLinks","rel","noopener noreferrer","target","_blank",3,"href","matTooltip",4,"ngFor","ngForOf"],["rel","noopener noreferrer","target","_blank",1,"value-link","pdfLinks",3,"href","matTooltip"],[1,"patent-image-sidenav-container",3,"backdropClick","hasBackdrop"],["role","figure","fixedInViewport","true","mode","side","position","end",2,"width","60%",3,"keydown.escape","openedStart","closedStart","fixedTopGap","fixedBottomGap","fixedInViewport","autoFocus"],[3,"close","largeImages","smallImages"],[1,"font-size-14"],["mat-button","","color","primary","class","view-button",3,"matTooltip","click",4,"ngIf"],["mat-button","","color","primary",1,"view-button",3,"click","matTooltip"],[3,"matTooltip","routerLink","queryParams",4,"ngIf","ngIfElse"],[3,"matTooltip","routerLink","queryParams"],[1,"spaced",3,"wosSearchHighlight"],[1,"value","spaced",3,"wosSearchHighlight"],[1,"classCodesLink",3,"routerLink","matTooltip","id","queryParams"],[1,"manualCodesLink",3,"routerLink","matTooltip","id","queryParams"],[3,"displayData","idPrefix","showHeader","displayedColumns","columnConfig","tableName",4,"ngIf"],["headerPrefix","applicationdetails",3,"displayData","idPrefix","showHeader","displayedColumns","columnConfig","tableName",4,"ngIf"],[3,"displayData","idPrefix","showHeader","displayedColumns","tableName",4,"ngIf"],[3,"displayData","showHeader","displayedColumns","columnConfig","tableName",4,"ngIf"],[3,"displayData","showHeader","displayedColumns","tableName",4,"ngIf"],[3,"displayData","idPrefix","showHeader","displayedColumns","columnConfig","tableName"],["headerPrefix","applicationdetails",3,"displayData","idPrefix","showHeader","displayedColumns","columnConfig","tableName"],[3,"displayData","idPrefix","showHeader","displayedColumns","tableName"],[3,"displayData","showHeader","displayedColumns","columnConfig","tableName"],[3,"displayData","showHeader","displayedColumns","tableName"],[3,"database","qid","ut","originalLang","record","buildSiloOneClickLink"],[1,"author-info-section"],[3,"type","qid","record","addresses"],[3,"type","reprinAddress","hasPreEmails","record"],[3,"type","addresses","hasEmails","record"],[1,"label","colonMark"],[3,"routerLink","queryParams","matTooltip"],["rel","noopener noreferrer","target","_blank",1,"value","wos-new-primary-color",3,"href"],[1,"app-full-record-mini-crl",3,"searchInfo","database"],[1,"section-label-data",3,"innerHTML"],[1,"section-label-data"],[3,"database","record","qid","buildSiloOneClickLink"],[3,"record","database","qid","buildSiloOneClickLink","showRciSuperRecord"],[3,"re
1cord","qid","database","sort","doc","buildSiloOneClickLink"],[1,"margin-top-30"],["id","chemicalInfo",1,"chemical-info"],["tabindex","-1",1,"title","text--large","jump-link-anchor"],[3,"displayData","idPrefix","showHeader","displayedColumns","tableName","columnConfig",4,"ngIf"],[3,"displayData","idPrefix","showHeader","displayedColumns","tableName","columnConfig"],[3,"navExpanded","database","qid","record"]],template:function(a,r){1&a&&(t.DNE(0,WI,9,8,"section",11)(1,hM,92,121,"div",12)(2,TM,9,10,"div",13)(3,IM,1,3,"app-journal-info-card",14),t.nI1(4,"feature")),2&a&&(t.Y8G("ngIf","ARCI"===r.record.coll||"ARCI"===r.database),t.R7$(),t.Y8G("ngIf",r.record),t.R7$(),t.Y8G("ngIf",r.record&&(r.record.compounds||r.record.markush_number||r.record.derwent_compounds||r.record.derwent_registry)),t.R7$(),t.Y8G("ngIf",r.showJournalCard&&!t.bMT(4,4,"nxPresentationControl_FullRecord_Disable_journalInformation")))},dependencies:[A.YU,A.Sq,A.bT,ot.Wk,V.Mm,ie.w,jt.An,$t.ig,ht.It,ht.$z,xt.oV,A1,Gc.f,Mo.ec,Mo.pc,Kn.LG,Kn.US,Jr.sG,Wr.r,Ot.P,th,E4,Eb,Ub,l3,p8,Yc,G8,lT,hT,nI,bd,pI,A.Jj,A.GH,A.P9,A.lG,V.D9,Cn.G,Se.h,Pn.N,Ei.Q,So.L],styles:['.cdx-two-column-grid-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 75%;grid-template-rows:auto;grid-gap:1.75rem;padding:10px 0}.cdx-two-column-grid-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .cdx-two-column-grid-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0!important}.cdx-grid-label[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif!important;font-style:normal!important;font-weight:600!important;font-size:16px!important;line-height:24px!important}.cdx-grid-data[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif!important;font-style:normal!important;font-weight:400!important;font-size:14px!important;line-height:24px!important}.cdx-grid-space[_ngcontent-%COMP%]{padding-bottom:20px}.cdx-chemical-reaction-space[_ngcontent-%COMP%]{width:100%!important}.cdx-horizontal-line[_ngcontent-%COMP%]{border:2px solid #EEEEEE}.cdx-title[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-style:normal;font-weight:700;font-size:32px!important;line-height:40px}.cdx-label[_ngcontent-%COMP%]{margin:0!important;font-weight:400!important}.cdx-references-remodel[_ngcontent-%COMP%]{box-sizing:border-box!important;padding:24px 0 0!important;background:#fff!important;border:1px solid #E0E0E0!important;border-radius:4px!important}.cdx-margin-top-results[_ngcontent-%COMP%]{margin-left:auto}.cdx-margin-right-appearence[_ngcontent-%COMP%]{border:1px solid #5e33bf;border-radius:1.25rem}.cdx-margin-right-appearence[_ngcontent-%COMP%]   .cdx-appirence-color[_ngcontent-%COMP%]{color:#5e33bf;font-family:Source Sans Pro,sans-serif;font-style:normal;font-weight:600;font-size:16px;line-height:24px}[dir=ltr][_ngcontent-%COMP%]   .cdx-colonDot[_ngcontent-%COMP%]:after{display:inline-block;content:".";margin-right:.1875rem}[dir=ltr][_ngcontent-%COMP%]   .cdx-colonDot[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .cdx-colonDot[_ngcontent-%COMP%]:after{display:none}[dir=rtl][_ngcontent-%COMP%]:lang(en)   .cdx-colonDot[_ngcontent-%COMP%]:before{display:inline-block;content:".";margin-left:.1875rem}[dir=rtl][_ngcontent-%COMP%]   .cdx-colonDot[_ngcontent-%COMP%]:before{display:none}[dir=rtl][_ngcontent-%COMP%]   .cdx-colonDot[_ngcontent-%COMP%]:after{display:inline-block;content:".";margin-left:.1875rem}.cdx-patent-chem-record[_ngcontent-%COMP%]{box-shadow:none!important}.cdx-two-column-grid-journal-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 15%;grid-template-rows:auto;grid-gap:1.25rem}.cdx-two-column-grid-Funding-container[_ngcontent-%COMP%]{display:flex;grid-template-columns:1fr 75%;grid-template-rows:auto;grid-column-gap:38rem;align-items:baseline;margin-bottom:-.625rem}.cdx-default-styles[_ngcontent-%COMP%]{padding:0!important;margin:0!important;display:inline!important}.cdx-zero-padding[_ngcontent-%COMP%]{padding:0!important}.cdx-show-more-box[_ngcontent-%COMP%]{background-color:transparent!important;margin-bottom:2.185rem!important}.cdx-top-border[_ngcontent-%COMP%]{border-top:8px solid #5e33bf;border-radius:4px}.cdx-full-record-top-border[_ngcontent-%COMP%]{padding:40px 24px 0}.cdx-no-border[_ngcontent-%COMP%]{border:none!important}.cdx-grid-gap[_ngcontent-%COMP%]{grid-gap:2.25rem!important}.cdx-right-panel-main[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif!important;font-size:20px!important;font-weight:600!important;line-height:26px!important;color:#000!important}.cdx-right-panel-body[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif!important;font-size:16px!important;font-weight:400!important;line-height:24px!important}.cdx-right-panel-sub[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif!important;font-size:18px!important;font-weight:400!important;line-height:24px!important}.cdx-margin-bottom-24[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.cdx-margin-top-24[_ngcontent-%COMP%]{margin-top:1.5rem!important}.cdx-list-style[_ngcontent-%COMP%]{list-style-type:disc!important}.cdx-black[_ngcontent-%COMP%]{color:#000!important}.cdx-vertical-align[_ngcontent-%COMP%]{vertical-align:middle!important}.header-margin-direction[_ngcontent-%COMP%]:lang(ar-sa){direction:rtl}.cdx-column[_ngcontent-%COMP%]{width:fit-content!important}.cdx-jump[_ngcontent-%COMP%]{display:inline-flex!important;width:fit-content!important;padding:0!important;color:#5e33bf!important}.cdx-redesign-journal[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .cdx-redesign-journal[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0!important}.cdx-line-height-16[_ngcontent-%COMP%]{line-height:16px!important}.cdx-box-divisions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.cdx-blocks-division[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:24px}.cdx-red[_ngcontent-%COMP%]{color:#dd2c00}@media (max-width: 1024px){.top-section[_ngcontent-%COMP%]{display:block!important}}@media (max-width: 1024px) and (min-width: 550px){.network-section[_ngcontent-%COMP%]{display:grid!important;grid-template-columns:50% 1fr;grid-template-rows:auto;grid-gap:1.75rem}}@media (max-width: 550px){.fullRecord-page[_ngcontent-%COMP%]   .data-column[_ngcontent-%COMP%]{margin-right:1.25rem!important;margin-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .fullRecord-page[_ngcontent-%COMP%]   .data-column[_ngcontent-%COMP%]{margin-right:0!important;margin-left:1.25rem!important}.cdx-two-column-grid-container[_ngcontent-%COMP%], .cdx-grid-data[_ngcontent-%COMP%], .cdx-two-column-grid-journal-container[_ngcontent-%COMP%], .cdx-jump[_ngcontent-%COMP%]{display:block!important}.cdx-margin-top-results[_ngcontent-%COMP%]{margin-left:0!important;margin-top:0!important;justify-content:flex-start!important}}.collapsible-abstract[_ngcontent-%COMP%]{line-height:1.25rem;margin-top:.625rem;margin-bottom:.625rem;overflow:hidden;position:relative}.collapsible-abstract.show-more-lines[_ngcontent-%COMP%]{max-height:8.75rem!important}.collapsible-abstract.contracted[_ngcontent-%COMP%]{max-height:6.25rem}.collapsible-abstract.expanded[_ngcontent-%COMP%]{height:auto!important}.collapsible-abstract[_ngcontent-%COMP%]   .show-more-wrapper[_ngcontent-%COMP%]{background:#fff;width:100%;white-space:nowrap}.collapsible-abstract[_ngcontent-%COMP%]   .show-more-less[_ngcontent-%COMP%]{width:auto;position:relative;background:#fff;cursor:pointer;text-decoration:underline}.collapsible-abstract.contracted[_ngcontent-%COMP%]   .show-more-wrapper[_ngcontent-%COMP%]{position:absolute;bottom:0}.collapsible-abstract.contracted[_ngcontent-%COMP%]   .show-more-wrapper[_ngcontent-%COMP%]:after{content:":";display:table;clear:both}.collapsible-abstract.expanded[_ngcontent-%COMP%]   .show-more-wrapper[_ngcontent-%COMP%]{position:initial}.collapsible-abstract.expanded[_ngcontent-%COMP%]   .show-more-wrapper[_ngcontent-%COMP%]:before{display:none}.collapsible-abstract.expanded[_ngcontent-%COMP%]   .show-more-less[_ngcontent-%COMP%]{position:relative}.collapsible-abstract[_ngcontent-%COMP%]   .show-more-less[_ngcontent-%COMP%]{position:absolute;border:none;bottom:0;height:1.25rem;line-height:1.25rem;font-size:.875rem;margin:0;color:var(--sys-primary);outline:0!important}.collapsible-abstract[_ngcontent-%COMP%]   .show-more-less[_ngcontent-%COMP%]:hover{color:#4125af;text-decoration:underline}.collapsible-abstract[_ngcontent-%COMP%]   .show-more-less[_ngcontent-%COMP%]:focus{border:2px var(--sys-primary) solid}.patent-image-sidenav-container[_ngcontent-%COMP%]{z-index:20000!important;background:transparent}.view-button[_ngcontent-%COMP%]{outline:0!important}.view-button[_ngcontent-%COMP%]:focus{border:.125rem solid var(--sys-primary)!important}.rel_retracted[_ngcontent-%COMP%]{width:100%}.awards-replacement[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:16px}.re_retracted_div[_ngcontent-%COMP%]{position:relative;bottom:15px}.jump-link-anchor[_ngcontent-%COMP%]:focus, .jump-link-anchor[_ngcontent-%COMP%]:active{outline:none}.rci-super-record-desc[_ngcontent-%COMP%]{display:flex;flex-direction:row;font-size:medium}.rci-super-record-slide[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;width:30%;max-width:30%}.blueBox[_ngcontent-%COMP%]{width:auto;height:fit-content;padding:0 .625rem;border-radius:.5rem;background-color:#e8dffc;font-weight:600}.retractionIon[_ngcontent-%COMP%]{vertical-align:middle}.preprint-box[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#e0f3fb;margin:0 0 1.1875rem;padding:1.5625rem;font-size:.9375rem!important}.view-link[_ngcontent-%COMP%]{color:#335cad;font-weight:700}.flex-container[_ngcontent-%COMP%]{display:flex;gap:.625rem}.retaction-reason-list[_ngcontent-%COMP%]{padding:0rem .625rem;margin-top:.3125rem}.retaction-reason-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style-type:disc}.external-links-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .external-links-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:none!important;padding:0;margin:0}#PubPeerBlock[_ngcontent-%COMP%]   a.pubpeer-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;text-decoration:none}#PubPeerBlock[_ngcontent-%COMP%]   a.pubpeer-link[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{text-decoration:underline}#PubPeerBlock[_ngcontent-%COMP%]   a.pubpeer-link[_ngcontent-%COMP%]   .open-in-new-icon[_ngcontent-%COMP%]{text-decoration:none}a.ecr-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;text-decoration:none}a.ecr-link[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{text-decoration:underline}a.ecr-link[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{text-decoration:none}']})}}return i})();var Md=S(11747);let FM=(()=>{class i{constructor(e,a){this.data=e,this.dialogRef=a,this.taPrefix="FR
1InHtDiaTa-"}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(mt.Vh),t.rXU(mt.CP))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-inner-html-dialog"]],decls:8,vars:14,consts:[[1,"hoverText",3,"innerHTML"],["mat-button","","matDialogClose","",3,"aria-label"]],template:function(a,r){1&a&&(t.j41(0,"mat-dialog-content"),t.nrm(1,"div",0),t.nI1(2,"translate"),t.k0s(),t.j41(3,"mat-dialog-actions")(4,"button",1),t.nI1(5,"translate"),t.EFF(6),t.nI1(7,"translate"),t.k0s()()),2&a&&(t.R7$(),t.Y8G("innerHTML",t.bMT(2,8,"articleLearnMore"),t.npT),t.BMQ("id",r.taPrefix+"articleLearnMore")("data-ta",r.taPrefix+"articleLearnMore"),t.R7$(2),t.BMQ("align","end"),t.R7$(),t.FS9("aria-label",t.bMT(5,10,"closeDialog")),t.BMQ("id",r.taPrefix+"closeDialog")("data-ta",r.taPrefix+"closeDialog"),t.R7$(2),t.JRh(t.bMT(7,12,"close")))},dependencies:[ht.$z,mt.tx,mt.E7,mt.Yi,V.D9],encapsulation:2})}}return i})();var Gn=S(23294),Sd=S(64001),Ad=S(58704),Ed=S(25885),wM=S(57546),MM=S(89107),SM=(S(34941),S(39644)),AM=S(7239),Pd=S.n(AM);let Vo=(()=>{class i{transform(e,a){return e?parseFloat(e).toFixed(a):""}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275pipe=t.EJ8({name:"decimalNumber",type:i,pure:!0})}}return i})();var EM=S(39484);const PM=(i,n,e)=>({qid:i,sort:n,doc:e}),GM=i=>({type:i}),DM=(i,n)=>["/",i,"full-record",n],$M=i=>({prod1:i}),LM=(i,n,e)=>["/",i,"summary",n,e,"1"];function NM(i,n){if(1&i&&(t.j41(0,"span",8),t.EFF(1," et al."),t.k0s()),2&i){const e=t.XpG(4).$implicit,a=t.XpG().index,r=t.XpG(3);t.Y8G("ngClass","section-label-data text-color"),t.BMQ("data-ta",r.taPrefix+"author-name-"+a+"-"+e+"-et-al")}}function jM(i,n){if(1&i&&(t.qex(0),t.j41(1,"span",8),t.EFF(2),t.k0s(),t.DNE(3,NM,2,2,"span",9),t.bVm()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2).$implicit,s=t.XpG(),l=s.$implicit,c=s.index,d=t.XpG(3);t.R7$(),t.Y8G("ngClass","section-label-data text-color"),t.BMQ("data-ta",d.taPrefix+"author-name-"+c+"-"+o+"-"+r)("lang",o),t.R7$(),t.SpI(" ",a.wos_standard||a.display_name,";"),t.R7$(),t.Y8G("ngIf",3==r&&l.names.author[o].length>3)}}function OM(i,n){if(1&i&&(t.qex(0),t.DNE(1,jM,4,5,"ng-container",0),t.bVm()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e)}}function BM(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,OM,2,1,"ng-container",7),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",a.names.author[e].slice(0,4))}}function YM(i,n){if(1&i&&(t.qex(0),t.DNE(1,BM,2,1,"div",0),t.bVm()),2&i){const e=n.$implicit,a=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf",a.names.author[e])}}function XM(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",12),t.nI1(1,"lowercase"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3).$implicit,o=t.XpG(3);return t.Njj(o.clickEventForFullRecord(r))}),t.k0s()}if(2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG().$implicit,s=t.XpG(),l=s.$implicit,c=s.index,d=t.XpG(2).ngIf,u=t.XpG();t.Y8G("state",t.sMw(11,PM,u.qid,u.seeAllSort,c+1))("queryParams",t.eq3(15,GM,"colluid"===l.id.type?void 0:l.id.type))("routerLink",t.l_i(17,DM,t.bMT(1,9,d.database),l.id.value))("ngClass","section-label-data full-record-detail-section-links")("cdxAnalyticsCategory",u.event.article)("cdxAnalyticsContextData",t.eq3(20,$M,l.id.value))("innerHTML",a.title,t.npT),t.BMQ("data-ta",u.taPrefix+"ca-title-"+c+"-"+o+"-"+r)("lang",o)}}function qM(i,n){if(1&i&&t.nrm(0,"span",13),2&i){const e=t.XpG().$implicit,a=t.XpG().$implicit;t.Y8G("innerHTML",e.title,t.npT),t.BMQ("lang",a)}}function HM(i,n){if(1&i&&(t.qex(0),t.DNE(1,XM,2,22,"a",10),t.nI1(2,"entitlements"),t.DNE(3,qM,1,2,"span",11),t.nI1(4,"entitlements"),t.bVm()),2&i){const e=t.XpG(4).ngIf;t.R7$(),t.Y8G("ngIf",t.bMT(2,2,e.database)),t.R7$(2),t.Y8G("ngIf",!t.bMT(4,4,e.database))}}function VM(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,HM,5,6,"ng-container",7),t.k0s()),2&i){const e=n.$implicit,a=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",a.titles.item[e])}}function zM(i,n){if(1&i&&(t.j41(0,"div"),t.nrm(1,"span",14),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2).$implicit,s=t.XpG(2).index,l=t.XpG(3);t.R7$(),t.Y8G("ngClass","section-label-data text-color")("innerHTML",a.title,t.npT),t.BMQ("data-ta",l.taPrefix+"source-title-"+s+"-"+o+"-"+r)("lang",o)}}function QM(i,n){if(1&i&&(t.qex(0),t.DNE(1,zM,2,4,"div",0),t.bVm()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf",e.title)}}function UM(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,QM,2,1,"ng-container",7),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngForOf",a.titles.source[e])}}function JM(i,n){if(1&i&&(t.qex(0),t.DNE(1,UM,2,1,"div",0),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngIf",a.titles.source[e])}}function WM(i,n){if(1&i&&(t.qex(0),t.DNE(1,JM,2,1,"ng-container",7),t.nI1(2,"languagesPipe"),t.bVm()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);
1t.R7$(),t.Y8G("ngForOf",t.brH(2,1,e.titles.source,!0,a.database))}}function KM(i,n){if(1&i&&(t.j41(0,"div",6),t.DNE(1,YM,2,1,"ng-container",7),t.nI1(2,"languagesPipe"),t.DNE(3,VM,2,1,"div",7),t.nI1(4,"languagesPipe"),t.DNE(5,WM,3,5,"ng-container",0),t.k0s()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngForOf",t.brH(2,3,e.names.author,!0,a.database)),t.R7$(2),t.Y8G("ngForOf",t.brH(4,7,e.titles.item,!0,a.database)),t.R7$(2),t.Y8G("ngIf",e.titles.source)}}function ZM(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",15)(1,"a",16),t.nI1(2,"lowercase"),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.clickEventForViewAll())}),t.EFF(4),t.nI1(5,"translate"),t.j41(6,"mat-icon",17),t.EFF(7,"arrow_forward"),t.k0s()()()}if(2&i){const e=t.XpG(2).ngIf,a=t.XpG();t.R7$(),t.Y8G("ngClass","right-panel-link-color")("routerLink",t.sMw(10,LM,t.bMT(2,4,e.database),e.id,a.seeAllSort||a.sort)),t.BMQ("aria-label",t.bMT(3,6,"seeAll"+a.mode)),t.R7$(3),t.SpI(" ",t.bMT(5,8,"seeAll")," ")}}function tS(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",1),t.nrm(2,"hr",2),t.k0s(),t.j41(3,"div",3)(4,"h3"),t.nI1(5,"translate"),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.DNE(8,KM,6,11,"div",4)(9,ZM,8,14,"div",5),t.nI1(10,"async"),t.nI1(11,"entitlements"),t.bVm()),2&i){const e=n.ngIf,a=t.XpG().ngIf,r=t.XpG();t.R7$(2),t.Y8G("ngClass","horizental-line-border"),t.R7$(2),t.BMQ("data-ta",r.taPrefix+"miniArticlesHeading")("aria-label",t.bMT(5,6,r.header+"Alt")),t.R7$(2),t.SpI(" ",t.bMT(7,8,r.header)," "),t.R7$(2),t.Y8G("ngForOf",e),t.R7$(),t.Y8G("ngIf",t.bMT(10,10,r.hits$).available>r.count&&t.bMT(11,12,a.database))}}function eS(i,n){if(1&i&&(t.qex(0),t.DNE(1,tS,12,14,"ng-container",0),t.nI1(2,"async"),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",t.bMT(2,1,e.records$))}}let nS=(()=>{class i extends Be.${constructor(e,a,r,o,s,l,c){super(e,a),this.store=r,this.config=o,this.eventService=s,this.breadcrumbService=l,this.analytics=c,this.analyticsEventPostfix=this.config.getSettings().app.fullRecord.analyticsEventPostfix}ngOnChanges(e){e.record&&(this.newRecordNeedEventTracking=!0,this.breadcrumbService.getBreadCrumbs().subscribe(o=>{this.currentBreadCrumbs=o}).unsubscribe()),e.parentQid&&this.store.select(B.CS,{qid:e.parentQid.currentValue}).pipe((0,Ft.p)(o=>!!o),(0,ge.s)(1)).subscribe(o=>{this.parentSearch=o}).unsubscribe();const a=this.config.getSettings().app.fullRecord.subSearchConfig[this.mode];this.count=a.count,this.header=a.header,this.taPrefix=a.ta,this.sort=a.sort,this.seeAllSort=a.seeAllSort,this.event=a.event;const r=this.info?.[a.store];r?(this.qid=r.id,this.records$=this.store.select(B.ll,{qid:this.qid,sort:this.sort,page:1,size:this.count}).pipe((0,Ee.Q)(this.destroyed$),(0,Ft.p)(o=>!!o&&o.length>0),(0,ge.s)(1)),this.search$=this.store.select(B.CS,{qid:this.qid}).pipe((0,Ee.Q)(this.destroyed$),(0,Ft.p)(o=>!!o),(0,ge.s)(1)),this.hits$=this.store.select(B.j,{qid:this.qid}).pipe((0,Ft.p)(o=>!!o),(0,ge.s)(1)),this.newRecordNeedEventTracking&&"recommended-articles"===this.mode&&this.records$.subscribe(o=>{this.records=o,K.Y.trackStructEventWithAddedContextData(this.analytics,{category:"wos-recmd-preview",action:"click",property:K.Y.convertDbToProduct(this.database)+"-"+this.parentSearch.mode+"-"+this.determineParentViewTypeForEvent(),context:{contlist:this.retrieveUtsFromRecords(this.records).join(",")}}),this.newRecordNeedEventTracking=!1})):(this.qid=void 0,this.records$=void 0,this.search$=void 0)}determineParentViewTypeForEvent(){return this.currentBreadCrumbs&&this.currentBreadCrumbs.length>=2&&this.currentBreadCrumbs[this.currentBreadCrumbs.length-2].url.includes("full-record")?"fullRecord":"summary"}retrieveUtsFromRecords(e){const a=[];return e.forEach(r=>a.push(r.colluid)),a}clickEventForFullRecord(e){"recommended-articles"===this.mode&&(this.eventService.openFullRecRecommPreviewMiniSummary(e.colluid,"WOSCC"===e.coll?"WOS":e.coll,e.docid,[this.record.ut]),K.Y.trackStructEventWithAddedContextData(this.analytics,{category:"wos-recmd-preview-view",action:"click",property:K.Y.convertDbToProduct(this.database)+"-"+this.parentSearch.mode+"-fullRecord",context:{contlist:e.colluid}}))}clickEventForViewAll(){"recommended-articles"===this.mode&&K.Y.trackStructEventWithAddedContextData(this.analytics,{category:"wos-recmd-summary",action:"click",property:K.Y.convertDbToProduct(this.database)+"-"+this.parentSearch.mode+"-fullRecord",context:{contlist:this.retrieveUtsFromRecords(this.records).join(",")}})}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(V.c$),t.rXU(Gt.il),t.rXU(Dt.w),t.rXU(Li.U),t.rXU(Dl.h),t.rXU(Oc.cu))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-mini-articles"]],inputs:{mode:"mode",info:"info",database:"database",parentQid:"parentQid",record:"record"},features:[t.Vt3,t.OA$],decls:2,vars:3,consts:[[4,"ngIf"],[1,"box-div"],[1,"cdx-margin-bottom-24",3,"ngClass"],[1,"cdx-right-panel-sub"],["class","single-citing-article cdx-margin-bottom-24 cdx-right-panel-body",4,"ngFor","ngForOf"],["style","padding-top: 7px",4,"ngIf"],[1,"single-citing-article","cdx-margin-bottom-24","cdx-right-panel-body"],[4,"ngFor","ngForOf"],[3,"ngClass"],[3,"ngClass",4,"ngIf"],["class","","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"state","queryParams","routerLink","ngClass","cdxAnalyticsCategory","cdxAnalyticsContextData","innerHTML","click",4,"ngIf"],[3,"innerHTML",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"",3,"click","
1state","queryParams","routerLink","ngClass","cdxAnalyticsCategory","cdxAnalyticsContextData","innerHTML"],[3,"innerHTML"],[3,"ngClass","innerHTML"],[2,"padding-top","7px"],[3,"click","ngClass","routerLink"],["inline","true",1,"font-size-16","margin-right-10--reversible","cdx-vertical-align"]],template:function(a,r){1&a&&(t.DNE(0,eS,3,3,"ng-container",0),t.nI1(1,"async")),2&a&&t.Y8G("ngIf",t.bMT(1,1,r.search$))},dependencies:[A.YU,A.Sq,A.bT,ot.Wk,jt.An,Ot.P,A.Jj,A.GH,V.D9,Cn.G,Pn.N],encapsulation:2})}}return i})();var La=S(21264),iS=S.n(La),Na=(S(25091),S(66046));let aS=(()=>{class i{constructor(e,a,r,o){this.router=r,this.store=o,this.highcharts=iS(),this.barDesc1="",this.barDesc2="",this.barDesc3="",this.translatedMsg="Click this function bar to show the referenced citing items",this.barDesc1=e.instant("tcBreakdownAriaLabel1"),this.barDesc2=e.instant("tcBreakdownAriaLabel2"),this.barDesc3=e.instant("tcBreakdownAriaLabel3")}ngOnChanges(){const e=this;this.chartOptionsBar={chart:{type:"bar",height:200},accessibility:{enabled:!0,keyboardNavigation:{enabled:!0,seriesNavigation:{mode:"normal"}},point:{valueDescriptionFormat:e.barDesc1+"{xDescription} "+e.barDesc2+" {value} "+e.barDesc3}},xAxis:{categories:["Background","Basis","Support","Differ","Discuss"],title:{text:null},labels:this.renderChart(!0)},legend:{enabled:!1},title:{text:""},yAxis:{title:{text:""},labels:{enabled:!1,style:{color:"#4572A7"}},gridLineWidth:0,lineWidth:1,max:2*K.Y.getHighestCount(this.record)},tooltip:{enabled:!1},plotOptions:{bar:{className:"tcBarLabel",dataLabels:{enabled:!0,useHTML:!0,crop:!1,overflow:"allow",className:"tcBarLabelNoUnderline",formatter(){return 0===this.point.y?"<span >"+this.point.y+"</span>":'<span class="tcBarLabel">'+this.point.y+"</span>"}},states:{hover:{color:"#9675D7"}},allowPointSelect:!0,minPointLength:3,accessibility:{description:"hello",enabled:!0,keyboardNavigation:{enabled:!0}}},series:{zones:[{value:1,color:"#F5F5F5",className:"tcBarLabelNoUnderline"},{color:"#5E33BF"}]}},credits:{enabled:!1},series:[{pointWidth:13,type:"bar",name:"",accessibility:{description:"hello"},data:[this.record.citation_related.cc_counts.background,this.record.citation_related.cc_counts.basis,this.record.citation_related.cc_counts.support,this.record.citation_related.cc_counts.differ,this.record.citation_related.cc_counts.discuss],dataLabels:{style:{color:"#000000",fontSize:"16px",fontWeight:"600"}},events:{click:r=>{r.point.y>0&&K.Y.goToSelectedFunction(r.point.category,this.database,this.record,this.router)}}}]}}renderChart(e){return e?{style:{color:"#000000",fontSize:"16px",fontWeight:"600"}}:{}}getChartInstance(e){this.chartInstance=e}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(V.c$),t.rXU(t.gRc),t.rXU(ot.Ix),t.rXU(Gt.il))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-times-cited-breakdown"]],inputs:{record:"record",database:"database"},features:[t.OA$],decls:1,vars:2,consts:[[1,"data-box",2,"width","100%","display","block","padding","0",3,"chartInstance","Highcharts","options"]],template:function(a,r){1&a&&(t.j41(0,"highcharts-chart",0),t.bIt("chartInstance",function(s){return r.getChartInstance(s)}
1),t.k0s()),2&a&&t.Y8G("Highcharts",r.highcharts)("options",r.chartOptionsBar)},dependencies:[Na.H],styles:[".highcharts-figure,.highcharts-data-table table{min-width:310px;max-width:800px;margin:1em auto}#container{height:300px}.highcharts-data-table table{font-family:Verdana,sans-serif;border-collapse:collapse;border:1px solid #ebebeb;margin:10px auto;text-align:center;width:100%;max-width:500px}.highcharts-data-table caption{padding:1em 0;font-size:1.2em;color:#555}.highcharts-data-table th{font-weight:600;padding:.5em}.highcharts-data-table td,.highcharts-data-table th,.highcharts-data-table caption{padding:.5em}.highcharts-data-table thead tr,.highcharts-data-table tr:nth-child(2n){background:#f8f8f8}.highcharts-data-table tr:hover{background:#f1f7ff}.tooltipCDX{pointer-events:auto;border-radius:6px}.tooltipCDX tspan{font-size:12px!important;fill:#000;background-color:#fff;color:#000}.tcBarLabel{pointer-events:auto;cursor:pointer}.tcBarLabel:hover{text-decoration:underline}.tcBarLabelNoUnderline{pointer-events:none!important;cursor:default!important}.highcharts-text-outline{fill:transparent!important;stroke:transparent!important}\n"],encapsulation:2,changeDetection:0})}}return i})(),rS=(()=>{class i{constructor(e,a){this.translate=e,this.route=a,this.highcharts=La,this.barDesc1="",this.barDesc2="",this.barDesc3="",this.barDesc4="",this.barDesc1=e.instant("timeCitedScore"),this.barDesc2=e.instant("of"),this.barDesc3=e.instant("records"),this.barDesc4=e.instant("in")}ngOnChanges(){const e=this;this.chartOptionsBar={chart:{type:"bar",height:200,width:200},accessibility:{enabled:!0,keyboardNavigation:{enabled:!0,seriesNavigation:{mode:"normal"}},point:{valueDescriptionFormat:e.barDesc1+" "+e.barDesc2+" {value} "+e.barDesc3+" "+e.barDesc4+" {xDescription}"}},xAxis:{categories:this.prepareCollectionName(),title:{text:null},labels:{align:"left",reserveSpace:!0}},legend:{enabled:!1},title:{text:""},yAxis:{title:{text:""},labels:{enabled:!1,style:{color:"#4572A7"}},gridLineWidth:0,lineWidth:1},tooltip:{enabled:!1},plotOptions:{bar:{className:"tcBarLabel",color:"#5E33BF",dataLabels:{crop:!1,overflow:"allow",enabled:!0,useHTML:!1,align:"left",className:"tcBarLabelNoUnderline"},states:{hover:{color:" #9675D7"}},allowPointSelect:!0,minPointLength:3,accessibility:{description:"hello",enabled:!0,keyboardNavigation:{enabled:!0}}},series:{color:"#16AB04"}},credits:{enabled:!1},series:[{pointWidth:13,type:"bar",name:"",accessibility:{description:"hello"},data:this.prepareCollectionValues(),events:{click:a=>{a.point.y>0&&this.goToSelectedFunction(a.point.category)}}}]}}getChartInstance(e){this.chartInstance=e}goToSelectedFunction(e){let a=e.replace(/ /g,""),r=this.translate.instant(a+"_Key");this.route.navigate(["/",r,"citing-summary",this.record.id.value],{queryParams:{from:this.database,type:this.record.id.type}})}prepareCollectionName(){let e=[];return this.citationCollections.forEach(a=>e.push(this.translate.instant(a+"_name"))),e}prepareCollectionValues(){let e=[];return this.citationCollections.forEach(a=>e.push(Number(this.chartData[a]))),e}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(V.c$),t.rXU(ot.Ix))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-time-cited-score-card"]],inputs:{chartData:"chartData",citationCollections:"citationCollections",record:"record",database:"database"},features:[t.OA$],decls:1,vars:2,consts:[[1,"data-box",3,"chartInstance","Highcharts","options"]],template:function(a,r){1&a&&(t.j41(0,"highcharts-chart",0),t.bIt("chartInstance",function(s){return r.getChartInstance(s)}
1),t.k0s()),2&a&&t.Y8G("Highcharts",r.highcharts)("options",r.chartOptionsBar)},dependencies:[Na.H],styles:[".data-box[_ngcontent-%COMP%]{width:200px!important;display:block;padding:5px!important}.highcharts-background[_ngcontent-%COMP%]{margin-left:20px}"]})}}return i})();var oS=S(81977),zo=S(57890),sS=(S(36449),S(22806)),lS=S(70274);function cS(i,n){if(1&i&&(t.nrm(0,"highcharts-chart",3),t.nI1(1,"translate")),2&i){const e=t.XpG();t.FS9("title",t.bMT(1,4,"percentile_in_subject_area")),t.Y8G("Highcharts",e.highcharts)("options",e.chartOptions)("callbackFunction",e.chartCallback)}}let dS=(()=>{class i{constructor(){this.highcharts=La,this.exportFlag=!1,this.isMobile$=K.Y.isMobile$,this.symbols=["/wos/static/images/beam-plot-nodes/annual-citation-percentile.svg"],this.getBase64Url=function(){var e=(0,z.A)(function*(a){const o=yield(yield fetch(a)).blob();return new Promise(s=>{const l=new FileReader;l.readAsDataURL(o),l.onloadend=()=>{s(l.result)}})});return function(a){return e.apply(this,arguments)}}()}ngOnInit(){this.drawPercentileBeamPlot(),this.chartCallback=e=>{const a=La.charts.filter(r=>r&&"percentile-subject-area-chart"===r.renderTo.id);this.chartInstance=a[0]}}drawPercentileBeamPlot(){console.log(this.metrics);const e=Math.round(100*parseFloat(this.metrics?.PERCENTILE?.CAT_PERC))/100,r=zo.n.XYaxis,o=zo.n.tooltip,s=zo.n.tooltip.style.fontFamily;console.log(e,this.metrics?.PERCENTILE?.CAT_PERC),this.chartOptions={chart:{type:"scatter",height:85},title:{text:"",align:"bottom",style:{fontSize:"12px",fontWeight:"400",fontFamily:s}},...r,accessibility:{enabled:!1},tooltip:{...o,formatter(){let l="";return l=`<span class="dot"> </span><span style="margin-left: -4px;"><strong> ${e}</strong> Percentile</span>`,l}},credits:{enabled:!1},exporting:{enable:this.exportFlag,allowHTML:!0,type:"image/png"},series:[{name:"Percentile in subject area",marker:{symbol:"url(/wos/static/images/beam-plot-nodes/annual-citation-percentile.svg)"},showInLegend:!1,data:[[e,0]]}]},this.exportFlag&&setTimeout(()=>{this.getBase64OfPercentilePlot()},1e3)}getBase64OfPercentilePlot(){return new Promise((e,a)=>{try{const r=this.chartInstance?.getSVG(this.chartOptions);let o=r?.substring(r.indexOf("<svg")),s=0;(0,sS.H)(this.symbols).pipe((0,lS.H)(l=>this.getBase64Url(document.location.origin+l))).subscribe(l=>{o=o?.replace(new RegExp(this.symbols[s],"g"),l),s++},l=>{a(l)},()=>{e(o),window.localStorage.setItem("percentileBeamPlot",o)})}catch(r){a(r)}})}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-percentile-in-category-metrics"]],inputs:{metrics:"metrics",exportFlag:"exportFlag"},decls:5,vars:4,consts:[["id","percentile-subject-area-chart",3,"Highcharts","options","callbackFunction","title",4,"ngIf"],["id","percentileCircleIcon"],["aria-hidden","false","aria-label","percentile-in-subject-area","svgIcon","annual-citation-percentile-node",1,"percentile-circle"],["id","percentile-subject-area-chart",3,"Highcharts","options","callbackFunction","title"]],template:function(a,r){1&a&&(t.DNE(0,cS,2,6,"highcharts-chart",0),t.j41(1,"div",1),t.nrm(2,"mat-icon",2),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&a&&(t.Y8G("ngIf",r.chartOptions),t.R7$(3),t.SpI(" ",t.bMT(4,2,"percentile_in_subject_area")," "))},dependencies:[A.bT,jt.An,Na.H,V.D9],styles:[".percentile-circle[_ngcontent-%COMP%]{vertical-align:middle!important;margin-right:10px;margin-left:200px;pointer-events:none}.percentile-circle[_ngcontent-%COMP%]:lang(ar-sa){position:relative;margin-right:200px;margin-left:10px}"]})}}return i})();const Qo=i=>({"mobile-value-space":i});function uS(i,n){if(1&i&&(t.j41(0,"div",27),t.EFF(1),t.nI1(2,"dbvaluetranslate"),t.k0s()),2&i){const e=n.ngIf,a=t.XpG();t.R7$(),t.Lme(" ",e,"\xa0 ",t.i5U(2,2,e>1?"citationsLabelPlural":"citationsLabelSingular",a.record.coll)," ")}}function _S(i,n){1&i&&(t.j41(0,"div",28)(1,"span",29),t.EFF(2,"info"),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&i&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"cnci_jnci_nodataPublication")," "))}function pS(i,n){if(1&i&&(t.j41(0,"span",34),t.nI1(1,"async"),t.EFF(2),t.nI1(3,"decimalNumber"),t.k0s()),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(7,Qo,t.bMT(1,2,e.isMobile$))),t.R7$(2),t.JRh(t.i5U(3,4,null==e.metrics||null==e.metrics.PERCENTILE?
1null:e.metrics.PERCENTILE.CAT_PERC,2))}}function hS(i,n){if(1&i&&t.nrm(0,"app-percentile-in-category-metrics",35),2&i){const e=t.XpG(2);t.Y8G("metrics",e.metrics)("exportFlag",!0)}}function mS(i,n){if(1&i&&(t.j41(0,"div",30)(1,"label",15),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",16),t.DNE(5,pS,4,9,"span",31),t.j41(6,"span",19),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"div",32),t.DNE(10,hS,1,2,"app-percentile-in-category-metrics",33),t.k0s()()),2&i){const e=t.XpG(),a=t.sdS(56);t.R7$(),t.BMQ("data-ta",e.taPrefix+"PercentileArea")("id",e.taPrefix+"PercentileArea"),t.R7$(),t.JRh(t.bMT(3,7,"PercentileArea")),t.R7$(3),t.Y8G("ngIf",null==e.metrics?null:e.metrics.CNCI_INDICATOR)("ngIfElse",a),t.R7$(2),t.JRh(t.bMT(8,9,"PA_discription")),t.R7$(3),t.Y8G("ngIf",e.metrics)}}function gS(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",36)(2,"span",37),t.EFF(3),t.nI1(4,"decimalNumber"),t.k0s(),t.j41(5,"mat-icon",38),t.EFF(6,"change_history"),t.k0s(),t.j41(7,"div",39)(8,"span",40),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.bVm()),2&i){const e=t.XpG();t.R7$(2),t.BMQ("data-ta",e.taPrefix+"CNCI-value")("id",e.taPrefix+"CNCI-value"),t.R7$(),t.JRh(t.i5U(4,7,null==e.metrics?null:e.metrics.AVG_CNCI,2)),t.R7$(2),t.Y8G("ngClass","Below average"===(null==e.metrics?null:e.metrics.CNCI_INDICATOR)?"rotate-180 cdx-red below-average":"icon-colors"),t.R7$(3),t.BMQ("data-ta",e.taPrefix+"CNCI-IndicatorName")("id",e.taPrefix+"CNCI-IndicatorName"),t.R7$(),t.JRh(t.bMT(10,10,null==e.metrics?null:e.metrics.CNCI_INDICATOR))}}function fS(i,n){1&i&&(t.j41(0,"div",22)(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"CNCI_JNCI_NON_subcription")))}function bS(i,n){if(1&i&&(t.j41(0,"span",34),t.nI1(1,"async"),t.EFF(2),t.nI1(3,"decimalNumber"),t.k0s()),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(7,Qo,t.bMT(1,2,e.isMobile$))),t.R7$(2),t.JRh(t.i5U(3,4,null==e.metrics?null:e.metrics.HARMEAN_CAT_EXP_CITATION,2))}}function vS(i,n){if(1&i&&(t.j41(0,"div",41)(1,"span",15),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",16),t.DNE(5,bS,4,9,"span",31),t.j41(6,"span",19),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()),2&i){const e=t.XpG(),a=t.sdS(56);t.R7$(),t.BMQ("data-ta",e.taPrefix+"CategoryExpectedCitations")("id",e.taPrefix+"CategoryExpectedCitations"),t.R7$(),t.JRh(t.bMT(3,6,"CategoryExpectedCitations")),t.R7$(3),t.Y8G("ngIf",null==e.metrics?null:e.metrics.CNCI_INDICATOR)("ngIfElse",a),t.R7$(2),t.JRh(t.bMT(8,8,"CEC_discription"))}}function xS(i,n){if(1&i&&(t.j41(0,"div",36)(1,"span",37),t.EFF(2),t.nI1(3,"decimalNumber"),t.k0s(),t.j41(4,"mat-icon",38),t.EFF(5,"change_history"),t.k0s(),t.j41(6,"div",39)(7,"span",42),t.EFF(8),t.nI1(9,"translate"),t.k0s()()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"JNCI-value")("id",e.taPrefix+"JNCI-value"),t.R7$(),t.JRh(t.i5U(3,7,null==e.metrics?null:e.metrics.JNCI,2)),t.R7$(2),t.Y8G("ngClass","Below average"===(null==e.metrics?null:e.metrics.JNCI_INDICATOR)?"rotate-180 cdx-red below-average":"icon-colors"),t.R7$(3),t.BMQ("data-ta",e.taPrefix+"JNCI-IndicatorName")("id",e.taPrefix+"JNCI-IndicatorName"),t.R7$(),t.JRh(t.bMT(9,10,null==e.metrics?null:e.metrics.JNCI_INDICATOR))}}function CS(i,n){1&i&&(t.j41(0,"div",22)(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"CNCI_JNCI_NON_subcription")))}function RS(i,n){if(1&i&&(t.j41(0,"span",45),t.nI1(1,"async"),t.EFF(2),t.nI1(3,"decimalNumber"),t.k0s()),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(7,Qo,t.bMT(1,2,e.isMobile$))),t.R7$(2),t.JRh(t.i5U(3,4,null==e.metrics?null:e.metrics.JOURNAL_EXPECTED_CITATIONS,2))}}function yS(i,n){if(1&i&&(t.j41(0,"div",43)(1,"label",15),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",16),t.DNE(5,RS,4,9,"span",44),t.j41(6,"span",19),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()),2&i){const e=t.XpG(),a=t.sdS(56);t.R7$(),t.BMQ("data-ta",e.taPrefix+"JournalExpectedCitations")("id",e.taPrefix+"JournalExpectedCitations"),t.R7$(),t.JRh(t.bMT(3,6,"JournalExpectedCitations")),t.R7$(3),t.Y8G("ngIf",null==e.metrics?null:e.metrics.CNCI_INDICATOR)("ngIfElse",a),t.R7$(2),t.JRh(t.bMT(8,8,"JEC_discription"))}}function TS(i,n){1&i&&(t.j41(0,"div",46)(1,"mat-icon"),t.EFF(2,"not_interested"),t.k0s(),t.j41(3,"div"),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&i&&(t.R7$(4),t.SpI(" ",t.bMT(5,1,"cnci_jnci_no
1data")," "))}let IS=(()=>{class i{constructor(e,a,r){this.store=e,this.wurs=r,this.taPrefix="CNCI_JCNI-",this.isMobile$=K.Y.isMobile$,this.incitesUrl=a.getSettings().environment.incitesUrl,this.nonIncitesUrl=a.getSettings().environment.nonIncitesUrl}ngOnInit(){this.IncitesOverlayClickEvent(),this.store.select(B.wg).subscribe(e=>{this.handleCNCI(e.Incites_Benchmarking_Analytics)}).unsubscribe()}handleCNCI(e){this.dataCheck=!!e}IncitesOverlayClickEvent(){this.wurs.event({event:"event_result_click_v2",type:"IncitesOverlay"})}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Gt.il),t.rXU(Dt.w),t.rXU(oS.J))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-cnci-jnci-comparison-metrics-panel"]],inputs:{metrics:"metrics",record:"record",bestCitationIndex:"bestCitationIndex",mostRelevantCitationDb:"mostRelevantCitationDb"},decls:67,vars:73,consts:[["noData",""],[1,"padding-top-16","padding-bottom-16"],["class","font-weigth-700 font-size-32",4,"ngIf"],[1,"comparision-section"],[1,"cdx-right-panel-sub","padding-14"],["target","_blank","rel","noopener",1,"related-records","full-record-detail-section-links",3,"href"],["aria-hidden","true",1,"incites-external-link-icon"],["class","cdx-box-divisions error-info",4,"ngIf"],["id","exportMetrics"],[1,"cdx-horizontal-line"],[1,"cdx-right-panel-sub","bold-labels","padding-top-16"],["class","cdx-blocks-division cnci-padding",4,"ngIf"],[1,"padding-bottom-24","padding-top-24"],[1,"padding-bottom-24"],[1,"cdx-blocks-division","cnci-padding","background-color"],[1,"cdx-right-panel-sub"],[1,"cdx-box-divisions"],[4,"ngIf","ngIfElse"],[1,"non-subcription-alignment"],[1,"cdx-right-panel-body"],["class","padding-top-16",4,"ngIf"],["class","cdx-blocks-division  cnci-padding padding-bottom-24",4,"ngIf"],[1,"padding-top-16"],[1,"cdx-right-panel-sub","bold-labels","padding-bottom-24"],["class","cnci-jnci-value-position cdx-box-divisions",4,"ngIf","ngIfElse"],["class","cnci-padding cdx-blocks-division",4,"ngIf"],["target","_blank","rel","noopener","href","https://incites.zendesk.com/hc/en-gb/sections/25087224305937-Normalized-Indicators",1,"related-records","full-record-detail-section-links"],[1,"font-weigth-700","font-size-32"],[1,"cdx-box-divisions","error-info"],[1,"material-icons-outlined"],[1,"cdx-blocks-division","cnci-padding"],["class","cdx-title bold-label-number value-space",3,"ngClass",4,"ngIf","ngIfElse"],[1,"metrics-visualization"],[3,"metrics","exportFlag",4,"ngIf"],[1,"cdx-title","bold-label-number","value-space",3,"ngClass"],[3,"metrics","exportFlag"],[1,"cnci-jnci-value-position","cdx-box-divisions"],[1,"cdx-title","bold-label-number","cdx-line-height-16"],[1,"indicator-icon",3,"ngClass"],[1,"indicator"],[1,"indicator","bold-label-number"],[1,"cdx-blocks-division","cnci-padding","padding-bottom-24"],[1,"bold-label-number"],[1,"cnci-padding","cdx-blocks-division"],["class","bold-label-number cdx-title value-space",3,"ngClass",4,"ngIf","ngIfElse"],[1,"bold-label-number","cdx-title","value-space",3,"ngClass"],[1,"cdx-box-divisions","no-data-info"]],template:function(a,r){if(1&a&&(t.j41(0,"div",1),t.DNE(1,uS,3,5,"div",2),t.j41(2,"span",3),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",4),t.EFF(6),t.nI1(7,"translate"),t.j41(8,"a",5),t.nI1(9,"translate"),t.nI1(10,"translate"),t.EFF(11),t.nI1(12,"translate"),t.j41(13,"mat-icon",6),t.EFF(14,"open_in_new"),t.k0s()()(),t.DNE(15,_S,5,3,"div",7),t.k0s(),t.j41(16,"div",8),t.nrm(17,"hr",9),t.qex(18),t.j41(19,"div",10),t.EFF(20),t.nI1(21,"translate"),t.k0s(),t.DNE(22,mS,11,11,"div",11),t.j41(23,"div",12)(24,"div",13)(25,"div",14)(26,"span",15),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.j41(29,"div",16),t.DNE(30,gS,11,12,"ng-container",17),t.j41(31,"div",18)(32,"span",19),t.EFF(33),t.nI1(34,"translate"),t.k0s(),t.DNE(35,fS,4,3,"div",20),t.k0s()()()(),t.DNE(36,vS,9,10,"div",21),t.k0s(),t.nrm(37,"hr",9),t.j41(38,"div",22)(39,"div",23),t.EFF(40),t.nI1(41,"translate"),t.k0s(),t.j41(42,"div",13)(43,"div",14)(44,"span",15),t.EFF(45),t.nI1(46,"translate"),t.k0s(),t.j41(47,"div",16),t.DNE(48,xS,10,12,"div",24),t.j41(49,"div",18)(50,"span",19),t.EFF(51),t.nI1(52,"translate"),t.k0s(),t.DNE(53,CS,4,3,"div",20),t.k0s()()()(),t.DNE(54,yS,9,10,"div",25),t.k0s(),t.DNE(55,TS,6,3,"ng-template",null,0,t.C5r),t.bVm(),t.k0s(),t.j41(57,"div",4),t.EFF(58),t.nI1(59,"translate"),t.j41(60,"a",26),t.nI1(61,"translate"),t.nI1(62,"translate"),t.EFF(63),t.nI1(64,"translate"),t.j41(65,"mat-icon",6),t.EFF(66,"open_in_new"),t.k0s()()()),2&a){const o=t.sdS(56);t.R7$(),t.Y8G("ngIf",r.record.citation_related&&r.record.citation_related.counts[r.bestCitationIndex]?r.record.citation_related.counts[r.bestCitationIndex]:r.record.citation_related.counts[r.mostRelevantCitationDb]),t.R7$(),t.BMQ("data-ta",r.taPrefix+"CategoryComparision")("id",r.taPrefix+"CategoryComparision"),t.R7$(),t.SpI(" ",t.bMT(4,43,"CategoryComparision")," "),t.R7$(2),t.BMQ("data-ta",r.taPrefix+"DataFromInCites")("id",r.taPrefix+"DataFromInCites"),t.R7$(),t.SpI(" ",t.bMT(7,45,"DataFromInCites")," "),t.R7$(2),t.FS9("href",r.dataCheck?r.incitesUrl:r.nonIncitesUrl,t.B4B),t.BMQ("data-ta",r.taPrefix+(r.dataCheck?"incitesUrl":"nonIncitesUrl"))("aria-label",t.bMT(9,47,"WosToIncitesTooltip")+t.bMT(10,49,"OpenInNewWindow"))("id",r.taPrefix+"incitesUrl"),t.R7$(3),t.SpI("",t.bMT(12,51,"WosToIncites")," "),t.R7$(4),t.Y8G("ngIf",!(null!=r.metrics&&r.metrics.CNCI_INDICATOR)),t.R7$(4),t.BMQ("data-ta",r.taPrefix+"InTheCategory")("id",r.taPrefix+"InTheCategory"),t.R7$(),t.SpI("",t.bMT(21,53,"InTheCategory")," "),t.R7$(2),t.Y8G("ngIf",r.dataCheck),t.R7$(4),t.BMQ("data-ta",r.taPrefix+"CategoryNormalizedCitationImact")("id",r.taPrefix+"CategoryNormalizedCitationImact"),t.R7$(),t.JRh(t.bMT(28,55,"CategoryNormalizedCitationImact")),t.R7$(3),t.Y8G("ngIf",null==r.metrics?null:r.metrics.CNCI_INDICATOR)("ngIfElse",o),t.R7$(3),t.JRh(t.bMT(34,57,"CNCI_discription")),t.R7$(2),t.Y8G("ngIf",!(null!=r.metrics&&r.metrics.AVG_CNCI)),t.R7$(),t.Y8G("ngIf",r.dataCheck),t.R7$(3),t.BMQ("data-ta",r.taPrefix+"InTheJournal")("id",r.taPrefix+"InTheJournal"),t.R7$(),t.JRh(t.bMT(41,59,"InTheJournal")),t.R7$(4),t.BMQ("data-ta",r.taPrefix+"Journ
1alNormalizedCitationImpact")("id",r.taPrefix+"JournalNormalizedCitationImpact"),t.R7$(),t.JRh(t.bMT(46,61,"JournalNormalizedCitationImpact")),t.R7$(3),t.Y8G("ngIf",null==r.metrics?null:r.metrics.CNCI_INDICATOR)("ngIfElse",o),t.R7$(3),t.JRh(t.bMT(52,63,"JNCI_discription")),t.R7$(2),t.Y8G("ngIf",!(null!=r.metrics&&r.metrics.JNCI)),t.R7$(),t.Y8G("ngIf",r.dataCheck),t.R7$(3),t.BMQ("data-ta",r.taPrefix+"IncitesInformation")("id",r.taPrefix+"IncitesInformation"),t.R7$(),t.SpI(" ",t.bMT(59,65,"IncitesInformation")," "),t.R7$(2),t.BMQ("aria-label",t.bMT(61,67,"IncitesHelpTooltip")+t.bMT(62,69,"OpenInNewWindow"))("data-ta",r.taPrefix+"IncitesHelp")("id",r.taPrefix+"IncitesHelp"),t.R7$(3),t.SpI(" ",t.bMT(64,71,"IncitesHelp")," ")}},dependencies:[A.YU,A.bT,jt.An,dS,A.Jj,V.D9,Vo,Ei.Q],styles:[".background-color[_ngcontent-%COMP%]{background:#f5f5f5}.cnci-padding[_ngcontent-%COMP%]{gap:16px;padding:16px}.indicator-icon[_ngcontent-%COMP%]{font-size:40px;margin-top:20px}.below-average[_ngcontent-%COMP%]{margin:20px 0 0 20px}.icon-colors[_ngcontent-%COMP%]{color:#107f06;margin:0 15px 20px 0}.comparision-section[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-style:normal;font-weight:700;font-size:26px;line-height:34px}.error-info[_ngcontent-%COMP%]{background-color:#d6f0fb;border:1px solid #3F96BB;padding:16px}.no-data-info[_ngcontent-%COMP%]{color:#616161;white-space:nowrap;margin-right:35px}.mobile-value-space[_ngcontent-%COMP%]{width:150px!important}.value-space[_ngcontent-%COMP%]{width:325px}.bold-label-number[_ngcontent-%COMP%]{font-weight:400!important}.cnci-jnci-value-position[_ngcontent-%COMP%]{flex-basis:25%}.non-subcription-alignment[_ngcontent-%COMP%]{flex-basis:75%}.indicator[_ngcontent-%COMP%]{font-size:12px;line-height:12px;width:40px;height:24px}.bold-labels[_ngcontent-%COMP%]{font-weight:600!important}.incites-external-link-icon[_ngcontent-%COMP%]{vertical-align:top!important}.metrics-visualization[_ngcontent-%COMP%]{margin-left:80px;margin-top:20px}"]})}}return i})();const kS=["cnciSidenav"],FS=(i,n,e)=>({from:i,type:n,siloSearchWarning:e}),Dn=i=>({num:i}),wS=i=>({"add-padding":i}),Pi=(i,n)=>({from:i,type:n}),MS=(i,n)=>["/",i,"cited-references-summary",n],SS=i=>({"mobile-overlay":i}),AS=i=>({"mobile-close-button":i}),ES=(i,n)=>["/",i,"pub-med-related-summary",n],PS=i=>({count:i}),GS=(i,n,e,a)=>({qid:i,sort:n,doc:e,from:a}),DS=i=>["/","alldb","full-record",i];function $S(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",21)(1,"div",22)(2,"button",23),t.nI1(3,"translate"),t.nI1(4,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.dismissNotification())}),t.nrm(5,"mat-icon",24),t.k0s()(),t.j41(6,"div",25),t.nrm(7,"mat-icon",26),t.j41(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.nI1(11,"uppercase"),t.nI1(12,"translate"),t.k0s()()()}if(2&i){const e=t.XpG();t.R7$(2),t.Y8G("title",t.bMT(3,4,"dismissLabel")),t.BMQ("aria-label",t.bMT(4,6,"dismissLabel")),t.R7$(7),t.Lme("",t.bMT(10,8,"youAreIn")," ",t.bMT(12,12,t.bMT(11,10,e.collection)+"_name"),"")}}function LS(i,n){1&i&&t.nrm(0,"mat-icon",35)}function NS(i,n){1&i&&(t.j41(0,"mat-icon",36),t.EFF(1,"arrow_forward"),t.k0s())}function jS(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",27)(1,"div",28),t.nrm(2,"mat-icon",29),t.j41(3,"h2",30),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"p"),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"button",31),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.askRA())}),t.j41(10,"span",32),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.DNE(13,LS,1,0,"mat-icon",33)(14,NS,2,0,"mat-icon",34),t.k0s()()}if(2&i){const e=t.XpG();t.R7$(4),t.JRh(t.bMT(5,8,"discover_what_matters_most")),t.R7$(3),t.JRh(t.bMT(8,10,"ra_cta_fullrec_text")),t.R7$(2),t.Y8G("disabled",e.askingRA),t.BMQ("data-ta",e.taPrefix+"ra-full-rec-cta")("id",e.taPrefix+"ra-full-rec-cta"),t.R7$(2),t.JRh(t.bMT(12,12,"explore_insights")),t.R7$(2),t.Y8G("ngIf",e.askingRA),t.R7$(),t.Y8G("ngIf",!e.askingRA)}}function OS(i,n){if(1&i&&(t.qex(0),t.j41(1,"h2",17),t.EFF(2,"citationNetwork"),t.k0s(),t.nrm(3,"hr",42),t.j41(4,"h3",16)(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.k0s()(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngClass","cdx-right-panel-main"),t.BMQ("data-ta",e.taPrefix+"citationNetworkTitle")("id",e.taPrefix+"citationNetworkTitle"),t.R7$(2),t.Y8G("ngClass","horizental-line-border"),t.R7$(),t.Y8G("ngClass","cdx-right-panel-sub title"),t.R7$(),t.BMQ("data-ta",e.taPrefix+"citationNetworkIn")("id",e.taPrefix+"citationNetworkIn"),t.R7$(),t.SpI(" ",t.bMT(7,11,"in")," "),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"citationNetworkName")("id",e.taPrefix+"citationNetworkName"),t.R7$(),t.SpI(" ",t.bMT(10,13,(e.record.citation_related.counts[e.bestCitationIndex]||!e.record.citation_related.counts[e.mostRelevantCitationDb]?e.bestCitationIndex:e.mostRelevantCitationDb)+"_name")," ")}}function BS(i,n){if(1&i&&(t.j41(0,"div",45)(1,"button",46),t.nrm(2,"mat-icon",47),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.FCK("routerLink","/",e.database.toLowerCase(),"/citation-map/",e.record.id.value,""),t.BMQ("data-ta",e.taPrefix+"view-citation-map-button")("id",e.taPrefix+"view-citation-map-button"),t.R7$(2),t.SpI(" ",t.bMT(4,6,"viewCitationMap")," ")}}function YS(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",52),t.nI1(1,"number"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(5);return t.Njj(r.cacheCitingMetadata())}),t.EFF(3),t.nI1(4,"number"),t.k0s()}if(2&i){const e=t.XpG(2).ngIf,a=t.XpG(3);t.FCK("routerLink","/",a.record.citation_related.counts[a.bestCitationIndex]?a.bestCitationIndex.toLowerCase():a.mostRelevantCitationDb.toLowerCase(),"/citing-summary/",a.record.id.value,""),t.FS9("cdxAnalyticsCategory","wos-citation-network-times-cited-count-link"+a.analyticsEventPostfix),t.Y8G("queryParams",t.sMw(16,FS,a.fromDatabase.toLowerCase(),a.record.id.type,a.database!==a.collection&&"ALLDB"!==a.database))("matTooltip",t.i5U(2,11,"numOfCitations",t.eq3(20,Dn,t.bMT(1,9,e)))),t.BMQ("data-ta",a.taPrefix+"wos-citation-network-times-cited-count-link-"
1+e)("id",a.taPrefix+"wos-citation-network-times-cited-count-link-"+e),t.R7$(3),t.SpI(" ",t.bMT(4,14,e)," ")}}function XS(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",53),t.nI1(1,"number"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(5);return t.Njj(r.gotoCitationNetwork("citingPatent"))}),t.j41(3,"span",54),t.EFF(4),t.nI1(5,"number"),t.k0s()()}if(2&i){const e=t.XpG(2).ngIf,a=t.XpG(3);t.FS9("cdxAnalyticsCategory","wos-citation-network-times-cited-count-link"+a.analyticsEventPostfix),t.Y8G("matTooltip",t.i5U(2,7,"numOfCitations",t.eq3(12,Dn,t.bMT(1,5,e)))),t.BMQ("data-ta",a.taPrefix+"wos-citation-network-times-cited-count-link-"+e)("id",a.taPrefix+"wos-citation-network-times-cited-count-link-"+e),t.R7$(4),t.SpI(" ",t.bMT(5,10,e)," ")}}function qS(i,n){if(1&i&&(t.qex(0),t.DNE(1,YS,5,22,"a",51)(2,XS,6,14,"ng-template",null,4,t.C5r),t.bVm()),2&i){const e=t.sdS(3),a=t.XpG(4);t.R7$(),t.Y8G("ngIf",!a.patentIndexes.includes(a.database))("ngIfElse",e)}}function HS(i,n){if(1&i&&(t.j41(0,"label",55),t.nI1(1,"number"),t.nI1(2,"translate"),t.EFF(3),t.nI1(4,"number"),t.k0s()),2&i){const e=t.XpG().ngIf,a=t.XpG(3);t.Y8G("matTooltip",t.i5U(2,6,"numOfCitations",t.eq3(11,Dn,t.bMT(1,4,e)))),t.BMQ("data-ta",a.taPrefix+"wos-citation-network-times-cited-count-link-"+e)("id",a.taPrefix+"wos-citation-network-times-cited-count-link-"+e),t.R7$(3),t.SpI(" ",t.bMT(4,9,e)," ")}}function VS(i,n){if(1&i&&(t.j41(0,"div",56)(1,"span"),t.EFF(2),t.nI1(3,"dbvaluetranslate"),t.k0s()()),2&i){const e=t.XpG().ngIf,a=t.XpG(3);t.BMQ("data-ta",a.taPrefix+"citationsLabelPlural-"+e)("id",a.taPrefix+"citationsLabelPlural-"+e),t.R7$(2),t.JRh(t.i5U(3,3,e>1?"citationsLabelPlural":"citationsLabelSingular",a.collection))}}function zS(i,n){if(1&i&&(t.j41(0,"div",57),t.EFF(1),t.nI1(2,"dbvaluetranslate"),t.k0s()),2&i){const e=t.XpG().ngIf,a=t.XpG(3);t.BMQ("data-ta",a.taPrefix+"citingPreprints-"+e)("id",a.taPrefix+"citingPreprints-"+e),t.R7$(),t.SpI("",t.i5U(2,3,1===e?"citingPreprint":"citingPreprints",a.database)," ")}}function QS(i,n){if(1&i&&(t.j41(0,"div",48),t.DNE(1,qS,4,2,"ng-container",49),t.nI1(2,"feature"),t.nI1(3,"entitlements"),t.DNE(4,HS,5,13,"ng-template",null,2,t.C5r)(6,VS,4,6,"div",50)(7,zS,3,6,"ng-template",null,3,t.C5r),t.k0s()),2&i){const e=t.sdS(5),a=t.sdS(8),r=t.XpG(3);t.R7$(),t.Y8G("ngIf",t.bMT(3,6,!t.bMT(2,4,"nxPresentationControl_FullRecord_Hide_CreateCitationAlertLink")&&r.isCitationEntitled&&(r.record.citation_related.counts[r.bestCitationIndex]?r.bestCitationIndex:r.mostRelevantCitationDb)))("ngIfElse",e),t.R7$(5),t.Y8G("ngIf",!("PPRN"===r.bestCitationIndex&&r.record.citation_related.counts[r.bestCitationIndex]))("ngIfElse",a)}}function US(i,n){if(1&i&&(t.j41(0,"div")(1,"div",58),t.EFF(2,"0"),t.k0s(),t.j41(3,"h3",59),t.EFF(4),t.nI1(5,"dbvaluetranslate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.xc7("display","inline"),t.R7$(2),t.xc7("display","inline"),t.BMQ("data-ta",e.taPrefix+"citationsLabelPluralNoLink-0")("id",e.taPrefix+"citationsLabelPluralNoLink-0"),t.R7$(),t.SpI("",t.i5U(5,7,"citationsLabelPlural",e.collection)," ")}}function JS(i,n){if(1&i&&(t.qex(0),t.DNE(1,BS,5,8,"div",43),t.nI1(2,"feature"),t.DNE(3,QS,9,8,"div",44)(4,US,6,10,"ng-template",null,1,t.C5r),t.bVm()),2&i){const e=t.sdS(5),a=t.XpG(2);t.R7$(),t.Y8G("ngIf",t.bMT(2,3,"nxShowCitationMap")&&a.showCitationMapButton),t.R7$(2),t.Y8G("ngIf",a.record.citation_related&&a.record.citation_related.counts[a.bestCitationIndex]?a.record.citation_related.counts[a.bestCitationIndex]:a.record.citation_related.counts[a.mostRelevantCitationDb])("ngIfElse",e)}}function WS(i,n){1&i&&(t.j41(0,"span"),t.nrm(1,"mat-icon",63),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&i&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"createdCitAlert")," "))}function KS(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",64),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.openCreateCitOverlay())}),t.j41(1,"mat-icon",65),t.EFF(2,"add_alert"),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.k0s()}2&i&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"createCitAlert")," "))}function ZS(i,n){if(1&i&&(t.j41(0,"div",42),t.DNE(1,WS,4,3,"span",20),t.nI1(2,"async"),t.DNE(3,KS,5,3,"button",62),t.nI1(4,"async"),t.nI1(5,"async"),t.k0s()),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(9,wS,e.record.ic_related&&e.record.ic_related.highly_cited)),t.R7$(),t.Y8G("ngIf",t.bMT(2,3,e.hasCitaionAlert$)),t.R7$(2),t.Y8G("ngIf",null===t.bMT(4,5,e.hasCitaionAlert$)||!1===t.bMT(5,7,e.hasCitaionAlert$))}}function t9(i,n){1&i&&(t.j41(0,"button",66),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"createCitAlert")," "))}
1function e9(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,ZS,6,11,"div",60)(2,t9,3,3,"button",61),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",e.isCreateCitationAlert),t.R7$(),t.Y8G("ngIf",!e.isCreateCitationAlert)}}function n9(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",72),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.cacheCitingMetadata())}),t.j41(1,"span"),t.EFF(2),t.nI1(3,"number"),t.k0s()()}if(2&i){const e=t.XpG(4);t.FCK("routerLink","/","ALLDB".toLowerCase(),"/citing-summary/",e.record.id.value,""),t.FS9("cdxAnalyticsCategory","wos-citation-network-times-cited-count-link"+e.analyticsEventPostfix),t.Y8G("queryParams",t.l_i(13,Pi,e.fromDatabase.toLowerCase(),e.record.id.type))("matTooltip",e.timesCitedTooltip()),t.BMQ("data-ta",e.taPrefix+"wos-citation-network-times-cited-count-link-ALLDB")("id",e.taPrefix+"wos-citation-network-times-cited-count-link-ALLDB"),t.R7$(),t.BMQ("data-ta",e.taPrefix+"citationsLabelPlural-ALLDB")("id",e.taPrefix+"citationsLabelPlural-ALLDB"),t.R7$(),t.SpI(" ",t.bMT(3,11,e.record.citation_related.counts.ALLDB)," ")}}function i9(i,n){if(1&i&&(t.j41(0,"div",73)(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s()()),2&i){const e=t.XpG(4);t.BMQ("data-ta",e.taPrefix+"citationsLabelPlural-ALLDB_name")("id",e.taPrefix+"citationsLabelPlural-ALLDB_name"),t.R7$(2),t.Lme("",t.bMT(3,4,"timesCitedIn")," ",t.bMT(4,6,"ALLDB_name"),"")}}function a9(i,n){if(1&i&&(t.j41(0,"label",55),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&i){t.XpG();const e=t.r8f(0),a=t.XpG(4);t.Y8G("matTooltip",a.timesCitedTooltip()),t.BMQ("data-ta",a.taPrefix+"citationsLabelPlural-ALLDB")("id",a.taPrefix+"citationsLabelPlural-ALLDB"),t.R7$(),t.SpI(" ",t.bMT(2,4,e)," ")}}function r9(i,n){if(1&i&&(t.SS7(0),t.DNE(1,a9,3,6,"label",74),t.nI1(2,"entitlements")),2&i){const e=t.XpG(4),a=t.bH3(e.record.citation_related.counts.ALLDB?e.record.citation_related.counts.ALLDB:"0");t.R7$(),t.Y8G("ngIf",a>0&&t.bMT(2,2,"ALLDB"))}}function o9(i,n){if(1&i&&t.nrm(0,"app-time-cited-score-card",80),2&i){const e=t.XpG(5);t.Y8G("hidden",e.isScoreCardHidden)("database",e.fromDatabase)("record",e.record)("citationCollections",e.citationCollections)("chartData",e.record.citation_related.counts),t.BMQ("aria-hidden",e.isScoreCardHidden)}}function s9(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",83),t.bIt("click",function(){t.eBV(e);const r=t.XpG(7);return t.Njj(r.cacheCitingMetadata())}),t.j41(1,"span",84),t.EFF(2),t.nI1(3,"number"),t.k0s(),t.j41(4,"span",85),t.EFF(5),t.nI1(6,"translate"),t.nI1(7,"translate"),t.k0s()()}if(2&i){const e=t.XpG(2).$implicit,a=t.XpG(5);t.FCK("routerLink","/",e.toLowerCase(),"/citing-summary/",a.record.id.value,""),t.FS9("cdxAnalyticsCategory","wos-citation-network-times-cited-count-link"+a.analyticsEventPostfix),t.Y8G("queryParams",t.l_i(18,Pi,a.fromDatabase.toLowerCase(),a.record.id.type)),t.BMQ("data-ta",a.taPrefix+"wos-citation-network-times-cited-count-link-"+e)("id",a.taPrefix+"wos-citation-network-times-cited-count-link-"+e),t.R7$(2),t.JRh(t.bMT(3,12,a.record.citation_related.counts[e])),t.R7$(2),t.BMQ("data-ta",a.taPrefix+"citationsLabelPlural-"+e)("id",a.taPrefix+"citationsLabelPlural-"+e),t.R7$(),t.Lme(" ",t.bMT(6,14,"in")," ",t.bMT(7,16,e+"_name")," ")}}function l9(i,n){if(1&i&&(t.j41(0,"span")(1,"span"),t.EFF(2),t.k0s(),t.j41(3,"span",86),t.EFF(4),t.nI1(5,"translate"),t.nI1(6,"translate"),t.k0s()()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(5);t.R7$(2),t.SpI(" ",a.record.citation_related.counts[e]&&a.record.citation_related.counts[e]>=0?a.record.citation_related.counts[e]:0," "),t.R7$(),t.BMQ("data-ta",a.taPrefix+"citationsLabelPlural-"+e)("id",a.taPrefix+"citationsLabelPlural-"+e),t.R7$(),t.Lme(" ",t.bMT(5,5,"in")," ",t.bMT(6,7,e+"_name")," ")}}function c9(i,n){if(1&i&&t.DNE(0,l9,7,9,"span",20),2&i){const e=t.XpG(2).$implicit;t.Y8G("ngIf","PPRN"!==e)}}function d9(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,s9,8,21,"a",82),t.nI1(2,"entitlements"),t.DNE(3,c9,1,1,"ng-template",null,6,t.C5r),t.k0s()),2&i){const e=t.sdS(4),a=t.XpG().$implicit,r=t.XpG
1(5);t.R7$(),t.Y8G("ngIf",r.record.citation_related.counts[a]&&r.record.citation_related.counts[a]>0&&t.bMT(2,2,a)&&"PPRN"!==a)("ngIfElse",e)}}function u9(i,n){if(1&i&&(t.j41(0,"div",81),t.DNE(1,d9,5,4,"div",20),t.nI1(2,"feature"),t.k0s()),2&i){const e=t.XpG(5);t.Y8G("hidden",e.isScoreCardHidden),t.BMQ("aria-hidden",e.isScoreCardHidden),t.R7$(),t.Y8G("ngIf",!t.bMT(2,3,"nxShowTimeCitedScoreCard"))}}function _9(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"div",75)(2,"button",76),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.switchScoreCard())}),t.j41(3,"mat-icon",77),t.EFF(4),t.k0s(),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.DNE(7,o9,1,6,"app-time-cited-score-card",78),t.nI1(8,"feature"),t.DNE(9,u9,3,5,"div",79),t.bVm()}if(2&i){const e=t.XpG(4);t.R7$(2),t.BMQ("data-ta",e.taPrefix+"showScoreCardButton")("id",e.taPrefix+"showScoreCardButton"),t.R7$(2),t.JRh(e.isScoreCardHidden?"add":"remove"),t.R7$(),t.SpI(" ",t.bMT(6,6,e.isScoreCardHidden?"seeMoreCitations":"seeLessCitations")," "),t.R7$(2),t.Y8G("ngIf",t.bMT(8,8,"nxShowTimeCitedScoreCard")),t.R7$(2),t.Y8G("ngForOf",e.citationCollections)}}function p9(i,n){1&i&&t.eu8(0)}function h9(i,n){if(1&i&&(t.j41(0,"div",37)(1,"div",68),t.DNE(2,n9,4,16,"a",69),t.nI1(3,"entitlements"),t.DNE(4,i9,5,8,"div",70),t.nI1(5,"entitlements"),t.k0s(),t.DNE(6,r9,3,4,"ng-template",null,5,t.C5r),t.j41(8,"div"),t.DNE(9,_9,10,10,"ng-container",20)(10,p9,1,0,"ng-container",71),t.k0s()()),2&i){const e=t.sdS(7);t.XpG(2);const a=t.sdS(11),r=t.XpG();t.R7$(2),t.Y8G("ngIf",r.record.citation_related.counts.ALLDB&&r.isCitationEntitled&&r.record.citation_related.counts.ALLDB>0&&t.bMT(3,5,"ALLDB"))("ngIfElse",e),t.R7$(2),t.Y8G("ngIf",r.record.citation_related.counts.ALLDB&&r.record.citation_related.counts.ALLDB>0&&t.bMT(5,7,"ALLDB")),t.R7$(5),t.Y8G("ngIf",r.record.citation_related.counts.ALLDB&&r.record.citation_related.counts.ALLDB>0),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}
1function m9(i,n){if(1&i&&(t.qex(0),t.DNE(1,h9,11,9,"div",67),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(null==e.record.citation_related?null:e.record.citation_related.counts[e.bestCitationIndex])||(null==e.record.citation_related?null:e.record.citation_related.counts[e.mostRelevantCitationDb])||(null==e.record.citation_related?null:e.record.citation_related.counts.ALLDB))}}function g9(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",90),t.bIt("click",function(){t.eBV(e);const r=t.XpG(5);return t.Njj(r.cacheCitingMetadata())}),t.j41(1,"mat-icon",91),t.EFF(2,"add"),t.k0s(),t.j41(3,"span"),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}if(2&i){const e=t.XpG().$implicit,a=t.XpG(4);t.FCK("routerLink","/",e.toLowerCase(),"/citing-summary/",a.record.id.value,""),t.FS9("cdxAnalyticsCategory","wos-citation-network-times-cited-count-link"+a.analyticsEventPostfix),t.Y8G("queryParams",t.l_i(12,Pi,a.fromDatabase.toLowerCase(),a.record.id.type)),t.BMQ("data-ta",a.taPrefix+"wos-citation-network-times-cited-count-link-"+e)("id",a.taPrefix+"wos-citation-network-times-cited-count-link-"+e),t.R7$(3),t.BMQ("data-ta",a.taPrefix+"citationsLabelPlural-"+e)("id",a.taPrefix+"citationsLabelPlural-"+e),t.R7$(),t.SpI(" ",t.bMT(5,10,"view_citing_preprints")," ")}}function f9(i,n){if(1&i&&(t.qex(0,88),t.DNE(1,g9,6,15,"button",89),t.nI1(2,"entitlements"),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(4);t.R7$(),t.Y8G("ngIf",a.record.citation_related.counts[e]&&a.record.citation_related.counts[e]>0&&t.bMT(2,1,e))}}function b9(i,n){if(1&i&&(t.qex(0),t.DNE(1,f9,3,3,"ng-container",87),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngForOf",e.secondaryCitationCollections)}}function v9(i,n){if(1&i&&t.DNE(0,b9,2,1,"ng-container",20),2&i){const e=t.XpG(2);t.Y8G("ngIf",e.secondaryCitationCollections.length>0)}}function x9(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"button",94),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG().$implicit,o=t.XpG(2);return t.Njj(o.gotoCitationNetwork(o.getCitedParameter(r)))}),t.j41(3,"span",54),t.EFF(4),t.k0s()(),t.bVm()}if(2&i){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(),t.Y8G("matTooltip",t.bMT(2,4,e+"Alt")),t.BMQ("data-ta",a.taPrefix+e+"-button")("id",a.taPrefix+e+"-button"),t.R7$(3),t.JRh(a.record.cited_count[e])}}function C9(i,n){if(1&i&&(t.j41(0,"span",54),t.EFF(1),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(),t.JRh(a.record.cited_count[e])}}function R9(i,n){1&i&&(t.j41(0,"div",95),t.nrm(1,"hr",42),t.k0s()),2&i&&(t.R7$(),t.Y8G("ngClass","horizental-line-border"))}function y9(i,n){if(1&i&&(t.j41(0,"div")(1,"h3",92)(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.DNE(5,x9,5,6,"ng-container",49)(6,C9,2,1,"ng-template",null,7,t.C5r)(8,R9,2,1,"div",93),t.k0s()),2&i){const e=n.$implicit,a=n.index,r=n.last,o=t.sdS(7),s=t.XpG(2);t.R7$(2),t.BMQ("data-ta",s.taPrefix+e)("id",s.taPrefix+e),t.R7$(),t.SpI(" ",t.bMT(4,6,e+"_label")," "),t.R7$(2),t.Y8G("ngIf",!(s.hidecitationCollections.includes(s.record.coll)&&"ALLDB"==s.database))("ngIfElse",o),t.R7$(3),t.Y8G("ngIf",r||s.citedCountFields[a].startsWith("article")&&(null==s.citedCountFields[a+1]?null:s.citedCountFields[a+1].startsWith("patent")))}}
1function T9(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",100),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.goToMiniCitedReference())}),t.EFF(1),t.k0s()}if(2&i){const e=t.XpG(4);t.FS9("cdxAnalyticsCategory","wos-citation-network-cited-reference-count-link"+e.analyticsEventPostfix),t.Y8G("matTooltip",e.refCountTooltip()),t.BMQ("data-ta",e.taPrefix+"wos-citation-network-refCountLink")("id",e.taPrefix+"wos-citation-network-refCountLink"),t.R7$(),t.SpI(" ",e.refCount," ")}}function I9(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",101),t.nI1(1,"number"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.cacheCitingMetadata(r.referencesDatabase,r.refUt))}),t.EFF(3),t.k0s()}if(2&i){const e=t.XpG(4);t.FS9("cdxAnalyticsCategory","wos-citation-network-cited-reference-count-link"+e.analyticsEventPostfix),t.Y8G("routerLink",t.l_i(12,MS,e.referencesDatabase.toLowerCase(),e.refUt))("queryParams",t.l_i(15,Pi,e.referencesDatabase.toLowerCase(),e.record.id.type))("matTooltip",t.i5U(2,9,"numOfReferencesIs",t.eq3(18,Dn,t.bMT(1,7,e.record.ref_count)))),t.BMQ("data-ta",e.taPrefix+"cited-references-summary-Link")("id",e.taPrefix+"cited-references-summary-Link"),t.R7$(3),t.SpI(" ",e.record.ref_count," ")}}function k9(i,n){if(1&i&&(t.qex(0),t.DNE(1,T9,2,5,"a",98)(2,I9,4,20,"a",99),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngIf",e.refCount),t.R7$(),t.Y8G("ngIf",!e.refCount&&e.refUt&&!e.record.reference&&e.record.ref_count>0)}}function F9(i,n){if(1&i&&(t.j41(0,"label",103),t.nI1(1,"number"),t.nI1(2,"translate"),t.EFF(3),t.k0s()),2&i){const e=t.XpG(4);t.FS9("cdxAnalyticsCategory","wos-citation-network-cited-reference-count-link"+e.analyticsEventPostfix),t.Y8G("matTooltip",t.i5U(2,7,"numReferences",t.eq3(10,Dn,t.bMT(1,5,e.record.ref_count)))),t.BMQ("data-ta",e.taPrefix+"cited-references-summary-Link")("id",e.taPrefix+"cited-references-summary-Link"),t.R7$(3),t.SpI(" ",e.record.ref_count," ")}}function w9(i,n){if(1&i&&t.DNE(0,F9,4,12,"label",102),2&i){const e=t.XpG(3);
1t.Y8G("ngIf",e.record.ref_count>0)}}function M9(i,n){1&i&&(t.j41(0,"span",104),t.EFF(1," 0 "),t.k0s())}function S9(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",68),t.DNE(2,k9,3,2,"ng-container",49),t.nI1(3,"feature"),t.DNE(4,w9,1,1,"ng-template",null,8,t.C5r)(6,M9,2,0,"span",96),t.j41(7,"h3",97)(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.bVm()),2&i){const e=t.sdS(5),a=t.XpG(2);t.R7$(2),t.Y8G("ngIf",!t.bMT(3,6,"nxPresentationControl_FullRecordRightPanel_Disable_CitedReferencesLink"))("ngIfElse",e),t.R7$(4),t.Y8G("ngIf",!(a.refCount||a.refUt&&(a.record.reference||a.record.ref_count))),t.R7$(),t.BMQ("data-ta",a.taPrefix+"citedReferences")("id",a.taPrefix+"citedReferences"),t.R7$(2),t.SpI(" ",t.bMT(10,8,1===a.record.ref_count?"citedReferencesSingular":"citedReferences")," ")}}function A9(i,n){if(1&i&&(t.j41(0,"button",107),t.nI1(1,"translate"),t.j41(2,"mat-icon",77),t.EFF(3,"arrow_forward"),t.k0s(),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&i){const e=t.XpG(3);t.FCK("routerLink","/",e.database.toLowerCase(),"/related-records-summary/",e.record.id.value,""),t.FS9("cdxAnalyticsCategory","wos-citation-network-view-related-records"+e.analyticsEventPostfix),t.Y8G("queryParams",t.l_i(13,Pi,e.database.toLowerCase(),e.record.id.type))("matTooltip",t.bMT(1,9,"viewRelatedRecordsAlt")),t.BMQ("data-ta",e.taPrefix+"cited-references-summary-viewRelatedRecordsLink")("id",e.taPrefix+"cited-references-summary-viewRelatedRecordsLink"),t.R7$(4),t.SpI(" ",t.bMT(5,11,"viewRelatedRecords")," ")}}function E9(i,n){if(1&i&&(t.j41(0,"div",105),t.DNE(1,A9,6,16,"button",106),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",e.refCount&&e.refCount>0||!e.record.reference&&e.record.ref_count&&e.record.ref_count>0)}}function P9(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"div")(2,"span",104)(3,"a",108),t.nI1(4,"number"),t.nI1(5,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.goToblurbsCitedReference())}),t.EFF(6),t.k0s()(),t.j41(7,"h3",97)(8,"span",109),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.bVm()}if(2&i){const e=t.XpG(2);t.R7$(3),t.Y8G("matTooltip",t.i5U(5,7,"UnlinkedCitedReferencesIs",t.eq3(12,Dn,t.bMT(4,5,e.record.item.unspecified_refs.length)))),t.BMQ("data-ta",e.taPrefix+"UnlinkedCitedReferences")("id",e.taPrefix+"UnlinkedCitedReferences"),t.R7$(3),t.SpI(" ",null==e.record.item||null==e.record.item.unspecified_refs?null:e.record.item.unspecified_refs.length," "),t.R7$(3),t.JRh(t.bMT(10,10,"UnlinkedCitedReferences"))}}function G9(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",130),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.downloadPDF(r.metrics,"ComparisonMetrics"))}),t.j41(2,"h3",131),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}2&i&&(t.BMQ("aria-label",t.bMT(1,2,"ExportToPDF")),t.R7$(3),t.JRh(t.bMT(4,4,"ExportToPDF")))}function D9(i,n){if(1&i){const e=t.RV6();t.j41(0,"mat-sidenav",119,9),t.nI1(2,"async"),t.bIt("keydown.escape",function(){t.eBV(e);const r=t.XpG(5);return t.Njj(r.updateNavStatus(!1))}),t.qex(3),t.j41(4,"div",120)(5,"div",121)(6,"div",122),t.nI1(7,"async"),t.j41(8,"button",123),t.nI1(9,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(5);return t.Njj(r.updateNavStatus(!1))}),t.j41(10,"mat-icon",124),t.EFF(11,"arrow_back "),t.k0s()(),t.j41(12,"span",125),t.EFF(13),t.nI1(14,"translate"),t.k0s()(),t.DNE(15,G9,5,6,"button",126),t.nI1(16,"feature"),t.j41(17,"button",127),t.nI1(18,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(5);return t.Njj(r.updateNavStatus(!1))}),t.j41(19,"mat-icon",128),t.EFF(20,"clear"),t.k0s()()(),t.nrm(21,"hr",16)(22,"app-cnci-jnci-comparison-metrics-panel",129),t.k0s(),t.bVm(),t.k0s()}if(2&i){const e=t.XpG(5);t.Y8G("ngClass",t.eq3(24,SS,t.bMT(2,12,e.isMobile$)))("fixedInViewport",!0),t.R7$(6),t.Y8G("ngClass",t.eq3(26,AS,t.bMT(7,14,e.isMobile$))),t.R7$(2),t.BMQ("aria-label",t.bMT(9,16,"ComparisonMetricsFromInCites")),t.R7$(5),t.JRh(t.bMT(14,18,"ComparisonMetricsFromInCites")),t.R7$(2),t.Y8G("ngIf",t.bMT(16,20,"enableComparisonMetricPanelExportToPDF")&&e.incitesEntitlement&&e.metrics),t.R7$(2),t.BMQ("aria-label",t.bMT(18,22,"closeJNCI_CNCIInfo")),t.R7$(4),t.Y8G("ngClass","horizental-line-border"),t.R7$(),t.Y8G("metrics",e.metrics)("record",e.record)("bestCitationIndex",e.bestCitationIndex)("mostRelevantCitationDb",e.mostRelevantCitationDb)}}
1function $9(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",114)(1,"mat-sidenav-container",115),t.bIt("backdropClick",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.updateNavStatus(!1))}),t.DNE(2,D9,23,28,"mat-sidenav",116),t.j41(3,"mat-sidenav-content")(4,"button",117),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.updateNavStatus(!0))}),t.j41(5,"mat-icon",77),t.EFF(6,"arrow_back"),t.k0s(),t.j41(7,"span",118),t.EFF(8),t.nI1(9,"translate"),t.k0s()()()()()}if(2&i){const e=t.XpG(4);t.R7$(),t.Y8G("ngClass","cdx-cnci-sidenav-containers"),t.R7$(),t.Y8G("ngIf",e.cncichecking),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"comparisionMetrics")("id",e.taPrefix+"comparisionMetricsInfo"),t.R7$(4),t.JRh(t.bMT(9,5,"comparisionMetrics"))}}function L9(i,n){if(1&i&&(t.j41(0,"div"),t.nrm(1,"hr",16),t.j41(2,"div",110)(3,"div",111),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.DNE(6,$9,10,7,"div",112),t.nI1(7,"feature"),t.j41(8,"div",113),t.EFF(9),t.nI1(10,"translate"),t.k0s()()()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngClass","horizental-line-border"),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"CategoryComparision")("id",e.taPrefix+"CategoryComparision"),t.R7$(),t.SpI(" ",t.bMT(5,8,"CategoryComparisionMetrics")," "),t.R7$(2),t.Y8G("ngIf",!t.bMT(7,10,"nxPresentationControl_Display_Comparision_metrics_pannel")),t.R7$(2),t.BMQ("data-ta",e.taPrefix+"IncitesBenchmarking")("id",e.taPrefix+"IncitesBenchmarking"),t.R7$(),t.SpI(" ",t.bMT(10,12,"IncitesBenchmarking")," ")}}function N9(i,n){if(1&i&&(t.qex(0),t.DNE(1,L9,11,14,"div",20),t.nI1(2,"feature"),t.bVm()),2&i){const e=t.XpG(2);
1t.R7$(),t.Y8G("ngIf",e.record.pub_info.pubyear>e.publishedYear&&!t.bMT(2,1,"nxPresentationControl_FullRecord_Hide_ComparisonMetricsPanel"))}}function j9(i,n){if(1&i&&(t.j41(0,"div",133)(1,"div",134),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"p"),t.EFF(5),t.k0s()(),t.j41(6,"mat-dialog-actions",135)(7,"button",136),t.nI1(8,"translate"),t.EFF(9),t.nI1(10,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.BMQ("id",e.taPrefix+"citeResourceAs")("data-ta",e.taPrefix+"citeResourceAs"),t.R7$(2),t.SpI(" ",t.bMT(3,8,"citeResourceRecommends")," "),t.R7$(3),t.JRh(null==e.record.item||null==e.record.item.BibliographicData?null:e.record.item.BibliographicData.CiteResourceAs),t.R7$(2),t.FS9("aria-describedby",t.bMT(8,10,"closeDialog")),t.BMQ("id",e.taPrefix+"closeDialog")("data-ta",e.taPrefix+"closeDialog"),t.R7$(2),t.SpI(" ",t.bMT(10,12,"close")," ")}}function O9(i,n){if(1&i){const e=t.RV6();t.j41(0,"div"),t.DNE(1,j9,11,14,"ng-template",null,10,t.C5r),t.j41(3,"button",132),t.nI1(4,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.sdS(2),o=t.XpG(2);return t.Njj(o.dialog.open(r,{height:"auto",width:"620px"}))}),t.EFF(5),t.nI1(6,"translate"),t.k0s()()}if(2&i){const e=t.XpG(2);t.R7$(3),t.Y8G("matTooltip",t.bMT(4,4,"citeResourceAsAlt")),t.BMQ("data-ta",e.taPrefix+"citeResourceAs")("id",e.taPrefix+"citeResourceAs"),t.R7$(2),t.SpI(" ",t.bMT(6,6,"citeResourceAs")," ")}}function B9(i,n){if(1&i&&(t.j41(0,"div",88)(1,"a",137),t.nI1(2,"translate"),t.EFF(3),t.nI1(4,"translate"),t.j41(5,"mat-icon",77),t.EFF(6,"arrow_forward"),t.k0s()()()),2&i){const e=t.XpG().$implicit,a=t.XpG(3);t.R7$(),t.Y8G("matTooltip",t.bMT(2,5,"pubMedRelatedArticlesLabel"))("routerLink",t.l_i(9,ES,a.database.toLowerCase(),e.value)),t.BMQ("data-ta",a.taPrefix+"pub-med-related-records-link")("id",a.taPrefix+"pub-med-related-records-link"),t.R7$(2),t.SpI(" ",t.bMT(4,7,"pubMedRelatedArticlesLabel")," ")}}function Y9(i,n){if(1&i&&(t.qex(0),t.DNE(1,B9,7,12,"div",19),t.bVm()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngIf","pmid"===e.type)}}function X9(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,Y9,2,1,"ng-container",39),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.record.identifiers)}}function q9(i,n){if(1&i){const e=t.RV6();t.qex(0),t.nrm(1,"div",141),t.j41(2,"div",142)(3,"h3",143),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"div",143),t.EFF(7),t.nI1(8,"translate"),t.j41(9,"button",144),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.doPersonalizationNavigate("sign-in"))}),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.EFF(12),t.nI1(13,"translate"),t.nI1(14,"lowercase"),t.j41(15,"button",144),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.doPersonalizationNavigate("register"))}),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.EFF(18),t.nI1(19,"translate"),t.k0s()(),t.bVm()}2&i&&(t.R7$(4),t.JRh(t.bMT(5,6,"premiumFeature")),t.R7$(3),t.SpI("",t.bMT(8,8,"please")," "),t.R7$(3),t.SpI("",t.bMT(11,10,"SignIn")," "),t.R7$(2),t.SpI(" ",t.bMT(14,14,t.bMT(13,12,"or"))," "),t.R7$(4),t.SpI("",t.bMT(17,16,"Register")," "),t.R7$(2),t.SpI(" ",t.bMT(19,18,"toView")," "))}function H9(i,n){if(1&i&&(t.qex(0),t.nrm(1,"app-times-cited-breakdown",145),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("record",e.record)("database",e.database)}}function V9(i,n){if(1&i&&(t.qex(0),t.nrm(1,"hr",42),t.j41(2,"div",138)(3,"h3",139),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"div",140),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.DNE(9,q9,20,20,"ng-container",20)(10,H9,2,2,"ng-container",20),t.k0s(),t.bVm()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngClass","horizental-line-border"),t.R7$(3),t.SpI(" ",t.bMT(5,5,"citingItemsByClass")," "),t.R7$(3),t.SpI(" ",t.i5U(8,7,"citingItemsBreakdown",t.eq3(10,PS,e.record.citation_related.cc_counts.ALLFUNC))," "),t.R7$(2),t.Y8G("ngIf",e.requireSignInForTimesCitedBreakdown&&!e.signedIn),t.R7$(),t.Y8G("ngIf",e.signedIn||!e.requireSignInForTimesCitedBreakdown)}}function z9(i,n){if(1&i&&t.nrm(0,"app-full-record-mini-articles",148),2&i){const e=t.XpG(3);t.Y8G("info",e.info)("parentQid",e.qid)("record",e.record)("database",e.database)}}
1function Q9(i,n){if(1&i&&t.nrm(0,"app-full-record-mini-articles",149),2&i){const e=t.XpG(3);t.Y8G("info",e.info)("record",e.record)("parentQid",e.qid)("database",e.database)}}function U9(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,z9,1,4,"app-full-record-mini-articles",146)(2,Q9,1,4,"app-full-record-mini-articles",147),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",!e.hideRecommendationCollections.includes(e.record.coll)),t.R7$(),t.Y8G("ngIf",!e.hideCitingArticleCollections.includes(e.record.coll))}}function J9(i,n){if(1&i&&(t.j41(0,"div",16),t.DNE(1,OS,11,15,"ng-container",20),t.j41(2,"div",37),t.DNE(3,JS,6,5,"ng-container",20)(4,e9,3,2,"div",20),t.nI1(5,"feature"),t.nI1(6,"feature"),t.k0s(),t.j41(7,"div",38),t.DNE(8,m9,2,1,"ng-container",20),t.nI1(9,"feature"),t.DNE(10,v9,1,1,"ng-template",null,0,t.C5r)(12,y9,9,8,"div",39),t.j41(13,"div",40),t.DNE(14,S9,11,10,"ng-container",20)(15,E9,2,1,"div",41),t.nI1(16,"feature"),t.DNE(17,P9,11,14,"ng-container",20),t.nI1(18,"feature"),t.k0s(),t.DNE(19,N9,3,3,"ng-container",20),t.nI1(20,"feature"),t.k0s(),t.DNE(21,O9,7,8,"div",20),t.nI1(22,"feature"),t.DNE(23,X9,2,1,"div",20),t.nI1(24,"feature"),t.DNE(25,V9,11,12,"ng-container",20),t.nI1(26,"feature"),t.DNE(27,U9,3,2,"div",20),t.nI1(28,"feature"),t.k0s()),2&i){const e=t.XpG();t.Y8G("ngClass","single-division-alignments"),t.R7$(),t.Y8G("ngIf",!(e.hidecitationCollections.includes(e.record.coll)&&"ALLDB"==e.database)),t.R7$(2),t.Y8G("ngIf",!(e.hidecitationCollections.includes(e.record.coll)&&"ALLDB"==e.database)),t.R7$(),t.Y8G("ngIf",!t.bMT(5,15,"nxPresentationControl_FullRecord_Hide_CreateCitationAlertLink")&&!t.bMT(6,17,"nxPresentationControl_Cancelled_Disable_CreateCitationAlertButton")),t.R7$(3),t.Y8G("ngClass",e.record.ic_related&&e.record.ic_related.hot_paper?"add-padding":""),t.R7$(),t.Y8G("ngIf",!e.hidecitationCollections.includes(e.record.coll)&&!t.bMT(9,19,"nxPresentationControl_FullRecordRightPanel_Hide_AllCitationsSection")),t.R7$(4),t.Y8G("ngForOf",e.citedCountFields),t.R7$(2),t.Y8G("ngIf",e.showCitedReferences),t.R7$(),t.Y8G("ngIf",!t.bMT(16,21,"nxPresentationControl_FullRecord_Hide_ViewRelatedRecordLink")),t.R7$(2),t.Y8G("ngIf",(null==e.record.item||null==e.record.item.unspecified_refs?null:e.record.item.unspecified_refs.length)>0&&t.bMT(18,23,"WOSAR-6317-Blurb-citation")),t.R7$(2),t.Y8G("ngIf","WOS"===e.record.coll&&!t.bMT(20,25,"nxPresentationControl_Disable_Incites_overlay")),t.R7$(2),t.Y8G("ngIf",(null==e.record.item||null==e.record.item.BibliographicData?null:e.record.item.BibliographicData.CiteResourceAs)&&!t.bMT(22,27,"nxDciCollectionChanges")&&"DRCI"===e.record.coll),t.R7$(2),t.Y8G("ngIf",!t.bMT(24,29,"nxDisablePubMedRelatedRecords")),t.R7$(2),t.Y8G("ngIf",!t.bMT(26,31,"nxPresentationControl_FullRecord_Hide_TimesCitedBreakdown")&&(null==e.record.citation_related.cc_counts?null:e.record.citation_related.cc_counts.ALLFUNC)>0),t.R7$(2),t.Y8G("ngIf",!t.bMT(28,33,"nxPresentationControl_FullRecord_Hide_MiniArticles"))}}function W9(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",152),t.nI1(1,"number"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.goToGrantsToWosRecords())}),t.EFF(3),t.k0s()}if(2&i){const e=t.XpG(2);t.FS9("cdxAnalyticsCategory","grants-grantsToWosRecords-count-link"+e.analyticsEventPostfix),t.Y8G("ngClass","section-number-label")("matTooltip",t.i5U(2,8,"numOfReferencesIs",t.eq3(11,Dn,t.bMT(1,6,e.grantsToWosRecordsCount)))),t.BMQ("data-ta",e.taPrefix+"grants-grantsToWosRecordsCountLink")("id",e.taPrefix+"grants-grantsToWosRecordsCountLink"),t.R7$(3),t.SpI(" ",e.grantsToWosRecordsCount," ")}}function K9(i,n){if(1&i&&(t.j41(0,"div",150)(1,"div",17),t.EFF(2," grantsToWosRecords-label "),t.k0s(),t.DNE(3,W9,4,13,"a",151),t.k0s()),2&i){const e=t.XpG();t.Y8G("ngClass","single-division-alignments"),t.R7$(),t.Y8G("ngClass","section-main-label text-color"),t.BMQ("data-ta",e.taPrefix+"grantsToWosRecords-label")("id",e.taPrefix+"grantsToWosRecords-label"),t.R7$(2),t.Y8G("ngIf",(null==e.record.related_records?null:e.record.related_records.length)>0)}}function Z9(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",156),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.openLearnMoreDialog())}),t.EFF(2),t.nI1(3,"translate"),t.j41(4,"mat-icon",157),t.EFF(5,"arrow_forward"),t.k0s()()}if(2&i){const e=t.XpG(2);t.Y8G("ngClass","right-panel-link-color")("matTooltip",t.bMT(1,5,"learnMoreAlt")),t.BMQ("data-ta",e.taPrefix+"learnMore")("id",e.taPrefix+"learnMore"),t.R7$(2),t.SpI(" ",t.bMT(3,7,"learnMore")," ")}}
1function tA(i,n){if(1&i&&(t.j41(0,"div",16)(1,"div",16),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div"),t.nrm(5,"hr",153),t.j41(6,"div",154)(7,"div",16),t.EFF(8),t.nI1(9,"number"),t.k0s(),t.j41(10,"div",16),t.EFF(11),t.nI1(12,"number"),t.k0s()(),t.j41(13,"div",154)(14,"span",16),t.EFF(15),t.nI1(16,"translate"),t.k0s(),t.j41(17,"span",16),t.EFF(18),t.nI1(19,"translate"),t.k0s()(),t.DNE(20,Z9,6,9,"button",155),t.nI1(21,"feature"),t.k0s()()),2&i){const e=t.XpG();t.Y8G("ngClass","single-division-alignments"),t.R7$(),t.Y8G("ngClass","section-main-label text-color"),t.BMQ("data-ta",e.taPrefix+"useInWOS")("id",e.taPrefix+"useInWOS"),t.R7$(),t.SpI(" ",t.bMT(3,23,"useInWOS")," "),t.R7$(3),t.Y8G("ngClass","horizental-line-border"),t.R7$(2),t.Y8G("ngClass","section-number-label text-color section-number-division"),t.BMQ("data-ta",e.taPrefix+"um-related-180day")("id",e.taPrefix+"um-related-180day"),t.R7$(),t.SpI(" ",t.bMT(9,25,e.record.um_related["180day"])," "),t.R7$(2),t.Y8G("ngClass","section-number-label text-color section-number-division"),t.BMQ("data-ta",e.taPrefix+"um-related-AllTime")("id",e.taPrefix+"um-related-AllTime"),t.R7$(),t.SpI(" ",t.bMT(12,27,e.record.um_related.AllTime)," "),t.R7$(3),t.Y8G("ngClass"," section-label-data section-number-division dropdown-with-arrow  text-color"),t.BMQ("data-ta",e.taPrefix+"180Days")("id",e.taPrefix+"180Days"),t.R7$(),t.SpI(" ",t.bMT(16,29,"180Days")," "),t.R7$(2),t.Y8G("ngClass"," section-label-data section-number-division dropdown-with-arrow  text-color"),t.BMQ("data-ta",e.taPrefix+"allTime")("id",e.taPrefix+"allTime"),t.R7$(),t.SpI(" ",t.bMT(19,31,"allTime")," "),t.R7$(2),t.Y8G("ngIf",!t.bMT(21,33,"nxPresentationControl_FullRecordRightPanel_Hide_CountLearnMoreLink"))}}function eA(i,n){if(1&i&&(t.j41(0,"li",161)(1,"div",16),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngClass","section-label-data text-color"),t.BMQ("data-ta",a.taPrefix+"edition"+e)("id",a.taPrefix+"edition"+e),t.R7$(),t.SpI(" ",t.bMT(3,4,"analyze_EDN."+e)," ")}}function nA(i,n){if(1&i&&(t.qex(0),t.DNE(1,eA,4,6,"li",160),t.bVm()),2&i){const e=n.$implicit;t.R7$(),t.Y8G("ngForOf",e.edition)}}function iA(i,n){if(1&i&&(t.j41(0,"div",158)(1,"ul",159),t.DNE(2,nA,2,1,"ng-container",39),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.Y8G("ngForOf",e.editions)}}function aA(i,n){if(1&i&&(t.j41(0,"a",166),t.nI1(1,"translate"),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&i){const e=t.XpG().$implicit,a=t.XpG(2);t.Y8G("matTooltip",t.bMT(1,6,"viewRecordIn"+e.coll_id))("state",t.ziG(10,GS,a.qid,a.sort,a.doc,e.coll_id))("routerLink",t.eq3(15,DS,e.uid)),t.BMQ("data-ta",a.taPrefix+"viewRecordIn"+e.coll_id+"-link")("id",a.taPrefix+"viewRecordIn"+e.coll_id+"-link"),t.R7$(2),t.SpI("",t.bMT(3,8,"viewRecordIn"+e.coll_id)," ")}}function rA(i,n){if(1&i&&(t.j41(0,"li",164),t.DNE(1,aA,4,17,"a",165),t.nI1(2,"entitlements"),t.k0s()),2&i){const e=n.$implicit,a=t.XpG(2);t.R7$(),t.Y8G("ngIf",e.coll_id!==a.record.coll&&t.bMT(2,1,e.coll_id))}}function oA(i,n){if(1&i&&(t.j41(0,"div",88)(1,"h3",162),t.EFF(2,"viewRecordInOtherDB"),t.k0s(),t.j41(3,"ul",159),t.DNE(4,rA,3,3,"li",163),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"viewRecordInOtherDB")("id",e.taPrefix+"viewRecordInOtherDB"),t.R7$(3),t.Y8G("ngForOf",e.entitledEWUIDs)}}function sA(i,n){if(1&i&&(t.j41(0,"div"),t.nrm(1,"hr",42),t.j41(2,"h3",167),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"br"),t.j41(6,"span",168),t.EFF(7),t.nI1(8,"translate"),t.nrm(9,"app-data-correction-overlay",169),t.nI1(10,"translate"),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngClass","horizental-line-border"),t.R7$(),t.BMQ("data-ta",e.taPrefix+"suggestCorrection1")("id",e.taPrefix+"suggestCorrection1"),t.R7$(),t.SpI(" ",t.bMT(4,10,"suggestCorrection")," "),t.R7$(3),t.BMQ("data-ta",e.taPrefix+"improveQuality")("id",e.taPrefix+"improveQuality"),t.R7$(),t.SpI("",t.bMT(8,12,"improveQuality")," "),t.R7$(2),t.Y8G("record",e.record)("label",t.bMT(10,14,"suggestCorrection"))("labelStyle","cdx-grid-label")}}let lA=(()=>{class i{constructor(e,a,r,o,s,l,c,d,u,_,h,g){this.store=e,this.actions$=a,this.dialog=r,this.decimalPipe=o,this.config=s,this.downloadService=l,this.translate=c,this.navigation=d,this.route=u,this.searchesService=_,this.router=h,this.snackBar=g,this.metrics={},this.isScoreCardHidden=!0,this.isCreateCitationAlert=!1,this.incitesEntitlement=!1,this.isMobile$=K.Y.isMobile$,this.taPrefix="FullRRPTa-",this.publishedYear=this.config.getSettings().app.fullRecord.publishedYears,this.citedCountFields=[],this.hideReferencesCollections=this.config.getSettings().app.fullRecord.hideReferencesCollections,this.noCorrectionLinkCollections=this.config.getSettings().app.fullRecord.noCorrectionLinkCollections,this.requireSignInForTimesCitedBreakdown=this.config.getSettings().app.fullRecord.requireSignInForTimesCitedBreakdown,this.patentIndexes=this.config.getSettings().app.summary.patentIndexes,this.showCitationMapButton=!1,this.functionClassEnabled=!1,this.functionCountsFound=!1,this.siloViewRecordWarning=!1,this.doPersonalizationNavigate=this.navigation.doPersonalizationNavigate,this.signedIn=!1,this.navExpanded=new t.bkB,this.hideUsageCollections=this.config.getSettings().app.fullRecord.hideUsageCollections,this.destroyed$=new za.B,this.askingRA=!1,this.analyticsEventPostfix=s.getSettings().app.fullRecord.analyticsEventPostfix,this.isScoreCardHidden=!0,this.route.queryParams.subscribe(b=>{this.setSiloViewRecordWarning(b)}),this.store.select(B.mm).subscribe(b=>this.signedIn=!!b).unsubscribe()}setSiloViewRecordWarning(e){this.siloViewRecordWarning=e.siloViewRecordWarning||!1}ngOnChanges(e){if(this.hideRCTimeCited="on"===K.Y.getToggle("nxHideResearchCommonsTimesCited",this.store),e.record&&this.record&&this.record.coll){this.collection="WOS"===this.record.coll?"WOSCC":this.record.coll,this.store.select(B.IH,{collection:this.collection}).subscribe(r=>this.mostRelevantCitationDb=r).unsubscribe(),this.hidecitationCollections=this.config.getSettings().app.fullRecord.hideCitationNetworkCollections,this.noCitationNetworkCollections=this.config.getSettings().app.fullRecord.noCitationNetworkCollections,this.citationCollections=this.getCitationCollections(),this.secondaryCitationCollections=this.config.getSettings().app.fullRecord.secondaryCitationCollections,this.showIndexCollections=this.config.getSettings().app.showIndexCollections,this.bestCitationIndex=this.config.getSettings().app.summary.databases["ALLDB"===this.database?this.database:this.collection].citationCountFrom;const a=this.config.getSettings().app.summary.collections[this.record.coll];if(this.hideRecommendationCollections=this.config.getSettings().app.fullRecord.subSearchConfig["recommended-articles"]?.excludeCollections,this.hideCitingArticleCollections=this.config.getSettings().app.fullRecord.subSearchConfig["citing-article"]?.excludeCollections,this.referencesDatabase=a.referencesFrom,this.fromDatabase=a.db||this.record.coll,this.refUt=K.Y.determineRefUt(this.referencesDatabase,this.record),this.grantsToWosRecordsCount=void 0,this.record.clustered_EWUIDs){let r;this.store.select(B.zg).subscribe(o=>r=o).unsubscribe(),this.entitledEWUIDs=this.record.clustered_EWUIDs.filter(o=>o.coll_id!==this.record.coll&&"Y"===o.entitled&&r["WOS"===o.coll_id?"WOSCC":o.coll_id]),this.editions=this.record.clustered_EWUIDs.filter(o=>o.coll_id===this.record.coll&&this.showIndexCollections.includes(this.record.coll))}"GRANTS"===this.record.coll&&this.record.related_records&&(this.grantsToWosRecordsCount=this.record.related_records.filter(r=>"GrantsToWosLink"===r.type).length)}this.citedCountFields=this.record.cited_count&&Object.keys(this.record.cited_count).sort((a,r)=>a>r?1:-1),this.refCount=null,this.refQid=null,this.showCitationMapButton=!1,this.functionCountsFound=!1,this.functionClassEnabled=!1,e.info&&this.info&&(this.info.citedRefs?(this.refCount=this.record.ref_count,this.refQid=this.info.citedRefs.id):this.info.citedRefsWithContext&&(this.refCount=this.record.ref_count,this.refQid=this.info.citedRefsWithContext.id,this.showCitationMapButton=!0,null!=this.record.citation_related.cc_counts&&this.record.citation_related.cc_counts.ALLFUNC>0&&(this.functionCountsFound=!0),this.rpCCData$=this.store.select(B.yU,this.info.citedRefsWithContext.id).pipe((0,Ft.p)(a=>!!a)),this.rpCCData$.subscribe(a=>{this.functionClassEnabled=a.functionClassEnabled}).unsubscribe())),this.isCreateCitationAlert=this.checkDisplayOfCreateCitationAlert(),this.user$=this.store.select(B.mm).pipe((0,Gn.F)()),this.store.select(B.mm).subscribe(a=>this.signedIn=!!a).unsubscribe(),this.record&&this.signedIn&&(this.store.dispatch(new Ad.Rw.bu({docid:this.record.docid,ut:this.record.ut})),this.hasCitaionAlert$=this.store.select(Ad.Gr(this.record.ut)).pipe((0,Gn.F)())),this.isCitationEntitled=K.Y.isCitationEntitled(this.store),this.showCitedReferences=!this.hideReferencesCollections.includes(this.collection)&&this.isCitationEntitled,this.store.select(B.wg).subscribe(a=>{a.Incites_Benchmarking_Analytics&&(this.incitesEntitlement=!0)}).unsubscribe(),this.specialChars=this.config.getSettings().app.specialChars}cacheCitingMetadata(e=this.database,a=this.record.id.value){this.store.dispatch(new B.IV._A({database:e,records:{[a]:this.record}}))}openLearnMoreDialog(){this.dialog.open(FM,{height:"auto",width:"620px"})}downloadPDF(e,a){const r=document.getElementById("exportMetrics"),o=new Date,s=o.toLocaleStr
1ing("default",{month:"long"})+" "+o.getDate()+", "+o.getFullYear(),l=`\n\nWOS Identifier: ${this.record.ut}\n\nExported ${s}\n          `,c=[[this.translate.instant("PercentileArea"),this.decimalPipe.transform(e.PERCENTILE?.CAT_PERC,2),this.translate.instant("PA_discription")]],d=[["Category Normalized Citation Impact",this.decimalPipe.transform(e.AVG_CNCI,2),this.translate.instant("CNCI_discription")],[this.translate.instant("CategoryExpectedCitations"),this.decimalPipe.transform(e.HARMEAN_CAT_EXP_CITATION,2),this.translate.instant("CEC_discription")],[this.translate.instant("JournalNormalizedCitationImpact"),this.decimalPipe.transform(e.JNCI,2),this.translate.instant("JNCI_discription")],[this.translate.instant("JournalExpectedCitations"),this.decimalPipe.transform(e.JOURNAL_EXPECTED_CITATIONS,2),this.translate.instant("JEC_discription")]],u=window.localStorage.getItem("percentileBeamPlot"),_=this.downloadService.downloadSVGAsPNG(u,{width:500,height:500}),h=new MM.default;let g=10,v=o.getFullYear();const C=(0,SM.r)().mjlApiUrl;h.text("Web of Science\u2122",10,g),h.setFontSize(12);const k=this.record.titles?.item?.en?.[0].title.replace(/<[^>]*>?/gm,"");let F=h.splitTextToSize(this.record.titles?.item?.en?.[0].title.replace(/<[^>]*>?/gm,""),160);if(h.text("Comparison Metrics for:",15,g+15),this.containsSpecialCharacters(k)?(F=h.splitTextToSize(this.record.titles?.item?.en?.[0].title.replace(/<[^>]*>?/gm,""),135),F.forEach(w=>{h.setTextColor("#5d33bf");const M=C+"/wos/"+this.database.toLowerCase()+"/full-record/"+this.record.id.value,E=this.downloadService.createSvgWithText(w,{url:M,width:"200",height:"20"});h.addImage(E,"PNG",15,g+18,180,12,"","FAST"),h.link(15,g+18,180,12,{url:C+"/wos/"+this.database.toLowerCase()+"/full-record/"+this.record.id.value}),g+=8})):(F=h.splitTextToSize(this.record.titles?.item?.en?.[0].title.replace(/<[^>]*>?/gm,""),160),F.forEach(w=>{h.setTextColor("#5d33bf");const M=h.getTextWidth(w);h.setDrawColor("#5d33bf"),h.line(15,g+22.5,18+M,g+22.5),h.textWithLink(w,15,g+22,{url:C+"/wos/"+this.database.toLowerCase()+"/full-record/"+this.record.id.value}),g+=6})),h.setTextColor(0,0,0),"en"!=this.translate.currentLang&&r){const w=document.querySelector("#percentile-subject-area-chart");null!==w&&(w.style.visibility="hidden"),Pd()(r).then(M=>{const E=M.toDataURL("image/png");h.addImage(E,"PNG",15,60,180,190,"SLOW","MEDIUM"),w.style.visibility="visible",_&&h.addImage(_,"PNG",28,8*F.length+80,140,10,"PNG","FAST")})}else{h.autoTable({body:c,startY:8*F.length+55,styles:{cellPadding:4},columnStyles:{0:{cellWidth:60},1:{cellWidth:30},2:{cellWidth:90}}}),_&&h.addImage(_,"PNG",28,8*F.length+80,150,30,"PNG","FAST");const w=document.getElementById("percentileCircleIcon");w&&Pd()(w).then(M=>{const E=M.toDataURL("image/png");h.addImage(E,"PNG",5,8*F.length+110,190,7,"SLOW","MEDIUM")}),h.autoTable({body:d,startY:8*F.length+125,styles:{cellPadding:4},columnStyles:{0:{cellWidth:60},1:{cellWidth:30},2:{cellWidth:90}}})}h.text(l,15,g+15),h.text("Web of Science / InCites Benchmarking & Analytics",10,290),h.text("\xa9 "+v+" Clarivate",170,290),setTimeout(()=>{this.downloadService.download(h.output("blob"),a)},750)}cacheMetadata(){this.store.dispatch(new B.IV._A({database:"WOS"===this.record.coll?"WOSCC":this.record.coll,records:{[this.record.id.value]:this.record}}))}switchScoreCard(){this.isScoreCardHidden=!this.isScoreCardHidden}openCreateCitOverlay(){Ii.u.skipScroll=!0,this.router.navigate([{outlets:{overlay:"alert/citation/"+this.qid+"/"+this.sort+"/"+this.doc}}],{relativeTo:this.route.root,replaceUrl:!0,state:{...history.state,navigationId:void 0,hasNavigationParam:!0},queryParamsHandling:"merge"})}gotoCitationNetwork(e){this.store.dispatch(new ii.GD.v0({patentCitationType:e}))}getCitedParameter(e){return e.endsWith("count")?e.substring(0,e.length-5):e}getRouterParams(e){return{queryJson:JSON.stringify([{rowBoolean:null,rowField:"CD",rowText:e}]),displayJson:JSON.stringify({key:"citedPatent",title:"citedPatent",icon:"fileAlt",params:{citedPatent:this.record.titles?.item?.en?.[0].title}})}}checkDisplayOfCreateCitationAlert(e=this.record.coll){return"DIIDW"!==e&&void 0!==e}updateNavStatus(e){if(e){if(this.record.ut){let a=[];a.push(this.record.ut.split(":")[1]),this.store.dispatch(new B.IV.hW({ut:a}))}this.cncichecking=!0,this.store.select(B.g1,{ut:this.record.ut.split(":")[1]}).pipe((0,Gn.F)()).subscribe(a=>{this.metrics=a,this.searchesService.jnciOverlay$.subscribe(r=>{r&&(this.navExpanded.emit(!0),this.cnciSidenav?.open())})})}else this.navExpanded.emit(!1),this.cnciSidenav?.close(),window.localStorage.removeItem("percentileBeamPlot"),this.cncichecking=!1}askRA(){this.askingRA=!0;const e=`${this.translate.instant("summarize_doc_template")+" "+this.record.titles.item.en[0].title.replace(/<[^>]*>?/gm,"")} (${this.record.ut}).`;this.actions$.pipe((0,Md.gp)(B.Aw.eB.QuestionAnswered),(0,ge.s)(1),(0,Ee.Q)(this.destroyed$)).subscribe(a=>{this.router.navigate(["/research-assistant",a.payload.conversation]),this.askingRA=!1},()=>{this.askingRA=!1,this.snackBar.errorRed("ra_request_failed")}),this.store.dispatch(new B.Aw.dq({question:e,workflowStage:"agent_research_discovery"}))}isResearchAssistantDisabled(){return K.Y.isResearchAssistantDisabled(this.store)}goToMiniCitedReference(){const e=document.getElementById("FRMiniCrlTa-snMcrl");e?e.scrollIntoView():console.log("Reference not found")}goToblurbsCitedReference(){const e=document.getElementById("blurbs");e&&e.scrollIntoView()}goToGrantsToWosRecords(){const e=document.getElementById("FRGrantsToWosListTa-snGrantToWos-grantsToWosHeading");e?e.scrollIntoView():console.log("GrantsToWosRecords not found")}dismissNotification(){this.siloViewRecordWarning=!1}containsSpecialCharacters(e){return this.specialChars.some(r=>e.includes(r))}getCitationCollections(){const e=this.config.getSettings().app.fullRecord.primaryCitationCollections;return this.hideRCTimeCited?e.filter(a=>"RC"!==a):e}refCountTooltip(){const a=this.record.ref_retracted_count;let r=this.translate.instant("numOfReferencesIs",{num:this.refCount});return a&&+a>0&&(r+=this.translate.instant("1"===a?"retractedCountMessage.singular":"retractedCountMessage.plural",{c
1ount:a})),r}timesCitedTooltip(){const e=this.record.citation_related.counts.ALLDB,a=this.record.citation_related.retracted_count;let r=this.translate.instant("timesCitedIn")+this.translate.instant("ALLDB_name")+"\xa0"+this.translate.instant("is")+"\xa0"+Number(e).toLocaleString();return a&&+a>0&&(r+=this.translate.instant("1"===a?"retractedCountMessage.singular":"retractedCountMessage.plural",{count:a})),r}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Gt.il),t.rXU(Md.En),t.rXU(mt.bZ),t.rXU(Vo),t.rXU(Dt.w),t.rXU(wM.s),t.rXU(V.c$),t.rXU(Sd.o),t.rXU(ot.nX),t.rXU(Ed.c),t.rXU(ot.Ix),t.rXU(Ln.z))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-right-panel"]],viewQuery:function(a,r){if(1&a&&t.GBs(kS,5),2&a){let o;t.mGM(o=t.lsd())&&(r.cnciSidenav=o.first)}},inputs:{record:"record",database:"database",qid:"qid",info:"info",sort:"sort",doc:"doc"},outputs:{navExpanded:"navExpanded"},features:[t.OA$],decls:22,vars:29,consts:[["secondaryTc",""],["noLink",""],["noLinkCitations",""],["cpreprint",""],["citingPatent",""],["nolinkALLDBTC",""],["nolinkTC",""],["nolink",""],["noLinkCitedRef",""],["cnciSidenav",""],["howToCiteDialog",""],["id","snCitationData","role","region",1,"network-section"],["class","notice-bar right-panel-notice-bar","dir","auto",4,"ngIf"],["class","ra-cta",4,"ngIf"],[3,"ngClass",4,"ngIf"],["id","grantsToWosRecordsCount",3,"ngClass",4,"ngIf"],[3,"ngClass"],["translate","",3,"ngClass"],["class","",4,"ngIf"],["class","margin-top-10",4,"ngIf"],[4,"ngIf"],["dir","auto",1,"notice-bar","right-panel-notice-bar"],[1,"dismiss-button"],["mat-icon-button","","data-ta","dismiss-notification",3,"click","title"],["role","img","svgIcon","close",1,"svg-icon-14"],[1,"collection-notice","flex-display-align-center","margin-left-20--reversible"],["role","img","svgIcon","chat",1,"cdx-mat-icon-36","margin-right-10--reversible","flex-item"],[1,"ra-cta"],[1,"ra-cta__header"],["svgIcon","raLogo",1,"svg-icon-18","ra-cta__logo"],[1,"ra-cta__title"],["mat-flat-button","","data-pendo","CTA_RA_NAV_FULL_RECORD",1,"cdx-grid-label","button-outline-margin",3,"click","disabled"],[1,"ra-cta__button-text"],["iconPositionEnd","","role","img","svgIcon","circle-notch","class","cdx-mat-icon-16 svg-spinner-inline",4,"ngIf"],["iconPositionEnd","","class","font-size-16","inline","true",4,"ngIf"],["iconPositionEnd","","role","img","svgIcon","circle-notch",1,"cdx-mat-icon-16","svg-spinner-inline"],["iconPositionEnd","","inline","true",1,"font-size-16"],[1,"citation-two-column"],[1,"cdx-default-styles",3,"ngClass"],[4,"ngFor","ngForOf"],["id","citedReferences",1,"citation-two-column","cited-references-sec"],["class","margin-left-3--reversible",4,"ngIf"],[1,"cdx-margin-bottom-24",3,"ngClass"],["style","margin-left: 0;",4,"ngIf"],["class","citation-position citation-count",4,"ngIf","ngIfElse"],[2,"margin-left","0"],["mat-button","","color","primary","cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","wos_citation_map",1,"view-related-record","normal-space","add-padding",3,"routerLink"],["fontIcon","add","inline","true",1,"font-size-14","margin-right-5--reversible"],[1,"citation-position","citation-count"],[4,"ngIf","ngIfElse"],["class","text--small cdx-default-styles cdx-right-panel-body",4,"ngIf","ngIfElse"],["class","medium-link-number link","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"routerLink","queryParams","cdxAnalyticsCategory","matTooltip","click",4,"ngIf","ngIfElse"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"medium-link-number","link",3,"click","routerLink","queryParams","cdxAnalyticsCategory","matTooltip"],["mat-button","","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"citing-patent",3,"click","cdxAnalyticsCategory","matTooltip"],[1,"medium-link-number"],[1,"medium-link-number-disabled",3,"matTooltip"],[1,"text--small","cdx-default-styles","cdx-right-panel-body"],[1,"font-size-14","data-box-text","cdx-default-styles","cdx-right-panel-body"],[1,"font-size-21"],[1,"text--small","cdx-right-panel-body","margin-left-15--reversible"],["class","cdx-margin-bottom-24",3,"ngClass",4,"ngIf"],["hidden","true",4,"ngIf"],["mat-button","","color","primary","class","create-cit-alert","cdxAnalyticsEvent","","mat-stroked-button","","href","javascript:void(0)","cdxAnalyticsCategory","{{ 'wos-citation-network-create-citation-alert' + anal
1yticsEventPostfix  }","cdxAnalyticsAction","click",3,"click",4,"ngIf"],["role","img","svgIcon","checkCircle",1,"svg-icon-20","green"],["mat-button","","color","primary","cdxAnalyticsEvent","","mat-stroked-button","","href","javascript:void(0)","cdxAnalyticsCategory","{{ 'wos-citation-network-create-citation-alert' + analyticsEventPostfix  }","cdxAnalyticsAction","click",1,"create-cit-alert",3,"click"],["inline","true",1,"font-size-18","vertical-align-sub"],["hidden","true"],["class","citation-two-column",4,"ngIf"],[1,"citation-count"],["class","medium-link-number link","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"routerLink","queryParams","matTooltip","cdxAnalyticsCategory","click",4,"ngIf","ngIfElse"],["class","value font-size-14 cdx-default-styles cdx-right-panel-body",4,"ngIf"],[4,"ngTemplateOutlet"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"medium-link-number","link",3,"click","routerLink","queryParams","matTooltip","cdxAnalyticsCategory"],[1,"value","font-size-14","cdx-default-styles","cdx-right-panel-body"],["class","medium-link-number-disabled",3,"matTooltip",4,"ngIf"],[1,"show-more-box"],["mat-button","","color","primary","dir","auto",1,"view-related-record","font-size-14","flex-align-center-center","alaignment-fix-scroe","normal-space","cdx-grid-label","margin-bottom-20",3,"click"],["inline","true",1,"font-size-16"],[3,"hidden","database","record","citationCollections","chartData",4,"ngIf"],["class","coll-link-alignment",3,"hidden",4,"ngFor","ngForOf"],[3,"hidden","database","record","citationCollections","chartData"],[1,"coll-link-alignment",3,"hidden"],["class","cdx-grid-label","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"routerLink","queryParams","cdxAnalyticsCategory","click",4,"ngIf","ngIfElse"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"cdx-grid-label",3,"click","routerLink","queryParams","cdxAnalyticsCategory"],[1,"link"],[1,"link","text--small"],[1,"text--small"],["class","margin-top-10",4,"ngFor","ngForOf"],[1,"margin-top-10"],["mat-button","","class","view-related-record citing-preprints cdx-grid-label margin-top-10 right-panel-link-color","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"routerLink","queryParams","cdxAnalyticsCategory","click",4,"ngIf"],["mat-button","","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"view-related-record","citing-preprints","cdx-grid-label","margin-top-10","right-panel-link-color",3,"click","routerLink","queryParams","cdxAnalyticsCategory"],["inline","true",1,"font-size-16","margin-right-5--reversible"],[1,"title"],["class","box-div",4,"ngIf"],["mat-button","",3,"click","matTooltip"],[1,"box-div"],["class","stat-number font-size-21",4,"ngIf"],[1,"text--small","margin-bottom-0","cdx-default-styles","cdx-right-panel-body"],["class","medium-link-number link","tabindex","0","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"cdxAnalyticsCategory","matTooltip","click",4,"ngIf"],["class","medium-link-number","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"cdxAnalyticsCategory","routerLink","queryParams","matTooltip","click",4,"ngIf"],["tabindex","0","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"medium-link-number","link",3,"click","cdxAnalyticsCategory","matTooltip"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"medium-link-number",3,"click","cdxAnalyticsCategory","routerLink","queryParams","matTooltip"],["class","cdx-grid-label cdx-black",3,"cdxAnalyticsCategory","matTooltip",4,"ngIf"],[1,"cdx-grid-label","cdx-black",3,"cdxAnalyticsCategory","matTooltip"],[1,"stat-number","font-size-21"],[1,"margin-left-3--reversible"],["mat-button","","color","primary","class","view-related-record normal-space cdx-grid-label cdx-margin-bottom-24","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"routerLink","queryParams","matTooltip","cdxAnalyticsCategory",4,"ngIf"],["mat-button","","color","primary","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"view-related-record","normal-space","cdx-grid-label","cdx-margin-bottom-24",3,"routerLink","queryParams","matTooltip","cdxAnalyticsCategory"],["tabindex","0","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"medium-link-number","link",3,"click","matTooltip"],[1,"margin-left-15--reversible"],[1,"padding-top-16","padding-bottom-16"],[1,"cdx-right-panel-sub"],["class","metrics-padding jcr-sidenav-container",4,"ngIf"],[1,"cdx-right-panel-body"],[1,"metrics-padding","jcr-sidenav-container"],["autosize","",3,"backdropClick","ngClass"],["tabindex","0","position","end","class","cnci-sidenav jcr-sidenav","data-ta","cnci-jnci-data-sidenav",3,"ngClass","fixedInViewport","keydown.escape",4,"ngIf"],["mat-stroked-button","",1,"fullRecord-link","cdx-grid-label","button-outline-margin",3,"click"],[1,"link-text"],["tabindex","0","position","end","data-ta","cnci-jnci-data-sidenav",1,"cnci-sidenav","jcr-sidenav",3,"keydown.escape","ngClass","fixedInViewport"],["cdkTrapFocus","",1,"padding-40"],[1,"padding-bottom-16","cdx-right-panel-main",2,"display","flex"],[1,"display-actions-alignment",2,"width","90%",3,"ngClass"],["color","primary","cdkFocusRegionStart","","mat-icon-button","",1,"arrow-button-min",3,"click"],["inline","true",1,"font-size-20"],[1,"cdx-right-panel-main"],["
1id","exportToPDF","mat-button","","class","margin-right-10--reversible export-pdf-button",3,"click",4,"ngIf"],["mat-button","",1,"close-icon","margin-left-10--reversible",3,"click"],["inline","true",1,"clear-icon"],[3,"metrics","record","bestCitationIndex","mostRelevantCitationDb"],["id","exportToPDF","mat-button","",1,"margin-right-10--reversible","export-pdf-button",3,"click"],[1,"exportToPdf"],["mat-button","",1,"link-color-text","cdx-font--weight-bold","padding-left-zero","font-size-14","link-underline","padding-right-zero",3,"click","matTooltip"],[1,"hoverText"],[1,"flex-display-align-center","margin-left-3--reversible"],[1,"cite-Resource"],["mat-button","","matDialogClose","",3,"aria-describedby"],["mat-button","","color","primary",1,"link-button-padding","normal-space","cdx-black","cdx-grid-label",3,"matTooltip","routerLink"],[1,"times-cited-breakdown"],[1,"title","margin-top-20","cdx-right-panel-sub","cdx-margin-bottom-24"],[1,"value","margin-bottom-10","cdx-right-panel-body","cdx-margin-bottom-24"],[1,"bg-image"],["id","tcbTeaserMsg",1,"bg-text"],[1,"value"],["mat-button","","color","primary",3,"click"],[3,"record","database"],["mode","recommended-articles",3,"info","parentQid","record","database",4,"ngIf"],["mode","citing-article",3,"info","record","parentQid","database",4,"ngIf"],["mode","recommended-articles",3,"info","parentQid","record","database"],["mode","citing-article",3,"info","record","parentQid","database"],["id","grantsToWosRecordsCount",3,"ngClass"],["tabindex","0","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"ngClass","cdxAnalyticsCategory","matTooltip","click",4,"ngIf"],["tabindex","0","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"click","ngClass","cdxAnalyticsCategory","matTooltip"],[1,"cdx-horizontal-line",3,"ngClass"],[1,"flex-align-left"],["mat-button","","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-usagecount-learnmore-overlay","cdxAnalyticsAction","click","class","learnMore-link",3,"ngClass","matTooltip","click",4,"ngIf"],["mat-button","","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-usagecount-learnmore-overlay","cdxAnalyticsAction","click",1,"learnMore-link",3,"click","ngClass","matTooltip"],["inline","true",1,"font-size-16","margin-right-10--reversible"],[1,""],[1,"padding-left-15--reversible"],["class","line-height-16 font-size-14 margin-left-10--reversible cdx-list-style line-height-24",4,"ngFor","ngForOf"],[1,"line-height-16","font-size-14","margin-left-10--reversible","cdx-list-style","line-height-24"],["translate","",1,"cdx-default-styles","cdx-right-panel-sub"],["class","line-height-16 cdx-list-style line-height-24",4,"ngFor","ngForOf"],[1,"line-height-16","cdx-list-style","line-height-24"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-record-in-other-databases","cdxAnalyticsAction","click","class","cdx-right-panel-body wos-standard-link",3,"matTooltip","state","routerLink",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-record-in-other-databases","cdxAnalyticsAction","click",1,"cdx-right-panel-body","wos-standard-link",3,"matTooltip","state","routerLink"],[1,"cdx-default-styles","cdx-grid-label"],[1,"cdx-default-styles","cdx-right-panel-body"],[3,"record","label","labelStyle"]],template:function(a,r){1&a&&(t.j41(0,"div",11),t.nI1(1,"translate"),t.j41(2,"section"),t.DNE(3,$S,13,14,"div",12)(4,jS,15,14,"div",13),t.nI1(5,"feature"),t.nI1(6,"async"),t.DNE(7,J9,29,35,"div",14),t.k0s(),t.j41(8,"section"),t.DNE(9,K9,4,5,"div",15)(10,tA,22,35,"div",14),t.nI1(11,"feature"),t.j41(12,"div",16)(13,"h3",17),t.EFF(14,"recordFrom"),t.k0s(),t.j41(15,"div",16),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.DNE(18,iA,3,1,"div",18)(19,oA,5,3,"div",19),t.nI1(20,"feature"),t.DNE(21,sA,11,16,"div",20),t.k0s()()()),2&a&&(t.BMQ("aria-label",t.bMT(1,17,"citationDataRegionAriaLabel")),t.R7$(3),t.Y8G("ngIf",r.siloViewRecordWarning),t.R7$(),t.Y8G("ngIf",t.bMT(5,19,"nxEnableRACTA")&&r.record.abstract&&"WOSCC"===r.database&&!t.bMT(6,21,r.isResearchAssistantDisabled())),t.R7$(3),t.Y8G("ngIf",((null==r.citedCountFields?null:r.citedCountFields.length)>0||!(r.hidecitationCollections.includes(r.record.coll)&&"ALLDB"==r.database))&&!r.noCitationNetworkCollections.includes(r.record.coll)),t.R7$(2),t.Y8G("ngIf","GRANTS"===r.record.coll&&(null==r.info?null:r.info.grantsToWosRecords)),t.R7$(),t.Y8G("ngIf",r.record.um_related&&!t.bMT(11,23,"nxPresentationControl_Cancelled_Disable_Usage
1Count")&&!r.hideUsageCollections.includes(r.record.coll)),t.R7$(2),t.Y8G("ngClass","single-division-alignments right-panel-single-division"),t.R7$(),t.Y8G("ngClass","section-main-label text-color"),t.BMQ("data-ta",r.taPrefix+"recordFromTitle")("id",r.taPrefix+"recordFromTitle"),t.R7$(2),t.Y8G("ngClass","section-label text-color"),t.BMQ("data-ta",r.taPrefix+"nameTitle")("id",r.taPrefix+"nameTitle"),t.R7$(),t.SpI(" ",t.bMT(17,25,r.collection+"_name")," "),t.R7$(2),t.Y8G("ngIf",(null==r.editions?null:r.editions.length)>0),t.R7$(),t.Y8G("ngIf","ALLDB"===r.database&&(null==r.entitledEWUIDs?null:r.entitledEWUIDs.length)>0&&!t.bMT(20,27,"nxPresentationControl_FullRecordRightPanel_Hide_ViewRecordInOtherDB")),t.R7$(2),t.Y8G("ngIf",!r.noCorrectionLinkCollections.includes(r.record.coll)))},dependencies:[A.YU,A.Sq,A.bT,A.T3,ot.Wk,V.Mm,EM.q,jt.An,$t.ig,ht.It,ht.$z,ht.iY,xt.oV,mt.tx,mt.E7,Kn.LG,Kn.US,Kn.El,Va.kB,Ot.P,nS,aS,rS,IS,A.Jj,A.Pc,A.GH,A.QX,V.D9,Se.h,Pn.N,Ei.Q],encapsulation:2})}}return i})();var Uo=S(44668),Jo=S(71997);function cA(i,n){if(1&i&&(t.qex(0),t.j41(1,"span"),t.EFF(2),t.k0s(),t.nrm(3,"span",20),t.j41(4,"span"),t.EFF(5),t.k0s(),t.bVm()),2&i){const e=t.XpG();t.R7$(2),t.JRh('"'),t.R7$(),t.Y8G("innerHTML",e.getTextToDisplay(e.finderData.appearances[e.currentNum-1].text),t.npT),t.R7$(2),t.JRh('"')}}function dA(i,n){if(1&i&&(t.j41(0,"a",21)(1,"span",22),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG();t.FS9("href","https://doi.org/"+e.finderData.doi,t.B4B),t.BMQ("id",e.taPrefix+"ecr-data-doiLink")("data-ta",e.taPrefix+"ecr-data-doiLink"),t.R7$(2),t.SpI(" ",t.bMT(3,4,"DOISOURCE_link_label"),"")}}function uA(i,n){if(1&i&&(t.j41(0,"button",23),t.nI1(1,"translate"),t.j41(2,"span",11),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&i){const e=t.XpG();t.Y8G("matTooltip",t.bMT(1,5,"ecrFunction")),t.BMQ("id",e.taPrefix+"ecrFunction")("data-ta",e.taPrefix+"ecrFunction"),t.R7$(3),t.Lme("",t.bMT(4,7,"classification")," ",e.finderData.citationFunctions[e.finderData.appearances[e.currentNum-1].function],"")}}let _A=(()=>{class i{constructor(e,a){this.data=e,this.dialogRef=a,this.taPrefix="FRCCDialog-"}ngOnInit(){this.finderData=this.data,this.dialogRef.updatePosition({top:this.finderData.position.bottom-300+"px"}),this.totalNum=this.finderData.records.length,this.currentNum=this.finderData.currentRecord,this.showECRFunctions=this.finderData.showECRFunctions}changeHotDoc(e){const a=this.finderData.records[e],r={docid:a.getAttribute("docid"),location:a.getAttribute("location")};this.dialogRef.close({data:r})}getTextToDisplay(e){const a=this.finderData.charlimit;return e.length>a?e.slice(0,a)+"...":e}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(mt.Vh),t.rXU(mt.CP))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-citation-context-find-dialog"]],decls:32,vars:33,consts:[[1,"cdx-dialog-wrapper"],[1,"cdx-dialog-top","flex-display-justify-end-no-reverse"],["mat-button","",1,"cdx-popup-close","thin-focus",3,"mat-dialog-close","aria-label"],["role","img",1,"margin-right-3--reversible","cdx-mat-icon-12"],["role","dialog","aria-label","Citation Context Dialog content"],["data-ta","hotdoc-title",1,"hotdoc-title"],[1,"cc-snippet-text"],[4,"ngIf"],["class","cdx-but-link","target","_blank","rel","noopener",3,"href",4,"ngIf"],["data-ta","dialog-section",1,"font-size-13","margin-top-10","ecrSection","display-inline-flex"],["mat-button","","type","button","mat-stroked-button","",1,"ecr-function",3,"matTooltip"],[1,"font-size-13"],["mat-button","","type","button","mat-stroked-button","","class","ecr-function margin-left-5--reversible",3,"matTooltip",4,"ngIf"],[1,"margin-top-10"],[1,"flex-display-align-center"],[1,"font-size-13","margin-top-15"],["mat-icon-button","",1,"upArrow",3,"click","disabled"],["svgIcon","arrowUp",1,"cdx-mat-icon-12"],["mat-icon-button","",1,"downArrow",3,"click","disabled"],["svgIcon","arrowDown",1,"cdx-mat-icon-12"],[3,"innerHTML"],["target","_blank","rel","noopener",1,"cdx-but-link",3,"href"],[1,"font-size-14"],["mat-button","","type","button","mat-stroked-button","",1,"ecr-function","margin-left-5--reversible",3,"matTooltip"]],template:function(a,r){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"button",2),t.nI1(3,"translate"),t.j41(4,"mat-icon",3),t.EFF(5,"close"),t.k0s()()(),t.j41(6,"mat-dialog-content",4)(7,"div",5),t.EFF(8),t.k0s(),t.j41(9,"div",6),t.DNE(10,cA,6,3,"ng-container",7)(11,dA,4,6,"a",8),t.k0s(),t.j41(12,"div",9)(13,"button",10),t.nI1(14,"translate"),t.j41(15,"span",11),t.EFF(16),t.nI1(17,"translate"),t.k0s()(),t.DNE(18,uA,5,9,"button",12),t.k0s(),t.nrm(19,"mat-divider",13),t.j41(20,"div",14)(21,"div",15),t.EFF(22),t.nI1(23,"translate"),t.nI1(24,"translate"),t.k0s(),t.j41(25,"div",13)(26,"button",16),t.nI1(27,"translate"),t.bIt("click",function(){return r.changeHotDoc(r.currentNum-2)}),t.nrm(28,"mat-icon",17),t.k0s(),t.j41(29,"button",18),t.nI1(30,"translate"),t.bIt("click",function(){return r.changeHotDoc(r.currentNum)}
1),t.nrm(31,"mat-icon",19),t.k0s()()()()()),2&a&&(t.R7$(2),t.FS9("aria-label",t.bMT(3,19,"closeDialog")),t.Y8G("mat-dialog-close",!0),t.R7$(6),t.JRh(r.finderData.title),t.R7$(2),t.Y8G("ngIf",null==r.finderData.appearances[r.currentNum-1]?null:r.finderData.appearances[r.currentNum-1].text),t.R7$(),t.Y8G("ngIf",r.finderData.doi),t.R7$(2),t.Y8G("matTooltip",t.bMT(14,21,"ecrSection")),t.BMQ("id",r.taPrefix+"ecrSection")("data-ta",r.taPrefix+"ecrSection"),t.R7$(3),t.Lme("",t.bMT(17,23,"section")," ",r.finderData.appearances[r.currentNum-1].section,""),t.R7$(2),t.Y8G("ngIf",r.finderData.appearances[r.currentNum-1].function&&r.showECRFunctions),t.R7$(4),t.LHq("",r.currentNum," ",t.bMT(23,25,"outOf")," ",r.totalNum," ",t.bMT(24,27,"inTextMentions"),""),t.R7$(4),t.Y8G("disabled",1===r.currentNum),t.BMQ("aria-label",t.bMT(27,29,"previousMention")),t.R7$(3),t.Y8G("disabled",r.currentNum===r.totalNum),t.BMQ("aria-label",t.bMT(30,31,"nextMention")))},dependencies:[A.bT,jt.An,ht.$z,ht.iY,xt.oV,mt.tx,mt.Yi,Jo.q,V.D9],styles:['.cit-data-box .axis path,.cit-data-box .axis line{fill:none;stroke:#000;shape-rendering:crispEdges}.cit-data-box .cit-dot{stroke:transparent;fill:#565656;z-index:-100}.cit-data-box .tooltip{position:absolute;width:200px;height:28px;pointer-events:none}.cit-data-box .dotContainer{display:flex;align-items:center;justify-content:flex-start;width:100%}.cit-data-box .divTitle{height:100px;top:0;box-shadow:0 1px 2px #0000004d}.cit-data-box .title{font-size:20px;text-align:left;margin:10px 0;font-weight:600}.cit-data-box .cat{font-size:16px;text-align:left;margin-top:0;font-weight:600}.cit-data-box .dotBox{display:block;padding:10px;box-shadow:0 1px 2px #0000004d;background-color:#fafafa;width:100%;margin:10px auto;height:170px}.cit-data-box .chartBox{display:block;padding:10px;box-shadow:0 1px 2px #0000004d;background-color:#fafafa;width:inherit;margin:10px auto;height:90px}.cit-data-box .dot-Chart{height:18.75rem;min-height:18.75rem;display:inline!important}.cit-data-box .dot-Section{height:0}.cit-data-box .svg-container{display:inline-block;width:100%;padding-bottom:0rem;vertical-align:top;overflow:hidden}.cit-data-box svg.svg-content{display:inline-block;font-family:Source Sans Pro,Noto Kufi Arabic,Arial,Helvetica,sans-serif}.tippy-box{line-height:1;font-weight:400;font-size:.8125rem;padding:12px;background:#fff;border:2px solid #bdbdbd;color:var(--sys-primary);border-radius:5px;max-width:18.75rem;z-index:2000}.tippy-box .text--normal{color:#424242!important}.ecrSection .mdc-button{height:unset!important}.tippy-arrow{width:20px;height:20px;color:#fff;left:3px!important}.cit-d3-tip{line-height:1;font-weight:400;font-size:.8125rem;padding:12px;background:#fff;border:2px solid #bdbdbd;color:var(--sys-primary);border-radius:5px;max-width:18.75rem;z-index:2000;pointer-events:none}.cit-d3-tip .text--normal{color:#424242!important}.cit-d3-tip:after,.cit-d3-tip:before{top:100%;left:50%;border:solid transparent;content:"";height:0;width:0;position:absolute;pointer-events:none}.cit-d3-tip:after{border-color:#fff0;border-top-color:#fff;border-width:10px;margin-left:-10px;pointer-events:none}.cit-d3-tip:before{border-top-color:#e4e5ec;border-width:13px;margin-left:-13px;pointer-events:none}.section-text{font-size:.8125rem}.section-rect{stroke:#fff;stroke-width:.125rem}.view-in-text-mention{background-color:#fff;border-color:var(--sys-primary);font-weight:500}.citDialogPanel{position:sticky!important}.citDialogPanel:after,.citDialogPanel:before{top:92%;left:14%;border:solid transparent;content:"";height:0;width:0;position:absolute;pointer-events:none}.citDialogPanel:after{border-color:#fff0;border-top-color:#fff;border-width:17px;margin-left:-17px}.citDialogPanel:before{border-top-color:#0000001a;border-width:20px;margin-left:-20px}.citDialogPanel .mdc-dialog__container{padding:25px!important;min-height:8.125rem!important}.ccModalBackdrop{background-color:transparent}.hotdoc-title{color:var(--sys-primary);line-height:1.125rem;margin-bottom:.9375rem;font-size:.875rem}.cc-snippet-text{line-height:1.125rem;font-size:.875rem}.secText tspan{fill:#424242}.expand-section{stroke:#000;stroke-width:1px;fill:#fff;pointer-events:auto}.expand-section:hover{cursor:pointer}div.tooltip{position:absolute;text-align:center;color:#fff;font-size:14px;width:auto;height:28px;padding:5px;background:#000;border:0px;border-radius:5px;pointer-events:none;z-index:2000}.d3Button{stroke:red;fill:#ff0;width:24px;height:24px}.image-border{fill:#fff;stroke:var(--sys-primary)}.image-border-hidden{display:none}.close-section{stroke:#000;stroke-width:1px;fill:#fff;pointer-events:auto;cursor:pointer}\n'],encapsulation:2})}}return i})();var pA=S(47987),Gd=S(8912),hA=S(8058),mA=S(12068);const gA=(i,n,e)=>["/",i,"summary",n,e,"1"];
1function fA(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-citation-context-functions",18),t.nI1(1,"async"),t.bIt("findContext",function(r){t.eBV(e);const o=t.XpG(4);return t.Njj(o.findContext(r))}),t.k0s()}if(2&i){const e=t.XpG(4);t.Y8G("data",t.bMT(1,3,e.ccData$))("qid",e.qid)("database",e.database)}}function bA(i,n){if(1&i&&(t.j41(0,"div",19),t.nrm(1,"span",20),t.nI1(2,"translate"),t.j41(3,"span"),t.EFF(4),t.k0s(),t.j41(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s()()),2&i){const e=t.XpG(4);t.R7$(),t.Y8G("innerHTML",t.bMT(2,3,"VisualizationIncludes"),t.npT),t.R7$(3),t.JRh(e.orphans),t.R7$(2),t.SpI(" ",t.bMT(7,5,"ReferencesNotMentionInTheBodyOfAR"),"")}}function vA(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",21)(1,"wos-select",22),t.nI1(2,"translate"),t.nI1(3,"async"),t.bIt("valueChange",function(r){t.eBV(e);const o=t.XpG(4);return t.Njj(o.changeSort(r))}),t.k0s()()}if(2&i){let e;const a=t.XpG(4);t.R7$(),t.Y8G("selectionsCategory",t.bMT(2,6,"sortInTextMentionsBy"))("fixedHeight",!1)("value",(null==(e=t.bMT(3,8,a.currentSort$))?null:e.sortOrder)||"firstAppearances")("optVals",a.citationOptions)("small",!0)("allowSearch",!1)}}function xA(i,n){if(1&i&&(t.j41(0,"div",23)(1,"span",24),t.EFF(2," ("),t.j41(3,"span"),t.EFF(4),t.nI1(5,"translate"),t.nI1(6,"lowercase"),t.nI1(7,"translate"),t.k0s(),t.EFF(8,") "),t.k0s()()),2&i){const e=t.XpG(4);t.R7$(),t.BMQ("id",e.taPrefix+"fromCollection")("data-ta",e.taPrefix+"fromCollection"),t.R7$(3),t.Lme("",t.bMT(6,6,t.bMT(5,4,"from"))," ",t.bMT(7,8,e.database+"_name"),"")}}function CA(i,n){if(1&i){const e=t.RV6();t.qex(0),t.DNE(1,fA,2,5,"app-citation-context-functions",9)(2,bA,8,7,"div",10),t.j41(3,"div",11)(4,"div",12)(5,"div",13)(6,"span",14),t.EFF(7,"showing"),t.k0s(),t.EFF(8),t.nI1(9,"async"),t.nI1(10,"async"),t.nI1(11,"async"),t.nI1(12,"async"),t.nI1(13,"async"),t.j41(14,"span",14),t.EFF(15,"of"),t.k0s(),t.EFF(16),t.nI1(17,"async"),t.nI1(18,"async"),t.nI1(19,"async"),t.k0s(),t.DNE(20,vA,4,10,"div",15),t.k0s(),t.DNE(21,xA,9,10,"div",16),t.k0s(),t.j41(22,"app-records-list",17),t.nI1(23,"async"),t.nI1(24,"async"),t.nI1(25,"async"),t.nI1(26,"async"),t.nI1(27,"async"),t.bIt("findContext",function(r){t.eBV(e);const o=t.XpG(3);return t.Njj(o.findContext(r))})("navExpanded",function(r){t.eBV(e);const o=t.XpG(3);return t.Njj(o.updateNavStatus(r))}),t.k0s(),t.bVm()}if(2&i){let e,a,r;const o=t.XpG(2).ngIf,s=t.XpG();t.R7$(),t.Y8G("ngIf","cited_references_with_context"==o.mode&&s.showECRFunctions),t.R7$(),t.Y8G("ngIf",s.orphans>0),t.R7$(4),t.BMQ("id",s.taPrefix+"snMcrl-showing")("data-ta",s.taPrefix+"snMcrl-showing"),t.R7$(2),t.SpI("\xa0 ",(null==(e=t.bMT(9,17,s.hits$))?null:e.found)<s.numRecMiniCRL||t.bMT(10,19,s.ccData$)?"allAppearances"===(null==(e=t.bMT(11,21,s.currentSort$))?null:e.sortOrder)?null==(e=t.bMT(12,23,s.ccData$))||null==e.orders.allAppearances?null:e.orders.allAppearances.length:null==(e=t.bMT(13,25,s.hits$))?null:e.found:s.numRecMiniCRL,"\xa0 "),t.R7$(6),t.BMQ("id",s.taPrefix+"snMcrl-of")("data-ta",s.taPrefix+"snMcrl-of"),t.R7$(2),t.SpI("\xa0 ","allAppearances"===(null==(a=t.bMT(17,27,s.currentSort$))?null:a.sortOrder)?null==(a=t.bMT(18,29,s.ccData$))||null==a.orders.allAppearances?null:a.orders.allAppearances.length:null==(a=t.bMT(19,31,s.hits$))?null:a.found," "),t.R7$(4),t.Y8G("ngIf","cited_references_with_context"==o.mode),t.R7$(),t.Y8G("ngIf",s.regionalCollections.includes(s.database)||"ALLDB"===s.database||"WOSCC"===s.database||"BCI"===s.database||"PPRN"===s.database),t.R7$(),t.Y8G("pageSize",t.bMT(23,33,s.ccData$)?s.numRecMiniCRLCitationContext:s.numRecMiniCRL)("orderList",null!=(r=t.bMT(24,35,s.currentSort$))&&r.sortOrder?null==(r=t.bMT(25,37,s.ccData$))?null:r.orders[null==(r=t.bMT(26,39,s.currentSort$))?null:r.sortOrder]:null)("sort",s.sort?s.sort:"cited_references_with_context"===o.mode?"date":"author-ascending")("search",o)("page",1)("hits",t.bMT(27,41,s.hits$))("parent","Article")}}function RA(i,n){if(1&i&&(t.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"h2",5)(4,"span",6),t.EFF(5),t.nI1(6,"async"),t.k0s(),t.EFF(7),t.nI1(8,"async"),t.nI1(9,"translate"),t.k0s(),t.j41(10,"a",7),t.nI1(11,"translate"),t.j41(12,"span"),t.EFF(13),t.nI1(14,"translate"),t.k0s()()(),t.nrm(15,"hr",8),t.DNE(16,CA,28,43,"ng-container",0),t.nI1(17,"async"),t.k0s()()),2&i){let e,a,r;const o=t.XpG().ngIf,s=t.XpG();t.BMQ("id",s.taPrefix+"snMcrl"+(s.sort?"-network":""))("data-ta",s.taPrefix+"snMcrl"),t.R7$(),t.Y8G("ngClass",s.sort?"citing-patent-separator":"cited-ref-separator"),t.R7$(2),t.BMQ("tabindex",s.ecrActivated?"0":null)("id",s.taPrefix+"snMcrl-citedReferencesHeading")("data-ta",s.taPrefix+"snMcrl-citedReferencesHeading"),t.R7$(),t.BMQ("id",s.taPrefix+"snMcrl-citedReferences")("data-ta",s.taPrefix+"snMcrl-citedReferences"),t.R7$(),t.SpI(" ",null==(e=t.bMT(6,16,s.hits$))?null:e.found," "),t.R7$(2),t.SpI(" ",t.bMT(9,20,1===(null==(a=t.bMT(8,18,s.hits$))?null:a.found)?s.sort?"citingPatentSingular":"citedReferencesSingular":s.sort?"citingPatents":"citedReferences")," "),t.R7$(3),t.Y8G("matTooltip",t.bMT(11,22,s.sort?"viewCitingPatentListTop":"viewCitedRefListTop"))("routerLink",t.sMw(28,gA,o.database.toLowerCase(),s.qid,s.sort?s.sort:"cited_references_with_context"===o.mode?"citation-context-order":"author-ascending")),t.BMQ("id",s.taPrefix+"viewCitedRefLink")("data-ta",s.taPrefix+"viewCitedRefLink"),t.R7$(3),t.SpI(" ",t.bMT(14,24,"viewAsSetOfResults"),""),t.R7$(3),t.Y8G("ngIf",s.searchInfo&&(null==(r=t.bMT(17,26,s.hits$))?null:r.found)>0)}}
1function yA(i,n){if(1&i&&(t.qex(0),t.DNE(1,RA,18,32,"div",1),t.nI1(2,"async"),t.bVm()),2&i){let e;const a=t.XpG();t.R7$(),t.Y8G("ngIf",(null==(e=t.bMT(2,1,a.hits$))?null:e.found)>0)}}let Dd=(()=>{class i{scrollHandler(){this.onScroll()}constructor(e,a,r,o,s,l){this.store=e,this.config=a,this.dialog=r,this.overlay=o,this.translate=s,this.snackBar=l,this.ecrActivated=!1,this.navExpanded=new t.bkB,this.showPhase1=!1,this.showECRFunctions=!0,this.taPrefix="FRMiniCrlTa-",this.iconHtml='<span style="line-height: inherit" class="material-icons-outlined margin-right-3--reversible">arrow_upward</span>',this.MAX_CHAR_LIMIT=this.config.getSettings().app.fullRecord.MAX_CHAR_LIMIT,this.citationFunctions=this.config.getSettings().app.fullRecord.citation_functions,this.numRecMiniCRL=this.config.getSettings().app.fullRecord.subSearchConfig["cited-references"].count,this.store.select(B.l1,{prop:"nxNumberReferencesMiniCrlNoCC"}).pipe((0,Ft.p)(c=>!!c)).subscribe(c=>{this.numRecMiniCRL=c}).unsubscribe(),this.showECRFunctions=!0,this.numRecMiniCRLCitationContext=this.config.getSettings().app.fullRecord.subSearchConfig["cited-references-with-context"].count,this.regionalCollections=this.config.getSettings().app.fullRecord.regionalCollections,this.citationOptions=this.config.getSettings().app.fullRecord.citationOptions}ngOnChanges(e){e.searchInfo&&this.searchInfo&&(this.qid=this.searchInfo.id,this.search$=this.store.select(B.CS,{qid:this.qid}).pipe((0,Ft.p)(a=>!!a)),this.hits$=this.store.select(B.j,{qid:this.qid}).pipe((0,Ft.p)(a=>!!a),(0,ge.s)(1),(0,Uo.t)()),this.ccData$=this.store.select(B.yU,this.qid).pipe((0,Ft.p)(a=>!!a)),this.currentSort$=this.store.select(B.W,{ut:this.ut}),this.showECRFunctions=!0,this.ccData$.subscribe(a=>{null!=a.functionClassEnabled&&(this.showECRFunctions=a.functionClassEnabled,console.log("showECRFunctions found",this.showECRFunctions)),this.orphans=a.orphans}).unsubscribe())}changeSort(e){console.log("changeSort called",e),this.store.dispatch(new Qa.Au({ut:this.ut,sortOrder:e})),this.snackBar.success("sortOrderChange_"+e)}findContext(e){this.isFromRecord=e.boolean,this.setHotDoc(e.CitationContextRefLocation),this.snackBar.success("sortOrderChange_allAppearances")}setHotDoc(e){this.store.dispatch(new Qa.UM({ut:this.ut,sortOrder:"allAppearances",hotDocId:e?.docid,hotLocation:e?.location})),this.navigateToHotDoc()}navigateToHotDoc(){document.querySelectorAll(".hotDoc, .inTextRefs").forEach(a=>{a.setAttribute("class","title title-link font-size-18 refs")}),this.store.select(B.LW,{ut:this.ut}).pipe((0,ge.s)(1)).subscribe(a=>{const r=a.hotDocId,o=this.filterAllAppearences(r);setTimeout(()=>{const s=document.querySelectorAll('div[docid="'+r+'"]');for(let l=0;l<s.length;l++){const c=s[l],d=c.querySelector('[data-ta="summary-record-title-link"]')||c.querySelector("span");if(d?.setAttribute("class","title title-link font-size-18 inTextRefs"),c.getAttribute("location")===a.hotLocation.toString()){d.setAttribute("class","title title-link font-size-18 hotDoc");const u=d;d.scrollIntoView({block:"center"}),d.focus(),this.openFindCitationDialog(u,s,l+1,o,this.MAX_CHAR_LIMIT,this.doi,this.citationFunctions,this.showECRFunctions)}}},80)})}filterAllAppearences(e){let a=[];return this.ccData$.subscribe(r=>{a=r.orders.allAppearances.filter(o=>o.docid===e)}),a}openFindCitationDialog(e,a,r,o,s,l,c,d){const u=this.overlay.scrollStrategies.reposition(),_={bottom:e.getBoundingClientRect().bottom,right:e.getBoundingClientRect().right},h=this.dialog.open(_A,{height:"auto",panelClass:"citDialogPanel",width:"450px",disableClose:!0,scrollStrategy:u,backdropClass:"ccModalBackdrop",ariaLabel:"Citation Context Find Dialog Container",data:{title:e.innerText,position:_,section:"Section name",records:a,currentRecord:r,appearances:o,charlimit:s,doi:l,citationFunctions:c,showECRFunctions:d}});h.afterClosed().subscribe(g=>{if(this.setHotDoc(g?.data),!this.isFromRecord&&!document.getElementById("return-to-explore")){let v=document.createElement("button");v.innerHTML=this.iconHtml+this.translate.instant("ReturnToExplore"),v.addEventListener("click",R=>this.goToTheEcr(v,e)),v.setAttribute("color","primary"),v.setAttribute("class","mdc-button mat-mdc-unelevated-button font-size-16 mat-primary return-to-explore"),v.setAttribute("id","return-to-explore"),e.parentElement.appendChild(v),v.focus()}}),h.backdropClick().subscribe(g=>{h.close()})}updateNavStatus(e){this.navExpanded.emit(e)}goToTheEcr(e,a){const r=document.getElementById("FRMiniCrlTa-snMcrl-citedReferencesHeading");r&&(r.scrollIntoView({block:"start"}),a.parentElement.removeChild(e))}onScroll(){const e=document.getElementsByClassName("functions-Chart")[0];if(e){const a=e.getBoundingClientRect(),r=document.getElementById("return-to-explore");r&&(window.scrollY<a.top+window.scrollY?r.style.display="none":(r.style.display="flex",r.style.zIndex="2"))}}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Gt.il),t.rXU(Dt.w),t.rXU(mt.bZ),t.rXU(pA.hJ),t.rXU(V.c$),t.rXU(Ln.z))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-mini-crl"]],hostBindings:function(a,r){1&a&&t.bIt("scroll",function(){return r.scrollHandler()},!1,t.tSv)},inputs:{searchInfo:"searchInfo",database:"database",ut:"ut",doi:"doi",sort:"sort",ecrActivated:"ecrActivated"},outputs:{navExpanded:"navExpanded"},features:[t.OA$],decls:2,vars:3,consts:[[4,"ngIf"],["tabindex","-1","class","references-section cdx-references-remodel",4,"ngIf"],["tabindex","-1",1,"references-section","cdx-references-remodel"],[3,"ngClass"],[1,"cdx-two-column-grid-journal-container"],[1,"text--normal","flex-align-left","flex-align-baseline","margin-bottom-10"],[1,"font-size-18","title-style","margin-right-5--reversible"],["color","primary","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-all-in-cited-references-page-top","cdxAnalyticsAction","click",1,"cdx-margin-top-results","wos-standard-link",3,"matTooltip","routerLink"],[1,"cdx-horizontal-line"],["class","custom-tippy",3,"data","qid","database","findContext",4,"ngIf"],["class","margin-bottom-40 margin-left-30--reversible",4,"ngIf"],[1,"cit-page-bar"],[1,"flex-align-center-center"],[1,"value","margin-right-20--reversible"],["translate",""],["class","cdx-margin-right-appearence",4,"ngIf"],["class","flex-display-justify-end ",4,"ngIf"],[3,"findContext","navExpanded","pageSize","orderList","sort","search","page","hits","parent"],[1,"custom-tippy",3,"findContext","data","qid","database"],[1,"margin-bottom-40","margin-left-30--reversible"],[3,"innerHTML"],[1,"cdx-margin-right-appearence"],["translatePostfix","","width","auto",1,"cit-dropdown",3,"valueChange","selectionsCategory","fixedHeight","value","o
1ptVals","small","allowSearch"],[1,"flex-display-justify-end"],["translate","",1,"value","italic-style"]],template:function(a,r){1&a&&(t.DNE(0,yA,3,3,"ng-container",0),t.nI1(1,"async")),2&a&&t.Y8G("ngIf",t.bMT(1,1,r.search$))},dependencies:[A.YU,A.bT,ot.Wk,V.Mm,Gd.o,xt.oV,hA.R,mA.p,Ot.P,A.Jj,A.GH,V.D9],encapsulation:2})}}return i})();const TA=()=>({from:"grants"});function IA(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",9)(2,"div",10)(3,"div",11)(4,"span",12),t.EFF(5,"showing"),t.k0s(),t.EFF(6),t.nI1(7,"async"),t.nI1(8,"async"),t.j41(9,"span",12),t.EFF(10,"of"),t.k0s(),t.EFF(11),t.nI1(12,"async"),t.k0s()(),t.j41(13,"div",13)(14,"span",14),t.EFF(15," ("),t.j41(16,"span"),t.EFF(17),t.nI1(18,"translate"),t.nI1(19,"lowercase"),t.nI1(20,"translate"),t.k0s(),t.EFF(21,") "),t.k0s()()(),t.nrm(22,"app-records-list",15),t.nI1(23,"async"),t.bVm()),2&i){let e,a;const r=t.XpG(2).ngIf,o=t.XpG();t.R7$(4),t.BMQ("id",o.taPrefix+"snGrantToWos-showing")("data-ta",o.taPrefix+"snGrantToWos-showing"),t.R7$(2),t.SpI("\xa0 ",(null==(e=t.bMT(7,17,o.hits$))?null:e.found)<o.numRecs?null==(e=t.bMT(8,19,o.hits$))?null:e.found:o.numRecs,"\xa0 "),t.R7$(3),t.BMQ("id",o.taPrefix+"snGrantToWos-of")("data-ta",o.taPrefix+"snGrantToWos-of"),t.R7$(2),t.SpI("\xa0 ",null==(a=t.bMT(12,21,o.hits$))?null:a.found," "),t.R7$(3),t.BMQ("id",o.taPrefix+"fromCollection")("data-ta",o.taPrefix+"fromCollection"),t.R7$(3),t.Lme("",t.bMT(19,25,t.bMT(18,23,"from"))," ",t.bMT(20,27,o.database+"_name"),""),t.R7$(5),t.Y8G("pageSize",o.numRecs)("sort","date-descending")("search",r)("page",1)("hits",t.bMT(23,29,o.hits$))("siloViewRecordWarning",!0)("parent","Article")}}function kA(i,n){if(1&i&&(t.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"h2",5)(4,"span",6),t.EFF(5),t.nI1(6,"async"),t.k0s(),t.EFF(7),t.nI1(8,"async"),t.nI1(9,"translate"),t.k0s(),t.j41(10,"a",7),t.nI1(11,"translate"),t.j41(12,"span"),t.EFF(13),t.nI1(14,"translate"),t.k0s()()(),t.nrm(15,"hr",8),t.DNE(16,IA,24,31,"ng-container",0),t.nI1(17,"async"),t.k0s()()),2&i){let e,a,r;const o=t.XpG(2);t.BMQ("id",o.taPrefix+"snGrantToWos"+(o.sort?"-network":""))("data-ta",o.taPrefix+"snGrantToWos"),t.R7$(),t.Y8G("ngClass",o.sort?"citing-patent-separator":"cited-ref-separator"),t.R7$(2),t.BMQ("id",o.taPrefix+"snGrantToWos-grantsToWosHeading")("data-ta",o.taPrefix+"snGrantToWos-grantsToWosHeading"),t.R7$(),t.BMQ("id",o.taPrefix+"snGrantToWos-grantsToWos")("data-ta",o.taPrefix+"snGrantToWos-grantsToWos"),t.R7$(),t.SpI(" ",null==(e=t.bMT(6,17,o.hits$))?null:e.found," "),t.R7$(2),t.SpI(" ",t.bMT(9,21,1===(null==(a=t.bMT(8,19,o.hits$))?null:a.found)?"grantsToWosSingular":"grantsToWosPlural")," "),t.R7$(3),t.Mz_("routerLink","/woscc/grant-publications-summary/",o.ut,""),t.Y8G("matTooltip",t.bMT(11,23,"viewGrantsToWosLink"))("queryParams",t.lJ4(29,TA)),t.BMQ("id",o.taPrefix+"viewGrantsToWosLink")("data-ta",o.taPrefix+"viewGrantsToWosLink"),t.R7$(3),t.SpI(" ",t.bMT(14,25,"viewAsSetOfResults"),""),t.R7$(3),t.Y8G("ngIf",o.searchInfo&&(null==(r=t.bMT(17,27,o.hits$))?null:r.found)>0)}}function FA(i,n){if(1&i&&(t.qex(0),t.DNE(1,kA,18,30,"div",1),t.nI1(2,"async"),t.bVm()),2&i){let e;const a=t.XpG();t.R7$(),t.Y8G("ngIf",(null==(e=t.bMT(2,1,a.hits$))?null:e.found)>0)}}let wA=(()=>{class i{constructor(e,a,r){this.store=e,this.config=a,this.translate=r,this.taPrefix="FRGrantsToWosListTa-",this.numRecs=this.config.getSettings().app.fullRecord.subSearchConfig["grants-to-wos-records"].count}ngOnChanges(e){e.searchInfo&&this.searchInfo&&(this.qid=this.searchInfo.id,this.search$=this.store.select(B.CS,{qid:this.qid}).pipe((0,Ft.p)(a=>!!a)),this.hits$=this.store.select(B.j,{qid:this.qid}).pipe((0,Ft.p)(a=>!!a),(0,ge.s)(1),(0,Uo.t)()))}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Gt.il),t.rXU(Dt.w),t.rXU(V.c$))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-grants-to-woscc-list"]],inputs:{searchInfo:"searchInfo",database:"database",ut:"ut",doi:"doi",sort:"sort"},features:[t.OA$],decls:2,vars:3,consts:[[4,"ngIf"],["tabindex","-1","class","references-section cdx-references-remodel",4,"ngIf"],["tabindex","-1",1,"references-section","cdx-references-remodel"],[3,"ngClass"],[1,"cdx-two-column-grid-journal-container"],[1,"text--normal","flex-align-left","flex-align-baseline","margin-bottom-10"],[1,"font-size-18","title-style","margin-right-5--reversible"],["color","primary","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-view-all-in-cited-references-page-top","cdxAnalyticsAction","click",1,"cdx-margin-top-results","wos-standard-link",3,"matTooltip","routerLink","queryParams"],[1,"cdx-horizontal-line"],[1,"cit-page-bar"],[1,"flex-align-center-center"],[1,"value","margin-right-20--reversible"],["translate",""],[1,"flex-display-justify-end"],["translate","",1,"value","italic-style"],[3,"pageSize","sort","search","page","hits","siloViewRecordWarning","parent"]],template:function(a,r){1&a&&(t.DNE(0,FA,3,3,"ng-container",0),t.nI1(1,"async")),2&a&&t.Y8G("ngIf",t.bMT(1,1,r.search$))},dependencies:[A.YU,A.bT,ot.Wk,V.Mm,Gd.o,xt.oV,Ot.P,A.Jj,A.GH,V.D9],encapsulation:2})}}return i})();const MA=i=>({viewPreprint:i});
1function SA(i,n){if(1&i&&(t.j41(0,"span",13),t.nI1(1,"translate"),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&i){const e=t.XpG(2).$implicit,a=t.XpG(2);t.Y8G("matTooltip",t.bMT(1,2,a.getCorrectTitle(e)+"_link_label_mobile")),t.R7$(2),t.SpI(" ",t.bMT(3,4,a.getCorrectTitle(e)+"_link_label_mobile"),"")}}function AA(i,n){if(1&i&&(t.j41(0,"span",14),t.nI1(1,"translate"),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&i){const e=t.XpG(2).$implicit;t.Y8G("matTooltip",t.bMT(1,2,e.resource_key+"_link_label_title")),t.R7$(2),t.SpI(" ",t.bMT(3,4,e.resource_key+"_link_label"),"")}}function EA(i,n){if(1&i&&t.nrm(0,"img",15),2&i){const e=t.XpG(2).$implicit;t.FS9("alt",e.desc),t.Y8G("src",e.image_url,t.B4B)}}function PA(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"a",8),t.nI1(2,"async"),t.nI1(3,"translate"),t.nI1(4,"translate"),t.bIt("contextmenu",function(r){return t.eBV(e),t.Njj(r.preventDefault())})("click",function(){t.eBV(e);const r=t.XpG().$implicit,o=t.XpG(2);return t.Njj(o.logLinkClick(r))}),t.j41(5,"span",9),t.DNE(6,SA,4,6,"span",10),t.nI1(7,"async"),t.DNE(8,AA,4,6,"span",11),t.nI1(9,"async"),t.DNE(10,EA,1,2,"img",12),t.k0s()(),t.bVm()}if(2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2);t.R7$(),t.FS9("cdxAnalyticsCategory","wos-open-url-"+a.publisher_id.toLowerCase()),t.Y8G("href",a.publisher_url,t.B4B)("rel","GetFTR"===a.publisher_id?"nofollow":null)("ngClass",t.bMT(2,11,o.isMobile$)?"mobile-link-button":"regular-link"),t.BMQ("id",o.taPrefix+"link-"+r)("data-ta",o.taPrefix+"link-"+r)("aria-label",t.bMT(3,13,a.resource_key+"_link_label")+t.bMT(4,15,"OpenInNewWindow"))("data-pendo",("openurl"===a.content_type?"open_url":a.publisher_id)+"_link_article"),t.R7$(5),t.Y8G("ngIf",t.bMT(7,17,o.isMobile$)),t.R7$(2),t.Y8G("ngIf",!t.bMT(9,19,o.isMobile$)),t.R7$(2),t.Y8G("ngIf",a.image_url&&"GetFTR"===a.publisher_id)}}
1function GA(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",16),t.nI1(1,"translate"),t.bIt("contextmenu",function(r){return t.eBV(e),t.Njj(r.preventDefault())})("click",function(){t.eBV(e);const r=t.XpG().$implicit,o=t.XpG(2);return t.Njj(o.logLinkClick(r))}),t.nrm(2,"img",17),t.k0s()}if(2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2);t.FS9("cdxAnalyticsCategory","wos-open-url-"+a.publisher_id.toLowerCase()),t.Y8G("href",a.publisher_url,t.B4B)("matTooltip",a.desc+" "+t.bMT(1,10,"OpenInNewWindow"))("ngClass",a.image_url?"margin-right-10--reversible disableContext full-record-links-no-border line-height-adjust32":"margin-right-10--reversible disableContext full-record-links line-height-adjust32"),t.BMQ("id",o.taPrefix+"link-image-url-"+r)("data-ta",o.taPrefix+"link-image-url-"+r)("aria-label",a.desc)("data-pendo",("openurl"===a.content_type?"open_url":a.publisher_id)+"_link_article"),t.R7$(2),t.FS9("alt",a.desc),t.Y8G("src",a.image_url,t.B4B)}}function DA(i,n){if(1&i&&(t.qex(0),t.DNE(1,PA,11,21,"ng-container",7)(2,GA,3,12,"ng-template",null,0,t.C5r),t.bVm()),2&i){const e=n.$implicit,a=t.sdS(3);t.R7$(),t.Y8G("ngIf",!e.image_url||"GetFTR"===e.publisher_id)("ngIfElse",a)}}
1function $A(i,n){if(1&i&&(t.nrm(0,"img",28),t.nI1(1,"translate")),2&i){const e=t.XpG().$implicit;t.FS9("alt",t.bMT(1,2,e.desc)),t.Y8G("src",e.image_url,t.B4B)}}function LA(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",24)(1,"a",25),t.nI1(2,"translate"),t.nI1(3,"translate"),t.nI1(4,"translate"),t.bIt("contextmenu",function(r){return t.eBV(e),t.Njj(r.preventDefault())})("click",function(){const r=t.eBV(e).$implicit,o=t.XpG(4);return t.Njj(o.logLinkClick(r))}),t.j41(5,"div",26)(6,"span"),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.DNE(9,$A,2,4,"img",27),t.k0s()()()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(4);t.R7$(),t.FS9("href",e.publisher_url,t.B4B),t.Y8G("matTooltip","opac"===e.content_type?e.publisher_id:t.bMT(2,9,e.resource_key+"_link_label_title")+" "+t.bMT(3,11,"ThislinkmaycontainPDF"))("matTooltipPosition","right"),t.BMQ("id",r.taPrefix+"link-grouped-"+a)("data-ta",r.taPrefix+"link-grouped-"+a)("aria-label","opac"===e.content_type?e.desc:t.bMT(4,13,e.resource_key+"_link_label"))("data-pendo",("openurl"===e.content_type?"open_url":e.publisher_id)+"_link_article"),t.R7$(6),t.JRh("opac"===e.content_type?e.desc:t.bMT(8,15,e.resource_key+"_link_label")),t.R7$(2),t.Y8G("ngIf",e.image_url)}}function NA(i,n){if(1&i&&t.DNE(0,LA,10,17,"div",23),2&i){const e=t.XpG(3);t.Y8G("ngForOf",e.groupedLinks)}}function jA(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"mat-menu",18,1),t.DNE(3,NA,1,1,"ng-template",19),t.k0s(),t.j41(4,"button",20,2),t.nI1(6,"translate"),t.nI1(7,"translate"),t.nI1(8,"async"),t.bIt("menuOpened",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.isMenuOpen=!0)})("menuClosed",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.isMenuOpen=!1)}),t.j41(9,"span",21),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.nrm(12,"mat-icon",22),t.k0s(),t.bVm()}if(2&i){const e=t.sdS(2),a=t.XpG(2);t.R7$(4),t.Y8G("matMenuTriggerFor",e)("matTooltip",t.bMT(6,6,"fullTextLinks")+" "+t.bMT(7,8,"OpenInNewWindow"))("ngClass",t.eq3(14,MA,t.bMT(8,10,a.isMobile$))),t.BMQ("aria-expanded",a.isMenuOpen),t.R7$(6),t.JRh(t.bMT(11,12,"fullTextLinks")),t.R7$(2),t.FS9("svgIcon",a.isMenuOpen?"angle-up":"angle-down")}}function OA(i,n){if(1&i&&(t.j41(0,"span",14),t.nI1(1,"translate"),t.nI1(2,"translate"),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&i){const e=t.XpG(2).$implicit,a=t.XpG(2);t.Y8G("matTooltip",t.bMT(1,2,a.getCorrectTitle(e)+"_link_label_mobile")+" "+t.bMT(2,4,"OpenInNewWindow")),t.R7$(3),t.JRh(t.bMT(4,6,a.getCorrectTitle(e)+"_link_label_mobile"))}}function BA(i,n){if(1&i&&(t.j41(0,"span",14),t.nI1(1,"translate"),t.nI1(2,"translate"),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&i){const e=t.XpG(2).$implicit;t.Y8G("matTooltip",t.bMT(1,2,e.resource_key+"_link_label_title")+" "+t.bMT(2,4,"OpenInNewWindow")),t.R7$(3),t.SpI(" ",t.bMT(4,6,e.resource_key+"_link_label")," ")}}function YA(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"a",29),t.nI1(2,"async"),t.nI1(3,"translate"),t.bIt("contextmenu",function(r){return t.eBV(e),t.Njj(r.preventDefault())})("click",function(){t.eBV(e);const r=t.XpG().$implicit,o=t.XpG(2);return t.Njj(o.logLinkClick(r))}),t.DNE(4,OA,5,8,"span",11),t.nI1(5,"async"),t.DNE(6,BA,5,8,"span",11),t.nI1(7,"async"),t.k0s(),t.bVm()}if(2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2);t.R7$(),t.FS9("cdxAnalyticsCategory","wos-open-url-"+a.publisher_id.toLowerCase()),t.Y8G("href",a.publisher_url,t.B4B)("ngClass",t.bMT(2,9,o.isMobile$)?"mobile-link-button":"regular-link"),t.BMQ("id",o.taPrefix+"stand-alone-after-dropdown-link-"+r)("data-ta",o.taPrefix+"stand-alone-after-dropdown-link-"+r)("aria-label",t.bMT(3,11,a.resource_key+"_link_label_title"))("data-pendo",("openurl"===a.content_type?"open_url":a.publisher_id)+"_link_article"),t.R7$(3),t.Y8G("ngIf",t.bMT(5,13,o.isMobile$)),t.R7$(2),t.Y8G("ngIf",!t.bMT(7,15,o.isMobile$))}}function XA(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",30),t.nI1(1,"translate"),t.nI1(2,"translate"),t.nI1(3,"translate"),t.bIt("contextmenu",function(r){return t.eBV(e),t.Njj(r.preventDefault())})("click",function(){t.eBV(e);const r=t.XpG().$implicit,o=t.XpG(2);return t.Njj(o.logLinkClick(r))}),t.nrm(4,"img",31),t.nI1(5,"translate"),t.k0s()}if(2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(2);t.FS9("cdxAnalyticsCategory","wos-open-url-"+a.publisher_id.toLowerCase()),t.Y8G("href",a.publisher_url,t.B4B)("matTooltip",t.bMT(1,10,a.desc))("ngClass",a.image_url?"mobile-link-button":"regular-link"),t.BMQ("id",o.taPrefix+"stand-alone-after-dropdown-link-image-url-"+r)("data-ta",o.taPrefix+"stand-alone-after-dropdown-link-image-url-"+r)("aria-label",t.bMT(2,12,a.desc)+t.bMT(3,14,"OpenInNewWindow"))("data-pendo",("openurl"===a.content_type?"open_url":a.publisher_id)+"_link_article"),t.R7$(4),t.FS9("alt",t.bMT(5,16,a.desc)),t.Y8G("src",a.image_url,t.B4B)}}
1function qA(i,n){if(1&i&&(t.qex(0),t.DNE(1,YA,8,17,"ng-container",7)(2,XA,6,18,"ng-template",null,0,t.C5r),t.bVm()),2&i){const e=n.$implicit,a=t.sdS(3);t.R7$(),t.Y8G("ngIf",!e.image_url)("ngIfElse",a)}}function HA(i,n){if(1&i&&(t.j41(0,"div",4),t.nI1(1,"async"),t.DNE(2,DA,4,2,"ng-container",5)(3,jA,13,16,"ng-container",6)(4,qA,4,2,"ng-container",5),t.k0s()),2&i){const e=t.XpG();t.Y8G("ngClass",t.bMT(1,4,e.isMobile$)?"links-display-container":"flex-align-center-center"),t.R7$(2),t.Y8G("ngForOf",e.standaloneLinks),t.R7$(),t.Y8G("ngIf",(null==e.groupedLinks?null:e.groupedLinks.length)>0),t.R7$(),t.Y8G("ngForOf",e.standaloneAfterDropdownLinks)}}let VA=(()=>{class i{constructor(e,a,r,o,s,l,c){this.change=e,this.store=a,this.render=r,this.el=o,this.translate=s,this.config=l,this.eventService=c,this.isMobile$=K.Y.isMobile$,this.isMenuOpen=!1,this.taPrefix="FRLinkTa-",this.ProQuestFulltextTypes=this.config.getSettings().app.fullRecord.ProQuestFulltextTypes,this.regionalIndexes=this.config.getSettings().app.regionalCitationLinksList}ngOnChanges(){this.links=[],this.doiLinks=[],this.standaloneLinks=[],this.standaloneAfterDropdownLinks=[],this.groupedLinks=[],this.change.detectChanges();const e=!!K.Y.getToggle("nxEnablePQPLinks",this.store),a=!!K.Y.getToggle("nxEnableGetFTRLinks",this.store);this.change.detach(),this.render.addClass(this.el.nativeElement,"loading-cover"),this.linksSub&&this.linksSub.unsubscribe(),this.linksSub=this.store.select(B.GZ,{db:this.database,ut:this.ut}).pipe((0,Ft.p)(r=>!!r)).subscribe(r=>{this.links=r.map(o=>({...o,publisher_url:K.Y.rewriteUrlForProxy(this.config,o.publisher_url),resource_key:this.getCorrectTitle(o)})).filter(o=>"ProQuest_FullText"===o.publisher_id?e:"GetFTR"===o.publisher_id?a:"PubPeer"!==o.publisher_id).filter(o=>!this.ProQuestFulltextTypes.includes(o.publisher_id)),this.standaloneLinks=this.links.filter(o=>"stand-alone"===o.category&&""!==o.publisher_url),this.standaloneAfterDropdownLinks=this.links.filter(o=>"stand-alone-after-dropdown"===o.category&&""!==o.publisher_url),this.groupedLinks=this.links.filter(o=>"grouped"===o.category),this.change.reattach(),this.render.removeClass(this.el.nativeElement,"loading-cover")})}ngOnDestroy(){this.linksSub&&this.linksSub.unsubscribe()}getCorrectTitle(e){return this.dataBaseToUse=this.database,"ALLDB"===this.database&&!this.record.reference&&(this.dataBaseToUse=this.record.coll),e.desc&&e.desc.includes("DOI-oas-approved")?e.desc:(null==e.publisher_id||"CASIRgrid"!==e.publisher_id&&"preprintlink_PPRN"!==e.publisher_id&&"patent"!==e.content_type)&&e.content_type?!this.regionalIndexes.includes(this.dataBaseToUse)||"fulltext_link_from_data"!==e.content_type&&"openurl"!==e.content_type?e.content_type:e.content_type+"_"+this.dataBaseToUse:e.publisher_id}logLinkClick(e){this.eventService.openLink(e,this.record)}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(Gt.il),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(V.c$),t.rXU(Dt.w),t.rXU(Li.U))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-links"]],inputs:{database:"database",ut:"ut",record:"record"},outputs:{menuClosed:"menuClosed",menuOpened:"menuOpened"},features:[t.OA$],decls:1,vars:1,consts:[["image",""],["menu","matMenu"],["t","matMenuTrigger"],["class","links-grid-container",3,"ngClass",4,"ngIf"],[1,"links-grid-container",3,"ngClass"],[4,"ngFor","ngForOf"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["mat-stroked-button","","color","primary","target","_blank","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"cdx-but-md","cdx-but-white-background","margin-right-10--reversible","full-record-links","disableContext",3,"contextmenu","click","href","rel","cdxAnalyticsCategory","ngClass"],[1,"image-text-standalone-link"],["class","viewPreprint",3,"matTooltip",4,"ngIf"],[3,"matTooltip",4,"ngIf"],["class","image-standalone-link",3,"src","alt",4,"ngIf"],[1,"viewPreprint",3,"matTooltip"],[3,"matTooltip"],[1,"image-standalone-link",3,"src","alt"],["mat-stroked-button","","target","_blank","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"contextmenu","click","href","matTooltip","cdxAnalyticsCategory","ngClass"],[1,"links-button",3,"src","alt"],["yPosition","below"],["matMenuContent",""],["mat-stroked-button","","color","primary",1,"margin-right-10--reversible","disableContext","full-text-button",3,"menuOpened","menuClosed","matMenuTriggerFor","matTooltip","ngClass"],[1,"button-text"],["inline","true",1,"svg-icon-18","margin-left-3--reversible","dropdown-icon",3,"svgIcon"],["class","link",4,"ngFor","ngForOf"],[1,"link"],["mat-menu-item","","target","_blank","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-full-text-link-to-external-source","cdxAnalyticsAction","click","rel","noopener",1,"mat-menu-not-hidden","value-link","no-underline-link","display-inline","disableContext",3,"contextmenu","click","href","matTooltip","matTooltipPosition"],[1,"grouped-link-content"],["class","grouped-link-image",3,"src","alt",4,"ngIf"],[1,"grouped-link-image",3,"src","alt"],["mat-stroked-button","","color","primary","target","_blank","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"margin-right-10--reversible","disableContext",3,"contextmenu","click","href","cdxAnalyticsCategory","ngClass"],["mat-stroked-button","","color","primary","target","_blank","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"flex-align-center-center","margin-right-10--reversible","disableContext",3,"contextmenu","click","href","matTooltip","cdxAnalyticsCategory","ngClass"],[1,"image-links-button",3,"src","alt"]],template:function(a,r){1&a&&t.DNE(0,HA,5,6,"div",3),2&a&&t.Y8G("ngIf",(null==r.standaloneLinks?null:r.standaloneLinks.length)>0||(null==r.standaloneAfterDropdownLinks?null:r.standaloneAfterDropdownLinks.length)>0||(null==r.groupedLinks?null:r.groupedLinks.length)>0)},dependencies:[A.YU,A.Sq,A.bT,jt.An,ht.It,ht.$z,xt.oV,Lt.kk,Lt.fb,Lt.z8,Lt.Cp,Ot.P,A.Jj,V.D9],styles:[".links-display-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;width:45%}@media (max-width: 850px){.links-grid-container[_ngcontent-%COMP%]{flex-wrap:wrap!important;justify-content:flex-start!important;gap:5px;width:100%}}.image-text-standalone-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.image-standalone-link[_ngcontent-%COMP%]{height:15px;margin-left:5px;margin-right:5px}.full-record-links[_ngcontent-%COMP%]{direction:rtl;gap:10px}.full-record-links-no-border[_ngcontent-%COMP%]{direction:rtl;gap:10px;border:none}.full-text-button[_ngcontent-%COMP%]{display:flex;align-items:center}.button-text[_ngcontent-%COMP%]{order:1}.open-icon[_ngcontent-%COMP%]{order:2;margin-left:8px}.dropdown-icon[_ngcontent-%COMP%]{order:3}.grouped-link-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:235px}"]})}}return i})();var $d=S(82814),Ld=S(40587),Nd=S(22914),zA=S(67987),Gi=S(3902),QA=S(97726),UA=S(65523),JA=S(31888),jd=S(53719),Od=S(59042);const WA=i=>({selectedRecords:i}),KA=i=>({"selected-item-color":i});
1function ZA(i,n){if(1&i&&(t.j41(0,"mat-icon",13),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.isMenuOpen?"expand_less":"expand_more")}}function tE(i,n){if(1&i&&(t.qex(0),t.EFF(1),t.nI1(2,"translate"),t.DNE(3,ZA,2,1,"mat-icon",12),t.nI1(4,"async"),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,2,"addToMarkedListButton")," "),t.R7$(2),t.Y8G("ngIf",e.selectedRecords.length>0&&t.bMT(4,4,e.user$))}}function eE(i,n){1&i&&t.nrm(0,"mat-icon",14)}function nE(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",27),t.qex(1),t.j41(2,"button",22),t.nI1(3,"translate"),t.bIt("click",function(){const r=t.eBV(e).$implicit,o=t.XpG(3);return t.Njj(o.addToSavedList(r.ObjectID,r.General))}),t.j41(4,"span",18),t.EFF(5),t.k0s()(),t.bVm(),t.k0s()}if(2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(2),t.Y8G("disabled","marked_list"===(null==a.search?null:a.search.mode)&&a.search.markedListId===e.ObjectID||(null==a.savedMl?null:a.savedMl.includes(e.UserID))),t.BMQ("aria-label",t.bMT(3,3,"addToUnfiled")),t.R7$(3),t.SpI(" ",e.ObjectID," ")}}function iE(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",27),t.qex(1),t.j41(2,"button",16),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3),o=t.sdS(15);return t.Njj(r.openDialogOverlay(o))}),t.j41(4,"span",18),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.bVm(),t.k0s()}2&i&&(t.R7$(2),t.BMQ("aria-label",t.bMT(3,2,"addToUnfiled")),t.R7$(3),t.SpI(" ",t.bMT(6,4,"seeAllLists")," "))}function aE(i,n){if(1&i&&(t.qex(0),t.j41(1,"div",19),t.nrm(2,"div",20),t.k0s(),t.j41(3,"div",21),t.qex(4),t.j41(5,"button",23),t.nI1(6,"translate"),t.j41(7,"span",24),t.EFF(8),t.nI1(9,"translate"),t.k0s()(),t.bVm(),t.k0s(),t.DNE(10,nE,6,5,"div",25),t.nI1(11,"slice"),t.DNE(12,iE,7,6,"div",26),t.bVm()),2&i){const e=t.XpG(2);t.R7$(5),t.Y8G("disabled",!0),t.BMQ("aria-label",t.bMT(6,6,"addToUnfiled")),t.R7$(3),t.SpI(" ",t.bMT(9,8,"myLists")," "),t.R7$(2),t.Y8G("ngForOf",t.brH(11,10,e.savedMarkedLists,0,3))("ngForTrackBy",e.trackByFn),t.R7$(2),t.Y8G("ngIf",e.savedMarkedLists.length>3)}}function rE(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",15),t.qex(1),t.j41(2,"button",16),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(),o=t.sdS(11);return t.Njj(r.openDialogOverlay(o))}),t.j41(4,"mat-icon",17),t.nI1(5,"translate"),t.EFF(6,"add_circle"),t.k0s(),t.qex(7,18),t.EFF(8),t.nI1(9,"translate"),t.bVm(),t.k0s(),t.bVm(),t.k0s(),t.j41(10,"div",19),t.nrm(11,"div",20),t.k0s(),t.j41(12,"div",21),t.qex(13),t.j41(14,"button",22),t.nI1(15,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.addToUnfiledMarkedList())}),t.j41(16,"span",18),t.EFF(17),t.nI1(18,"translate"),t.k0s()(),t.bVm(),t.k0s(),t.DNE(19,aE,13,14,"ng-container",8)}if(2&i){const e=t.XpG();t.R7$(2),t.BMQ("aria-label",t.bMT(3,7,"createMarkedList")),t.R7$(2),t.FS9("matTooltip",t.bMT(5,9,"createMarkedList")),t.R7$(4),t.SpI(" ",t.bMT(9,11,"createMarkedList")," "),t.R7$(6),t.Y8G("disabled",e.isInUnfiledMl),t.BMQ("aria-label",t.bMT(15,13,"addToUnfiled")),t.R7$(3),t.SpI(" ",t.bMT(18,15,"addToUnfiled")," "),t.R7$(2),t.Y8G("ngIf",e.savedMarkedLists.length>0)}}function oE(i,n){if(1&i&&(t.j41(0,"div",42),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.SpI(" ",t.bMT(2,1,e.error)," ")}}function sE(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",28)(1,"div",29),t.DNE(2,oE,3,3,"div",30),t.j41(3,"span",31),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.nrm(6,"br"),t.j41(7,"div")(8,"fieldset",32)(9,"legend",33),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"mat-form-field",34,5)(14,"mat-label"),t.EFF(15),t.nI1(16,"translate"),t.k0s(),t.j41(17,"input",35),t.nI1(18,"translate"),t.nI1(19,"translate"),t.mxI("ngModelChange",function(r){t.eBV(e);const o=t.XpG();return t.DH7(o.markedListId,r)||(o.markedListId=r),t.Njj(r)}),t.k0s()(),t.j41(20,"mat-form-field",34,5)(22,"mat-label"),t.EFF(23),t.nI1(24,"translate"),t.k0s(),t.j41(25,"input",36),t.nI1(26,"translate"),t.nI1(27,"translate"),t.mxI("ngModelChange",function(r){t.eBV(e);const o=t.XpG();return t.DH7(o.markedListDesc,r)||(o.markedListDesc=r),t.Njj(r)}),t.k0s()()()(),t.j41(28,"div",37)(29,"div",31),t.EFF(30),t.nI1(31,"translate"),t.k0s(),t.nrm(32,"div",20),t.j41(33,"div",38),t.EFF(34),t.nI1(35,"translate"),t.k0s(),t.nrm(36,"div",20),t.k0s(),t.j41(37,"div",39)(38,"button",40),t.EFF(39),t.nI1(40,"translate"),t.k0s(),t.j41(41,"button",41),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.createMarkedListAddRecords())}),t.EFF(42),t.nI1(43,"translate"),t.k0s()()()}if(2&i){const e=t.XpG();t.R7$(2),t.Y8G("ngIf",e.error&&"markedListIdExistingError"!==e.error),t.R7$(2),t.SpI(" ",t.bMT(5,17,"createMarkedListTitle")," "),t.R7$(6),t.SpI(" ",t.bMT(11,19,"editYourList")," "),t.R7$(5),t.SpI(" ",t.bMT(16,21,"listName")," "),t.R7$(2),t.R50("ngModel",e.markedListId),t.Y8G("placeholder",t.bMT(18,23,"listName"))("maxlength",50)("height",40),t.BMQ("aria-label",t.bMT(19,25,"listName")),t.R7$(6),t.SpI(" ",t.bMT(24,27,"description")," "),t.R7$(2),t.R50("ngModel",e.markedListDesc),t.Y8G("placeholder",t.bMT(26,29,"descriptionPlaceHolder")),t.BMQ("aria-label",t.bMT(27,31,"description")),t.R7$(5),t.SpI(" ",t.bMT(31,33,"details")," "),t.R7$(4),t.SpI(" ",t.i5U(35,35,"createMlDetails",t.eq3(42,WA,e.selectedRecords.length))," "),t.R7$(5),t.SpI(" ",t.bMT(40,38,"cancelBtn")," "),t.R7$(3),t.SpI(" ",t.bMT(43,40,"createMlList")," ")}}function lE(i,n){if(1&i&&t.nrm(0,"app-marked-list-limit-reached",43),2&i){const e=t.XpG();t.Y8G("maxNumOfRecordsInSavedMl",e.maxNumOfRecordsInSavedMl)}}function cE(i,n){if(1&i&&(t.j41(0,"div",50),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.SpI(" ",t.bMT(2,1,e.error)," ")}}function dE(i,n){if(1&i&&(t.j41(0,"mat-list-option",51),t.EFF(1),t.k0s()),2&i){const e=n.$implicit,a=n.index;t.XpG();const r=t.sdS(8),o=t.XpG();t.Y8G("selected",0===a)("ngClass",t.eq3(5,KA,(null==r.selectedOptions.selected[0]?null:r.selectedOptions.selected[0].value)===e))("disabled","marked_list"===(null==o.search?null:o.search.mode)&&o.search.markedListId===e.ObjectID||(null==o.savedMl?null:o.savedMl.includes(e.UserID)))("value",e),t.R7$(),t.SpI(" ",e.ObjectID," ")}}function uE(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",29),t.DNE(1,cE,3,3,"div",44),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"br")(5,"div",20),t.j41(6,"div",45)(7,"mat-selection-list",46,6),t.nI1(9,"translate"),t.DNE(10,dE,2,7,"mat-list-option",47),t.k0s()(),t.nrm(11,"div",20),t.j41(12,"div",39)(13,"button",48),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"button",49),t.bIt("click",function(){t.eBV(e);const r=t.sdS(8),o=t.XpG();return t.Njj(o.addToSavedList(null==r.selectedOptions.selected[0]?null:r.selectedOptions.selected[0].value.ObjectID,null==r.selectedOptions.selected[0]?null:r.selectedOptions.selected[0].value.General))}),t.EFF(17),t.nI1(18,"translate"),t.k0s()()}if(2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.error),t.R7$(),t.SpI(" ",t.bMT(3,8,"myLists")," "),t.R7$(5),t.Y8G("multiple",!1),t.BMQ("aria-label",t.bMT(9,10,"markedList")),t.R7$(3),t.Y8G("ngForOf",e.savedMarkedLists)("ngForTrackBy",e.trackByFn),t.R7$(4),t.SpI(" ",t.bMT(15,12,"cancelBtn")," "),t.R7$(3),t.SpI(" ",t.bMT(18,14,"addToList")," ")}}let _E=(()=>{class i extends QA.v{constructor(e,a,r,o,s,l,c,d,u,_,h){super(e,a,r,o,s,l,c,d,u,_,h),this.config=e,this.change=a,this.exportService=r,this.store=o,this.snack=s,this.modalService=l,this.sessionService=c,this.markedlistService=d,this.listsService=u,this.preferenceService=h}ngOnChanges(e){e.search&&this.updateSavedMarkedList()}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Dt.w),t.rXU(t.gRc),t.rXU(Ja._),t.rXU(Gt.il),t.rXU(Ln.z),t.rXU(mt.bZ),t.rXU(Nd.Q),t.rXU($d.i),t.rXU(Ld.N),t.rXU(V.c$),t.rXU(UA.N))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-marked-list-option"]],inputs:{database:"database",collection:"collection",ut:"ut",search:"search",selectedRecords:"selectedRecords",isInUnfiledMl:"isInUnfiledMl",savedMl:"savedMl"},features:[t.Vt3,t.OA$],decls:16,vars:13,consts:[["menuTrigger","matMenuTrigger"],["menu","matMenu"],["createNewMlTemplate",""],["listLimitReached",""],["myListsTemplate",""],["nameFormField",""],["allSavedMarkedList",""],["mat-stroked-button","","cdxAnalyticsEvent","","cdxAnalyticsAction","Click","cdxAnalyticsCategory","wos_marked_list","data-ta","add-to-marked-list","color","primary",1,"margin-right-10--reversible",3,"menuOpened","menuClosed","click","matMenuTriggerFor","t
1itle","disabled"],[4,"ngIf"],["role","img","svgIcon","circle-notch","class","svg-icon-image--spinner svg-spinner",4,"ngIf"],["yPosition","below",1,"marked-list-option-menus"],["matMenuContent",""],["inline","true","class","font-size-18 margin-left-3--reversible",4,"ngIf"],["inline","true",1,"font-size-18","margin-left-3--reversible"],["role","img","svgIcon","circle-notch",1,"svg-icon-image--spinner","svg-spinner"],[1,"marked-list-option-menu-item","menu-expansion"],["mat-menu-item","",1,"margin-top-10","margin-bottom-10","save-marked-list-edit",3,"click"],["inline","true",1,"font-size-18","markList",3,"matTooltip"],[1,"marked-list-option-menu-item-txt"],[2,"padding-left","10px","padding-right","10px"],[1,"section-line","margin-bottom-10"],[1,"marked-list-option-menu-item"],["mat-menu-item","",1,"margin-top-10","margin-bottom-10","save-marked-list-edit",3,"click","disabled"],["mat-menu-item","",1,"margin-top-10","margin-bottom-10","save-marked-list-edit",3,"disabled"],[1,"marked-list-option-menu-item-group-title"],["class","marked-list-option-menu-item inner-marked-list-option-menu-item",4,"ngFor","ngForOf","ngForTrackBy"],["class","marked-list-option-menu-item inner-marked-list-option-menu-item",4,"ngIf"],[1,"marked-list-option-menu-item","inner-marked-list-option-menu-item"],["dir","auto",1,"create-edit-marked-list"],["mat-dialog-content",""],["class","error-code edit-ml-box-name",4,"ngIf"],[1,"details-titles-txt"],[1,"save-marked-list-edit-group"],["hidden",""],["appearance","outline",1,"ml-name-box",2,"width","100%"],["matInput","","name","listName","type","text",3,"ngModelChange","ngModel","placeholder","maxlength","height"],["matInput","","name","description","type","text",3,"ngModelChange","ngModel","placeholder"],[1,"create-ml-details"],[1,"details-reminding-txt"],["mat-dialog-actions","",1,"delete-overlay-actions"],["mat-button","","color","primary","mat-dialog-close","","mat-stroked-button","",1,"cancel"],["color","primary","mat-button","",1,"confirm",3,"click"],[1,"error-code","edit-ml-box-name"],[3,"maxNumOfRecordsInSavedMl"],["class","error-code",4,"ngIf"],[1,"removed-radio-button"],[3,"multiple"],[3,"selected","ngClass","disabled","value",4,"ngFor","ngForOf","ngForTrackBy"],["mat-button","","mat-dialog-close","","color","primary",1,"cancel"],["mat-stroked-button","","color","primary",1,"confirm",3,"click"],[1,"error-code"],[3,"selected","ngClass","disabled","value"]],template:function(a,r){if(1&a){const o=t.RV6();t.j41(0,"button",7,0),t.nI1(2,"translate"),t.nI1(3,"feature"),t.nI1(4,"translate"),t.bIt("menuOpened",function(){return t.eBV(o),t.Njj(r.isMenuOpen=!0)})("menuClosed",function(){return t.eBV(o),t.Njj(r.isMenuOpen=!1)})("click",function(){return t.eBV(o),t.Njj(r.addToMarkedListClicked())}),t.DNE(5,tE,5,6,"ng-container",8)(6,eE,1,0,"mat-icon",9),t.k0s(),t.j41(7,"mat-menu",10,1),t.DNE(9,rE,20,17,"ng-template",11),t.k0s(),t.DNE(10,sE,44,44,"ng-template",null,2,t.C5r)(12,lE,1,1,"ng-template",null,3,t.C5r)(14,uE,19,16,"ng-template",null,4,t.C5r)}if(2&a){const o=t.sdS(8);t.Y8G("matMenuTriggerFor",o)("title",t.bMT(2,7,"addToMarkedListButtonTitle"))("disabled",!("structure"!==(null==r.search?null:r.search.mode)||null!=r.search&&r.search.database.startsWith("WOS")||null!=r.search&&r.search.database.startsWith("DIIDW")&&t.bMT(3,9,"nxEnableDIIDWChemMarkedList"))),t.BMQ("aria-label",t.bMT(4,11,"addToMarkedListButtonTitle"))("aria-disabled",r.addingToMarkedList||0===r.selectedRecords.length),t.R7$(5),t.Y8G("ngIf",!r.addingToMarkedList),t.R7$(),t.Y8G("ngIf",r.addingToMarkedList)}},dependencies:[A.YU,A.Sq,A.bT,JA.P,jt.An,$t.ig,ht.$z,xt.oV,Lt.kk,Lt.fb,Lt.z8,Lt.Cp,mt.tx,mt.E7,mt.Yi,ye.me,ye.BC,ye.tU,ye.vS,jd.rl,jd.nJ,Od.fg,Gi.p6,Gi.oh,Ot.P,A.Jj,A.P9,V.D9,Se.h],styles:[".markList[_ngcontent-%COMP%]{width:auto;margin-right:8px;height:auto}.details-titles-txt[_ngcontent-%COMP%]{display:block;color:#645f5f!important;font-weight:600!important}"]})}}return i})();const pE=["MLIndicator"],hE=i=>({recNumber:i}),mE=i=>[i],Bd=i=>({num:i}),gE=()=>({}),fE=i=>({markedListId:i}),bE=()=>({activity:!0}),vE=i=>["/",i,"summary","marked","relevance","1"];function xE(i,n){1&i&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.JRh(t.bMT(2,1,"addToMarkedListButton")))}function CE(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",12),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.addToMarkedList(r.ut))}),t.DNE(3,xE,3,3,"span",13),t.k0s()}if(2&i){const e=t.XpG(3);t.Y8G("matTooltip",t.bMT(1,5,"addToMarkedListButtonTitle")),t.BMQ("id","FullRecordMobileAddToMarkedListBtn"+e.location)("data-ta","FullRecordMobileAddToMarkedListBtn"+e.location)("aria-label",t.bMT(2,7,"addToMarkedListButtonTitle")),t.R7$(3),t.Y8G("ngIf",!e.addingToMarkedList)}}function RE(i,n){1&i&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.JRh(t.bMT(2,1,"removeFromMarkedList")))}function yE(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",12),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.removeFromMarkedList())}),t.DNE(3,RE,3,3,"span",13),t.k0s()}if(2&i){const e=t.XpG(3);t.Y8G("matTooltip",t.bMT(1,5,"removeFromMarkedList")),t.BMQ("id","FullRecordMobileRemoveFromMarkedListBtn"+e.location)("data-ta","FullRecordMobileRemoveFromMarkedListBtn"+e.location)("aria-label",t.bMT(2,7,"removeFromMarkedList")),t.R7$(3),t.Y8G("ngIf",!e.addingToMarkedList)}}function TE(i,n){if(1&i&&(t.nrm(0,"mat-icon",14),t.nI1(1,"translate"),t.nI1(2,"translate")),2&i){const e=t.XpG(3);t.Y8G("title",t.bMT(1,4,"markedList")),t.BMQ("id","FullRecordMarkedListIndicatorMobile"+e.location)("data-ta","FullRecordMarkedListIndicatorMobile"+e.location)("aria-label",t.bMT(2,6,"markedList"))}}function IE(i,n){if(1&i&&(t.j41(0,"mat-icon",15),t.nI1(1,"translate"),t.EFF(2,"EN"),t.k0s()),2&i){const e=t.XpG(3);t.Y8G("matTooltip",t.bMT(1,3,"endNoteRecord")),t.BMQ("id","FullRecordEnWIndicator"+e.location)("data-ta","FullRecordEnwIndicator"+e.location)}}function kE(i,n){if(1&i&&(t.DNE(0,CE,4,9,"button",8),t.nI1(1,"async"),t.DNE(2,yE,4,9,"button",8),t.nI1(3,"async"),t.DNE(4,TE,3,8,"mat-icon",9),t.nI1(5,"async"),t.DNE(6,IE,3,5,"mat-icon",10),t.nI1(7,"async"),t.nrm(8,"app-export-menu",11)),2&i){const e=t.XpG(2);t.Y8G("ngIf",!t.bMT(1,6,e.markedListStatus$)),t.R7$(2),t.Y8G("ngIf",t.bMT(3,8,e.markedListStatus$)),t.R7$(2),t.Y8G("ngIf",t.bMT(5,10,e.markedListStatus$)),t.R7$(2),t.Y8G("ngIf",t.bMT(7,12,e.enwStatus$)),t.R7$(2),t.Y8G("dataBase",e.database)("collection",e.collection)}}function FE(i,n){if(1&i&&(t.qex(0),t.j41(1,"mat-menu",null,2),t.DNE(3,kE,9,14,"ng-template",5),t.k0s(),t.j41(4,"button",6),t.nI1(5,"translate"),t.nrm(6,"mat-icon",7),t.k0s(),t.bVm()),2&i){const e=t.sdS(2),a=t.XpG();t.R7$(4),t.Y8G("matMenuTriggerFor",e),t.BMQ("aria-label",t.i5U(5,2,"optionsForRecNumArialLabel",t.eq3(5,hE,a.num)))}}function wE(i,n){1&i&&(t.qex(0),t.EFF(1),t.nI1(2,"translate"),t.bVm()),2&i&&(t.R7$(),t.JRh(t.bMT(2,1,"addToMarkedListButton")))}function ME(i,n){1&i&&t.nrm(0,"mat-icon",23)}function SE(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"button",21),t.nI1(2,"translate"),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.addToMarkedList(r.ut))}),t.DNE(4,wE,3,3,"ng-container",13)(5,ME,1,0,"mat-icon",22),t.k0s(),t.bVm()}if(2&i){const e=t.XpG(2);t.R7$(),t.Y8G("matTooltip",t.bMT(2,7,"addToMarkedListButtonTitle")),t.BMQ("id","FullRecordAddToMarkedListBtn-"+e.location)("data-ta","FullRecordAddToMarkedListBtn"+e.location)("aria-disabled",e.addingToMarkedList)("aria-label",t.bMT(3,9,"addToMarkedList")),t.R7$(3),t.Y8G("ngIf",!e.addingToMarkedList),t.R7$(),t.Y8G("ngIf",e.addingToMarkedList)}}function AE(i,n){if(1&i&&t.nrm(0,"app-full-record-marked-list-option",24),2&i){const e=t.XpG(2);t.Y8G("dataBase",e.database)("collection",e.collection)("search",e.search)("selectedRecords",t.eq3(7,mE,e.ut))("savedMl",e.markedLists)("isInUnfiledMl",e.isUnfiledMl)("ut",e.ut)}}function EE(i,n){1&i&&(t.qex(0),t.EFF(1),t.nI1(2,"translate"),t.bVm()),2&i&&(t.R7$(),t.JRh(t.bMT(2,1,"removeFromMarkedList")))}function PE(i,n){1&i&&t.nrm(0,"mat-icon",23)}function GE(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",25),t.nI1(1,"translate"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.removeFromMarkedList())}
1),t.DNE(3,EE,3,3,"ng-container",13)(4,PE,1,0,"mat-icon",22),t.k0s()}if(2&i){const e=t.XpG(2);t.Y8G("matTooltip",t.bMT(1,7,"removeFromMarkedListTitle")),t.BMQ("id","FullRecordRemoveFromMarkedListBtn"+e.location)("data-ta","FullRecordRemoveFromMarkedListBtn")("aria-disabled",e.addingToMarkedList)("aria-label",t.bMT(2,9,"removeFromMarkedList")),t.R7$(3),t.Y8G("ngIf",!e.addingToMarkedList),t.R7$(),t.Y8G("ngIf",e.addingToMarkedList)}}function DE(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",28),t.nI1(1,"translate"),t.nI1(2,"number"),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3),o=t.sdS(5);return r.openDialogOverlay(o),t.Njj(r.getListOfMLforRecord())}),t.nrm(4,"mat-icon",29),t.k0s()}if(2&i){const e=t.XpG(3);t.Y8G("title",t.bMT(1,4,"markedList")),t.BMQ("id","FullRecordMarkedListIndicatorBtn")("data-ta","FullRecordMarkedListIndicatorBtn")("aria-label",t.i5U(3,8,"markedlist_aria_label",t.eq3(11,Bd,t.bMT(2,6,e.num))))}}function $E(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",30),t.nI1(1,"translate"),t.nI1(2,"number"),t.nI1(3,"translate"),t.bIt("mouseenter",function(){t.eBV(e);const r=t.XpG(3),o=t.sdS(5);return r.openDialogOverlay(o),t.Njj(r.getListOfMLforRecord())}),t.nrm(4,"mat-icon",29),t.k0s()}if(2&i){const e=t.XpG(3);t.Y8G("title",t.bMT(1,4,"markedList")),t.BMQ("id","FullRecordMarkedListIndicatorBtn")("data-ta","FullRecordMarkedListIndicatorBtn")("aria-label",t.i5U(3,8,"markedlist_aria_label",t.eq3(11,Bd,t.bMT(2,6,e.num))))}}function LE(i,n){1&i&&(t.j41(0,"div"),t.DNE(1,DE,5,13,"button",26),t.nI1(2,"feature"),t.DNE(3,$E,5,13,"button",27),t.nI1(4,"feature"),t.k0s()),2&i&&(t.R7$(),t.Y8G("ngIf",!t.bMT(2,2,"nxEnableHoverOverMarkedListOverlay")),t.R7$(2),t.Y8G("ngIf",t.bMT(4,4,"nxEnableHoverOverMarkedListOverlay")))}function NE(i,n){if(1&i&&(t.nrm(0,"mat-icon",14),t.nI1(1,"translate"),t.nI1(2,"translate")),2&i){const e=t.XpG(3);t.Y8G("title",t.bMT(1,4,"markedList")),t.BMQ("id","FullRecordMarkedListIndicator"+e.location)("data-ta","FullRecordMarkedListIndicator")("aria-label",t.bMT(2,6,"markedList"))}}function jE(i,n){if(1&i&&(t.DNE(0,NE,3,8,"mat-icon",9),t.nI1(1,"async")),2&i){const e=t.XpG(2);t.Y8G("ngIf",t.bMT(1,1,e.markedListStatus$))}}function OE(i,n){if(1&i&&(t.j41(0,"a",31),t.nI1(1,"translate"),t.j41(2,"mat-icon",15),t.nI1(3,"translate"),t.nI1(4,"translate"),t.EFF(5,"EN "),t.k0s()()),2&i){const e=t.XpG(2);t.FS9("href",e.endNoteUrl,t.B4B),t.BMQ("aria-label",t.bMT(1,6,"endNoteRecord")),t.R7$(2),t.Y8G("matTooltip",t.bMT(3,8,"endNoteRecord")),t.BMQ("id","FullRecordEnWIndicator"+e.location)("data-ta","FullRecordEnwIndicator"+e.location)("aria-label",t.bMT(4,10,"endNoteRecord"))}}function BE(i,n){if(1&i&&(t.j41(0,"div",16),t.nI1(1,"translate"),t.nrm(2,"app-export-menu",17),t.DNE(3,SE,6,11,"ng-container",13),t.nI1(4,"async"),t.nI1(5,"async"),t.DNE(6,AE,1,9,"app-full-record-marked-list-option",18),t.nI1(7,"async"),t.DNE(8,GE,5,11,"button",19),t.nI1(9,"async"),t.DNE(10,LE,5,6,"div",4),t.nI1(11,"async"),t.DNE(12,jE,2,3,"ng-template",null,3,t.C5r)(14,OE,6,12,"a",20),t.nI1(15,"async"),t.k0s()),2&i){const e=t.sdS(13),a=t.XpG();t.BMQ("id","FullRecSnRecList"+a.location)("data-ta","FullRecSnRecList"+a.location)("aria-label",t.bMT(1,12,"fullRecSnRecList"+a.location)),t.R7$(2),t.Y8G("dataBase",a.database)("collection",a.collection)("disabledExportOptions",a.disabledExportOptions),t.R7$(),t.Y8G("ngIf",!t.bMT(4,14,a.markedListStatus$)&&!t.bMT(5,16,a.user$)),t.R7$(3),t.Y8G("ngIf",t.bMT(7,18,a.user$)),t.R7$(2),t.Y8G("ngIf",t.bMT(9,20,a.markedListStatus$)),t.R7$(2),t.Y8G("ngIf",t.bMT(11,22,a.markedListStatus$))("ngIfElse",e),t.R7$(4),t.Y8G("ngIf",t.bMT(15,24,a.enwStatus$))}}function YE(i,n){if(1&i&&(t.j41(0,"div",40),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,1,e.error))}}function XE(i,n){if(1&i&&(t.nrm(0,"h1",43),t.nI1(1,"translate")),2&i){const e=n.$implicit;t.Y8G("lang","en")("innerHTML",t.bMT(1,2,null==e?null:e.title),t.npT)}}function qE(i,n){if(1&i&&(t.j41(0,"div",41),t.DNE(1,XE,2,4,"h1",42),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.titles.item.en)}}function HE(i,n){if(1&i){const e=t.RV6();t.j41(0,"mat-nav-list",44)(1,"a",45),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.onNoClick())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}if(2&i){const e=n.$implicit,a=t.XpG(2);t.R7$(),t.Y8G("queryParams",a.unfiledMLNames.includes(e)?t.lJ4(6,gE):t.eq3(7,fE,e))("state",t.lJ4(9,bE))("routerLink",t.eq3(10,vE,a.database.toLowerCase())),t.R7$(),t.SpI(" ",a.unfiledMLNames.includes(e)?t.bMT(3,4,"ML_NAME_"+e):e," ")}}function VE(i,n){if(1&i&&(t.j41(0,"div",32)(1,"div",33),t.DNE(2,YE,3,3,"div",34),t.nrm(3,"br"),t.DNE(4,qE,2,1,"div",35)(5,HE,4,12,"mat-nav-list",36),t.nrm(6,"mat-divider",37),t.k0s(),t.j41(7,"div",38)(8,"button",39),t.EFF(9),t.nI1(10,"translate"),t.k0s()()()),2&i){const e=t.XpG();t.R7$(2),t.Y8G("ngIf",e.error),t.R7$(2),t.Y8G("ngIf",e.titles.item),t.R7$(),t.Y8G("ngForOf",e.mlListForRecord),t.R7$(4),t.SpI(" ",t.bMT(10,4,"close")," ")}}let zE=(()=>{class i{constructor(e,a,r,o,s,l,c,d){this.exportService=e,this.listsService=a,this.store=r,this.navigation=o,this.markedlistService=s,this.sessionService=l,this.dialog=c,this.snack=d,this.addingToMarkedList=!1,this.displayExport=!0,this.openingExportOutDialog=!1,this.openingExportDe
1sktopDialog=!1,this.isMobile$=K.Y.isMobile$,this.doPersonalizationNavigate=this.navigation.doPersonalizationNavigate,this.disabledExportOptions=["incites","fast5k"],this.savedMarkedLists=[],this.markedLists=[],this.unfiledMLNames=["INTERNAL_DEFAULT_documents","INTERNAL_DEFAULT_reactions","INTERNAL_DEFAULT_compounds"]}ngOnChanges(){this.user$=this.store.select(B.mm).pipe((0,Gn.F)()),this.sessionService.getSavedMarkedLists().pipe((0,Ft.p)(e=>!!e)).subscribe(e=>{this.store.dispatch(new B.Aw.c7({lists:e}));const a=K.Y.getMarkedListRecordType(this.search);this.savedMarkedLists=K.Y.getCustomSavedLists(e,a)}),this.markedListStatus$=this.store.select(B.b0,{database:this.database,ut:this.ut}).pipe((0,Zo.M)(e=>{this.markedLists=e,this.unfiledMarkedListCheck(this.markedLists,this.savedMarkedLists)}),(0,nn.T)(e=>e&&e.length>0),(0,Gn.F)()),this.entitledToEnw$=this.store.select(B.vC).pipe((0,nn.T)(e=>e.productUrls),(0,Ft.p)(e=>!!e),(0,Gn.F)(),(0,nn.T)(e=>!(e.ENW&&-1!==e.ENW.indexOf("my.endnote.com")))),this.store.select(B.vC).subscribe(e=>{const a=e.productUrls;this.endNoteUrl=a?.ENW}).unsubscribe(),this.enwStatus$=this.store.select(B.IY,{database:this.database,ut:this.ut}).pipe((0,nn.T)(e=>e&&e.isAddedToEndNote),(0,Gn.F)()),this.refinedByML=this.search.refines?.some(e=>"LIST"===e.index)}addToMarkedList(e){this.listsService.markRecordsToSavedList([e]).subscribe(a=>{a.hasOwnProperty("error")||this.updateMLStatus(e)})}updateMLStatus(e){K.Y.updateMarkedListStatus(this.store,this.database,e),this.checkedFlag=!1,this.snack.success("addedToMarkedList"),this.unfiledMarkedListCheck(this.markedLists,this.savedMarkedLists)}unfiledMarkedListCheck(e,a){this.isUnfiledMl=e?.some(r=>!a.some(o=>o.UserID===r))}removeFromMarkedList(){K.Y.removeRecordsFromMarkedList(this.ut,this.store,this.snack,this.savedMarkedLists,this.markedLists,this.database,this.listsService,this.dialog),this.unfiledMarkedListCheck(this.markedLists,this.savedMarkedLists)}getListOfMLforRecord(){this.markedlistService.getListOfMLs(this.ut).subscribe(e=>{e.payload&&(this.mlListForRecord=e.payload[this.ut])},e=>{this.snack.errorRed("InternalError")})}onNoClick(){this.dialog.closeAll()}openDialogOverlay(e){this.dialog.open(e,{width:"550px",height:"auto",maxHeight:"630px",data:{t:e},position:{top:"20vh"}})}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Ja._),t.rXU(Ld.N),t.rXU(Gt.il),t.rXU(Sd.o),t.rXU($d.i),t.rXU(Nd.Q),t.rXU(mt.bZ),t.rXU(Ln.z))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-export-option"]],viewQuery:function(a,r){if(1&a&&t.GBs(pE,5),2&a){let o;t.mGM(o=t.lsd())&&(r.MLIndicatorTemplate=o.first)}},inputs:{database:"database",collection:"collection",ut:"ut",search:"search",location:"location",titles:"titles"},features:[t.OA$],decls:6,vars:4,consts:[["elseBlock",""],["MLIndicator",""],["menu","matMenu"],["justIcon",""],[4,"ngIf","ngIfElse"],["matMenuContent",""],["mat-button","",1,"options-button",3,"matMenuTriggerFor"],["inline","true","svgIcon","options",1,"svg-icon-18"],["mat-menu-item","",3,"matTooltip","click",4,"ngIf"],["role","img","svgIcon","star","class","indicator-icon",3,"title",4,"ngIf"],["role","img","class","indicator-icon endnote-icon",3,"matTooltip",4,"ngIf"],[3,"dataBase","collection"],["mat-menu-item","",3,"click","matTooltip"],[4,"ngIf"],["role","img","svgIcon","star",1,"indicator-icon",3,"title"],["role","img",1,"indicator-icon","endnote-icon",3,"matTooltip"],["role","region",1,"flex-align","flex-align-center"],[3,"dataBase","collection","disabledExportOptions"],[3,"dataBase","collection","search","selectedRecords","savedMl","isInUnfiledMl","ut",4,"ngIf"],["mat-stroked-button","","class","margin-right-10--reversible line-height-adjust32","color","primary",3,"matTooltip","click",4,"ngIf"],["target","_blank","class","margin-top-5","rel","noopener",3,"href",4,"ngIf"],["mat-stroked-button","","color","primary",1,"margin-right-10--reversible",3,"click","matTooltip"],["role","img","svgIcon","circle-notch","class","svg-icon-image--spinner svg-spinner",4,"ngIf"],["role","img","svgIcon","circle-notch",1,"svg-icon-image--spinner","svg-spinner"],[3,"dataBase","collection","search","selectedRecords","savedMl","isInUnfiledMl","ut"],["mat-stroked-button","","color","primary",1,"margin-right-10--reversible","line-height-adjust32",3,"click","matTooltip"],["mat-button","","class","star-icon outline",3,"title","click",4,"ngIf"],["mat-button","","class","star-icon outline",3,"title","mouseenter",4,"ngIf"],["mat-button","",1,"star-icon","outline",3,"click","title"],["svgIcon","star",1,"indicator-icon"],["mat-button","",1,"star-icon","outline",3,"mouseenter","title"],["target","_blank","rel","noopener",1,"margin-top-5",3,"href"],["dir","auto"],["mat-dialog-content",""],["class","error-code edit-ml-box-name",4,"ngIf"],["class","cdx-dialog-top marked-list-dialog ml-dialog-title-flex",4,"ngIf"],["class","align-center-ml",4,"ngFor","ngForOf"],[1,"mls-divider","margin-bottom-10","margin-top-10"],["mat-dialog-actions","",1,"delete-overlay-actions"],["mat-button","","mat-dialog-close","","color","primary",1,"cancel"],[1,"error-code","edit-ml-box-name"],[1,"cdx-dialog-top","marked-list-dialog","ml-dialog-title-flex"],["class","title font-size-18","role","heading",3,"lang","innerHTML",4,"ngFor","ngForOf"],["role","heading",1,"title","font-size-18",3,"lang","innerHTML"],[1,"align-center-ml"],["mat-list-item","",3,"click","queryParams","state","routerLink"]],template:function(a,r){if(1&a&&(t.DNE(0,FE,7,7,"ng-container",4),t.nI1(1,"async"),t.DNE(2,BE,16,26,"ng-template",null,0,t.C5r)(4,VE,11,6,"ng-template",null,1,t.C5r)),2&a){const o=t.sdS(3);t.Y8G("ngIf",t.bMT(1,2,r.isMobile$))("ngIfElse",o)}},dependencies:[A.Sq,A.bT,ot.Wk,jt.An,$t.ig,ht.$z,xt.oV,Lt.kk,Lt.fb,Lt.z8,Lt.Cp,mt.tx,mt.E7,mt.Yi,zA.L,Jo.q,Gi._L,Gi.YE,_E,A.Jj,A.QX,V.D9,Se.h],styles:[".option-window[_ngcontent-%COMP%]{top:10vh;width:max-content;position:center}.editing[_ngcontent-%COMP%], .option-window[_ngcontent-%COMP%]{position:absolute;display:block;background-color:#fff;border-radius:.3125rem;padding:1.25rem;box-shadow:0 .0625rem .125rem #0000004d;width:300px;min-width:300px;overflow-wrap:normal;z-index:2000;box-sizing:border-box;outline:0}.option-count-label[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px;display:flex;align-items:center;font-size:15px;color:#000}.indicator-icon[_ngcontent-%COMP%]{background-color:#b49de2;border-radius:.1875rem;padding:.1875rem;height:1.25rem;width:1.25rem;color:#fff;display:block;align-self:center;margin-right:.625rem!important;margin-left:0!important}[dir=rtl][_ngcontent-%COMP%]   .indicator-icon[_ngcontent-%COMP%]{margin-right:0!important;margin-left:.625rem!important}.indicator-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{position:relative;top:-.25rem}.indicator-icon.endnote-icon[_ngcontent-%COMP%]{line-height:1.25rem;font-size:.75rem;text-align:center;padding:0;color:#000!important}.indicator-icon.oa[_ngcontent-%COMP%], .indicator-icon.ad[_ngcontent-%COMP%], .indicator-icon.review[_ngcontent-%COMP%]{background-color:transparent;color:#0e69bf}.indicator-icon.review[_ngcontent-%COMP%]{padding:.0625rem}.indicator-icon.review[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{position:relative;top:0rem}.indicator-icon.oa[_ngcontent-%COMP%]{padding:.125rem}.indicator-icon.oa[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{position:relative;top:-.125rem}.outline[_ngcontent-%COMP%]{outline:none!important}"],changeDetection:0})}}return i})();const QE=()=>({column:"more",expand:"viewmore",collapse:"viewless"});function UE(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"a",6),t.nI1(2,"translate"),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG().$implicit,o=t.XpG(2);return t.Njj(o.logLinkClick(r.data.linkItem))}),t.j41(4,"span",7),t.EFF(5,"download"),t.k0s(),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.bVm()}if(2&i){const e=t.XpG().$implicit;t.R7$(),t.FS9("cdxAnalyticsCategory","wos-open-url-"+(null==e.data.linkItem?null:e.data.linkItem.publisher_id.toLowerCase())),t.Y8G("matTooltip",t.bMT(2,5,(null==e.data.linkItem?null:e.data.linkItem.publisher_id)+"_link_label_title"))("href",null==e.data.linkItem?null:e.data.linkItem.publisher_url,t.B4B),t.BMQ("aria-label",t.bMT(3,7,(null==e.data.linkItem?null:e.data.linkItem.publisher_id)+"_link_label_title")),t.R7$(5),t.SpI(" ",t.bMT(7,9,(null==e.data.linkItem?null:e.data.linkItem.publisher_id)+"_link_label_download")," ")}}function JE(i,n){if(1&i&&(t.j41(0,"div",9)(1,"strong",10),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",11),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3).$implicit,a=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"pubdate_tableHeader")),t.R7$(3),t.JRh(a.format_Date(e.data.pubdate,"dd MMM yyyy"))}}function WE(i,n){if(1&i&&(t.j41(0,"div",9)(1,"strong",10),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",11),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3).$implicit;t.R7$(2),t.JRh(t.bMT(3,2,"mainipc_tableHeader")),t.R7$(3),t.JRh(e.data.mainipc)}}function KE(i,n){if(1&i&&(t.j41(0,"div",9)(1,"strong",10),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",11),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3).$implicit;t.R7$(2),t.JRh(t.bMT(3,2,"week_tableHeader")),t.R7$(3),t.JRh(e.data.week)}}function ZE(i,n){if(1&i&&(t.j41(0,"div",9)(1,"strong",10),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",11),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3).$implicit;t.R7$(2),t.JRh(t.bMT(3,2,"language_tableHeader")),t.R7$(3),t.JRh(e.data.language)}}
1function tP(i,n){if(1&i&&(t.j41(0,"div",9)(1,"strong",10),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",11),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(3).$implicit;t.R7$(2),t.JRh(t.bMT(3,2,"patent_tableHeader")),t.R7$(3),t.JRh(e.data.patent)}}function eP(i,n){if(1&i&&(t.qex(0),t.DNE(1,JE,6,4,"div",8)(2,WE,6,4,"div",8)(3,KE,6,4,"div",8)(4,ZE,6,4,"div",8)(5,tP,6,4,"div",8),t.bVm()),2&i){const e=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngIf",e.data.pubdate),t.R7$(),t.Y8G("ngIf",e.data.mainipc),t.R7$(),t.Y8G("ngIf",e.data.week),t.R7$(),t.Y8G("ngIf",e.data.language),t.R7$(),t.Y8G("ngIf",e.data.patent)}}function nP(i,n){if(1&i&&(t.j41(0,"div",9)(1,"strong",10),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",11),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(2).$implicit,a=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"date_tableHeader")),t.R7$(3),t.JRh(a.format_Date(e.data.date,"dd MMM yyyy"))}}function iP(i,n){if(1&i&&(t.j41(0,"div",9)(1,"strong",10),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",11),t.EFF(5),t.k0s()()),2&i){const e=t.XpG(2).$implicit;t.R7$(2),t.JRh(t.bMT(3,2,"page_tableHeader")),t.R7$(3),t.JRh(e.data.page)}}function aP(i,n){if(1&i&&(t.j41(0,"div",9)(1,"strong",10),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",11),t.EFF(6),t.k0s()()),2&i){const e=t.XpG(2).$implicit;t.R7$(2),t.Lme("",t.bMT(3,3,"designated_states"),":(",t.bMT(4,5,"nationalcode_tableHeader"),")"),t.R7$(4),t.JRh(e.data.nationalcode)}}function rP(i,n){if(1&i&&(t.j41(0,"div",9)(1,"strong",10),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",11),t.EFF(6),t.k0s()()),2&i){const e=t.XpG(2).$implicit;t.R7$(2),t.Lme("",t.bMT(3,3,"designated_states"),":(",t.bMT(4,5,"regionalcode_tableHeader"),")"),t.R7$(4),t.JRh(e.data.regionalcode)}}function oP(i,n){if(1&i&&(t.j41(0,"div",14)(1,"div",15),t.EFF(2),t.k0s(),t.j41(3,"div",15),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"div",15),t.EFF(7),t.nI1(8,"translate"),t.k0s()()),2&i){const e=n.$implicit;t.R7$(2),t.JRh(e.relationship),t.R7$(2),t.JRh(t.bMT(5,3,"further_application_details_type_"+e.type)),t.R7$(3),t.JRh(t.bMT(8,5,e.relating_patent_number))}}
1function sP(i,n){if(1&i&&(t.j41(0,"div",9)(1,"strong",10),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",12),t.DNE(5,oP,9,7,"div",13),t.k0s()()),2&i){const e=t.XpG(2).$implicit;t.R7$(2),t.JRh(t.bMT(3,2,"further_application_details")),t.R7$(3),t.Y8G("ngForOf",e.data.furtherApplicationDetails)}}function lP(i,n){if(1&i&&(t.j41(0,"div",14)(1,"div",15),t.EFF(2),t.k0s(),t.j41(3,"div",15),t.EFF(4),t.k0s()()),2&i){const e=n.$implicit,a=t.XpG(5);t.R7$(2),t.JRh(e.patent),t.R7$(2),t.JRh(a.format_Date(e.date,"dd MMM yyyy"))}}function cP(i,n){if(1&i&&(t.j41(0,"div",9)(1,"strong",10),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",12),t.DNE(5,lP,5,2,"div",13),t.k0s()()),2&i){const e=t.XpG(2).$implicit;t.R7$(2),t.JRh(t.bMT(3,2,"priority_info")),t.R7$(3),t.Y8G("ngForOf",e.data.priorityInfo)}}function dP(i,n){if(1&i&&(t.qex(0),t.DNE(1,eP,6,5,"ng-container",5)(2,nP,6,4,"div",8)(3,iP,6,4,"div",8)(4,aP,7,7,"div",8)(5,rP,7,7,"div",8)(6,sP,6,4,"div",8)(7,cP,6,4,"div",8),t.bVm()),2&i){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(),t.Y8G("ngIf",a.mobileView),t.R7$(),t.Y8G("ngIf",e.data.date),t.R7$(),t.Y8G("ngIf",e.data.page),t.R7$(),t.Y8G("ngIf",e.data.nationalcode),t.R7$(),t.Y8G("ngIf",e.data.regionalcode),t.R7$(),t.Y8G("ngIf",e.data.furtherApplicationDetails.length>0),t.R7$(),t.Y8G("ngIf",e.data.priorityInfo.length>0)}}function uP(i,n){if(1&i&&t.DNE(0,UE,8,11,"ng-container",5)(1,dP,8,7,"ng-container",5),2&i){const e=n.$implicit;t.Y8G("ngIf","download"===e.column&&e.data.linkItem),t.R7$(),t.Y8G("ngIf",e.expandedDetail&&e.data)}}function _P(i,n){if(1&i&&(t.j41(0,"div",1)(1,"h2",2),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"hr",3),t.j41(5,"app-generic-data-table",4),t.DNE(6,uP,2,2,"ng-template"),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"title")("id","table-name-patentFamilyTable"),t.R7$(),t.JRh(t.bMT(3,10,"patentFamily")),t.R7$(3),t.Y8G("displayData",e.patentFamilyData)("showHeader",!0)("expandedDetailConfig",t.lJ4(12,QE))("rowsShown",10)("columnConfig",e.columnConfig)("displayedColumns",e.displayedColumns)("idPrefix","patentFamilyTable")}}let pP=(()=>{class i{constructor(e,a,r,o){this.change=e,this.store=a,this.config=r,this.eventService=o,this.showDownloadColumns=!1,this.patentFamilyData=[],this.buttonColumn="more",this.taPrefix="PatentFamily-",this.displayedColumns=[],this.columnConfig={download:{type:"template"},pubdate:{type:"date",format:"dd MMM yyyy"},date:{type:"date",format:"dd MMM yyyy"}},this.patentFamilyLinks=[],this.isRTL$=K.Y.isRTL$,this.mobileView=!1,this.colData=[],this.getScreenSize()}ngOnChanges(e){this.linksSub&&this.linksSub.unsubscribe(),this.linksSub=this.store.select(B.GZ,{db:this.database,ut:this.record.ut}).pipe((0,Ft.p)(a=>!!a)).subscribe(a=>{this.patentFamilyLinks=a.map(r=>({...r,publisher_url:K.Y.rewriteUrlForProxy(this.config,r.publisher_url)})).filter(r=>"patentFamily"===r.category&&""!==r.publisher_url),e.record&&(this.buildPatentFamilyDownloadLinks(),this.change.detectChanges())}),e.record&&(this.buildPatentFamilyTable(),this.change.detectChanges()),e.showDownloadColumns&&(this.displayedColumns=this.showDownloadColumns?["download","patent_number","pubdate","mainipc","week","language","patent","more"]:["patent_number","pubdate","mainipc","week","language","patent","more"]),this.colData=this.displayedColumns}getScreenSize(){window.innerWidth<600&&(this.mobileView=!0,this.displayedColumns=this.showDownloadColumns?["download","patent_number","more"]:["patent_number","more"]),this.mobileView&&window.innerWidth>600&&(this.mobileView=!1,this.displayedColumns=this.colData)}buildPatentFamilyTable(){const e=[];this.record.patent_details?.forEach(a=>{let r={...a};this.record.application_details?.forEach(o=>{o.patent_number===r.patent_number&&(r={...r,...o})}),r.furtherApplicationDetails=[],this.record.further_application_details?.forEach(o=>{o.patent_number===r.patent_number&&r.furtherApplicationDetails.push(o)}),r.priorityInfo=[],this.record.priority_info?.forEach(o=>{o.patent_number===r.patent_number&&r.priorityInfo.push(o)}),this.record.designated_states?.forEach(o=>{o.patent===r.patent_number&&(o.nationalcode&&(r.nationalcode=o.nationalcode),o.regionalcode&&(r.regionalcode=o.regionalcode))}),(this.mobileView||r.nationalcode||r.regionalcode||r.furtherApplicationDetail
1s.length>0||r.page)&&(r[this.buttonColumn]=!1),e.push(r)}),this.patentFamilyData=e}buildPatentFamilyDownloadLinks(){this.patentFamilyLinks.forEach(e=>{this.patentFamilyData.forEach(a=>{e.patentNumber===a.patent_number&&(a.linkItem=e)})})}ngOnDestroy(){this.linksSub&&this.linksSub.unsubscribe()}logLinkClick(e){this.eventService.openLink(e,this.record)}format_Date(e,a){try{return(0,A.Yq)(new Date(e.replace(/(\d{4})(\d{2})(\d{2})/g,"$1-$2-$3")),a,"en_US","+0000")}catch{return""}}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(Gt.il),t.rXU(Dt.w),t.rXU(Li.U))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-patent-family"]],hostBindings:function(a,r){1&a&&t.bIt("resize",function(s){return r.getScreenSize(s)},!1,t.tSv)},inputs:{record:"record",showDownloadColumns:"showDownloadColumns",database:"database"},features:[t.OA$],decls:1,vars:1,consts:[["class","patent-family-card cdx-redesign-patent","id","patentFamilyTable",4,"ngIf"],["id","patentFamilyTable",1,"patent-family-card","cdx-redesign-patent"],["tabindex","-1",1,"jump-link-anchor","cdx-right-panel-main"],[1,"cdx-horizontal-line","cdx-margin-bottom-24"],[3,"displayData","showHeader","expandedDetailConfig","rowsShown","columnConfig","displayedColumns","idPrefix"],[4,"ngIf"],["color","primary","tabindex","0","target","_blank","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"download-button","margin-right-10--reversible",3,"click","cdxAnalyticsCategory","matTooltip","href"],[1,"material-icons-outlined"],["class","field cdx-two-column-grid-container",4,"ngIf"],[1,"field","cdx-two-column-grid-container"],[1,"label","cdx-grid-label"],[1,"cdx-right-panel-body"],[1,"section","cdx-right-panel-body"],["class","row",4,"ngFor","ngForOf"],[1,"row"],[1,"cell"]],template:function(a,r){1&a&&t.DNE(0,_P,7,13,"div",0),2&a&&t.Y8G("ngIf",r.patentFamilyData.length>1)},dependencies:[A.Sq,A.bT,xt.oV,Gc.f,Ot.P,V.D9],styles:[".field[_ngcontent-%COMP%]{padding:.3125rem}.field[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{padding-right:1.875rem}#PatentFamily-title[_ngcontent-%COMP%]:focus, #PatentFamily-title[_ngcontent-%COMP%]:active{outline:none}.section[_ngcontent-%COMP%]{display:table}.section[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{display:table-row}.section[_ngcontent-%COMP%]   .cell[_ngcontent-%COMP%]{display:table-cell;padding-top:.3125rem;padding-right:1.875rem}.patent-family-card[_ngcontent-%COMP%]   .download-button[_ngcontent-%COMP%]{border-color:currentColor}.cdx-redesign-patent[_ngcontent-%COMP%]     .mat-table.mat-table thead .mat-header-row th, .cdx-redesign-patent[_ngcontent-%COMP%]   .mat-table.mat-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   .mat-header-row[_ngcontent-%COMP%]   .mat-header-cell[_ngcontent-%COMP%], .cdx-redesign-patent[_ngcontent-%COMP%]     .mat-table.mat-table tbody td, .cdx-redesign-patent[_ngcontent-%COMP%]   .mat-table.mat-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .cdx-redesign-patent[_ngcontent-%COMP%]   .mat-table.mat-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   .mat-cell[_ngcontent-%COMP%]{color:#000!important;font-size:.875rem!important}.cdx-redesign-patent[_ngcontent-%COMP%]   .download-button[_ngcontent-%COMP%]{border:none!important}.cdx-redesign-patent[_ngcontent-%COMP%]   .material-icons-outlined[_ngcontent-%COMP%]{font-size:16px!important}.cdx-redesign-patent[_ngcontent-%COMP%]   .material-icons-outlined[_ngcontent-%COMP%]:hover{color:#4125af}.cdx-redesign-patent[_ngcontent-%COMP%]   .material-icons-outlined[_ngcontent-%COMP%]:focus{border:2px var(--sys-primary) solid}.cdx-redesign-patent[_ngcontent-%COMP%]   .cell[_ngcontent-%COMP%]{padding:0!important;display:block!important}@media (max-width: 550px){.cdx-redesign-patent[_ngcontent-%COMP%]   .cdx-right-panel-body[_ngcontent-%COMP%]{display:block!important}}"]})}}return i})();var hP=S(66032);const mP=(i,n)=>["/",i,"full-record",n],gP=i=>["/",i,"general-summary"],fP=(i,n,e,a)=>[i,n,e,a];function bP(i,n){if(1&i&&(t.j41(0,"a",14),t.nrm(1,"span",15),t.k0s()),2&i){const e=t.XpG(2);t.Y8G("routerLink",t.l_i(2,mP,e.coll.toLowerCase(),e.coll.toUpperCase()+":"+e.citedDocument.pan)),t.R7$(),t.Y8G("innerHTML",e.citedDocument.title,t.npT)}}
1function vP(i,n){if(1&i&&t.nrm(0,"span",16),2&i){const e=t.XpG(2);t.Y8G("innerHTML",e.citedDocument.title,t.npT)}}function xP(i,n){if(1&i&&(t.qex(0),t.j41(1,"h3"),t.DNE(2,bP,2,5,"a",13)(3,vP,1,1,"ng-template",null,1,t.C5r),t.k0s(),t.bVm()),2&i){const e=t.sdS(4),a=t.XpG();t.R7$(2),t.Y8G("ngIf",a.citedDocument.pan)("ngIfElse",e)}}function CP(i,n){1&i&&(t.j41(0,"h3")(1,"span",17),t.EFF(2,"[Not available]"),t.k0s()())}function RP(i,n){if(1&i&&(t.j41(0,"div",18)(1,"span",19),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.BMQ("data-ta",e.taPrefix+"citedPatent")("id",e.taPrefix+"citedPatent"),t.R7$(),t.SpI(" ",e.citedDocument.citedPatent," ")}}function yP(i,n){if(1&i&&(t.j41(0,"h3",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(2).$implicit,a=t.XpG(2);t.BMQ("data-ta",a.taPrefix+"-"+e+"-label")("id",a.taPrefix+"-"+e+"-label"),t.R7$(),t.SpI(" ",t.bMT(2,3,e)," ")}}function TP(i,n){1&i&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"and")," "))}function IP(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,"; "),t.k0s())}function kP(i,n){if(1&i&&t.DNE(0,IP,2,0,"span",9),2&i){const e=t.XpG(2).last;t.Y8G("ngIf",!e)}}function FP(i,n){if(1&i&&(t.qex(0),t.j41(1,"a",23),t.nI1(2,"translate"),t.nrm(3,"span",24),t.k0s(),t.DNE(4,TP,3,3,"span",7)(5,kP,1,1,"ng-template",null,3,t.C5r),t.bVm()),2&i){const e=t.sdS(6),a=t.XpG(),r=a.$implicit,o=a.index,s=t.XpG().$implicit,l=t.XpG(2);t.R7$(),t.Y8G("matTooltip",t.bMT(2,7,"authorAlt_"+s))("routerLink",t.eq3(9,gP,l.search.database.toLowerCase()))("queryParams",l.getRouterParams(s,r)),t.BMQ("data-ta",l.taPrefix+"--DisplayName-"+s),t.R7$(2),t.Y8G("wosSearchHighlight",t.ziG(11,fP,l.ut,l.search.id,s,r)),t.R7$(),t.Y8G("ngIf",o==l.citedDocument.names[s].length-2&&l.citedDocument.names[s].length<4)("ngIfElse",e)}}function wP(i,n){1&i&&(t.j41(0,"span"),t.EFF(1," (...); "),t.k0s())}function MP(i,n){if(1&i&&t.DNE(0,wP,2,0,"span",9),2&i){const e=t.XpG().index;t.Y8G("ngIf",2===e)}}function SP(i,n){if(1&i&&(t.qex(0),t.DNE(1,yP,3,5,"h3",21)(2,FP,7,16,"ng-container",7)(3,MP,1,1,"ng-template",null,2,t.C5r),t.bVm()),2&i){const e=n.index,a=n.last,r=n.first,o=t.sdS(4),s=t.XpG().$implicit,l=t.XpG(2);t.R7$(),t.Y8G("ngIf",r),t.R7$(),t.Y8G("ngIf",(2!==e||3===l.citedDocument.names[s].length)&&(e<3||a))("ngIfElse",o)}}function AP(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,SP,5,3,"ng-container",20),t.k0s()),2&i){const e=n.$implicit,a=t.XpG(2);t.R7$(),t.Y8G("ngForOf",a.citedDocument.names[e])}}
1function EP(i,n){if(1&i&&(t.qex(0),t.DNE(1,AP,2,1,"div",20),t.bVm()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.displayTypes)}}let PP=(()=>{class i{constructor(e){this.store=e,this.isSelected=!1,this.taPrefix="CitedDocument-",this.displayTypes=["inventor","assignee"]}ngOnChanges(e){e.qid&&this.store.select(B.CS,{qid:this.qid}).subscribe(a=>{this.search=a}).unsubscribe()}getRouterParams(e,a){let r;return r="assignee"===e?"AE":"AU",{queryJson:JSON.stringify([{rowField:r,rowText:a}]),eventMode:"oneClickSearch"}}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(Gt.il))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-cited-document"]],inputs:{citedDocument:"citedDocument",qid:"qid",ut:"ut",num:"num",id:"id",coll:"coll"},features:[t.OA$],decls:18,vars:13,consts:[["notAvailable",""],["notLink",""],["dotDotDot",""],["semi",""],[1,"number-section","font-size-18"],[1,"number-label"],[1,"data-section"],[4,"ngIf","ngIfElse"],["class","margin-bottom-5",4,"ngIf"],[4,"ngIf"],[1,"stats-section"],[1,"colonMark"],[1,"font-size-14"],["class","title title-link font-size-18 wordBreak","data-ta","cited-document-record-title-link",3,"routerLink",4,"ngIf","ngIfElse"],["data-ta","cited-document-record-title-link",1,"title","title-link","font-size-18","wordBreak",3,"routerLink"],[3,"innerHTML"],["tabindex","1",1,"title","font-size-18","wordBreak",3,"innerHTML"],[1,"title","font-size-18"],[1,"margin-bottom-5"],[1,"value-wrap"],[4,"ngFor","ngForOf"],["class","label colonMark","dir","auto",4,"ngIf"],["dir","auto",1,"label","colonMark"],[1,"authors",3,"matTooltip","routerLink","queryParams"],[3,"wosSearchHighlight"]],template:function(a,r){if(1&a&&(t.qex(0),t.j41(1,"div",4)(2,"span",5),t.EFF(3),t.k0s()(),t.j41(4,"div",6)(5,"div"),t.DNE(6,xP,5,2,"ng-container",7)(7,CP,3,0,"ng-template",null,0,t.C5r)(9,RP,3,3,"div",8)(10,EP,2,1,"ng-container",9),t.k0s()(),t.j41(11,"div",10)(12,"div")(13,"h2",11),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"div",12),t.EFF(17),t.k0s()()(),t.bVm()),2&a){const o=t.sdS(8);t.R7$(3),t.JRh(r.num),t.R7$(3),t.Y8G("ngIf",r.citedDocument.title)("ngIfElse",o),t.R7$(3),t.Y8G("ngIf",r.citedDocument.citedPatent),t.R7$(),t.Y8G("ngIf",null==r.citedDocument?null:r.citedDocument.names),t.R7$(3),t.BMQ("data-ta",r.taPrefix+"citingPatentLabel")("id",r.taPrefix+"citingPatentLabel"),t.R7$(),t.JRh(t.bMT(15,11,"cited-by-patent")),t.R7$(2),t.BMQ("data-ta",r.taPrefix+"citingPatent")("id",r.taPrefix+"citingPatent"),t.R7$(),t.JRh(r.citedDocument.patent_number)}},dependencies:[A.Sq,A.bT,ot.Wk,ie.w,$t.ig,xt.oV,V.D9],styles:[".patent-info-top[_ngcontent-%COMP%]{margin-bottom:.3125rem!important}.label[_ngcontent-%COMP%]{color:#616161}"]})}}return i})();const GP=(i,n)=>({docid:i,docNum:n}),DP=(i,n)=>({colluid:i,docNum:n});function $P(i,n){if(1&i&&(t.j41(0,"mat-radio-button",12)(1,"span",13),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.BMQ("id",e.taPrefix+"role-examiner")("data-ta",e.taPrefix+"role-examiner"),t.R7$(2),t.JRh(t.bMT(3,3,e.selectedTab+"-examiner"))}}
1function LP(i,n){if(1&i&&(t.j41(0,"mat-radio-button",14)(1,"span",13),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.BMQ("id",e.taPrefix+"role-inventor")("data-ta",e.taPrefix+"role-inventor"),t.R7$(2),t.JRh(t.bMT(3,3,e.selectedTab+"-inventor"))}}function NP(i,n){if(1&i){const e=t.RV6();t.j41(0,"mat-radio-group",9),t.bIt("change",function(r){t.eBV(e);const o=t.XpG(2);return t.Njj(o.handleRoleChange(r))}),t.DNE(1,$P,4,5,"mat-radio-button",10)(2,LP,4,5,"mat-radio-button",11),t.k0s()}if(2&i){const e=t.XpG(2);t.Y8G("value",e.selectedRole),t.R7$(),t.Y8G("ngIf",null==e.citedDocuments?null:e.citedDocuments.byExaminers),t.R7$(),t.Y8G("ngIf",null==e.citedDocuments?null:e.citedDocuments.byInventors)}}function jP(i,n){if(1&i&&(t.j41(0,"div")(1,"span",13),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,1,e.selectedTab+"-examiner"))}}function OP(i,n){if(1&i&&(t.j41(0,"div")(1,"span",13),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,1,e.selectedTab+"-inventor"))}}function BP(i,n){if(1&i&&t.DNE(0,jP,4,3,"div",15)(1,OP,4,3,"div",15),2&i){const e=t.XpG(2);t.Y8G("ngIf",(null==e.citedDocuments?null:e.citedDocuments.byExaminers)&&!(null!=e.citedDocuments&&e.citedDocuments.byInventors)),t.R7$(),t.Y8G("ngIf",(null==e.citedDocuments?null:e.citedDocuments.byInventors)&&!(null!=e.citedDocuments&&e.citedDocuments.byExaminers))}}function YP(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-page-controls",6),t.bIt("currentPageChange",function(r){t.eBV(e);const o=t.XpG();return t.Njj(o.changePage(r))}),t.j41(1,"div",7),t.DNE(2,NP,3,3,"mat-radio-group",8)(3,BP,2,2,"ng-template",null,0,t.C5r),t.k0s()()}if(2&i){const e=t.sdS(4),a=t.XpG();t.Y8G("bgColor","inherit")("padding","11px 20px")("minHeight","40px")("maxPage",a.maxPage)("skipID","snNextPageCitedNetworkTop")("location","top")("currentPage",a.currentPageNumber),t.R7$(2),t.Y8G("ngIf",(null==a.citedDocuments?null:a.citedDocuments.byExaminers)&&(null==a.citedDocuments?null:a.citedDocuments.byInventors))("ngIfElse",e)}}function XP(i,n){if(1&i&&t.nrm(0,"app-full-record-cited-document",19),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG();t.Y8G("citedDocument",a)("coll",o.coll)("num",r+1+(o.currentPageNumber-1)*o.PAGE_SIZE)("id",o.id)("qid",o.qid)("ut",o.ut)}}function qP(i,n){if(1&i&&t.nrm(0,"app-record",20),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG();t.Y8G("num",r+1+(o.currentPageNumber-1)*o.PAGE_SIZE)("search",o.search)("sort","relevance")("citingPatent",a.patent_number)("refLoc",t.l_i(5,GP,a.docid,o.IDToDocNumMap[a.docid]))}}function HP(i,n){if(1&i&&t.nrm(0,"app-record",21),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG();t.Y8G("num",r+1+(o.currentPageNumber-1)*o.PAGE_SIZE)("refLoc",t.l_i(5,DP,"DIIDW:"+a.pan,o.IDToDocNumMap["DIIDW:"+a.pan]))("search",o.search)("citingPatent",a.patent_number)("sort",o.DIIDWRelevanceSort)}}function VP(i,n){if(1&i&&(t.qex(0),t.DNE(1,XP,1,6,"app-full-record-cited-document",16)(2,qP,1,8,"app-record",17)(3,HP,1,8,"app-record",18),t.bVm()),2&i){const e=n.$implicit,a=t.XpG();t.R7$(),t.Y8G("ngIf",!(e.docid&&a.search||e.pan&&a.search)),t.R7$(),t.Y8G("ngIf","article-cited-by"===a.selectedTab&&e.docid&&a.search),t.R7$(),t.Y8G("ngIf","patent-cited-by"===a.selectedTab&&e.pan&&a.search)}}function zP(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-page-controls",6),t.bIt("currentPageChange",function(r){t.eBV(e);const o=t.XpG();return t.Njj(o.changePage(r,"cited-document"))}),t.k0s()}if(2&i){const e=t.XpG();t.Y8G("bgColor","inherit")("padding","11px 20px")("minHeight","40px")("maxPage",e.maxPage)("skipID","snNextPageCitedNetworkBottom")("location","top")("currentPage",e.currentPageNumber)}}let QP=(()=>{class i extends Be.${constructor(e,a,r,o,s){super(e,a),this.searches=r,this.store=o,this.windowRef=s,this.selectedTabChange=new t.bkB,this.selectedRoleChange=new t.bkB,this.PAGE_SIZE=10,this.maxPageForDocuments={},this.pageNumberForDocuments={},this.searchMapForDocuments={},this.citedDocumentsBy=[],this.taPrefix="FRCitedDocumentTa-",this.IDToDocNumMap={},this.DIIDWRelevanceSort="diidw-relevance",K.Y.isMobile$.pipe((0,Ee.Q)(this.destroyed$)).subscribe(l=>{this.isMobile=l,this.doChange()})}ngOnChanges(e){(e.selectedTab||e.selectedRole)&&(this.selectedRole="examiner"===this.selectedRole&&this.citedDocuments.byExaminers?"examiner":"inventor"===this.selectedRole&&this.citedDocuments.byInventors?"inventor":this.citedDocuments.byExaminers?"examiner":"inventor",this.setCitedDocumentsBy(this.selectedRole))}changePage(e,a){if(this.pageNumberForDocuments[this.getKeyName(this.selectedTab,this.selectedRole)]=e,this.setCitedDocumentsBy(this.selectedRole),a){const o=document.getElementById(a).getBoundingClientRect().top+window.pageYOffset;this.windowRef.nativeWindow.scrollTo({top:o})}}handleRoleChange(e){this.selectedRoleChange.emit(e.value),this.setCitedDocumentsBy(e.value)}setCitedDocumentsBy(e){let a;this.currentPageNumber=this.pageNumberForDocuments[this.getKeyName(this.selectedTab,e)]||1,a="examiner"===e?this.citedDocuments.byExaminers:this.citedDocuments.byInventors,this.citedPatentCount=a.length,this.setMaxPage(a.length,e),this.citedDocumentsBy=a.slice((this.currentPageNumber-1)*this.PAGE_SIZE,this.currentPageNumber*this.PAGE_SIZE);const r=[],o=[];this.citedDocumentsBy.forEach(s=>{s.docid&&o.push(s.docid),s.pan&&r.push(s.pan)}),o.length>0&&(this.search=this.searchMapForDocuments[this.getKeyName(this.selectedTab,e)+this.currentPageNumber],this.search?this.setIDToDocNumMap("docid","relevance"):this.runSearch({database:"WOSCC",mode:Tn.k0.doc_ids,docIds:o},"relevance","docid",o)),r.length>0&&(this.search=this.searchMapForDocuments[this.getKeyName(this.selectedTab,e)+this.currentPageNumber],this.search?this.setIDToDocNumMap("ut",this.DIIDWRelevanceSort):this.runSearch({database:"DIIDW",mode:Tn.k0.record_ids,uts:r},this.DIIDWRelevanceSort,"ut",r))}setMaxPage(e,a){this.maxPageForDocuments[this.getKeyName(this.selectedTab,a)]||(this.maxPageForDocuments[this.getKeyName(this.selectedTab,a)]=Math.ceil(e/this.PAGE_SIZE)),this.maxPage=this.maxPageForDocuments[this.getKeyName(this.selectedTab,a)]}getKeyName(e,a){return a?e+"-"+a:e}runSearch(e,a,r,o){this.searches.runSearch(e,{view:"summary",sort:a,jcr:!0,count:o.length,first:1}).pipe((0,nn.T)(l=>({...e,id:l.id})),(0,Uo.t)(1),(0,ge.s)(1)).subscribe(l=>{this.search=l,this.setIDToDocNumMap(r,a),this.searchMapForDocuments[this.getKeyName(this.selectedTab,this.selectedRole)+this.currentPageNumber]=l,this.change.detectChanges()})}setIDToDocNumMap(e,a){this.idToDocuNumMapSub&&(this.idToDocuNumMapSub.unsubscribe(),this.idToDocuNumMapSub=void 0),this.idToDocuNumMapSub=this.store.select(B.aN,{search:this.search,sort:a,field:e}).subscribe(r=>{this.IDToDocNumMap=r})}ngOnDestroy(){super.ngOnDestroy(),this.idToDocuNumMapSub&&this.idToDocuNumMapSub.unsubscribe()}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(V.c$),t.rXU(Ed.c),t.rXU(Gt.il),t.rXU(Ua.W))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-cited-documents"]],inputs:{qid:"qid",database:"database",citedDocuments:"citedDocuments",ut:"ut",id:"id",coll:"coll",sort:"sort",selectedTab:"selectedTab",selectedRole:"selectedRole"},outputs:{selectedTabChange:"selectedTabChange",selectedRoleChange:"selectedRoleChange"},features:[t.Vt3,t.OA$],decls:9,vars:12,consts:[["noCitedDocuments",""],[1,"citing-patent-separator"],[1,"text--normal","flex-align-left","flex-align-baseline","margin-bottom-10"],[1,"font-size-18","title-style","margin-right-5--reversible"],["class","app-page-control
1s margin-bottom-0",3,"bgColor","padding","minHeight","maxPage","skipID","location","currentPage","currentPageChange",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"app-page-controls","margin-bottom-0",3,"currentPageChange","bgColor","padding","minHeight","maxPage","skipID","location","currentPage"],[1,"flex-align","flex-align-center"],["aria-label","Select an option",3,"value","change",4,"ngIf","ngIfElse"],["aria-label","Select an option",3,"change","value"],["class","padding-left-7--reversible","color","primary","value","examiner",4,"ngIf"],["class","padding-left-7--reversible","color","primary","value","inventor",4,"ngIf"],["color","primary","value","examiner",1,"padding-left-7--reversible"],[1,"bold-label"],["color","primary","value","inventor",1,"padding-left-7--reversible"],[4,"ngIf"],["class","summary-record-parent summary-record",3,"citedDocument","coll","num","id","qid","ut",4,"ngIf"],[3,"num","search","sort","citingPatent","refLoc",4,"ngIf"],[3,"num","refLoc","search","citingPatent","sort",4,"ngIf"],[1,"summary-record-parent","summary-record",3,"citedDocument","coll","num","id","qid","ut"],[3,"num","search","sort","citingPatent","refLoc"],[3,"num","refLoc","search","citingPatent","sort"]],template:function(a,r){1&a&&(t.j41(0,"div",1)(1,"h2",2)(2,"span",3),t.EFF(3),t.k0s(),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.DNE(6,YP,5,9,"app-page-controls",4)(7,VP,4,3,"ng-container",5)(8,zP,1,7,"app-page-controls",4),t.k0s()),2&a&&(t.BMQ("id","cited-document"),t.R7$(),t.BMQ("id",r.taPrefix+"Heading")("data-ta",r.taPrefix+"Heading"),t.R7$(),t.BMQ("id",r.taPrefix+"count")("data-ta",r.taPrefix+"count"),t.R7$(),t.SpI(" ",r.citedPatentCount," "),t.R7$(),t.SpI(" ",t.bMT(5,10,1===r.citedPatentCount?r.selectedTab+"-singular":r.selectedTab+"-plural")," "),t.R7$(2),t.Y8G("ngIf",!r.isMobile),t.R7$(),t.Y8G("ngForOf",r.citedDocumentsBy),t.R7$(),t.Y8G("ngIf",!r.isMobile))},dependencies:[A.Sq,A.bT,Ur.N,hP.X,Ha.VT,Ha._g,PP,V.D9],encapsulation:2})}}return i})();const UP=()=>["citing-patent-by","patent-cited-by","article-cited-by"];function JP(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",7),t.bIt("click",function(){t.eBV(e);const r=t.XpG().$implicit,o=t.XpG();return t.Njj(o.handleOnClick(r))})("keyup.enter",function(){t.eBV(e);const r=t.XpG().$implicit,o=t.XpG();return t.Njj(o.handleOnClick(r))}),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"uppercase"),t.k0s()}if(2&i){const e=t.XpG().$implicit,a=t.XpG();t.Y8G("id",e+"-tab")("active",a.selectedTab===e),t.BMQ("data-ta",e+"-tab"),t.R7$(),t.SpI(" ",t.bMT(3,6,t.bMT(2,4,e))," ")}}function WP(i,n){if(1&i&&(t.qex(0),t.DNE(1,JP,4,8,"a",6),t.bVm()),2&i){const e=n.$implicit,a=t.XpG();t.R7$(),t.Y8G("ngIf","citing-patent-by"===e&&!(null!=a.info&&null!=a.info.citingPatent&&a.info.citingPatent.empty)||"patent-cited-by"===e&&(null==a.record||null==a.record.cited_details?null:a.record.cited_details.patents_cited)||"article-cited-by"===e&&(null==a.record||null==a.record.cited_details?null:a.record.cited_details.articles_cited))}}function KP(i,n){if(1&i&&t.nrm(0,"app-full-record-mini-crl",8),2&i){const e=t.XpG();t.Y8G("searchInfo",null==e.info?null:e.info.citingPatent)("sort","diidw-publication-date-descending")("ut",e.record.ut)("doi",e.record.doi)}}function ZP(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-full-record-cited-documents",9),t.mxI("selectedTabChange",function(r){t.eBV(e);const o=t.XpG();return t.DH7(o.selectedTab,r)||(o.selectedTab=r),t.Njj(r)})("selectedRoleChange",function(r){t.eBV(e);const o=t.XpG();return t.DH7(o.selectedRole,r)||(o.selectedRole=r),t.Njj(r)}),t.k0s()}if(2&i){const e=t.XpG();t.R50("selectedTab",e.selectedTab)("selectedRole",e.selectedRole),t.Y8G("qid",e.qid)("ut",e.record.ut)("id",e.record.id)("coll",e.record.coll)("sort",e.sort)("citedDocuments",e.citedDocuments)}}let tG=(()=>{class i extends Be.${constructor(e,a){super(e),this.store=a,this.selectedTab="citing-patent-by",this.selectedRole="",this.store.select(ii.es).pipe((0,Ee.Q)(this.destroyed$),(0,Ft.p)(r=>!!r)).subscribe(r=>{this.changeTab(r.currentTab)})}ngOnChanges(e){e.record&&(this.citedDocuments=this.record.cited_details?.patents_cited,this.citedDocuments||(this.citedDocuments=this.record.cited_details?.articles_cited)),this.info.citingPatent?.empty&&(this.selectedTab=this.record.cited_details?.patents_cited?"patent-cited-by":"article-cited-by")}handleOnClick(e){this.selectedTab=e,"patent-cited-by"===e&&(this.citedDocuments=this.record.cited_details.patents_cited),"article-cited-by"===e&&(this.citedDocuments=this.record.cited_details.articles_cited)}changeTab(e){console.log("here",e);let a=this.selectedTab;e.startsWith("citingPatent")&&(a="citing-patent-by"),e.startsWith("patentscitedby")&&(a="patent-cited-by"),e.startsWith("articlescitedby")&&(a="article-cited-by");const r=document.getElementById(a+"-tab");if(r){this.handleOnClick(a),e.endsWith("examiners")&&(this.selectedRole="examiner"),e.endsWith("inventors")&&(this.selectedRole="inventor"),r.focus();const o=r.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:o,behavior:"smooth"})}}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(Gt.il))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-citation-network"]],inputs:{record:"record",qid:"qid",info:"info"}
1,features:[t.Vt3,t.OA$],decls:6,vars:4,consts:[["role","region",1,"data-column","references-section"],[1,"cited-ref-separator"],["aria-label","citation-network","data-ta","citation-network-tabs","mat-tab-nav-bar",""],[4,"ngFor","ngForOf"],["class","app-full-record-mini-crl",3,"searchInfo","sort","ut","doi",4,"ngIf"],[3,"selectedTab","selectedRole","qid","ut","id","coll","sort","citedDocuments","selectedTabChange","selectedRoleChange",4,"ngIf"],["class","uppercase-link","mat-tab-link","","role","link","routerLinkActive","active",3,"id","active","click","keyup.enter",4,"ngIf"],["mat-tab-link","","role","link","routerLinkActive","active",1,"uppercase-link",3,"click","keyup.enter","id","active"],[1,"app-full-record-mini-crl",3,"searchInfo","sort","ut","doi"],[3,"selectedTabChange","selectedRoleChange","selectedTab","selectedRole","qid","ut","id","coll","sort","citedDocuments"]],template:function(a,r){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"nav",2),t.DNE(3,WP,2,1,"ng-container",3),t.k0s(),t.DNE(4,KP,1,4,"app-full-record-mini-crl",4)(5,ZP,1,8,"app-full-record-cited-documents",5),t.k0s()()),2&a&&(t.R7$(3),t.Y8G("ngForOf",t.lJ4(3,UP)),t.R7$(),t.Y8G("ngIf","citing-patent-by"===r.selectedTab),t.R7$(),t.Y8G("ngIf","citing-patent-by"!==r.selectedTab&&r.citedDocuments))},dependencies:[A.Sq,A.bT,ot.wQ,ni.Bu,ni.Ql,Dd,QP,A.Pc,V.D9],styles:[".mat-tab-label-active[_ngcontent-%COMP%]{color:var(--sys-primary)}"]})}}return i})();function eG(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",7)(1,"button",8),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.openCreateCitOverlay())}),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",7)(6,"button",9),t.nI1(7,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.openCreateJournalOverlay())}),t.EFF(8),t.nI1(9,"translate"),t.k0s()()}2&i&&(t.R7$(),t.BMQ("aria-label",t.bMT(2,4,"createCitAlert")),t.R7$(2),t.SpI(" ",t.bMT(4,6,"citation")," "),t.R7$(3),t.BMQ("aria-label",t.bMT(7,8,"createJournalAlert")),t.R7$(2),t.SpI(" ",t.bMT(9,10,"journal")," "))}function nG(i,n){if(1&i){const e=t.RV6();t.j41(0,"div")(1,"mat-menu",2,0),t.DNE(3,eG,10,12,"ng-template",3),t.k0s(),t.j41(4,"button",4),t.bIt("menuOpened",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.isMenuOpen=!0)})("menuClosed",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.isMenuOpen=!1)}),t.j41(5,"span"),t.nrm(6,"mat-icon",5),t.EFF(7),t.nI1(8,"translate"),t.j41(9,"mat-icon",6),t.EFF(10),t.k0s()()()()}if(2&i){const e=t.sdS(2),a=t.XpG();t.R7$(4),t.Y8G("matMenuTriggerFor",e),t.BMQ("aria-expanded",a.isMenuOpen),t.R7$(3),t.SpI(" ",t.bMT(8,4,"CreateAlertsLabel")," "),t.R7$(3),t.SpI(" ",a.isMenuOpen?"expand_less":"expand_more"," ")}}let iG=(()=>{class i{constructor(e,a){this.router=e,this.route=a,this.isMenuOpen=!1,this.displayAlerts=!0,this.isMobile$=K.Y.isMobile$}ngOnChanges(){}openCreateCitOverlay(){Ii.u.skipScroll=!0,this.router.navigate([{outlets:{overlay:"alert/citation/"+this.qid+"/"+this.sort+"/"+this.doc}}],{relativeTo:this.route.root,replaceUrl:!0,state:{...history.state,navigationId:void 0},queryParamsHandling:"merge"})}openCreateJournalOverlay(){Ii.u.skipScroll=!0,this.router.navigate([{outlets:{overlay:"alert/journal/"+this.record.titles.source.en[0].title}}],{relativeTo:this.route.root,replaceUrl:!0,state:{...history.state,navigationId:void 0},queryParamsHandling:"merge"})}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(ot.Ix),t.rXU(ot.nX))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-alerting-options"]],inputs:{record:"record",qid:"qid",sort:"sort",database:"database",doc:"doc"},features:[t.OA$],decls:1,vars:1,consts:[["menu","matMenu"],[4,"ngIf"],["yPosition","below"],["matMenuContent",""],["mat-stroked-button","","color","primary",1,"margin-right-10--reversible","new-wos-btn-style",3,"menuOpened","menuClosed","matMenuTriggerFor"],["svgIcon","bell",1,"svg-icon-18-inline-flex","margin-left-3--reversible"],["inline","true",1,"font-size-18","margin-left-3--reversible"],[1,"link"],["mat-menu-item","","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-CCC-article-alert-dropdown-create-citation-alert","cdxAnalyticsAction","click",1,"create-cit-alert-menu
1-item",3,"click"],["mat-menu-item","","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-CCC-article-alert-dropdown-create-journal-alert","cdxAnalyticsAction","click",3,"click"]],template:function(a,r){1&a&&t.DNE(0,nG,11,6,"div",1),2&a&&t.Y8G("ngIf","CCC"===r.record.coll)},dependencies:[A.bT,jt.An,ht.$z,Lt.kk,Lt.fb,Lt.z8,Lt.Cp,Ot.P,V.D9],encapsulation:2,changeDetection:0})}}return i})();function aG(i,n){if(1&i&&(t.j41(0,"div",2)(1,"span",3),t.EFF(2),t.k0s(),t.j41(3,"div",4),t.EFF(4),t.k0s()()),2&i){const e=n.$implicit,a=n.index;t.R7$(2),t.JRh(a+1),t.R7$(2),t.JRh(e)}}let rG=(()=>{class i{constructor(){this.taPrefix="FullRBCTa-"}ngOnInit(){}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-unspecified-refs"]],inputs:{record:"record"},decls:9,vars:7,consts:[["id","blurbs",1,"cdx-references-remodel","unlinked"],["class","blurbsmain summary-record-parent",4,"ngFor","ngForOf"],[1,"blurbsmain","summary-record-parent"],[1,"number-section-blurbs"],[1,"cdx-grid-data","unspecified-text-line"]],template:function(a,r){1&a&&(t.j41(0,"div",0)(1,"div")(2,"h2")(3,"span"),t.EFF(4),t.k0s(),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"div"),t.DNE(8,aG,5,2,"div",1),t.k0s()()),2&a&&(t.R7$(2),t.BMQ("data-ta",r.taPrefix+"UnlinkedCitedReferences")("id",r.taPrefix+"UnlinkedCitedReferences"),t.R7$(2),t.SpI(" ",null==r.record.item||null==r.record.item.unspecified_refs?null:r.record.item.unspecified_refs.length," "),t.R7$(),t.SpI(" ",t.bMT(6,5,"UnlinkedReferences")," "),t.R7$(3),t.Y8G("ngForOf",null==r.record.item?null:r.record.item.unspecified_refs))},dependencies:[A.Sq,V.D9],styles:[".blurbsmain[_ngcontent-%COMP%]{display:flex;padding:20px;flex-direction:row;align-items:flex-start;align-self:stretch;font-size:18px}.unlinked[_ngcontent-%COMP%]{padding:24px 50px 40px!important}.unspecified-text-line[_ngcontent-%COMP%]{display:inline!important;padding:1.5625rem .625rem;flex-basis:6.25rem;flex-grow:1}.number-section-blurbs[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;position:relative;padding-top:1.4375rem;min-width:45px}"]})}}return i})(),oG=(()=>{class i{constructor(e){this.http=e,this.endpoint="/api/esti/SearchEngine/generateKeyTakeAway"}getKeyTakeaway(e,a,r,o){return this.http.post(this.endpoint,{environment:e,documentId:a,text:r,originatingSearchQuery:o})}static{this.\u0275fac=function(a){return new(a||i)(t.KVO(pa.Qq))}}static{this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();const sG=["takeawayTopicsElement"];function lG(i,n){if(1&i&&(t.j41(0,"section",26)(1,"p",27,0),t.EFF(3),t.k0s()()),2&i){const e=t.XpG(2);t.AVh("details-card__section--collapsed",!e.showMore&&e.showTopicsToggle),t.R7$(),t.AVh("details-card__section-text--topics-collapsed",!e.showMore),t.R7$(2),t.SpI(" ",e.takeawayTopics," ")}}function cG(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",30),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.toggleShowMore())}),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.j41(4,"mat-icon"),t.EFF(5),t.k0s()()}if(2&i){const e=t.XpG(3);t.BMQ("aria-expanded",e.showMore),t.R7$(),t.SpI(" ",e.showMore?t.bMT(2,3,"showLess"):t.bMT(3,5,"showMore")," "),t.R7$(4),t.JRh(e.showMore?"keyboard_arrow_up":"keyboard_arrow_down")}}function dG(i,n){if(1&i&&(t.j41(0,"div",28),t.DNE(1,cG,6,7,"button",29),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",e.showTopicsToggle)}}function uG(i,n){if(1&i){const e=t.RV6();t.j41(0,"section",2),t.nI1(1,"translate"),t.j41(2,"header",3)(3,"div",4),t.nrm(4,"mat-icon",5),t.j41(5,"h2",6),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"div",7)(9,"button",8),t.nI1(10,"translate"),t.j41(11,"mat-icon"),t.EFF(12,"open_in_full"),t.k0s()(),t.j41(13,"button",8),t.nI1(14,"translate"),t.j41(15,"mat-icon"),t.EFF(16,"open_in_new"),t.k0s()(),t.j41(17,"button",8),t.nI1(18,"translate"),t.j41(19,"mat-icon"),t.EFF(20,"close"),t.k0s()()()(),t.j41(21,"p",9),t.EFF(22),t.nI1(23,"translate"),t.k0s()(),t.j41(24,"div",10)(25,"article",11)(26,"h3",12),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.j41(29,"section",13),t.nrm(30,"h4",14),t.nI1(31,"translate"),t.j41(32,"p",15),t.EFF(33),t.k0s()(),t.DNE(34,lG,4,5,"section",16)(35,dG,2,1,"div",17),t.j41(36,"div",18)(37,"button",19),t.nI1(38,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.setThumbsSelection("up"))}),t.nrm(39,"mat-icon",20),t.k0s(),t.j41(40,"button",19),t.nI1(41,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.setThumbsSelection("down"))}),t.nrm(42,"mat-icon",21),t.k0s(),t.j41(43,"button",19),t.nI1(44,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.copyText())}),t.nrm(45,"mat-icon",22),t.k0s(),t.j41(46,"span",23),t.EFF(47),t.nI1(48,"translate"),t.k0s()(),t.j41(49,"p",24),t.EFF(50),t.nI1(51,"translate"),t.j41(52,"button",25),t.EFF(53),t.nI1(54,"translate"),t.k0s()()()()()}if(2&i){const e=t.XpG();t.BMQ("aria-label",t.bMT(1,25,"documentAssistantPanelAriaLabel")),t.R7$(6),t.JRh(t.bMT(7,27,"documentAssistantTitle")),t.R7$(3),t.BMQ("aria-label",t.bMT(10,29,"documentAssistantOpenFullViewAriaLabel")),t.R7$(4),t.BMQ("aria-label",t.bMT(14,31,"documentAssistantOpenNewWindowAriaLabel")),t.R7$(4),t.BMQ("aria-label",t.bMT(18,33,"documentAssistantCloseAriaLabel")),t.R7$(5),t.JRh(t.bMT(23,35,"documentAssistantPoweredBy")),t.R7$(5),t.JRh(t.bMT(28,37,"documentAssistantInsights")),t.R7$(3),t.Y8G("innerHTML",t.bMT(31,39,"documentAssistantKeyTakeaways"),t.npT),t.R7$(2),t.AVh("details-card__section-text--collapsed",!e.showMore),t.R7$(),t.SpI(" ",e.mainPointText," "),t.R7$(),t.Y8G("ngIf",e.takeawayTopics),t.R7$(),t.Y8G("ngIf",e.showTopicsToggle),t.R7$(2),t.AVh("feedback-button--active","up"===e.thumbsSelection),t.BMQ("aria-label",t.bMT(38,41,"documentAssistantThumbUpAriaLabel"))("aria-pressed","up"===e.thumbsSelection),t.R7$(3),t.AVh("feedback-button--active","down"===e.thumbsSelection),t.BMQ("aria-label",t.bMT(41,43,"documentAssistantThumbDownAriaLabel"))("aria-pressed","down"===e.thumbsSelection),t.R7$(3),t.BMQ("aria-label",t.bMT(44,45,"documentAssistantCopyTextAriaLabel")),t.R7$(4),t.JRh(t.bMT(48,47,"copyText")),t.R7$(3),t.SpI(" ",t.bMT(51,49,"documentAssistantAiGeneratedDisclaimer")," "),t.R7$(3),t.JRh(t.bMT(54,51,"disclaimer"))}}let _G=(()=>{class i{constructor(e,a,r){this.change=e,this.snackBar=a,this.keyTakeawayService=r,this.environment=null,this.goId=null,this.originatingSearchQuery=null,this.pqAiFtUrl=null,this.proQuestHtmlContent=null,this.showMore=!1,this.showTopicsToggle=!1,this.thumbsSelection=null,this.hasTakeaway=!1,this.mainPointText="",this.topicsOverflowMeasured=!1}ngAfterViewChecked(){!this.topicsOverflowMeasured&&this.takeawayTopics&&(this.updateTopicsOverflowState(),this.topicsOverflowMeasured=!0,this.change.markForCheck())}ngOnChanges(e){(e.goId||e.originatingSearchQuery||e.pqAiFtUrl||e.proQuestHtmlContent)&&this.loadTakeaway()}toggleShowMore(){this.showMore=!this.showMore}setThumbsSelection(e){this.thumbsSelection=this.thumbsSelection===e?null:e}loadTakeaway(){this.hasTakeaway=!1,this.mainPointText="",this.takeawayTopics=null,this.takeawayReasons=null,this.showMore=!1,this.showTopicsToggle=!1,this.topicsOverflowMeasured=!1,this.proQuestHtmlContent&&this.goId&&this.pqAiFtUrl&&this.keyTakeawayService.getKeyTakeaway(this.getKeyTakeawayEnvironment(this.environment),this.goId,this.proQuestHtmlContent,this.originatingSearchQuery).subscribe({next:e=>{this.takeawayTopics=e?.["key-takeaway"]?.en?.Topics,this.takeawayReasons=e?.["key-takeaway"]?.en?.Reason;const a=e?.["key-takeaway"]?.en?.Takeaway;this.showTopicsToggle=!!this.takeawayTopics,a&&(this.mainPointText=a,this.hasTakeaway=!0,this.change.markForCheck())},error:()=>{this.hasTakeaway=!1,this.mainPointText="",this.takeawayTopics=null,this.takeawayReasons=null,this.topicsOverflowMeasured=!1}})}updateTopicsOverflowState(){const e=this.takeawayTopicsElement?.nativeElement;e&&(this.showTopicsToggle=e.scrollHeight>e.clientHeight+1)}getKeyTakeawayEnvironment(e){const a=e?.toLowerCase()||"";return a.includes("dev-local-snapshot")||a.includes("dev-local-stable")?"local":a.includes("dev-snapsh
1ot")?"snapshot":a.includes("dev-stable")?"stable":(a.includes("prod"),"prod")}copyText(){const e=`${this.mainPointText}`;navigator?.clipboard?.writeText&&navigator.clipboard.writeText(e).then(()=>this.snackBar.successGreen("textCopied")).catch(()=>{})}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(Ln.z),t.rXU(oG))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-document-assistant"]],viewQuery:function(a,r){if(1&a&&t.GBs(sG,5),2&a){let o;t.mGM(o=t.lsd())&&(r.takeawayTopicsElement=o.first)}},inputs:{record:"record",environment:"environment",goId:"goId",originatingSearchQuery:"originatingSearchQuery",pqAiFtUrl:"pqAiFtUrl",proQuestHtmlContent:"proQuestHtmlContent"},features:[t.OA$],decls:1,vars:1,consts:[["takeawayTopicsElement",""],["class","document-assistant",4,"ngIf"],[1,"document-assistant"],[1,"document-assistant__header"],[1,"document-assistant__title-row"],["svgIcon","ra-gradient-logo",1,"document-assistant__logo"],[1,"document-assistant__title"],["aria-hidden","true",1,"document-assistant__header-actions"],["mat-icon-button","","type","button"],[1,"document-assistant__subtitle"],[1,"document-assistant__body"],[1,"details-card"],[1,"details-card__title"],[1,"details-card__section"],[1,"details-card__section-title",3,"innerHTML"],[1,"details-card__section-text"],["class","details-card__section details-card__section--secondary",3,"details-card__section--collapsed",4,"ngIf"],["class","show-more-button-row",4,"ngIf"],[1,"details-card__feedback-row"],["mat-icon-button","","type","button",1,"feedback-button",3,"click"],["svgIcon","thumbs-up-outline"],["svgIcon","thumbs-up-outline",1,"rotate-180"],["svgIcon","copy"],[1,"copy-label"],[1,"details-card__disclaimer"],["type","button",1,"disclaimer-link"],[1,"details-card__section","details-card__section--secondary"],[1,"details-card__section-text","details-card__section-text--secondary"],[1,"show-more-button-row"],["mat-button","","class","show-more-button","type","button",3,"click",4,"ngIf"],["mat-button","","type","button",1,"show-more-button",3,"click"]],template:function(a,r){1&a&&t.DNE(0,uG,55,53,"section",1),2&a&&t.Y8G("ngIf",r.hasTakeaway)},dependencies:[A.bT,jt.An,ht.$z,ht.iY,V.D9],styles:['.document-assistant[_ngcontent-%COMP%]{background:#fff;border-radius:1rem;box-shadow:0 2px 4px #0000000d;overflow:hidden;width:22.125rem;max-width:100%}.document-assistant__header[_ngcontent-%COMP%]{height:4.0625rem;padding:.6875rem .625rem .5rem;box-sizing:border-box;background:#fff;display:flex;flex-direction:column;justify-content:space-between}.document-assistant__title-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.625rem}.document-assistant__logo[_ngcontent-%COMP%]{width:1.6875rem;height:1.6875rem;min-width:1.6875rem;font-size:1.6875rem}.document-assistant__title[_ngcontent-%COMP%]{margin:0;flex:1;color:#000;font-family:Source Sans Pro,sans-serif;font-size:1.25rem;font-weight:600;line-height:1.625rem}.document-assistant__header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.625rem}.document-assistant__header-actions[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;padding:0;display:inline-flex;align-items:center;justify-content:center}.document-assistant__header-actions[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:1.5rem;width:1.5rem;height:1.5rem;line-height:1.5rem;color:#000}.document-assistant__subtitle[_ngcontent-%COMP%]{margin:0;text-align:center;color:#000;font-family:"Source Sans 3",sans-serif;font-size:.75rem;font-weight:400;line-height:1rem;letter-spacing:.025rem}.document-assistant__body[_ngcontent-%COMP%]{background:linear-gradient(90deg,#eff0ff 21%,#e5f4ff 82%);padding:1rem;max-height:42.125rem;overflow-y:auto;box-sizing:border-box;display:flex;flex-direction:column;gap:1rem}.document-assistant__body[_ngcontent-%COMP%]::-webkit-scrollbar{width:.8125rem;background:#fff;border:1px solid #eeeeee}.document-assistant__body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#757575;border-radius:.25rem;border:.1875rem solid #ffffff}.details-card[_ngcontent-%COMP%]{background:#fff;border-radius:1rem;padding:.625rem;display:flex;flex-direction:column;gap:1rem;box-sizing:border-box}.details-card__title[_ngcontent-%COMP%]{margin:0;color:#000;font-family:Source Sans Pro,sans-serif;font-size:1.25rem;font-weight:600;line-height:1.625rem}.details-card__section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.details-card__section-title[_ngcontent-%COMP%]{margin:0;color:#000;font-family:"Source Sans 3",sans-serif;font-size:1rem;font-weight:500;line-height:1.5rem;letter-spacing:.009375rem}.details-card__section-text[_ngcontent-%COMP%]{margin:0;color:#000;font-family:"Source Sans 3",sans-serif;font-size:.875rem;font-weight:400;line-height:1.25rem;letter-spacing:.015625rem}.details-card__section-text--collapsed[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:8;line-clamp:8;-webkit-box-orient:vertical;overflow:hidden}.details-card__section--secondary[_ngcontent-%COMP%]{position:relative}.details-card__section--secondary.details-card__section--collapsed[_ngcontent-%COMP%]:after{content:"";position:absolute;
1left:0;right:0;bottom:0;height:1.0625rem;background:linear-gradient(180deg,#fff0,#fff)}.details-card__section-text--secondary[_ngcontent-%COMP%]{color:#000;white-space:pre-line}.details-card__section-text--topics-collapsed[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.details-card__references[_ngcontent-%COMP%]{display:flex;gap:.3125rem;margin-top:.5rem}.reference-chip[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;border-radius:50%;background:#ece6f0;color:#65558f;font-family:Source Sans Pro,sans-serif;font-size:1rem;font-weight:600;line-height:1.5rem;display:inline-flex;align-items:center;justify-content:center;text-align:center}.show-more-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.125rem;min-width:auto;width:fit-content;padding:0;color:#095b8b;font-family:"Source Sans 3",sans-serif;font-size:1rem;font-weight:400;line-height:1.5rem;letter-spacing:.03125rem;transition:color .18s cubic-bezier(.2,0,0,1)}.show-more-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:1.5rem;width:1.5rem;height:1.5rem}.show-more-button[_ngcontent-%COMP%]:hover, .show-more-button[_ngcontent-%COMP%]:focus-visible{color:#074b74}.show-more-button-row[_ngcontent-%COMP%]{display:flex;align-items:center}.details-card__feedback-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;height:2.125rem}.feedback-button[_ngcontent-%COMP%]{width:2.125rem;height:2.125rem;border:1px solid transparent;border-radius:.625rem;color:#757575;padding:0;display:inline-flex;align-items:center;justify-content:center;transition:background-color .18s cubic-bezier(.2,0,0,1),border-color .18s cubic-bezier(.2,0,0,1),color .18s cubic-bezier(.2,0,0,1)}.feedback-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:1rem;width:1rem;height:1rem;line-height:1rem}.feedback-button[_ngcontent-%COMP%]:hover, .feedback-button[_ngcontent-%COMP%]:focus-visible{background-color:#f6f6f6;border-color:#d8d8d8}.feedback-button--active[_ngcontent-%COMP%]{border-color:#095b8b;background-color:#eef5fa;color:#095b8b}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg);display:block}.copy-label[_ngcontent-%COMP%]{color:#767676;font-family:Source Sans Pro,sans-serif;font-size:1rem;font-weight:400;line-height:normal}.details-card__disclaimer[_ngcontent-%COMP%]{margin:0;color:#000;font-family:"Source Sans 3",sans-serif;font-size:.875rem;font-weight:400;line-height:1.25rem;letter-spacing:.015625rem}.disclaimer-link[_ngcontent-%COMP%]{appearance:none;border:0;background:transparent;padding:0;margin:0;font:inherit;font-family:"Source Sans 3",sans-serif;font-size:.875rem;font-weight:400;line-height:1.25rem;color:#095b8b;text-decoration:underline;cursor:pointer;transition:color .18s cubic-bezier(.2,0,0,1)}.disclaimer-link[_ngcontent-%COMP%]:hover, .disclaimer-link[_ngcontent-%COMP%]:focus-visible{color:#074b74}@media screen and (max-width: 62.5rem){.document-assistant[_ngcontent-%COMP%]{width:100%}.document-assistant__body[_ngcontent-%COMP%]{min-height:auto}.document-assistant__title[_ngcontent-%COMP%]{font-size:1.125rem}.copy-label[_ngcontent-%COMP%]{font-size:1rem}}']})}}return i})(),pG=(()=>{class i{constructor(e){this.sanitizer=e}transform(e){return this.sanitizer.bypassSecurityTrustHtml(e)}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(_a.up,16))}}static{this.\u0275pipe=t.EJ8({name:"sanitizeHtml",type:i,pure:!0})}static{this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();const hG=i=>({position:i}),mG=i=>({"app-page-controls full-record-page-controls":i}),gG=(i,n)=>({"container-background export-block":i,"full-record-page-controls":n}),fG=i=>({"flex-align-center-center":i}),bG=(i,n,e,a)=>[i,!0,n,e,a],vG=i=>({recNumber:i}),xG=(i,n,e)=>[i,n,"title",e],CG=(i,n,e)=>[i,n,"doi",e],RG=i=>["/","author","record",i],yG=i=>["/",i,"general-summary"],TG=(i,n)=>({siloSearchWarning:i,collection:n}),Di=(i,n,e)=>[i,n,"author",e],IG=i=>({count:i}),kG=(i,n,e)=>({from:i,type:n,siloSearchWarning:e}),$i=i=>({num:i}),Yd=(i,n)=>({from:i,type:n}),FG=(i,n)=>["/",i,"cited-references-summary",n];function wG(i,n){1&i&&(t.j41(0,"div",20),t.nrm(1,"app-custom-breadcrumbs",21),t.k0s()),2&i&&(t.R7$(),t.Y8G("separator","keyboard_arrow_right"))}
1function MG(i,n){if(1&i&&t.nrm(0,"app-full-record-links",23),2&i){const e=t.XpG(3);t.Y8G("ut",e.record.ut)("database",e.database)("record",e.record)}}function SG(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,MG,1,3,"app-full-record-links",22),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",e.record)}}function AG(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",30)(1,"div",31),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"p",32),t.EFF(5),t.k0s(),t.j41(6,"button",33),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.displaySnackbar())}),t.j41(7,"span",34),t.nrm(8,"mat-icon",35),t.k0s(),t.j41(9,"span"),t.EFF(10),t.nI1(11,"translate"),t.k0s()()(),t.j41(12,"mat-dialog-actions",36)(13,"button",37),t.nI1(14,"translate"),t.EFF(15),t.nI1(16,"translate"),t.k0s()()}if(2&i){const e=t.XpG(4);t.BMQ("id",e.taPrefix+"citeResourceAs")("data-ta",e.taPrefix+"citeResourceAs"),t.R7$(2),t.SpI(" ",t.bMT(3,10,"citeResourceRecommends"),""),t.R7$(3),t.JRh(null==e.record.item||null==e.record.item.BibliographicData?null:e.record.item.BibliographicData.CiteResourceAs),t.R7$(),t.Y8G("cdkCopyToClipboard",null==e.record||null==e.record.item||null==e.record.item.BibliographicData?null:e.record.item.BibliographicData.CiteResourceAs),t.R7$(4),t.JRh(t.bMT(11,12,"copy")),t.R7$(3),t.FS9("aria-describedby",t.bMT(14,14,"closeDialog")),t.BMQ("id",e.taPrefix+"closeDialog")("data-ta",e.taPrefix+"closeDialog"),t.R7$(2),t.JRh(t.bMT(16,16,"close"))}}function EG(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",28),t.DNE(1,AG,17,18,"ng-template",null,1,t.C5r),t.j41(3,"button",29),t.nI1(4,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.sdS(2),o=t.XpG(3);return t.Njj(o.dialog.open(r,{height:"auto",width:"620px"}))}),t.EFF(5),t.nI1(6,"translate"),t.k0s()()}if(2&i){const e=t.XpG(3);t.R7$(3),t.Y8G("matTooltip",t.bMT(4,4,"citeResourceAsAlt")),t.BMQ("data-ta",e.taPrefix+"citeResourceAs")("id",e.taPrefix+"citeResourceAs"),t.R7$(2),t.SpI(" ",t.bMT(6,6,"citeResource")," ")}}function PG(i,n){if(1&i&&t.nrm(0,"app-full-record-alerting-options",38),2&i){const e=t.XpG(3);t.Y8G("record",e.record)("database",e.database)("sort",e.sort)("doc",e.doc)("qid",e.search.id)}}function GG(i,n){if(1&i&&t.nrm(0,"app-full-record-export-option",39),2&i){const e=t.XpG(3);t.Y8G("database",e.database)("titles",e.record.titles)("collection",e.record.coll)("search",e.search)("ut",e.record.ut)("location","top")}}function DG(i,n){if(1&i&&(t.j41(0,"div",24),t.nI1(1,"async"),t.DNE(2,EG,7,8,"div",25),t.nI1(3,"feature"),t.DNE(4,PG,1,5,"app-full-record-alerting-options",26)(5,GG,1,6,"app-full-record-export-option",27),t.k0s()),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(8,fG,!t.bMT(1,4,e.isMobile$))),t.R7$(2),t.Y8G("ngIf",(null==e.record||null==e.record.item||null==e.record.item.BibliographicData?null:e.record.item.BibliographicData.CiteResourceAs)&&t.bMT(3,6,"nxDciCollectionChanges")&&"DRCI"===e.record.coll),t.R7$(2),t.Y8G("ngIf",e.re
1cord),t.R7$(),t.Y8G("ngIf",e.record)}}function $G(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",15,0),t.nI1(2,"feature"),t.j41(3,"app-page-controls",16),t.nI1(4,"feature"),t.nI1(5,"feature"),t.nI1(6,"async"),t.bIt("currentPageChange",function(r){t.eBV(e);const o=t.XpG();return t.Njj(o.changePage(r))}),t.DNE(7,wG,2,1,"div",17),t.nI1(8,"feature"),t.j41(9,"div",18),t.nI1(10,"feature"),t.nI1(11,"feature"),t.DNE(12,SG,2,1,"div",14),t.nI1(13,"feature"),t.DNE(14,DG,6,10,"div",19),t.k0s()()()}if(2&i){let e;const a=t.XpG();t.AVh("full-record-header-bg",t.bMT(2,14,"enableProQuestFullText")),t.Y8G("ngStyle",t.eq3(30,hG,a.navExpanded?"inherit":"sticky")),t.R7$(3),t.AVh("fr-app-page-controls--redesign",t.bMT(4,16,"enableProQuestFullText")),t.Y8G("ngClass",t.eq3(32,mG,!t.bMT(5,18,"enableProQuestFullText")))("skipID","snNextPageTop")("currentPage","cited_references_with_context"===a.search.mode?1:a.doc)("location","top")("maxPage","cited_references_with_context"===a.search.mode?1:null==(e=t.bMT(6,20,a.hits$))?null:e.available),t.R7$(4),t.Y8G("ngIf",t.bMT(8,22,"enableProQuestFullText")),t.R7$(2),t.Y8G("ngClass",t.l_i(34,gG,t.bMT(10,24,"enableProQuestFullText"),!t.bMT(11,26,"enableProQuestFullText"))),t.R7$(3),t.Y8G("ngIf",!t.bMT(13,28,"enableProQuestFullText")),t.R7$(2),t.Y8G("ngIf",!(null!=a.record&&a.record.reference))}}function LG(i,n){if(1&i){const e=t.RV6();t.j41(0,"div")(1,"mat-slide-toggle",63),t.nI1(2,"async"),t.nI1(3,"async"),t.bIt("change",function(r){t.eBV(e);const o=t.XpG(3);return t.Njj(o.translateTitle(r))}),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}if(2&i){const e=t.XpG(3);t.R7$(),t.Y8G("checked",t.bMT(2,3,e.titleTranslationToggleVal$))("disabled",e.isTranslating&&"PENDING"===t.bMT(3,5,e.titleTranslationStatus$)),t.R7$(3),t.SpI(" ",t.bMT(5,7,"translateTitle")," ")}}
1function NG(i,n){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(5);t.R7$(),t.SpI(" ",t.bMT(2,1,e.record.retractionRetractedType+"Label"),": ")}}function jG(i,n){if(1&i&&(t.nrm(0,"h1",65),t.nI1(1,"async"),t.nI1(2,"encode")),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG().$implicit,s=t.XpG(3);t.Y8G("dir",t.bMT(1,5,s.titleTranslationToggleVal$)&&"ar"===(null==s.search.display||null==s.search.display.params?null:s.search.display.params.translatedLang)&&"ar"===o?"rtl":"ltr")("wosSearchHighlight",t.sMw(9,xG,s.record.ut,s.search.id,t.bMT(2,7,s.getDisplayTitle(a.title)))),t.BMQ("lang",o)("data-ta",s.taPrefix+"fullRecordtitle-"+r)("id",s.taPrefix+"fullRecordtitle-"+r)}}function OG(i,n){if(1&i&&(t.qex(0),t.DNE(1,NG,3,3,"span",14),t.nI1(2,"feature"),t.DNE(3,jG,3,13,"h1",64),t.nI1(4,"async"),t.bVm()),2&i){const e=n.$implicit,a=n.first,r=t.XpG(4);t.R7$(),t.Y8G("ngIf",!t.bMT(2,2,"nxDisableRetraction")&&r.record.retractionRetractedType&&a),t.R7$(2),t.Y8G("ngIf",!(e.smartTranslated&&!t.bMT(4,4,r.titleTranslationToggleVal$)))}}function BG(i,n){if(1&i&&(t.qex(0),t.DNE(1,OG,5,6,"ng-container",51),t.bVm()),2&i){const e=n.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngForOf",a.record.titles.item[e])}}function YG(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-jcr-sidenav",70),t.bIt("navExpanded",function(r){t.eBV(e);const o=t.XpG(4);return t.Njj(o.updateNavStatus(r))}),t.k0s()}if(2&i){const e=t.XpG(4);t.Y8G("database",e.database)("qid",e.search.id)("record",e.record)("SourceTitle",!1)("showIcon",!1)("largeSize",!1)}}function XG(i,n){if(1&i&&(t.j41(0,"span",71),t.EFF(1),t.k0s()),2&i){const e=t.XpG(4);t.R7$(),t.SpI(" Vol.",e.record.pub_info.vol," ")}}function qG(i,n){if(1&i&&(t.j41(0,"span",71),t.EFF(1),t.k0s()),2&i){const e=t.XpG(4);t.R7$(),t.SpI(" Iss ",e.record.pub_info.issue," ")}}function HG(i,n){if(1&i&&(t.j41(0,"span",71),t.EFF(1),t.k0s()),2&i){const e=t.XpG(4);t.R7$(),t.SpI(" (","true"===e.record.pub_info.pubyear_unknown?"Unknown":e.getTitleCardPublicationDate(e.record),") ")}}function VG(i,n){if(1&i&&(t.j41(0,"span",71),t.EFF(1),t.k0s()),2&i){const e=t.XpG(4);t.R7$(),t.SpI(" :",e.record.pub_info.page_no," ")}}function zG(i,n){if(1&i&&(t.j41(0,"span",71),t.EFF(1," DOI: "),t.nrm(2,"span",72),t.k0s()),2&i){const e=t.XpG(4);t.R7$(2),t.Y8G("wosSearchHighlight",t.sMw(1,CG,e.record.ut,e.search.id,e.record.doi))}}function QG(i,n){if(1&i&&(t.j41(0,"div",66),t.DNE(1,YG,1,6,"app-jcr-sidenav",67),t.j41(2,"div",68),t.DNE(3,XG,2,1,"span",69)(4,qG,2,1,"span",69)(5,HG,2,1,"span",69)(6,VG,2,1,"span",69)(7,zG,3,5,"span",69),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.titles?null:e.record.titles.source),t.R7$(2),t.Y8G("ngIf",null==e.record||null==e.record.pub_info?null:e.record.pub_info.vol),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.pub_info?null:e.record.pub_info.issue),t.R7$(),t.Y8G("ngIf",e.getTitleCardPublicationDate(e.record)),t.R7$(),t.Y8G("ngIf",null==e.record||null==e.record.pub_info?null:e.record.pub_info.page_no),t.R7$(),t.Y8G("ngIf",null==e.record?null:e.record.doi)}}
1function UG(i,n){if(1&i&&t.nrm(0,"span",72),2&i){const e=t.XpG(2).$implicit,a=t.XpG(4);t.Y8G("wosSearchHighlight",t.sMw(1,Di,a.record.ut,a.search.id,e.wos_standard))}}function JG(i,n){if(1&i&&t.nrm(0,"span",72),2&i){const e=t.XpG(2).$implicit,a=t.XpG(4);t.Y8G("wosSearchHighlight",t.sMw(1,Di,a.record.ut,a.search.id,e.display_name))}}function WG(i,n){if(1&i&&(t.j41(0,"a",81),t.nI1(1,"translate"),t.nI1(2,"feature"),t.nI1(3,"feature"),t.DNE(4,UG,1,5,"span",82)(5,JG,1,5,"span",82),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(4);t.Y8G("ngClass","section-label-data full-record-detail-section-links full-record-author-links")("matTooltip",t.bMT(1,9,o.getAltText("author"))+" "+a.display_name)("routerLink",a.daisng_id&&o.profileSearchEnabledCollections.includes(o.collection)&&("PPRN"!==o.collection||"PPRN"===o.collection&&a.wos_cc_flag)&&!t.bMT(2,11,"nxDisableProfile")?t.eq3(15,RG,a.daisng_id):t.eq3(17,yG,a.superRecordCollection?a.superRecordCollection:o.database.toLowerCase()))("queryParams",a.daisng_id&&o.profileSearchEnabledCollections.includes(o.collection)&&("PPRN"!==o.collection||"PPRN"===o.collection&&a.wos_cc_flag)&&!t.bMT(3,13,"nxDisableProfile")?void 0:o.getRouterParams("author",a.display_name,a.daisng_id))("state",t.l_i(19,TG,!!a.superRecordCollection,a.superRecordCollection?a.superRecordCollection:o.database.toLowerCase())),t.BMQ("id",o.taPrefix+"TitleCardDisplayName-"+r)("data-ta",o.taPrefix+"TitleCardDisplayName-"+r),t.R7$(4),t.Y8G("ngIf",a.wos_standard),t.R7$(),t.Y8G("ngIf",!a.wos_standard)}}
1function KG(i,n){if(1&i&&(t.nrm(0,"label",83),t.nI1(1,"translate")),2&i){const e=t.XpG().index,a=t.XpG(4);t.Y8G("matTooltip",t.bMT(1,3,a.getAltText("author"))),t.BMQ("id",a.taPrefix+"TitleCardDisplayName-"+e)("data-ta",a.taPrefix+"TitleCardDisplayName-"+e)}}function ZG(i,n){if(1&i&&t.nrm(0,"span",85),2&i){const e=t.XpG(2).$implicit,a=t.XpG(4);t.Y8G("wosSearchHighlight",t.sMw(1,Di,a.record.ut,a.search.id,e.wos_standard))}}function tD(i,n){if(1&i&&t.nrm(0,"span",85),2&i){const e=t.XpG(2).$implicit,a=t.XpG(4);t.Y8G("wosSearchHighlight",t.sMw(1,Di,a.record.ut,a.search.id,e.display_name))}}function eD(i,n){if(1&i&&t.DNE(0,ZG,1,5,"span",84)(1,tD,1,5,"span",84),2&i){const e=t.XpG().$implicit;t.Y8G("ngIf",e.wos_standard),t.R7$(),t.Y8G("ngIf",!e.wos_standard)}}function nD(i,n){if(1&i&&(t.j41(0,"span"),t.EFF(1," ("),t.nrm(2,"span",86),t.EFF(3,") "),t.k0s()),2&i){const e=t.XpG(),a=e.$implicit,r=e.index,o=t.XpG(4);t.BMQ("id",o.taPrefix+"TitleCardAuthStandard-"+r)("data-ta",o.taPrefix+"TitleCardAuthStandard-"+r),t.R7$(2),t.Y8G("ngClass","section-label-data")("wosSearchHighlight",t.sMw(4,Di,o.record.ut,o.search.id,a.display_name))}}function iD(i,n){1&i&&(t.j41(0,"span"),t.EFF(1,", "),t.k0s())}function aD(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",88),t.nI1(1,"translate"),t.bIt("click",function(){const r=t.eBV(e).$implicit,o=t.XpG(6);return t.Njj(o.goToAddress("address_"+r,r))}),t.DNE(2,iD,2,0,"span",14),t.EFF(3),t.k0s()}if(2&i){const e=n.$implicit,a=n.index,r=t.XpG(2).index,o=t.XpG(4);t.Y8G("ngClass","section-label-data full-record-detail-section-links")("matTooltip",t.bMT(1,6,"clickAuthorFocus")+e),t.BMQ("id",o.taPrefix+"TitleCardAddrNbr-"+r+"-"+a)("data-ta",o.taPrefix+"TitleCardAddrNbr-"+r+"-"+a),t.R7$(2),t.Y8G("ngIf",a>0),t.R7$(),t.SpI("[",e,"] ")}}function rD(i,n){if(1&i&&(t.qex(0),t.DNE(1,aD,4,8,"a",87),t.bVm()),2&i){const e=t.XpG().$implicit,a=t.XpG(4);t.R7$(),t.Y8G("ngForOf",e.addr_no.split(" "))("ngForTrackBy",a.trackByFn)}}function oD(i,n){1&i&&(t.j41(0,"span",89),t.EFF(1,";\xa0"),t.k0s())}function sD(i,n){if(1&i&&(t.qex(0),t.j41(1,"span",77),t.DNE(2,WG,6,22,"a",78),t.nI1(3,"feature"),t.DNE(4,KG,2,5,"label",79),t.nI1(5,"feature"),t.DNE(6,eD,2,2,"ng-template",null,4,t.C5r)(8,nD,4,8,"span",14)(9,rD,2,2,"ng-container",14),t.nI1(10,"feature"),t.k0s(),t.DNE(11,oD,2,0,"span",80),t.bVm()),2&i){const e=n.$implicit,a=n.last,r=t.sdS(7),o=t.XpG(4);t.R7$(),t.BMQ("lang",o.getPreferredLang(null==o.record?null:o.record.names)),t.R7$(),t.Y8G("ngIf",o.requiresLink&&("PPRN"!==o.database||"PPRN"===o.database&&e.wos_cc_flag)&&!t.bMT(3,7,"nxPresentationControl_FullRecord_Unlink_AuthorsNames"))("ngIfElse",r),t.R7$(2),t.Y8G("ngIf",t.bMT(5,9,"nxPresentationControl_FullRecord_Unlink_AuthorsNames")),t.R7$(4),t.Y8G("ngIf",e.wos_standard&&e.display_name),t.R7$(),t.Y8G("ngIf",!t.bMT(10,11,"nxPresentationControl_FullRecord_Unlink_AuthorsNames")&&e.addr_no&&(!o.linkReprintOnlyCollections.includes(o.database)||o.linkReprintOnlyCollections.includes(o.database)&&"Y"===e.reprint)),t.R7$(2),t.Y8G("ngIf",!a||o.getPreferredAuthors(null==o.record?null:o.record.names).length>3)}}function lD(i,n){1&i&&(t.j41(0,"span",90),t.EFF(1,"\u2026"),t.k0s())}function cD(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",91),t.nI1(1,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(4);return t.Njj(r.scrollToTitleCardAuthorsSection())}),t.EFF(2," View all authors "),t.k0s()}if(2&i){const e=t.XpG(4);t.Y8G("matTooltip",t.i5U(1,3,"moreAuthorsTip",t.eq3(6,IG,e.getPreferredAuthors(null==e.record?null:e.record.names).length))),t.BMQ("data-ta",e.taPrefix+"deepRTitleCardViewAllAuthors")("id",e.taPrefix+"deepRTitleCardViewAllAuthors")}}function dD(i,n){if(1&i&&(t.j41(0,"div",73),t.DNE(1,sD,12,13,"ng-container",74)(2,lD,2,0,"span",75)(3,cD,3,8,"button",76),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("ngForOf",e.getVisibleTitleCardAuthors(null==e.record?null:e.record.names))("ngForTrackBy",e.trackByFn),t.R7$(),t.Y8G("ngIf",e.getPreferredAuthors(null==e.record?null:e.record.names).length>3),t.R7$(),t.Y8G("ngIf",e.getPreferredAuthors(null==e.record?null:e.record.names).length>3)}}function uD(i,n){if(1&i&&t.nrm(0,"app-full-record-links",23),2&i){const e=t.XpG(3);t.Y8G("ut",e.record.ut)("database",e.database)("record",e.record)}}function _D(i,n){if(1&i&&(t.j41(0,"button",92),t.nI1(1,"translate"),t.EFF(2),t.nI1(3,"dbvaluetranslate"),t.j41(4,"mat-icon",93),t.EFF(5,"content_copy"),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("appClickToCopy",e.getArticleUrl())("message",t.bMT(1,3,"linkCopied")),t.R7$(2),t.JRh(t.i5U(3,5,"articleURLLink",e.search.database))}}function pD(i,n){if(1&i&&(t.j41(0,"button",92),t.nI1(1,"translate"),t.EFF(2),t.nI1(3,"translate"),t.j41(4,"mat-icon",93),t.EFF(5,"content_copy"),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("appClickToCopy",e.record.doi)("message",t.bMT(1,3,"doiCopied")),t.R7$(2),t.JRh(t.bMT(3,5,"DOI"))}}function hD(i,n){if(1&i&&(t.j41(0,"button",92),t.nI1(1,"translate"),t.nI1(2,"translate"),t.EFF(3),t.nI1(4,"translate"),t.j41(5,"mat-icon",93),t.EFF(6,"content_copy"),t.k0s()()),2&i){const e=t.XpG(3);t.Y8G("appClickToCopy",e.record.id.value)("message",t.bMT(1,4,"accessionNumberCopied")),t.BMQ("aria-label",t.bMT(2,6,"copyUt")),t.R7$(3),t.JRh(t.bMT(4,8,"accessionNumber"))}}function mD(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",103),t.nI1(1,"number"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.cacheCitingMetadata())}),t.EFF(3),t.nI1(4,"number"),t.k0s()}if(2&i){const e=t.XpG(2).ngIf,a=t.XpG(4);t.FCK("routerLink","/",(a.record.citation_related.counts[a.bestCitationIndex]?a.bestCitationIndex:a.mostRelevantCitationDb).toLowerCase(),"/citing-summary/",a.record.id.value,""),t.FS9("cdxAnalyticsCategory","wos-citation-network-times-cited-count-link"+a.analyticsEventPostfix),t.Y8G("queryParams",t.sMw(16,kG,a.fromDatabase.toLowerCase(),a.record.id.type,a.database!==a.citationCollection&&"ALLDB"!==a.database))("matTooltip",t.i5U(2,11,"numOfCitations",t.eq3(20,$i,t.bMT(1,9,e)))),t.BMQ("data-ta",a.taPrefix+"TitleCardTimesCitedPrimary")("id",a.taPrefix+"TitleCardTimesCitedPrimary"),t.R7$(3),t.SpI(" ",t.bMT(4,14,e)," ")}}function gD(i,n){if(1&i){const e=t.RV6();t.j41(0,"button",104),t.nI1(1,"number"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.gotoCitationNetwork("citingPatent"))}),t.j41(3,"span",105),t.EFF(4),t.nI1(5,"number"),t.k0s()()}if(2&i){const e=t.XpG(2).ngIf,a=t.XpG(4);t.FS9("cdxAnalyticsCategory","wos-citation-network-times-cited-count-link"+a.analyticsEventPostfix),t.Y8G("matTooltip",t.i5U(2,7,"numOfCitations",t.eq3(12,$i,t.bMT(1,5,e)))),t.BMQ("data-ta",a.taPrefix+"TitleCardTimesCitedPrimary")("id",a.taPrefix+"TitleCardTimesCitedPrimary"),t.R7$(4),t.JRh(t.bMT(5,10,e))}}function fD(i,n){if(1&i&&(t.qex(0),t.DNE(1,mD,5,22,"a",102)(2,gD,6,14,"ng-template",null,8,t.C5r),t.bVm()),2&i){const e=t.sdS(3),a=t.XpG(5);t.R7$(),t.Y8G("ngIf",!a.patentIndexes.includes(a.database))("ngIfElse",e)}}function bD(i,n){if(1&i&&(t.j41(0,"label",106),t.nI1(1,"number"),t.nI1(2,"translate"),t.EFF(3),t.nI1(4,"number"),t.k0s()),2&i){const e=t.XpG().ngIf,a=t.XpG(4);t.Y8G("matTooltip",t.i5U(2,6,"numOfCitations",t.eq3(11,$i,t.bMT(1,4,e)))),t.BMQ("data-ta",a.taPrefix+"TitleCardTimesCitedPrimary")("id",a.taPrefix+"TitleCardTimesCitedPrimary"),t.R7$(3),t.SpI(" ",t.bMT(4,9,e)," ")}}function vD(i,n){if(1&i&&(t.j41(0,"span",107),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const e=t.XpG(5);t.R7$(),t.SpI(" ",t.bMT(2,1,(e.record.citation_related.counts[e.bestCitationIndex]?e.bestCitationIndex:e.mostRelevantCitationDb)+"_name")," ")}}function xD(i,n){if(1&i&&(t.j41(0,"span",107),t.EFF(1),t.nI1(2,"dbvaluetranslate"),t.k0s()),2&i){const e=t.XpG().ngIf,a=t.XpG(4);t.R7$(),t.SpI(" ",t.i5U(2,1,1===e?"citingPreprint":"citingPreprints",a.database)," ")}}function CD(i,n){if(1&i&&(t.j41(0,"div",99),t.DNE(1,fD,4,2,"ng-container",100),t.nI1(2,"feature"),t.nI1(3,"entitlements"),t.DNE(4,bD,5,13,"ng-template",null,6,t.C5r)(6,vD,3,3,"span",101)(7,xD,3,4,"ng-template",null,7,t.C5r),t.k0s()),2&i){const e=t.sdS(5),a=t.sdS(8),r=t.XpG(4);t.R7$(),t.Y8G("ngIf",!t.bMT(2,4,"nxPresentationControl_FullRecord_Hide_CreateCitationAlertLink")&&r.isCitationEntitled&&t.bMT(3,6,r.record.citation_related.counts[r.bestCitationIndex]?r.bestCitationIndex:r.mostRelevantCitationDb))("ngIfElse",e),t.R7$(5),t.Y8G("ngIf",!("PPRN"===r.bestCitationIndex&&r.record.citation_related.counts[r.bestCitationIndex]))("ngIfElse",a)}}function RD(i,n){if(1&i&&(t.j41(0,"div",108)(1,"span",109),t.EFF(2,"0"),t.k0s(),t.j41(3,"span",107),t.EFF(4),t.nI1(5,"dbvaluetranslate"),t.k0s()()),2&i){const e=t.XpG(4);t.R7$(4),t.JRh(t.i5U(5,1,"citationsLabelPlural",e.citationCollection))}}function yD(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",112),t.bIt("click",function(){t.eBV(e);const r=t.XpG(5);return t.Njj(r.cacheCitingMetadata())}),t.EFF(1),t.nI1(2,"number"),t.k0s()}if(2&i){const e=t.XpG().ngIf,a=t.XpG(4);t.Mz_("routerLink","/alldb/citing-summary/",a.record.id.value,""),t.FS9("cdxAnalyticsCategory","wos-citation-network-times-cited-count-link"+a.analyticsEventPostfix),t.Y8G("queryParams",t.l_i(10,Yd,a.fromDatabase.toLowerCase(),a.record.id.type))("matTooltip",a.timesCitedTooltip()),t.BMQ("data-ta",a.taPrefix+"TitleCardTimesCitedAllDb")("id",a.taPrefix+"TitleCardTimesCitedAllDb"),t.R7$(),t.SpI(" ",t.bMT(2,8,e)," ")}}function TD(i,n){if(1&i&&(t.j41(0,"label",106),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&i){const e=t.XpG(2).ngIf,a=t.XpG(4);t.Y8G("matTooltip",a.timesCitedTooltip()),t.BMQ("data-ta",a.taPrefix+"TitleCardTimesCitedAllDb")("id",a.taPrefix+"TitleCardTimesCitedAllDb"),t.R7$(),t.SpI(" ",t.bMT(2,4,e)," ")}}function ID(i,n){if(1&i&&(t.DNE(0,TD,3,6,"label",113),t.nI1(1,"entitlements")),2&i){const e=t.XpG().ngIf;t.Y8G("ngIf",e>
10&&t.bMT(1,1,"ALLDB"))}}function kD(i,n){1&i&&(t.j41(0,"span",107),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"ALLDB_name")," "))}function FD(i,n){if(1&i&&(t.j41(0,"div",108),t.DNE(1,yD,3,13,"a",110),t.nI1(2,"entitlements"),t.DNE(3,ID,2,3,"ng-template",null,9,t.C5r)(5,kD,3,3,"span",111),t.nI1(6,"entitlements"),t.k0s()),2&i){const e=n.ngIf,a=t.sdS(4),r=t.XpG(4);t.R7$(),t.Y8G("ngIf",e>0&&r.isCitationEntitled&&t.bMT(2,3,"ALLDB"))("ngIfElse",a),t.R7$(4),t.Y8G("ngIf",e>0&&t.bMT(6,5,"ALLDB"))}}function wD(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",118),t.bIt("click",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.goToMiniCitedReference())}),t.EFF(1),t.k0s()}if(2&i){const e=t.XpG(6);t.FS9("cdxAnalyticsCategory","wos-citation-network-cited-reference-count-link"+e.analyticsEventPostfix),t.Y8G("matTooltip",e.refCountTooltip()),t.BMQ("data-ta",e.taPrefix+"TitleCardCitedReferences")("id",e.taPrefix+"TitleCardCitedReferences"),t.R7$(),t.SpI(" ",e.refCount," ")}}function MD(i,n){if(1&i){const e=t.RV6();t.j41(0,"a",119),t.nI1(1,"number"),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const r=t.XpG(6);return t.Njj(r.cacheCitingMetadata(r.referencesDatabase,r.refUt))}),t.EFF(3),t.k0s()}if(2&i){const e=t.XpG(6);t.FS9("cdxAnalyticsCategory","wos-citation-network-cited-reference-count-link"+e.analyticsEventPostfix),t.Y8G("routerLink",t.l_i(12,FG,e.referencesDatabase.toLowerCase(),e.refUt))("queryParams",t.l_i(15,Yd,e.referencesDatabase.toLowerCase(),e.record.id.type))("matTooltip",t.i5U(2,9,"numOfReferencesIs",t.eq3(18,$i,t.bMT(1,7,e.record.ref_count)))),t.BMQ("data-ta",e.taPrefix+"TitleCardCitedReferences")("id",e.taPrefix+"TitleCardCitedReferences"),t.R7$(3),t.SpI(" ",e.record.ref_count," ")}}function SD(i,n){if(1&i&&(t.qex(0),t.DNE(1,wD,2,5,"a",116)(2,MD,4,20,"a",117),t.bVm()),2&i){const e=t.XpG(5);t.R7$(),t.Y8G("ngIf",e.refCount),t.R7$(),t.Y8G("ngIf",!e.refCount&&e.refUt&&!e.record.reference&&e.record.ref_count>0)}}function AD(i,n){if(1&i&&(t.j41(0,"label",121),t.nI1(1,"number"),t.nI1(2,"translate"),t.EFF(3),t.k0s()),2&i){const e=t.XpG(6);t.Y8G("matTooltip",t.i5U(2,6,"numReferences",t.eq3(9,$i,t.bMT(1,4,e.record.ref_count)))),t.BMQ("data-ta",e.taPrefix+"TitleCardCitedReferences")("id",e.taPrefix+"TitleCardCitedReferences"),t.R7$(3),t.SpI(" ",e.record.ref_count," ")}}function ED(i,n){if(1&i&&t.DNE(0,AD,4,11,"label",120),2&i){const e=t.XpG(5);
1t.Y8G("ngIf",e.record.ref_count>0)}}function PD(i,n){1&i&&(t.j41(0,"span",109),t.EFF(1," 0 "),t.k0s())}function GD(i,n){if(1&i&&(t.j41(0,"div",114),t.DNE(1,SD,3,2,"ng-container",100),t.nI1(2,"feature"),t.DNE(3,ED,1,1,"ng-template",null,10,t.C5r)(5,PD,2,0,"span",115),t.j41(6,"span",107),t.EFF(7),t.nI1(8,"translate"),t.k0s()()),2&i){const e=t.sdS(4),a=t.XpG(4);t.R7$(),t.Y8G("ngIf",!t.bMT(2,6,"nxPresentationControl_FullRecordRightPanel_Disable_CitedReferencesLink"))("ngIfElse",e),t.R7$(4),t.Y8G("ngIf",!(a.refCount||a.refUt&&(a.record.reference||a.record.ref_count))),t.R7$(),t.BMQ("data-ta",a.taPrefix+"TitleCardCitedReferencesLabel")("id",a.taPrefix+"TitleCardCitedReferencesLabel"),t.R7$(),t.SpI(" ",t.bMT(8,8,1===a.record.ref_count?"citedReferencesSingular":"citedReferences")," ")}}function DD(i,n){if(1&i&&(t.j41(0,"div",94)(1,"h2",95),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,CD,9,8,"div",96)(5,RD,6,4,"ng-template",null,5,t.C5r)(7,FD,7,7,"div",97)(8,GD,9,10,"div",98),t.k0s()),2&i){const e=t.sdS(6),a=t.XpG(3);t.R7$(),t.BMQ("data-ta",a.taPrefix+"TitleCardTimesCitedHeading")("id",a.taPrefix+"TitleCardTimesCitedHeading"),t.R7$(),t.SpI(" ",t.bMT(3,7,"timesCited")," "),t.R7$(2),t.Y8G("ngIf",a.record.citation_related.counts[a.bestCitationIndex]?a.record.citation_related.counts[a.bestCitationIndex]:a.record.citation_related.counts[a.mostRelevantCitationDb])("ngIfElse",e),t.R7$(3),t.Y8G("ngIf",null==a.record.citation_related.counts?null:a.record.citation_related.counts.ALLDB),t.R7$(),t.Y8G("ngIf",a.showCitedReferences)}}function $D(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",48)(1,"div",49)(2,"div",50),t.DNE(3,LG,6,9,"div",14)(4,BG,2,1,"ng-container",51),t.nI1(5,"async"),t.nI1(6,"languagesPipe"),t.DNE(7,QG,8,6,"div",52)(8,dD,4,4,"div",53),t.j41(9,"div",54),t.DNE(10,uD,1,3,"app-full-record-links",22),t.j41(11,"mat-menu",55,2)(13,"div",56)(14,"div",57),t.EFF(15),t.nI1(16,"translate"),t.k0s(),t.DNE(17,_D,6,8,"button",58)(18,pD,6,7,"button",58)(19,hD,7,10,"button",58),t.k0s()(),t.j41(20,"button",59,3),t.nI1(22,"translate"),t.bIt("menuOpened",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.isMenuOpen=!0)})("menuClosed",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.isMenuOpen=!1)}),t.j41(23,"span",60),t.EFF(24,"More"),t.k0s(),t.j41(25,"mat-icon",61),t.EFF(26),t.k0s()()()(),t.DNE(27,DD,9,9,"div",62),t.k0s()()}if(2&i){const e=t.sdS(12),a=t.XpG(2);t.R7$(3),t.Y8G("ngIf","general_semantic"===(null==a.search?null:a.search.mode)&&"nlp"===(null==a.search||null==a.search.display?null:a.search.display.key)&&(null==a.search||null==a.search.display||null==a.search.display.params?null:a.search.display.params.translatedLang)),t.R7$(),t.Y8G("ngForOf",t.iJd(6,16,t.ziG(27,bG,a.record.titles.item,a.database,a.originalLang,t.bMT(5,14,a.titleTranslationToggleVal$)?null==a.search.display||null==a.search.display.params?null:a.search.display.params.translatedLang:null))),t.R7$(3),t.Y8G("ngIf",(null==a.record||null==a.record.titles?null:a.record.titles.source)||(null==a.record||null==a.record.pub_info?null:a.record.pub_info.vol)||(null==a.record||null==a.record.pub_info?null:a.record.pub_info.issue)||a.getTitleCardPublicationDate(a.record)||(null==a.record||null==a.record.pub_info?null:a.record.pub_info.page_no)||(null==a.record?null:a.record.doi)),t.R7$(),t.Y8G("ngIf",a.getVisibleTitleCardAuthors(null==a.record?null:a.record.names).length>0),t.R7$(2),t.Y8G("ngIf",a.record),t.R7$(5),t.JRh(t.bMT(16,22,"copy_option")),t.R7$(2),t.Y8G("ngIf","colluid"===a.record.id.type),t.R7$(),t.Y8G("ngIf",a.record.doi),t.R7$(),t.Y8G("ngIf","colluid"===a.record.id.type),t.R7$(),t.Y8G("matMenuTriggerFor",e),t.BMQ("aria-expanded",a.isMenuOpen)("aria-label",t.i5U(22,24,a.optionsForRecNumArialLabel,t.eq3(32,vG,a.articleTitle))),t.R7$(6),t.JRh(a.isMenuOpen?"arrow_drop_up":"arrow_drop_down"),t.R7$(),t.Y8G("ngIf",null==a.record?null:a.record.citation_related)}}function LD(i,n){1&i&&t.nrm(0,"mat-tab",130)}function ND(i,n){1&i&&t.nrm(0,"mat-tab",131)}function jD(i,n){if(1&i){const e=t.RV6();t.j41(0,"mat-tab-group",126),t.mxI("selectedIndexChange",function(r){t.eBV(e);const o=t.XpG(3);return t.DH7(o.selectedIndex,r)||(o.selectedIndex=r),t.Njj(r)}),t.bIt("selectedIndexChange",function(r){t.eBV(e);const o=t.XpG(3);return t.Njj(o.onTabChange(r))}),t.nrm(1,"mat-tab",127),t.DNE(2,LD,1,0,"mat-tab",128)(3,ND,1,0,"mat-tab",129),t.k0s()}if(2&i){const e=t.XpG(3);t.R50("selectedIndex",e.selectedIndex),t.R7$(2),t.Y8G("ngIf",e.subviewList.includes("ProQuest_ASCII")),t.R7$(),t.Y8G("ngIf",e.subviewList.includes("ProQuest_PDF"))}}function OD(i,n){if(1&i&&t.nrm(0,"app-full-record-document-assistant",133),2&i){const e=t.XpG(5);t.Y8G("record",e.record)("environment",e.environmentId)("goId",e.goId)("pqAiFtUrl",e.pqAiFtUrl)("proQuestHtmlContent",e.proQuestHtmlContent)}}function BD(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,OD,1,5,"app-full-record-document-assistant",132),t.nI1(2,"feature"),t.k0s()),2&i){const e=t.XpG(4);t.R7$(),t.Y8G("ngIf",!e.record.reference&&t.bMT(2,1,"enableProQuestFullText"))}}function YD(i,n){1&i&&(t.DNE(0,BD,3,3,"div",14),t.nI1(1,"feature")),2&i&&t.Y8G("ngIf",t.bMT(1,1,"enableProQuestFullText"))}function XD(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-full-record-right-panel",138),t.nI1(1,"async"),t.bIt("navExpanded",function(r){t.eBV(e);const o=t.XpG(4);return t.Njj(o.updateNavStatus(r))}),t.k0s()}if(2&i){const e=t.XpG(4);t.Y8G("database",e.database)("record",e.record)("info",t.bMT(1,6,e.recordInfo$))("qid",e.search.id)("sort",e.sort)("doc",e.doc)}}function qD(i,n){if(1&i){const e=t.RV6();t.j41(0,"div",134)(1,"div")(2,"app-full-record",135),t.bIt("navExpanded",function(r){t.eBV(e);const o=t.XpG(3);return t.Njj(o.updateNavStatus(r))})("ecrActivatedChange",function(r){t.eBV(e);const o=t.XpG(3);return t.Njj(o.onEcrActivatedChange(r))})("viewSubviewRequested",function(r){t.eBV(e);const o=t.XpG(3);return t.Njj(o.getFullText(r))}),t.k0s(),t.nrm(3,"app-full-record-patent-family",136),t.k0s(),t.j41(4,"div"),t.DNE(5,XD,2,8,"app-full-record-right-panel",137),t.nI1(6,"feature"),t.k0s()()}if(2&i){const e=t.XpG(3);t.R7$(2),t.Y8G("loadDateCriteria","load"===(null==e.search.timespan?null:e.search.timespan.using))("search",e.search)("database",e.database)("record",e.record)("sort",e.sort)("doc",e.doc)("qid",e.search.id),t.R7$(),t.Y8G("showDownloadColumns","ALLDB"!==e.database)("database",e.database)("record",e.record),t.R7$(2),t.Y8G("ngIf",!e.record.reference&&t.bMT(6,11,"enableProQuestFullText"))}}function HD(i,n){1&i&&(t.j41(0,"div",143),t.EFF(1," Loading full text... "),t.k0s())}function VD(i,n){if(1&i&&(t.j41(0,"div",144),t.EFF(1),t.k0s()),2&i){const e=t.XpG(4);t.R7$(),t.SpI(" ",e.asciiTextError," ")}}function zD(i,n){if(1&i&&(t.nrm(0,"div",145),t.nI1(1,"sanitizeHtml")),2&i){const e=t.XpG(4);t.Y8G("innerHTML",t.bMT(1,1,e.proQuestHtmlContent),t.npT)}}function QD(i,n){1&i&&t.eu8(0)}function UD(i,n){if(1&i&&(t.j41(0,"div",134)(1,"div"),t.DNE(2,HD,2,0,"div",139)(3,VD,2,1,"div",140)(4,zD,2,3,"div",141),t.k0s(),t.DNE(5,QD,1,0,"ng-container",142),t.k0s()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(2);t.R7$(2),t.Y8G("ngIf",a.asciiTextLoading),t.R7$(),t.Y8G("ngIf",a.asciiTextError),t.R7$(),t.Y8G("ngIf",!a.asciiTextLoading&&!a.asciiTextError),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function JD(i,n){if(1&i&&(t.j41(0,"div",148),t.EFF(1),t.k0s()),2&i){const e=t.XpG(4);t.R7$(),t.SpI(" ",e.pdfLoadingError," ")}}function WD(i,n){if(1&i&&t.nrm(0,"app-pdf-viewer",149),2&i){const e=t.XpG(4);t.Y8G("pdfUrl",e.pdfData.url)}}function KD(i,n){1&i&&t.eu8(0)}function ZD(i,n){if(1&i&&(t.j41(0,"div",134)(1,"div"),t.DNE(2,JD,2,1,"div",146)(3,WD,1,1,"app-pdf-viewer",147),t.k0s(),t.DNE(4,KD,1,0,"ng-container",142),t.k0s()),2&i){t.XpG();const e=t.sdS(3),a=t.XpG(2);t.R7$(2),t.Y8G("ngIf",a.pdfLoadingError),t.R7$(),t.Y8G("ngIf",!a.pdfLoadingError&&(null==a.pdfData?null:a.pdfData.url)),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}
1function t$(i,n){if(1&i&&(t.j41(0,"div",122),t.DNE(1,jD,4,3,"mat-tab-group",123)(2,YD,2,3,"ng-template",null,11,t.C5r),t.qex(4,124),t.DNE(5,qD,7,13,"div",125)(6,UD,6,4,"div",125)(7,ZD,5,3,"div",125),t.bVm(),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",e.subviewList.length>1),t.R7$(3),t.Y8G("ngSwitch",e.subviewList[e.selectedIndex]),t.R7$(),t.Y8G("ngSwitchCase","wosFullRecord"),t.R7$(),t.Y8G("ngSwitchCase","ProQuest_ASCII"),t.R7$(),t.Y8G("ngSwitchCase","ProQuest_PDF")}}function e$(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-full-record",135),t.bIt("navExpanded",function(r){t.eBV(e);const o=t.XpG(2);return t.Njj(o.updateNavStatus(r))})("ecrActivatedChange",function(r){t.eBV(e);const o=t.XpG(2);return t.Njj(o.onEcrActivatedChange(r))})("viewSubviewRequested",function(r){t.eBV(e);const o=t.XpG(2);return t.Njj(o.getFullText(r))}),t.k0s()}if(2&i){const e=t.XpG(2);t.Y8G("loadDateCriteria","load"===(null==e.search.timespan?null:e.search.timespan.using))("search",e.search)("database",e.database)("record",e.record)("sort",e.sort)("doc",e.doc)("qid",e.search.id)}}function n$(i,n){if(1&i&&t.nrm(0,"app-full-record-patent-family",136),2&i){const e=t.XpG(2);t.Y8G("showDownloadColumns","ALLDB"!==e.database)("database",e.database)("record",e.record)}}function i$(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-full-record-right-panel",138),t.nI1(1,"async"),t.bIt("navExpanded",function(r){t.eBV(e);const o=t.XpG(3);return t.Njj(o.updateNavStatus(r))}),t.k0s()}if(2&i){const e=t.XpG(3);t.Y8G("database",e.database)("record",e.record)("info",t.bMT(1,6,e.recordInfo$))("qid",e.search.id)("sort",e.sort)("doc",e.doc)}}function a$(i,n){if(1&i&&(t.j41(0,"div"),t.DNE(1,i$,2,8,"app-full-record-right-panel",137),t.nI1(2,"feature"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",!(e.record.reference||t.bMT(2,1,"enableProQuestFullText")&&e.subview&&e.ProQuestFulltextTypes.includes(e.subview)))}}function r$(i,n){if(1&i&&t.nrm(0,"app-full-record-export-option",150),2&i){const e=t.XpG(2);t.Y8G("database",e.database)("titles",e.record.titles)("ut",e.record.ut)("search",e.search)("location","bottom")}}function o$(i,n){if(1&i&&t.nrm(0,"app-full-record-citation-network",155),2&i){const e=t.XpG(2).ngIf,a=t.XpG(2);t.Y8G("record",a.record)("info",e)("qid",a.search.id)}}function s$(i,n){if(1&i&&(t.qex(0),t.DNE(1,o$,1,3,"app-full-record-citation-network",154),t.bVm()),2&i){const e=t.XpG().ngIf,a=t.XpG(2);t.R7$(),t.Y8G("ngIf",a.record.cited_details||e.citingPatent&&!e.citingPatent.empty)}}function l$(i,n){if(1&i){const e=t.RV6();t.j41(0,"app-full-record-mini-crl",156),t.bIt("navExpanded",function(r){t.eBV(e);const o=t.XpG(3);return t.Njj(o.updateNavStatus(r))}),t.k0s()}if(2&i){const e=t.XpG().ngIf,a=t.XpG(2);t.Y8G("searchInfo",e.citedRefsWithContext||e.citedRefs)("database",a.database)("ut",a.record.ut)("doi",a.record.doi)("ecrActivated",a.ecrActivated)}}function c$(i,n){if(1&i&&t.nrm(0,"app-full-record-grants-to-woscc-list",157),2&i){const e=t.XpG().ngIf,a=t.XpG(2);t.Y8G("searchInfo",e.grantsToWosRecords)("database","WOSCC")("ut",a.record.ut)("doi",a.record.doi)}}function d$(i,n){if(1&i&&(t.j41(0,"div",158),t.nrm(1,"app-full-record-unspecified-refs",159),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("record",e.record)}}function u$(i,n){if(1&i&&(t.qex(0),t.DNE(1,s$,2,1,"ng-container",14)(2,l$,1,5,"app-full-record-mini-crl",151),t.nI1(3,"feature"),t.DNE(4,c$,1,4,"app-full-record-grants-to-woscc-list",152)(5,d$,2,1,"div",153),t.nI1(6,"feature"),t.nrm(7,"div"),t.bVm()),2&i){const e=n.ngIf,a=t.XpG(2);t.R7$(),t.Y8G("ngIf","ALLDB"!==a.database),t.R7$(),t.Y8G("ngIf",(e.citedRefs||e.citedRefsWithContext)&&!a.ProQuestFulltextTypes.includes(a.subview)&&!t.bMT(3,5,"nxPresentationControlFullRecordHideCitedReferences")),t.R7$(2),t.Y8G("ngIf",e.grantsToWosRecords),t.R7$(),t.Y8G("ngIf",(null==a.record.item||null==a.record.item.unspecified_refs?null:a.record.item.unspecified_refs.length)>0&&t.bMT(6,7,"WOSAR-6317-Blurb-citation")),t.R7$(2),t.BMQ("id","snCitedBottom"+(a.record.cited_details||null==e.citingPatent||!e.citingPatent.empty?"-network":""))}}function _$(i,n){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"div",40),t.nI1(2,"async"),t.nI1(3,"feature"),t.DNE(4,$D,28,34,"div",41),t.nI1(5,"feature"),t.DNE(6,t$,8,5,"div",42),t.nI1(7,"feature"),t.j41(8,"div"),t.DNE(9,e$,1,7,"app-full-record",43),t.nI1(10,"feature"),t.DNE(11,n$,1,3,"app-full-record-patent-family",44),t.nI1(12,"feature"),t.k0s(),t.DNE(13,a$,3,3,"div",14),t.nI1(14,"feature"),t.k0s(),t.j41(15,"div",45)(16,"app-page-control
1s",46),t.nI1(17,"async"),t.bIt("currentPageChange",function(r){t.eBV(e);const o=t.XpG();return t.Njj(o.changePage(r))}),t.DNE(18,r$,1,5,"app-full-record-export-option",47),t.k0s()(),t.DNE(19,u$,8,9,"ng-container",14),t.nI1(20,"async"),t.bVm()}if(2&i){let e;const a=t.XpG();t.R7$(),t.Y8G("ngClass",t.bMT(2,12,a.isMobile$)?"top-section-mobile":t.bMT(3,14,"enableProQuestFullText")?"":"top-section"),t.R7$(3),t.Y8G("ngIf",t.bMT(5,16,"enableProQuestFullText")&&(null==a.record||null==a.record.titles?null:a.record.titles.item)),t.R7$(2),t.Y8G("ngIf",t.bMT(7,18,"enableProQuestFullText")),t.R7$(3),t.Y8G("ngIf",!t.bMT(10,20,"enableProQuestFullText")),t.R7$(2),t.Y8G("ngIf",!t.bMT(12,22,"enableProQuestFullText")),t.R7$(2),t.Y8G("ngIf",!t.bMT(14,24,"enableProQuestFullText")),t.R7$(3),t.Y8G("currentPage",a.doc)("location","bottom")("skipID","snNextPageBottom")("maxPage",null==(e=t.bMT(17,26,a.hits$))?null:e.available),t.R7$(2),t.Y8G("ngIf",a.record),t.R7$(),t.Y8G("ngIf",t.bMT(20,28,a.recordInfo$))}}let Xd=(()=>{class i extends Wd.b{constructor(e,a,r,o,s,l,c,d,u,_,h,g,b,v,R,C,k,F,w,M){super(e,a,r,o),this.store=a,this.router=s,this.titleService=l,this.kopernio=c,this.viewPortScroller=d,this.breadcrumbService=u,this.eventService=_,this.w=h,this.storage=g,this.dialog=b,this.config=v,this.render=R,this.snackBar=C,this.exportService=k,this.locale=F,this.proQuestFullText=w,this.proQuestMath=M,this.liveAnnouncer=(0,t.WQX)(Va.Ai),this.isMobile$=K.Y.isMobile$,this.taPrefix="FullRHomeTa-",this.ecrActivated=!1,this.subviewList=[],this.selectedIndex=0,this.pubDateIgnoreList=this.config.getSettings().app.fullRecord.pubDateIgnoreList,this.dsiplayPubyear4PubdateCollections=this.config.getSettings().app.fullRecord.dsiplayPubyear4PubdateCollections,this.sourceLangSortDBs=this.config.getSettings().app.summary.sourceLangSortDBs,this.isTranslating=!0,this.isMenuOpen=!1,this.requiresLink=!0,this.linkReprintOnlyCollections=this.config.getSettings().app.fullRecord.linkReprintOnlyCollections,this.profileSearchEnabledCollections=this.config.getSettings().app.profileSearchEnabledCollections,this.addressesToShow=this.config.getSettings().app.fullRecord.authorAddressCount,this.environmentId=this.config.getSettings().environment.environmentId,this.patentIndexes=this.config.getSettings().app.summary.patentIndexes,this.refCount=null,this.refQid=null,this.hideReferencesCollections=this.config.getSettings().app.fullRecord.hideReferencesCollections,this.analyticsEventPostfix=this.config.getSettings().app.fullRecord.analyticsEventPostfix,this.ProQuestFulltextTypes=this.config.getSettings().app.fullRecord.ProQuestFulltextTypes,this.enableProQuestFullText=!1,this.pdfData=null,this.pdfLoadingError=null,this.asciiTextLoading=!1,this.asciiTextError=null,this.isAsciiGenerating=!1,this.PROQUEST_ASCII_URL="https://api-2026-8-0.pre.int.proquest.com/api/asciiFullText/t0GvQ$2b3LQ8Ci67ibQ7$2bSwQ$3d$3d?pq-origsite=wos&userAccountId=173730",this.proQuestAsciiFullText=null,this.proQuestHtmlContent=null,this.previousRecordUt=null,this.shouldAnnouncePageLoad=!1,this.recordLoadedForAnnouncement=!1,this.recordInfoLoadedForAnnouncement=!1,this.pqAiFtUrl=null,this.goId=null,this.lastUt=null,this.titleCardDestroyed$=new za.B,this.store.select(B.l1,{prop:"enableProQuestFullText"}).pipe((0,ge.s)(1)).subscribe(E=>{this.enableProQuestFullText=!!E})}ngAfterViewInit(){this.route.fragment.subscribe(e=>{e&&setTimeout(()=>{const a=document.getElementById(e);a&&a.scrollIntoView({behavior:"smooth"})},1e3)})}ngOnChanges(){this.shouldAnnouncePageLoad=!0,this.recordLoadedForAnnouncement=!1,this.recordInfoLoadedForAnnouncement=!1,this.hits$=this.store.select(B.j,{search:this.search}),this.hits$.subscribe(e=>{void 0===e&&(this.hits$=(0,ts.of)(this.storage.get(`search_hits_${this.search.id}`)))}).unsubscribe(),this.recordInfo$=this.store.select(B.ps,{queryId:this.search.id,sort:this.sort,doc:this.doc}),this.recordInfo$.pipe((0,Ee.Q)(this.titleCardDestroyed$)).subscribe(e=>{this.setTitleCardRefCount(e),void 0!==e&&(this.recordInfoLoadedForAnnouncement=!0,this.announcePageLoadIfReady())}),this.getFromStore()}changePage(e){this.paginated=!0,"id"===this.mode?(this.store.dispatch(new Qa.IY({search:this.search,sort:this.sort,page:Math.ceil(e/50),size:50})),this.store.select(B.fW,{qid:this.search.id,sort:this.sort,docNum:e}).pipe((0,Ft.p)(a=>!!a),(0,ge.s)(1),(0,Ee.Q)(this.router.events)).subscribe(a=>{const r="colluid"===a.id.type?void 0:a.id.type,o={qid:this.search.id,sort:this.sort,doc:e};return this.router.navigate(["/",this.database.toLowerCase(),"full-record",a.id.value],{queryParams:{type:r},state:o})})):this.router.navigate([this.database.toLowerCase(),"full-record",this.search.id,this.sort,e])}routerGoToUrl(e){return this.router.navigateByUrl(e)}getFromStore(){this.store.dispatch(new B.IV.jb({database:this.database,queryId:this.search.id,sort:this.sort,doc:this.doc,id:this.id,from:this.from,paginated:this.paginated})),this.recordSub&&this.recordSub.unsubscribe(),this.recordSub=this.store.select(B.fW,{search:this.search,sort:this.sort,docNum:this.doc,from:this.from}).pipe((0,Ft.p)(e=>!!e),(0,Zo.M)(e=>this.checkForSendEvent(e))).subscribe(e=>{const a=e.ut;a!==this.previousRecordUt&&(this.pdfData=null,this.pdfLoadingError=null,this.asciiTextError=null,this.asciiTextLoading=!1,this.proQuestAsciiFullText=null,this.proQuestHtmlContent=null,this.previousRecordUt=a),this.record=e,this.recordLoadedForAnnouncement=!0,this.announcePageLoadIfReady(),this.titleTranslationToggleVal$=this.store.select(B.v3({qid:this.search.id})),this.titleTranslationStatus$=this.store.select(B.Xq({qid:this.search.id})),this.originalLang=this.sourceLangSortDBs.includes(this.database)?K.Y.getOriginalLanguages(this.record.titles?.item):void 0,this.setCollectionFromUt(this.record.ut),this.setTitleCardCitationContext(this.record),this.kopernio.submitFullRecord(this.record);const r=this.record.ut||this.record.docid,o=this.translate.instant(this.database+"_name");if(this.record.titles?.item?.en){const s=this.record.titles.item.en[0].title.replace(/(<([^>]+)>)/gi,"");this.titleService.setTitle(s+"-"+o),this.breadcrumbService.setFullRecordLabel(r,s)}else if(this.record.titles?.item){const l=Object.values(this.record.titles.item)[0][0].title.replace(/(<([^>]+)>)/gi,"");this.titleService.setTitle(l+"-"+o),this.breadcrumbService.setFullRecordLabel(r,l)}else this.titleService.setTitle(o),this.breadcrumbService.setFullRecordLabel(r,r);this.viewPortScroller.scrollToPosition([0,0]),this.w.nativeDocument.getElementsByTagName("header")[0].focus(),this.getProQuestFulltextLinks(),this.change.detectChanges()})}
1getProQuestFulltextLinks(){this.lastUt!==this.record.ut&&this.enableProQuestFullText&&(this.subviewList=["wosFullRecord"],this.subview="wosFullRecord",this.selectedIndex=0,this.proQuestAsciiFullText=null,this.proQuestHtmlContent=null,this.asciiTextError=null,this.asciiTextLoading=!1,this.pqAiFtUrl=null,this.goId=null,this.linksSub&&this.linksSub.unsubscribe(),this.linksSub=this.store.select(B.GZ,{db:this.database,ut:this.record?.ut})?.pipe((0,Ft.p)(e=>!!e)).subscribe(e=>{this.lastUt=this.record.ut;const a=Array.isArray(e)?e:[];this.ProQuestFulltextLinks=a.filter(r=>this.ProQuestFulltextTypes.includes(r.publisher_id)).map(r=>({...r,publisher_url:K.Y.rewriteUrlForProxy(this.config,r.publisher_url),pqAiFtUrl:r.pqAiFtUrl?K.Y.rewriteUrlForProxy(this.config,r.pqAiFtUrl):null})),console.log("getProQuestFulltextLinks",this.ProQuestFulltextLinks),this.ProQuestFulltextLinks.length>0&&(this.pqAiFtUrl=this.ProQuestFulltextLinks[0].pqAiFtUrl,this.goId=this.ProQuestFulltextLinks[0].goId,this.ProQuestFulltextLinks.forEach(r=>{this.subviewList.includes(r.publisher_id)||this.subviewList.push(r.publisher_id)}),console.log("subviewList",this.subviewList))}))}announcePageLoadIfReady(){!this.shouldAnnouncePageLoad||!this.recordLoadedForAnnouncement||!this.recordInfoLoadedForAnnouncement||(this.shouldAnnouncePageLoad=!1,this.liveAnnouncer.announce(this.translate.instant("articlePageLoaded")))}getArticleUrl(){const e="ALLDB"===this.search.database?"alldb":this.fromDatabase?.toLowerCase();return`${this.config.getSettings().environment.nxUrl}/wos/${e}/full-record/${this.record.id.value}`}onTabChange(e){this.subview=this.subviewList[e],this.ProQuestFulltextTypes.includes(this.subview)&&this.getFullText(this.subview)}checkForSendEvent(e){e?.ut&&e.ut!==this.record?.ut&&("ra"===this.source?this.eventService.clickFullRecordOnRA(e.ut,this.search.database):this.eventService.fullRecordLoaded(this.search.database,e.ut))}updateNavStatus(e){this.navExpanded=e}onEcrActivatedChange(e){this.ecrActivated=e}getDisplayTitle(e){return K.Y.normalizeTitleForDisplay(e)}translateTitle(e){const a=e.checked?this.search.display?.params?.translatedLang:"en",r="en"===a?[]:K.Y.createTitleTranslationRequest(Array.of(this.record),a,null,this.doc);this.store.dispatch(new B.IV.gC({qid:this.search.id,sort:this.sort,language:a,requestType:Tn.Zg.TITLES,requestItems:r})),this.change.detectChanges()}getTitleCardPublicationDate(e){const a=e?.pub_info?.pubdate;return a&&a.length>0&&!this.pubDateIgnoreList.includes(a.toLowerCase())?this.dsiplayPubyear4PubdateCollections?.includes(e.coll)&&e.pub_info?.pubyear?e.pub_info.pubyear:a:e?.pub_info?.early_access_date||""}getPreferredAuthors(e){const a=e?.author;if(!a)return[];const r=s=>(s||[]).filter(l=>!!l);if(a.en?.length)return r(a.en);const o=Object.keys(a);return o.length>0?r(a[o[0]]):[]}getVisibleTitleCardAuthors(e){return this.getPreferredAuthors(e).slice(0,3)}getTitleCardAuthorName(e){return e?.wos_standard||e?.display_name||e?.full_name||""}getTitleCardAuthorAddresses(e){return e?.addr_no?e.addr_no.split(" ").filter(a=>!!a):[]}getPreferredLang(e){const a=e?.author;return a?a.en?.length?"en":Object.keys(a)[0]||"en":"en"}getRouterParams(e,a,r){if(r&&this.profileSearchEnabledCollections.includes(this.database))return{queryJson:JSON.stringify([{rowBoolean:null,rowField:"DXNG",rowText:r}]),displayJson:JSON.stringify({key:"author",icon:"author",params:{name:a}})};let o;return o="corp"!==e&&"book_corp"!==e||!this.config.getSettings().app.search.databases[this.database].general.advanced.fields.includes("GP")?"book_editor"!==e&&"editor"!==e||!this.config.getSettings().app.search.databases[this.database].general.advanced.fields.includes("ED")?"assignee"===e?"AN":"principal_investigator"===e&&"GRANTS"===this.database?"PINV":"co_principal_investigator"===e?"GRANTS"===this.database?"CINV":"COA":"AU":"ED":"GP",{queryJson:JSON.stringify([{rowBoolean:null,rowField:o,rowText:a}]),eventMode:"oneClickSearch"}}getAltText(e){switch(e){case"editor":return"authorAlt_editor";case"inventor":return"authorAlt_inventor";default:return"authorAlt_author"}}trackByFn(e){return e}goToAddress(e,a){const r=document.getElementById(e);r?Number(a)>this.addressesToShow?this.scrollToTitleCardAuthorsSection():r.focus():this.scrollToTitleCardAuthorsSection()}setCollectionFromUt(e){this.collection=e&&e.includes(":")?K.Y.convertProductToDB(e.split(":")[0]):"no"}scrollToTitleCardAuthorsSection(){const e=document.getElementById("full-record-authors-section");e&&e.scrollIntoView({behavior:"smooth",block:"start"})}setTitleCardCitationContext(e){this.citationCollection="WOS"===e.coll?"WOSCC":e.coll,this.store.select(B.IH,{collection:this.citationCollection}).subscribe(r=>this.mostRelevantCitationDb=r).unsubscribe(),this.bestCitationIndex=this.config.getSettings().app.summary.databases["ALLDB"===this.database?this.database:this.citationCollection].citationCountFrom;const a=this.config.getSettings().app.summary.collections[e.coll];this.referencesDatabase=a.referencesFrom,this.fromDatabase=a.db||e.coll,this.refUt=K.Y.determineRefUt(this.referencesDatabase,e),this.isCitationEntitled=K.Y.isCitationEntitled(this.store),this.showCitedReferences=!this.hideReferencesCollections.includes(this.citationCollection)&&this.isCitationEntitled}setTitleCardRefCount(e){e&&(e.citedRefs?(this.refCount=this.record?.ref_count,this.refQid=e.citedRefs.id):e.citedRefsWithContext&&(this.refCount=this.record?.ref_count,this.refQid=e.citedRefsWithContext.id))}cacheCitingMetadata(e=this.database,a=this.record.id.value){this.store.dispatch(new B.IV._A({database:e,records:{[a]:this.record}}))}gotoCitationNetwork(e){this.store.dispatch(new ii.GD.v0({patentCitationType:e}))}goToMiniCitedReference(){const e=document.getElementById("FRMiniCrlTa-snMcrl");e?e.scrollIntoView():console.log("Reference not found")}refCountTooltip(){const e=this.refCount,a=this.record?.ref_retracted_count;let r=this.translate.instant("numOfReferencesIs",{num:e});return a&&+a>0&&(r+=this.translate.instant("1"===a?"retractedCountMessage.singular":"retractedCountMessage.plural",{c
1ount:a})),r}timesCitedTooltip(){const e=this.record?.citation_related?.counts.ALLDB,a=this.record?.citation_related?.retracted_count;let r=this.translate.instant("timesCitedIn")+this.translate.instant("ALLDB_name")+"\xa0"+this.translate.instant("is")+"\xa0"+Number(e).toLocaleString();return a&&+a>0&&(r+=this.translate.instant("1"===a?"retractedCountMessage.singular":"retractedCountMessage.plural",{count:a})),r}displaySnackbar(){this.snackBar.successGreen("copyToClipboard")}getFullText(e){const a=this.ProQuestFulltextLinks?.find(r=>r.publisher_id===e)?.publisher_url;if(!a)return"ProQuest_ASCII"===e?this.asciiTextError="ASCII URL not available.":this.pdfLoadingError="PDF URL not available.",void this.change.detectChanges();"ProQuest_PDF"===e?(this.pdfData={url:a},!this.proQuestAsciiFullText&&this.pqAiFtUrl&&(console.log("Retrieve AI full text..."),this.generateAsciiText(this.pqAiFtUrl)),this.change.detectChanges()):this.generateAsciiText(a)}generateAsciiText(e){if(!this.isAsciiGenerating){if(!this.record?.ut)return void(this.asciiTextError="Record information is missing.");if(this.isAsciiGenerating=!0,this.asciiTextLoading=!0,this.asciiTextError=null,this.proQuestAsciiFullText)return this.proQuestHtmlContent=this.proQuestHtmlContent||this.renderFullTextHtml(this.proQuestAsciiFullText,[]),this.subview="ProQuest_ASCII",this.asciiTextLoading=!1,this.isAsciiGenerating=!1,void this.change.detectChanges();this.proQuestFullText.getFullText(e).subscribe({next:a=>{a.available?(this.proQuestAsciiFullText=a.displayHtml,this.proQuestHtmlContent=this.renderFullTextHtml(a.displayHtml,a.mediaIndex)):this.asciiTextError="Full text is not available for this record.",this.asciiTextLoading=!1,this.isAsciiGenerating=!1,this.change.detectChanges()},error:()=>{this.asciiTextError="Server error. Failed to load full text.",this.asciiTextLoading=!1,this.isAsciiGenerating=!1,this.change.detectChanges()}})}}renderFullTextHtml(e,a){return this.proQuestMath.render(this.resolveProQuestMedia(e,a))}resolveProQuestMedia(e,a){const r=(new DOMParser).parseFromString(e,"text/html");return r.querySelectorAll("object.mstar_link_to_media").forEach(o=>{const s=o.querySelector('param[name="mstar_lm_media_id"]')?.getAttribute("value"),l=o.querySelector('param[name="mstar_lm_media_type"]')?.getAttribute("value"),c=a.find(h=>h.comp.mstar_lm_media_id===s&&(h.comp.category===l||h.comp.type===l)),d=c?.comp.rep.find(h=>"FULL"===h.type)||c?.comp.rep.find(h=>"THUM"===h.type),u=r.createElement("figure");if(d){const h=r.createElement("img");h.src=d.imageUrl,h.alt=l||"ProQuest illustration",h.loading="lazy",u.appendChild(h)}const _=o.querySelector(".mstar_lm_caption");if(_){const h=r.createElement("figcaption");h.textContent=_.textContent,u.appendChild(h)}o.replaceWith(u)}),r.body.innerHTML}ngOnInit(){super.ngOnInit(),this.render.addClass(document.body,"new-wos-full-record-styles")}ngOnDestroy(){super.ngOnDestroy(),this.titleCardDestroyed$.next(),this.titleCardDestroyed$.complete(),this.render.removeClass(document.body,"new-wos-full-record-styles"),this.linksSub&&this.linksSub.unsubscribe()}static{this.\u0275fac=function(a){return new(a||i)(t.rXU(ot.nX),t.rXU(Gt.il),t.rXU(t.gRc),t.rXU(V.c$),t.rXU(ot.Ix),t.rXU(_a.hE),t.rXU(Kd.l),t.rXU(A.Xr),t.rXU(Dl.h),t.rXU(Li.U),t.rXU(Ua.W),t.rXU(n0.n),t.rXU(mt.bZ),t.rXU(Dt.w),t.rXU(t.sFG),t.rXU(Ln.z),t.rXU(Ja._),t.rXU(Zd.i),t.rXU(a0),t.rXU(e0))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-full-record-home"]],inputs:{doc:"doc",sort:"sort",database:"database",mode:"mode",id:"id",from:"from",source:"source",subview:"subview"},features:[t.Vt3,t.OA$],decls:4,vars:4,consts:[["pageBar",""],["howToCiteDialog",""],["menu","matMenu"],["t","matMenuTrigger"],["noOneClickSearchTitleCard",""],["noPrimaryLink",""],["noPrimaryLinkEntitlement",""],["primaryPreprintLabel",""],["citingPatentTitleCard",""],["noAllDbLink",""],["noLinkCitedRefTitleCard",""],["rightPanelTpl",""],["class","top-sticky-pageControl","tabindex","-1",3,"full-record-header-bg","ngStyle",4,"ngIf"],[1,"fullRecord-page"],[4,"ngIf"],["tabindex","-1",1,"top-sticky-pageControl",3,"ngStyle"],[1,"fr-app-page-control
1s",3,"currentPageChange","ngClass","skipID","currentPage","location","maxPage"],["class","breadcrumbs",4,"ngIf"],[1,"fr-page-bar",3,"ngClass"],["class","margin-left-10--reversible",3,"ngClass",4,"ngIf"],[1,"breadcrumbs"],[3,"separator"],["class","fullRecord-link margin-left-10--reversible",3,"ut","database","record",4,"ngIf"],[1,"fullRecord-link","margin-left-10--reversible",3,"ut","database","record"],[1,"margin-left-10--reversible",3,"ngClass"],["class","margin-right-10--reversible",4,"ngIf"],[3,"record","database","sort","doc","qid",4,"ngIf"],["class","fullRecord-export-option",3,"database","titles","collection","search","ut","location",4,"ngIf"],[1,"margin-right-10--reversible"],["mat-button","","color","primary",1,"mat-stroked-button","cdx-font--weight-bold","font-size-14",3,"click","matTooltip"],[1,"hoverText"],[1,"flex-display-align-center","margin-left-3--reversible"],[1,"bordered"],["mat-raised-button","","color","primary",3,"click","cdkCopyToClipboard"],[1,"wosResearcherCopyIcon"],["role","img","svgIcon","file-copy",1,"margin-top-minus-16"],[1,"cite-Resource","cdx-breadcrumb__separator"],["mat-button","","matDialogClose","",3,"aria-describedby"],[3,"record","database","sort","doc","qid"],[1,"fullRecord-export-option",3,"database","titles","collection","search","ut","location"],[3,"ngClass"],["class","full-record-title-card",4,"ngIf"],["class","tabs-indication-color",4,"ngIf"],[3,"loadDateCriteria","search","database","record","sort","doc","qid","navExpanded","ecrActivatedChange","viewSubviewRequested",4,"ngIf"],[3,"showDownloadColumns","database","record",4,"ngIf"],[1,"ie11-page-controls"],[1,"app-page-controls",3,"currentPageChange","currentPage","location","skipID","maxPage"],["class","fullRecord-export-option margin-left-10--reversible",3,"database","titles","ut","search","location",4,"ngIf"],[1,"full-record-title-card"],[1,"full-record-title-card__row"],[1,"full-record-title-card__main"],[4,"ngFor","ngForOf"],["class","full-record-title-card__journal",4,"ngIf"],["class","full-record-title-card__authors",4,"ngIf"],[1,"links-options"],["yPosition","below",1,"full-record-options-menu"],["disabled","",1,"menu-section-header"],[1,"margin-top-15","margin-bottom-15"],["mat-menu-item","",3,"appClickToCopy","message",4,"ngIf"],["type","button",1,"full-record-title-card__more-button",3,"menuOpened","menuClosed","matMenuTriggerFor"],[1,"full-record-title-card__more-button-label"],["inline","true",1,"font-size-24"],["class","times-cited-card",4,"ngIf"],["color","primary","id","new-search-updates","tabindex","0",3,"change","checked","disabled"],["class","full-record-title-card__title",3,"dir","wosSearchHighlight",4,"ngIf"],[1,"full-record-title-card__title",3,"dir","wosSearchHighlight"],[1,"full-record-title-card__journal"],["class","full-record-title-card__journal-link",3,"database","qid","record","SourceTitle","showIcon","largeSize","navExpanded",4,"ngIf"],[1,"full-record-title-card__journal-meta"],["class","full-record-title-card__journal-meta-item",4,"ngIf"],[1,"full-record-title-card__journal-link",3,"navExpanded","database","qid","record","SourceTitle","showIcon","largeSize"],[1,"full-record-title-card__journal-meta-item"],[3,"wosSearchHighlight"],[1,"full-record-title-card__authors"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","full-record-title-card__more-authors",4,"ngIf"],["mat-button","","type","button","class","full-record-title-card__view-all",3,"matTooltip","click",4,"ngIf"],[1,"full-record-title-card__author","value"],["class","value full-record-title-card__author-name","cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-author_name_link","cdxAnalyticsAction","click",3,"ngClass","matTooltip","routerLink","queryParams","state",4,"ngIf","ngIfElse"],["class","authors value",3,"matTooltip",4,"ngIf"],["class","full-record-title-card__author-separator","dir","auto",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsCategory","wos-author_name_link","cdxAnalyticsAction","click",1,"value","full-record-title-card__author-name",3,"ngClass","matTooltip","routerLink","queryParams","state"],[3,"wosSearchHighlight",4,"ngIf"],[1,"authors","value",3,"matTooltip"],["class","font-size-14 value",3,"wosSearchHighlight",4,"ngIf"],[1,"font-size-14","value",3,"wosSearchHighlight"],[1,"value",3,"ngClass","wosSearchHighlight"],["class","sup-style","href","javascript:void(0);",3,"ngClass","matTooltip","click",4,"ngFor","ngForOf","ngForTrackBy"],["href","javascript:void(0);",1,"sup-style",3,"click","ngClass","matTooltip"],["dir","auto",1,"full-record-title-card__author-separator"],[1,"full-record-title-card__more-authors"],["mat-button","","type","button",1,"full-record-title-card__view-all",3,"click","matTooltip"],["mat-menu-item","",3,"appClickToCopy","message"],[1,"menu-icons"],[1,"times-cited-card"],[1,"times-cited-card__title"],["class","times-cited-card__row citation-position",4,"ngIf","ngIfElse"],["class","times-cited-card__row",4,"ngIf"],["class","times-cited-card__row","id","citedReferencesTitleCard",4,"ngIf"],[1,"times-cited-card__row","citation-position"],[4,"ngIf","ngIfElse"],["class","times-cited-card__label",4,"ngIf","ngIfElse"],["class","times-cited-card__count medium-link-number link","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"routerLink","queryParams","cdxAnalyticsCategory","matTooltip","click",4,"ngIf","ngIfElse"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"times-cited-card__count","medium-link-number","link",3,"click","routerLink","queryParams","cdxAnalyticsCategory","matTooltip"],["mat-button","","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"times-cited-card__count","citing-patent",3,"click","cdxAnalyticsCategory","matTooltip"],[1,"medium-link-number"],[1,"times-cited-card__count","medium-link-number-disabled",3,"matTooltip"],[1,"times-cited-card__label"],[1,"times-cited-card__row"],[1,"times-cited-card__count"],["class","times-cited-card__count medium-link-number link","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"routerLink","queryParams","matTooltip","cdxAnalyticsCategory","click",4,"ngIf","ngIfElse"],["class","times-cited-card__label",4,"ngIf"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"times-cited-card__count","medium-link-number","link",3,"click","routerLink","queryParams","matTooltip","cdxAnalyticsCategory"],["class","times-cited-card__count medium-link-number-disabled",3,"matTooltip",4,"ngIf"],["id","citedReferencesTitleCard",1,"times-cited-card__row"],["class","times-cited-card__count",4,"ngIf"],["class","times-cited-card__count medium-link-number link","tabindex","0","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"cdxAnalyticsCategory","matTooltip","click",4,"ngIf"],["class","times-cited-card__count medium-link-number","cdxAnalyticsEvent","","cdxAnalyticsAction","click",3,"cdxAnalyticsCategory","routerLink","queryParams","matTooltip","click",4,"ngIf"],["tabindex","0","cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"times-cited-card__count","medium-link-number","link",3,"click","cdxAnalyticsCategory","matTooltip"],["cdxAnalyticsEvent","","cdxAnalyticsAction","click",1,"times-cited-card__count","medium-link-number",3,"click","cdxAnalyticsCategory","routerLink","queryParams","matTooltip"],["class","times-cited-card__count cdx-black",3,"matTooltip",4,"ngIf"],[1,"times-cited-card__count","cdx-black",3,"matTooltip"],[1,"tabs-indication-color"],[3,"selectedIndex","selectedIndexChange",4,"ngIf"],[3,"ngSwitch"],["class","top-section new-full-record-section",4,"ngSwitchCase"],[3,"selectedIndexChange","selectedIndex"],["label","Web of Science Record"],["label","ProQuest Full Text",4,"ngIf"],["label","ProQuest PDF",4,"ngIf"],["label","ProQuest Full Text"],["label","ProQuest PDF"],[3,"re
1cord","environment","goId","originatingSearchQuery","pqAiFtUrl","proQuestHtmlContent",4,"ngIf"],[3,"record","environment","goId","originatingSearchQuery","pqAiFtUrl","proQuestHtmlContent"],[1,"top-section","new-full-record-section"],[3,"navExpanded","ecrActivatedChange","viewSubviewRequested","loadDateCriteria","search","database","record","sort","doc","qid"],[3,"showDownloadColumns","database","record"],[3,"database","record","info","qid","sort","doc","navExpanded",4,"ngIf"],[3,"navExpanded","database","record","info","qid","sort","doc"],["class","proquest-full-text-status","role","status",4,"ngIf"],["class","proquest-full-text-status","role","alert",4,"ngIf"],["class","proquest-full-text-content",3,"innerHTML",4,"ngIf"],[4,"ngTemplateOutlet"],["role","status",1,"proquest-full-text-status"],["role","alert",1,"proquest-full-text-status"],[1,"proquest-full-text-content",3,"innerHTML"],["class","error-message",4,"ngIf"],[3,"pdfUrl",4,"ngIf"],[1,"error-message"],[3,"pdfUrl"],[1,"fullRecord-export-option","margin-left-10--reversible",3,"database","titles","ut","search","location"],["id","full-record-mini-citation-start","class","app-full-record-mini-crl",3,"searchInfo","database","ut","doi","ecrActivated","navExpanded",4,"ngIf"],["class","app-full-record-mini-crl",3,"searchInfo","database","ut","doi",4,"ngIf"],["class","blurbs-padding",4,"ngIf"],[3,"record","info","qid",4,"ngIf"],[3,"record","info","qid"],["id","full-record-mini-citation-start",1,"app-full-record-mini-crl",3,"navExpanded","searchInfo","database","ut","doi","ecrActivated"],[1,"app-full-record-mini-crl",3,"searchInfo","database","ut","doi"],[1,"blurbs-padding"],[3,"record"]],template:function(a,r){1&a&&(t.DNE(0,$G,15,37,"div",12),t.nI1(1,"feature"),t.j41(2,"div",13),t.DNE(3,_$,21,30,"ng-container",14),t.k0s()),2&a&&(t.Y8G("ngIf",!t.bMT(1,2,"nxPresentationControl_PageControls_Hide_Everything")),t.R7$(3),t.Y8G("ngIf",r.record))},dependencies:[A.YU,A.Sq,A.bT,A.T3,A.B3,A.ux,A.e1,ot.Wk,Ur.N,ie.w,jt.An,$t.ig,ht.$z,xt.oV,Lt.kk,Lt.fb,Lt.Cp,r0.K,mt.tx,mt.E7,ni.mq,ni.T8,Jr.sG,Wr.r,$l.dF,o0.K,Ot.P,Ec,kM,lA,Dd,wA,VA,zE,pP,tG,iG,rG,_G,A.Jj,A.QX,V.D9,Cn.G,Se.h,Pn.N,Ei.Q,So.L,pG],encapsulation:2})}}return i})();var $n=S(91743),p$=S(16542),h$=S(64410),m$=S(76057),g$=S(27303),f$=S(33760);const b$=[{path:":qid/:sort/:doc",component:Xd,data:{__input_route_inputs:["search","doc","database","sort","mode","id","from","subview"],view:"article"},canActivate:[$n.UW,$n.VI],resolve:{__input_route_params:p$.H,search:$n.cg,database:$n.RW,doc:$n.Ae}},{path:":id",component:Xd,data:{__input_route_inputs:["search","doc","database","sort","mode","from","id","source"],mode:"id",view:"article"},resolve:{__input_route_params:m$.Q,search:h$.h,database:$n.RW}},{path:"patent/:chemID",component:jc,canActivate:[$n.Nv],data:{__input_route_inputs:["qid","num","sort","chemID","type"]},resolve:{__input_route_params:g$.C,qid:f$.G}}];let v$=(()=>{class i{static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275mod=t.$C({type:i})}static{this.\u0275inj=t.G2t({imports:[ot.iI.forChild(b$),ot.iI]})}}return i})();var x$=S(26619),C$=S(40618),R$=S(37643),y$=S(27926),T$=S(10972),I$=S(32646),k$=S(60675),F$=S(77453),w$=S(51731),M$=S(65410),S$=S(78958),A$=S(42819),E$=S(82765),P$=S(12907),G$=S(16687),D$=S(40964),$$=S(52451),L$=S(25596),N$=S(82798),j$=S(27621),O$=S(29094),B$=S(28076),Y$=S(82877),X$=S(78123);let q$=(()=>{class i{static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275mod=t.$C({type:i})}static{this.\u0275inj=t.G2t({providers:[Vo],imports:[A.MD]})}}return i})();var H$=S(85095),V$=S(70658),z$=S(68695),Q$=S(39279);let U$=(()=>{class i{static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275mod=t.$C({type:i})}static{this.\u0275inj=t.G2t({imports:[A.MD,v$,x$.K,Jd.m,V.h,C$.D,R$.p,y$.gy,X$.D,jt.m_,ht.Hl,G$.s,xt.uc,Lt.Cn,T$.Md,I$.q,Q$.N,X.tP,mt.hM,P$.p,ot.iI,k$.x,F$.C,w$.l,q$,M$.m,S$.R,pa.q1,A$.W,$$.i,Mo.Vg,E$.g7,Jo.w,Kn.vg,ni.RI,Ha.Wk,V$.MarkedlistModule,ye.YN,D$.ChemicalDetailOverlayModule,Zn.MY,L$.Hu,Na._,j$.v,Jr.mV,N$.Ve,Od.fS,Gi.Fg,Y$.DataCorrectionFormModule,O$.e,B$.u,$l.FQ,Va.Pd,H$.j,z$.o,Ec]})}}return i})()}}]);

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.