diff --git a/v4/assets/cssMode.d9de64d0.js b/v4/assets/cssMode.3d004420.js similarity index 99% rename from v4/assets/cssMode.d9de64d0.js rename to v4/assets/cssMode.3d004420.js index 59eface..46f30c3 100644 --- a/v4/assets/cssMode.d9de64d0.js +++ b/v4/assets/cssMode.3d004420.js @@ -1,4 +1,4 @@ -var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/freemarker2.7629f281.js b/v4/assets/freemarker2.7b2cfc65.js similarity index 99% rename from v4/assets/freemarker2.7629f281.js rename to v4/assets/freemarker2.7b2cfc65.js index 87f35cc..4d2177d 100644 --- a/v4/assets/freemarker2.7629f281.js +++ b/v4/assets/freemarker2.7b2cfc65.js @@ -1,4 +1,4 @@ -import{m as F}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +import{m as F}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/handlebars.8896e9fd.js b/v4/assets/handlebars.791abb84.js similarity index 99% rename from v4/assets/handlebars.8896e9fd.js rename to v4/assets/handlebars.791abb84.js index df636d4..253297c 100644 --- a/v4/assets/handlebars.8896e9fd.js +++ b/v4/assets/handlebars.791abb84.js @@ -1,4 +1,4 @@ -import{m as i}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +import{m as i}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/html.555da622.js b/v4/assets/html.c010a4e2.js similarity index 98% rename from v4/assets/html.555da622.js rename to v4/assets/html.c010a4e2.js index dc56216..dc9acef 100644 --- a/v4/assets/html.555da622.js +++ b/v4/assets/html.c010a4e2.js @@ -1,4 +1,4 @@ -import{m as d}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +import{m as d}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/htmlMode.3c3101d0.js b/v4/assets/htmlMode.27733e1f.js similarity index 99% rename from v4/assets/htmlMode.3c3101d0.js rename to v4/assets/htmlMode.27733e1f.js index b0b3ead..563624b 100644 --- a/v4/assets/htmlMode.3c3101d0.js +++ b/v4/assets/htmlMode.27733e1f.js @@ -1,4 +1,4 @@ -var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/index.6b59a00d.js b/v4/assets/index.c54b571c.js similarity index 99% rename from v4/assets/index.6b59a00d.js rename to v4/assets/index.c54b571c.js index d8669d0..aea9339 100644 --- a/v4/assets/index.6b59a00d.js +++ b/v4/assets/index.c54b571c.js @@ -608,27 +608,27 @@ ${e.toString()}`}}class Y6{constructor(e=new GI,t=!1,n){this._activeInstantiatio * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var XMe=Object.defineProperty,QMe=Object.getOwnPropertyDescriptor,ZMe=Object.getOwnPropertyNames,JMe=Object.prototype.hasOwnProperty,sz=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ZMe(e))!JMe.call(i,s)&&s!==t&&XMe(i,s,{get:()=>e[s],enumerable:!(n=QMe(e,s))||n.enumerable});return i},eDe=(i,e,t)=>(sz(i,e,"default"),t&&sz(t,e,"default")),wb={};eDe(wb,FS);var eJ={},N2={},tJ=class{constructor(i){Dt(this,"_languageId");Dt(this,"_loadingTriggered");Dt(this,"_lazyLoadPromise");Dt(this,"_lazyLoadPromiseResolve");Dt(this,"_lazyLoadPromiseReject");this._languageId=i,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(i){return N2[i]||(N2[i]=new tJ(i)),N2[i]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,eJ[this._languageId].loader().then(i=>this._lazyLoadPromiseResolve(i),i=>this._lazyLoadPromiseReject(i))),this._lazyLoadPromise}};function vt(i){const e=i.id;eJ[e]=i,wb.languages.register(i);const t=tJ.getOrCreate(e);wb.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),wb.languages.onLanguage(e,async()=>{const n=await t.load();wb.languages.setLanguageConfiguration(e,n.conf)})}vt({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ft(()=>import("./abap.15cc56c3.js"),[])});vt({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ft(()=>import("./apex.3097bfba.js"),[])});vt({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ft(()=>import("./azcli.b70fb9b3.js"),[])});vt({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ft(()=>import("./bat.4e83862e.js"),[])});vt({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ft(()=>import("./bicep.107c4876.js"),[])});vt({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ft(()=>import("./cameligo.9b7ef084.js"),[])});vt({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ft(()=>import("./clojure.9b9ce362.js"),[])});vt({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ft(()=>import("./coffee.3343db4b.js"),[])});vt({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ft(()=>import("./cpp.5842f29e.js"),[])});vt({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ft(()=>import("./cpp.5842f29e.js"),[])});vt({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ft(()=>import("./csharp.711e6ef5.js"),[])});vt({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>ft(()=>import("./csp.1454e635.js"),[])});vt({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ft(()=>import("./css.0f39058b.js"),[])});vt({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>ft(()=>import("./cypher.8b877bda.js"),[])});vt({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ft(()=>import("./dart.d9ca4827.js"),[])});vt({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ft(()=>import("./dockerfile.b12c8d75.js"),[])});vt({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ft(()=>import("./ecl.5841a83e.js"),[])});vt({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ft(()=>import("./elixir.837d31f3.js"),[])});vt({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ft(()=>import("./flow9.02cb4afd.js"),[])});vt({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ft(()=>import("./fsharp.c6cc3d99.js"),[])});vt({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ft(()=>import("./freemarker2.7629f281.js"),[]).then(i=>i.TagAutoInterpolationDollar)});vt({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ft(()=>import("./freemarker2.7629f281.js"),[]).then(i=>i.TagAngleInterpolationDollar)});vt({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ft(()=>import("./freemarker2.7629f281.js"),[]).then(i=>i.TagBracketInterpolationDollar)});vt({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ft(()=>import("./freemarker2.7629f281.js"),[]).then(i=>i.TagAngleInterpolationBracket)});vt({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ft(()=>import("./freemarker2.7629f281.js"),[]).then(i=>i.TagBracketInterpolationBracket)});vt({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ft(()=>import("./freemarker2.7629f281.js"),[]).then(i=>i.TagAutoInterpolationDollar)});vt({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ft(()=>import("./freemarker2.7629f281.js"),[]).then(i=>i.TagAutoInterpolationBracket)});vt({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ft(()=>import("./go.e18cc8fd.js"),[])});vt({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ft(()=>import("./graphql.91865f29.js"),[])});vt({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ft(()=>import("./handlebars.8896e9fd.js"),[])});vt({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ft(()=>import("./hcl.89542f1d.js"),[])});vt({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>ft(()=>import("./html.555da622.js"),[])});vt({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ft(()=>import("./ini.927d4958.js"),[])});vt({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ft(()=>import("./java.cae92986.js"),[])});vt({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ft(()=>import("./javascript.50b8dc07.js"),["assets/javascript.50b8dc07.js","assets/typescript.6524f873.js"])});vt({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ft(()=>import("./julia.1ab2c6a6.js"),[])});vt({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ft(()=>import("./kotlin.567012b4.js"),[])});vt({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ft(()=>import("./less.8ff15de1.js"),[])});vt({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ft(()=>import("./lexon.892ac9e8.js"),[])});vt({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ft(()=>import("./lua.84919ba3.js"),[])});vt({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ft(()=>import("./liquid.f04ee005.js"),[])});vt({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ft(()=>import("./m3.dbd6d890.js"),[])});vt({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ft(()=>import("./markdown.0bd269fb.js"),[])});vt({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ft(()=>import("./mips.5b57214f.js"),[])});vt({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ft(()=>import("./msdax.664f04d4.js"),[])});vt({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ft(()=>import("./mysql.b3be80b5.js"),[])});vt({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ft(()=>import("./objective-c.f61689b5.js"),[])});vt({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ft(()=>import("./pascal.63810ab2.js"),[])});vt({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ft(()=>import("./pascaligo.f3c373fd.js"),[])});vt({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>ft(()=>import("./perl.7a13b920.js"),[])});vt({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ft(()=>import("./pgsql.231377e2.js"),[])});vt({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ft(()=>import("./php.f75fab85.js"),[])});vt({id:"pla",extensions:[".pla"],loader:()=>ft(()=>import("./pla.53add393.js"),[])});vt({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ft(()=>import("./postiats.b78836c4.js"),[])});vt({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ft(()=>import("./powerquery.40e0a8e5.js"),[])});vt({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ft(()=>import("./powershell.b2dc53b1.js"),[])});vt({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ft(()=>import("./protobuf.bce7ad87.js"),[])});vt({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ft(()=>import("./pug.e7bd8f2e.js"),[])});vt({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ft(()=>import("./python.65255c96.js"),[])});vt({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ft(()=>import("./qsharp.9d22faff.js"),[])});vt({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ft(()=>import("./r.77bb7e19.js"),[])});vt({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ft(()=>import("./razor.53257c6a.js"),[])});vt({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ft(()=>import("./redis.d60fd379.js"),[])});vt({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ft(()=>import("./redshift.3c32617e.js"),[])});vt({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ft(()=>import("./restructuredtext.6d30740a.js"),[])});vt({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ft(()=>import("./ruby.10c929d1.js"),[])});vt({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ft(()=>import("./rust.abc56d3e.js"),[])});vt({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ft(()=>import("./sb.4973b57f.js"),[])});vt({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>ft(()=>import("./scala.2026dee1.js"),[])});vt({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ft(()=>import("./scheme.fe55144d.js"),[])});vt({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ft(()=>import("./scss.4ba8f803.js"),[])});vt({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ft(()=>import("./shell.2643570b.js"),[])});vt({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ft(()=>import("./solidity.9a85e4e7.js"),[])});vt({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ft(()=>import("./sophia.ae3e217e.js"),[])});vt({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ft(()=>import("./sparql.6944fd44.js"),[])});vt({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ft(()=>import("./sql.4f48b9c1.js"),[])});vt({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>ft(()=>import("./st.7c961594.js"),[])});vt({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ft(()=>import("./swift.23da7225.js"),[])});vt({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ft(()=>import("./systemverilog.0eef8e45.js"),[])});vt({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ft(()=>import("./systemverilog.0eef8e45.js"),[])});vt({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ft(()=>import("./tcl.236460f4.js"),[])});vt({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ft(()=>import("./twig.b70b7ae1.js"),[])});vt({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ft(()=>import("./typescript.6524f873.js"),[])});vt({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ft(()=>import("./vb.5502a104.js"),[])});vt({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\ft(()=>import("./xml.5ff44e77.js"),[])});vt({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ft(()=>import("./yaml.afab3d0f.js"),[])});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var XMe=Object.defineProperty,QMe=Object.getOwnPropertyDescriptor,ZMe=Object.getOwnPropertyNames,JMe=Object.prototype.hasOwnProperty,sz=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ZMe(e))!JMe.call(i,s)&&s!==t&&XMe(i,s,{get:()=>e[s],enumerable:!(n=QMe(e,s))||n.enumerable});return i},eDe=(i,e,t)=>(sz(i,e,"default"),t&&sz(t,e,"default")),wb={};eDe(wb,FS);var eJ={},N2={},tJ=class{constructor(i){Dt(this,"_languageId");Dt(this,"_loadingTriggered");Dt(this,"_lazyLoadPromise");Dt(this,"_lazyLoadPromiseResolve");Dt(this,"_lazyLoadPromiseReject");this._languageId=i,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(i){return N2[i]||(N2[i]=new tJ(i)),N2[i]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,eJ[this._languageId].loader().then(i=>this._lazyLoadPromiseResolve(i),i=>this._lazyLoadPromiseReject(i))),this._lazyLoadPromise}};function vt(i){const e=i.id;eJ[e]=i,wb.languages.register(i);const t=tJ.getOrCreate(e);wb.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),wb.languages.onLanguage(e,async()=>{const n=await t.load();wb.languages.setLanguageConfiguration(e,n.conf)})}vt({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>ft(()=>import("./abap.15cc56c3.js"),[])});vt({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>ft(()=>import("./apex.3097bfba.js"),[])});vt({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>ft(()=>import("./azcli.b70fb9b3.js"),[])});vt({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>ft(()=>import("./bat.4e83862e.js"),[])});vt({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>ft(()=>import("./bicep.107c4876.js"),[])});vt({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>ft(()=>import("./cameligo.9b7ef084.js"),[])});vt({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>ft(()=>import("./clojure.9b9ce362.js"),[])});vt({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>ft(()=>import("./coffee.3343db4b.js"),[])});vt({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>ft(()=>import("./cpp.5842f29e.js"),[])});vt({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>ft(()=>import("./cpp.5842f29e.js"),[])});vt({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>ft(()=>import("./csharp.711e6ef5.js"),[])});vt({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>ft(()=>import("./csp.1454e635.js"),[])});vt({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>ft(()=>import("./css.0f39058b.js"),[])});vt({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>ft(()=>import("./cypher.8b877bda.js"),[])});vt({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>ft(()=>import("./dart.d9ca4827.js"),[])});vt({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>ft(()=>import("./dockerfile.b12c8d75.js"),[])});vt({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>ft(()=>import("./ecl.5841a83e.js"),[])});vt({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>ft(()=>import("./elixir.837d31f3.js"),[])});vt({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>ft(()=>import("./flow9.02cb4afd.js"),[])});vt({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>ft(()=>import("./fsharp.c6cc3d99.js"),[])});vt({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>ft(()=>import("./freemarker2.7b2cfc65.js"),[]).then(i=>i.TagAutoInterpolationDollar)});vt({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>ft(()=>import("./freemarker2.7b2cfc65.js"),[]).then(i=>i.TagAngleInterpolationDollar)});vt({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>ft(()=>import("./freemarker2.7b2cfc65.js"),[]).then(i=>i.TagBracketInterpolationDollar)});vt({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>ft(()=>import("./freemarker2.7b2cfc65.js"),[]).then(i=>i.TagAngleInterpolationBracket)});vt({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>ft(()=>import("./freemarker2.7b2cfc65.js"),[]).then(i=>i.TagBracketInterpolationBracket)});vt({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>ft(()=>import("./freemarker2.7b2cfc65.js"),[]).then(i=>i.TagAutoInterpolationDollar)});vt({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>ft(()=>import("./freemarker2.7b2cfc65.js"),[]).then(i=>i.TagAutoInterpolationBracket)});vt({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>ft(()=>import("./go.e18cc8fd.js"),[])});vt({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>ft(()=>import("./graphql.91865f29.js"),[])});vt({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>ft(()=>import("./handlebars.791abb84.js"),[])});vt({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>ft(()=>import("./hcl.89542f1d.js"),[])});vt({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>ft(()=>import("./html.c010a4e2.js"),[])});vt({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>ft(()=>import("./ini.927d4958.js"),[])});vt({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>ft(()=>import("./java.cae92986.js"),[])});vt({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>ft(()=>import("./javascript.e6119943.js"),["assets/javascript.e6119943.js","assets/typescript.7c0e45bf.js"])});vt({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>ft(()=>import("./julia.1ab2c6a6.js"),[])});vt({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>ft(()=>import("./kotlin.567012b4.js"),[])});vt({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>ft(()=>import("./less.8ff15de1.js"),[])});vt({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>ft(()=>import("./lexon.892ac9e8.js"),[])});vt({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>ft(()=>import("./lua.84919ba3.js"),[])});vt({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>ft(()=>import("./liquid.b49b787e.js"),[])});vt({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>ft(()=>import("./m3.dbd6d890.js"),[])});vt({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>ft(()=>import("./markdown.0bd269fb.js"),[])});vt({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>ft(()=>import("./mips.5b57214f.js"),[])});vt({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>ft(()=>import("./msdax.664f04d4.js"),[])});vt({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>ft(()=>import("./mysql.b3be80b5.js"),[])});vt({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>ft(()=>import("./objective-c.f61689b5.js"),[])});vt({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>ft(()=>import("./pascal.63810ab2.js"),[])});vt({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>ft(()=>import("./pascaligo.f3c373fd.js"),[])});vt({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>ft(()=>import("./perl.7a13b920.js"),[])});vt({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>ft(()=>import("./pgsql.231377e2.js"),[])});vt({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>ft(()=>import("./php.f75fab85.js"),[])});vt({id:"pla",extensions:[".pla"],loader:()=>ft(()=>import("./pla.53add393.js"),[])});vt({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>ft(()=>import("./postiats.b78836c4.js"),[])});vt({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>ft(()=>import("./powerquery.40e0a8e5.js"),[])});vt({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>ft(()=>import("./powershell.b2dc53b1.js"),[])});vt({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>ft(()=>import("./protobuf.bce7ad87.js"),[])});vt({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>ft(()=>import("./pug.e7bd8f2e.js"),[])});vt({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>ft(()=>import("./python.5d2d1046.js"),[])});vt({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>ft(()=>import("./qsharp.9d22faff.js"),[])});vt({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>ft(()=>import("./r.77bb7e19.js"),[])});vt({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>ft(()=>import("./razor.772ded4e.js"),[])});vt({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>ft(()=>import("./redis.d60fd379.js"),[])});vt({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>ft(()=>import("./redshift.3c32617e.js"),[])});vt({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>ft(()=>import("./restructuredtext.6d30740a.js"),[])});vt({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>ft(()=>import("./ruby.10c929d1.js"),[])});vt({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>ft(()=>import("./rust.abc56d3e.js"),[])});vt({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>ft(()=>import("./sb.4973b57f.js"),[])});vt({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>ft(()=>import("./scala.2026dee1.js"),[])});vt({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>ft(()=>import("./scheme.fe55144d.js"),[])});vt({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>ft(()=>import("./scss.4ba8f803.js"),[])});vt({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>ft(()=>import("./shell.2643570b.js"),[])});vt({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>ft(()=>import("./solidity.9a85e4e7.js"),[])});vt({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>ft(()=>import("./sophia.ae3e217e.js"),[])});vt({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>ft(()=>import("./sparql.6944fd44.js"),[])});vt({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>ft(()=>import("./sql.4f48b9c1.js"),[])});vt({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>ft(()=>import("./st.7c961594.js"),[])});vt({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>ft(()=>import("./swift.23da7225.js"),[])});vt({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>ft(()=>import("./systemverilog.0eef8e45.js"),[])});vt({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>ft(()=>import("./systemverilog.0eef8e45.js"),[])});vt({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>ft(()=>import("./tcl.236460f4.js"),[])});vt({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>ft(()=>import("./twig.b70b7ae1.js"),[])});vt({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>ft(()=>import("./typescript.7c0e45bf.js"),[])});vt({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>ft(()=>import("./vb.5502a104.js"),[])});vt({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\ft(()=>import("./xml.1a337a49.js"),[])});vt({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>ft(()=>import("./yaml.a2b3099d.js"),[])});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var tDe=Object.defineProperty,iDe=Object.getOwnPropertyDescriptor,nDe=Object.getOwnPropertyNames,sDe=Object.prototype.hasOwnProperty,rz=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of nDe(e))!sDe.call(i,s)&&s!==t&&tDe(i,s,{get:()=>e[s],enumerable:!(n=iDe(e,s))||n.enumerable});return i},rDe=(i,e,t)=>(rz(i,e,"default"),t&&rz(t,e,"default")),iv={};rDe(iv,FS);var Z6=class{constructor(i,e,t){Dt(this,"_onDidChange",new iv.Emitter);Dt(this,"_options");Dt(this,"_modeConfiguration");Dt(this,"_languageId");this._languageId=i,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(i){this._options=i||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(i){this.setOptions(i)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},J6={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},eH={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},iJ=new Z6("css",J6,eH),nJ=new Z6("scss",J6,eH),sJ=new Z6("less",J6,eH);iv.languages.css={cssDefaults:iJ,lessDefaults:sJ,scssDefaults:nJ};function tH(){return ft(()=>import("./cssMode.d9de64d0.js"),[])}iv.languages.onLanguage("less",()=>{tH().then(i=>i.setupMode(sJ))});iv.languages.onLanguage("scss",()=>{tH().then(i=>i.setupMode(nJ))});iv.languages.onLanguage("css",()=>{tH().then(i=>i.setupMode(iJ))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var tDe=Object.defineProperty,iDe=Object.getOwnPropertyDescriptor,nDe=Object.getOwnPropertyNames,sDe=Object.prototype.hasOwnProperty,rz=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of nDe(e))!sDe.call(i,s)&&s!==t&&tDe(i,s,{get:()=>e[s],enumerable:!(n=iDe(e,s))||n.enumerable});return i},rDe=(i,e,t)=>(rz(i,e,"default"),t&&rz(t,e,"default")),iv={};rDe(iv,FS);var Z6=class{constructor(i,e,t){Dt(this,"_onDidChange",new iv.Emitter);Dt(this,"_options");Dt(this,"_modeConfiguration");Dt(this,"_languageId");this._languageId=i,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(i){this._options=i||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(i){this.setOptions(i)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},J6={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},eH={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},iJ=new Z6("css",J6,eH),nJ=new Z6("scss",J6,eH),sJ=new Z6("less",J6,eH);iv.languages.css={cssDefaults:iJ,lessDefaults:sJ,scssDefaults:nJ};function tH(){return ft(()=>import("./cssMode.3d004420.js"),[])}iv.languages.onLanguage("less",()=>{tH().then(i=>i.setupMode(sJ))});iv.languages.onLanguage("scss",()=>{tH().then(i=>i.setupMode(nJ))});iv.languages.onLanguage("css",()=>{tH().then(i=>i.setupMode(iJ))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var oDe=Object.defineProperty,aDe=Object.getOwnPropertyDescriptor,lDe=Object.getOwnPropertyNames,cDe=Object.prototype.hasOwnProperty,oz=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of lDe(e))!cDe.call(i,s)&&s!==t&&oDe(i,s,{get:()=>e[s],enumerable:!(n=aDe(e,s))||n.enumerable});return i},uDe=(i,e,t)=>(oz(i,e,"default"),t&&oz(t,e,"default")),aN={};uDe(aN,FS);var dDe=class{constructor(i,e,t){Dt(this,"_onDidChange",new aN.Emitter);Dt(this,"_options");Dt(this,"_modeConfiguration");Dt(this,"_languageId");this._languageId=i,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(i){this._options=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},hDe={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},lN={format:hDe,suggest:{},data:{useDefaultDataProvider:!0}};function cN(i){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:i===nC,documentFormattingEdits:i===nC,documentRangeFormattingEdits:i===nC}}var nC="html",az="handlebars",lz="razor",rJ=uN(nC,lN,cN(nC)),fDe=rJ.defaults,oJ=uN(az,lN,cN(az)),gDe=oJ.defaults,aJ=uN(lz,lN,cN(lz)),pDe=aJ.defaults;aN.languages.html={htmlDefaults:fDe,razorDefaults:pDe,handlebarDefaults:gDe,htmlLanguageService:rJ,handlebarLanguageService:oJ,razorLanguageService:aJ,registerHTMLLanguageService:uN};function mDe(){return ft(()=>import("./htmlMode.3c3101d0.js"),[])}function uN(i,e=lN,t=cN(i)){const n=new dDe(i,e,t);let s;const r=aN.languages.onLanguage(i,async()=>{s=(await mDe()).setupMode(n)});return{defaults:n,dispose(){r.dispose(),s==null||s.dispose(),s=void 0}}}/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var oDe=Object.defineProperty,aDe=Object.getOwnPropertyDescriptor,lDe=Object.getOwnPropertyNames,cDe=Object.prototype.hasOwnProperty,oz=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of lDe(e))!cDe.call(i,s)&&s!==t&&oDe(i,s,{get:()=>e[s],enumerable:!(n=aDe(e,s))||n.enumerable});return i},uDe=(i,e,t)=>(oz(i,e,"default"),t&&oz(t,e,"default")),aN={};uDe(aN,FS);var dDe=class{constructor(i,e,t){Dt(this,"_onDidChange",new aN.Emitter);Dt(this,"_options");Dt(this,"_modeConfiguration");Dt(this,"_languageId");this._languageId=i,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(i){this._options=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},hDe={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},lN={format:hDe,suggest:{},data:{useDefaultDataProvider:!0}};function cN(i){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:i===nC,documentFormattingEdits:i===nC,documentRangeFormattingEdits:i===nC}}var nC="html",az="handlebars",lz="razor",rJ=uN(nC,lN,cN(nC)),fDe=rJ.defaults,oJ=uN(az,lN,cN(az)),gDe=oJ.defaults,aJ=uN(lz,lN,cN(lz)),pDe=aJ.defaults;aN.languages.html={htmlDefaults:fDe,razorDefaults:pDe,handlebarDefaults:gDe,htmlLanguageService:rJ,handlebarLanguageService:oJ,razorLanguageService:aJ,registerHTMLLanguageService:uN};function mDe(){return ft(()=>import("./htmlMode.27733e1f.js"),[])}function uN(i,e=lN,t=cN(i)){const n=new dDe(i,e,t);let s;const r=aN.languages.onLanguage(i,async()=>{s=(await mDe()).setupMode(n)});return{defaults:n,dispose(){r.dispose(),s==null||s.dispose(),s=void 0}}}/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var _De=Object.defineProperty,vDe=Object.getOwnPropertyDescriptor,bDe=Object.getOwnPropertyNames,CDe=Object.prototype.hasOwnProperty,cz=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of bDe(e))!CDe.call(i,s)&&s!==t&&_De(i,s,{get:()=>e[s],enumerable:!(n=vDe(e,s))||n.enumerable});return i},EDe=(i,e,t)=>(cz(i,e,"default"),t&&cz(t,e,"default")),BS={};EDe(BS,FS);var SDe=class{constructor(i,e,t){Dt(this,"_onDidChange",new BS.Emitter);Dt(this,"_diagnosticsOptions");Dt(this,"_modeConfiguration");Dt(this,"_languageId");this._languageId=i,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(i){this._diagnosticsOptions=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},yDe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},TDe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},lJ=new SDe("json",yDe,TDe);BS.languages.json={jsonDefaults:lJ};function wDe(){return ft(()=>import("./jsonMode.27ac452c.js"),[])}BS.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});BS.languages.onLanguage("json",()=>{wDe().then(i=>i.setupMode(lJ))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var _De=Object.defineProperty,vDe=Object.getOwnPropertyDescriptor,bDe=Object.getOwnPropertyNames,CDe=Object.prototype.hasOwnProperty,cz=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of bDe(e))!CDe.call(i,s)&&s!==t&&_De(i,s,{get:()=>e[s],enumerable:!(n=vDe(e,s))||n.enumerable});return i},EDe=(i,e,t)=>(cz(i,e,"default"),t&&cz(t,e,"default")),BS={};EDe(BS,FS);var SDe=class{constructor(i,e,t){Dt(this,"_onDidChange",new BS.Emitter);Dt(this,"_diagnosticsOptions");Dt(this,"_modeConfiguration");Dt(this,"_languageId");this._languageId=i,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(i){this._diagnosticsOptions=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},yDe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},TDe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},lJ=new SDe("json",yDe,TDe);BS.languages.json={jsonDefaults:lJ};function wDe(){return ft(()=>import("./jsonMode.c03a6266.js"),[])}BS.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});BS.languages.onLanguage("json",()=>{wDe().then(i=>i.setupMode(lJ))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var ADe=Object.defineProperty,xDe=Object.getOwnPropertyDescriptor,LDe=Object.getOwnPropertyNames,IDe=Object.prototype.hasOwnProperty,uz=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of LDe(e))!IDe.call(i,s)&&s!==t&&ADe(i,s,{get:()=>e[s],enumerable:!(n=xDe(e,s))||n.enumerable});return i},NDe=(i,e,t)=>(uz(i,e,"default"),t&&uz(t,e,"default")),MDe="4.5.5",b1={};NDe(b1,FS);var cJ=(i=>(i[i.None=0]="None",i[i.CommonJS=1]="CommonJS",i[i.AMD=2]="AMD",i[i.UMD=3]="UMD",i[i.System=4]="System",i[i.ES2015=5]="ES2015",i[i.ESNext=99]="ESNext",i))(cJ||{}),uJ=(i=>(i[i.None=0]="None",i[i.Preserve=1]="Preserve",i[i.React=2]="React",i[i.ReactNative=3]="ReactNative",i[i.ReactJSX=4]="ReactJSX",i[i.ReactJSXDev=5]="ReactJSXDev",i))(uJ||{}),dJ=(i=>(i[i.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",i[i.LineFeed=1]="LineFeed",i))(dJ||{}),hJ=(i=>(i[i.ES3=0]="ES3",i[i.ES5=1]="ES5",i[i.ES2015=2]="ES2015",i[i.ES2016=3]="ES2016",i[i.ES2017=4]="ES2017",i[i.ES2018=5]="ES2018",i[i.ES2019=6]="ES2019",i[i.ES2020=7]="ES2020",i[i.ESNext=99]="ESNext",i[i.JSON=100]="JSON",i[i.Latest=99]="Latest",i))(hJ||{}),fJ=(i=>(i[i.Classic=1]="Classic",i[i.NodeJs=2]="NodeJs",i))(fJ||{}),gJ=class{constructor(i,e,t,n){Dt(this,"_onDidChange",new b1.Emitter);Dt(this,"_onDidExtraLibsChange",new b1.Emitter);Dt(this,"_extraLibs");Dt(this,"_removedExtraLibs");Dt(this,"_eagerModelSync");Dt(this,"_compilerOptions");Dt(this,"_diagnosticsOptions");Dt(this,"_workerOptions");Dt(this,"_onDidExtraLibsChangeTimeout");Dt(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(i),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(i,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===i)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(n=this._extraLibs[t].version+1),this._extraLibs[t]={content:i,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let s=this._extraLibs[t];!s||s.version===n&&(delete this._extraLibs[t],this._removedExtraLibs[t]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(i){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),i&&i.length>0)for(const e of i){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=e.content;let s=1;this._removedExtraLibs[t]&&(s=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:n,version:s}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(i){this._compilerOptions=i||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(i){this._diagnosticsOptions=i||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(i){this._workerOptions=i||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(i){this._inlayHintsOptions=i||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(i){}setEagerModelSync(i){this._eagerModelSync=i}getEagerModelSync(){return this._eagerModelSync}},DDe=MDe,pJ=new gJ({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),mJ=new gJ({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),kDe=()=>dN().then(i=>i.getTypeScriptWorker()),RDe=()=>dN().then(i=>i.getJavaScriptWorker());b1.languages.typescript={ModuleKind:cJ,JsxEmit:uJ,NewLineKind:dJ,ScriptTarget:hJ,ModuleResolutionKind:fJ,typescriptVersion:DDe,typescriptDefaults:pJ,javascriptDefaults:mJ,getTypeScriptWorker:kDe,getJavaScriptWorker:RDe};function dN(){return ft(()=>import("./tsMode.7c747e15.js"),[])}b1.languages.onLanguage("typescript",()=>dN().then(i=>i.setupTypeScript(pJ)));b1.languages.onLanguage("javascript",()=>dN().then(i=>i.setupJavaScript(mJ)));var ODe=globalThis&&globalThis.__decorate||function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},PDe=globalThis&&globalThis.__param||function(i,e){return function(t,n){e(t,n,i)}},hN=globalThis&&globalThis.__awaiter||function(i,e,t,n){function s(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function a(u){try{c(n.next(u))}catch(h){o(h)}}function l(u){try{c(n.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):s(u.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};const fN=new ot("selectionAnchorSet",!1);let eh=class _J{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=fN.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(_J.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(nt.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new co().appendText(T("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),tr(T("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(nt.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};eh.ID="editor.contrib.selectionAnchorController";eh=ODe([PDe(1,Pt)],eh);class FDe extends at{constructor(){super({id:"editor.action.setSelectionAnchor",label:T("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:ue.editorTextFocus,primary:fs(2089,2080),weight:100}})}run(e,t){var n;return hN(this,void 0,void 0,function*(){(n=eh.get(t))===null||n===void 0||n.setSelectionAnchor()})}}class BDe extends at{constructor(){super({id:"editor.action.goToSelectionAnchor",label:T("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:fN})}run(e,t){var n;return hN(this,void 0,void 0,function*(){(n=eh.get(t))===null||n===void 0||n.goToSelectionAnchor()})}}class HDe extends at{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:T("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:fN,kbOpts:{kbExpr:ue.editorTextFocus,primary:fs(2089,2089),weight:100}})}run(e,t){var n;return hN(this,void 0,void 0,function*(){(n=eh.get(t))===null||n===void 0||n.selectFromAnchorToCursor()})}}class GDe extends at{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:T("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:fN,kbOpts:{kbExpr:ue.editorTextFocus,primary:9,weight:100}})}run(e,t){var n;return hN(this,void 0,void 0,function*(){(n=eh.get(t))===null||n===void 0||n.cancelSelectionAnchor()})}}di(eh.ID,eh);$e(FDe);$e(BDe);$e(HDe);$e(GDe);const VDe=he("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},T("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class WDe extends at{constructor(){super({id:"editor.action.jumpToBracket",label:T("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:ue.editorTextFocus,primary:3160,weight:100}})}run(e,t){var n;(n=mc.get(t))===null||n===void 0||n.jumpToBracket()}}class zDe extends at{constructor(){super({id:"editor.action.selectToBracket",label:T("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,n){var s;let r=!0;n&&n.selectBrackets===!1&&(r=!1),(s=mc.get(t))===null||s===void 0||s.selectToBracket(r)}}class KDe{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}}class mc extends Me{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new ki(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(mc.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(n=>{const s=n.getStartPosition(),r=e.bracketPairs.matchBracket(s);let o=null;if(r)r[0].containsPosition(s)&&!r[1].containsPosition(s)?o=r[1].getStartPosition():r[1].containsPosition(s)&&(o=r[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(s);if(a)o=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(s);l&&l.range&&(o=l.range.getStartPosition())}}return o?new nt(o.lineNumber,o.column,o.lineNumber,o.column):new nt(s.lineNumber,s.column,s.lineNumber,s.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(s=>{const r=s.getStartPosition();let o=t.bracketPairs.matchBracket(r);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(r),!o)){const c=t.bracketPairs.findNextBracket(r);c&&c.range&&(o=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(o){o.sort(Z.compareRangesUsingStarts);const[c,u]=o;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?u.getEndPosition():u.getStartPosition(),u.containsPosition(r)){const h=a;a=l,l=h}}a&&l&&n.push(new nt(a.lineNumber,a.column,l.lineNumber,l.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const n of this._lastBracketsData){const s=n.brackets;s&&(e[t++]={range:s[0],options:n.options},e[t++]={range:s[1],options:n.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),n=t.getVersionId();let s=[];this._lastVersionId===n&&(s=this._lastBracketsData);const r=[];let o=0;for(let h=0,p=e.length;h1&&r.sort(we.compare);const a=[];let l=0,c=0;const u=s.length;for(let h=0,p=r.length;h{const t=i.getColor(DCe);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const n=i.getColor(wX);n&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${n}; }`)});Ua.appendMenuItem(me.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:T({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class UDe{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const n=this._selection.startLineNumber,s=this._selection.startColumn,r=this._selection.endColumn;if(!(this._isMovingLeft&&s===1)&&!(!this._isMovingLeft&&r===e.getLineMaxColumn(n)))if(this._isMovingLeft){const o=new Z(n,s-1,n,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new Z(n,r,n,r),a)}else{const o=new Z(n,r,n,r+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new Z(n,s,n,s),a)}}computeCursorState(e,t){return this._isMovingLeft?new nt(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new nt(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class vJ extends at{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const n=[],s=t.getSelections();for(const r of s)n.push(new UDe(r,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class YDe extends vJ{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:T("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:ue.writable})}}class jDe extends vJ{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:T("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:ue.writable})}}$e(YDe);$e(jDe);class qDe extends at{constructor(){super({id:"editor.action.transposeLetters",label:T("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:ue.writable,kbOpts:{kbExpr:ue.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const n=t.getModel(),s=[],r=t.getSelections();for(const o of r){if(!o.isEmpty())continue;const a=o.startLineNumber,l=o.startColumn,c=n.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const u=l===c?o.getPosition():Ci.rightPosition(n,o.getPosition().lineNumber,o.getPosition().column),h=Ci.leftPosition(n,u),p=Ci.leftPosition(n,h),_=n.getValueInRange(Z.fromPositions(p,h)),C=n.getValueInRange(Z.fromPositions(h,u)),y=Z.fromPositions(p,u);s.push(new Ks(y,C+_))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}$e(qDe);var $De=globalThis&&globalThis.__awaiter||function(i,e,t,n){function s(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function a(u){try{c(n.next(u))}catch(h){o(h)}}function l(u){try{c(n.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):s(u.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};const qp="9_cutcopypaste",XDe=dc||document.queryCommandSupported("cut"),bJ=dc||document.queryCommandSupported("copy"),QDe=typeof navigator.clipboard>"u"||pa?document.queryCommandSupported("paste"):!0;function iH(i){return i.register(),i}const ZDe=XDe?iH(new j1({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:dc?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:me.MenubarEditMenu,group:"2_ccp",title:T({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:me.EditorContext,group:qp,title:T("actions.clipboard.cutLabel","Cut"),when:ue.writable,order:1},{menuId:me.CommandPalette,group:"",title:T("actions.clipboard.cutLabel","Cut"),order:1},{menuId:me.SimpleEditorContext,group:qp,title:T("actions.clipboard.cutLabel","Cut"),when:ue.writable,order:1}]})):void 0,JDe=bJ?iH(new j1({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:dc?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:me.MenubarEditMenu,group:"2_ccp",title:T({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:me.EditorContext,group:qp,title:T("actions.clipboard.copyLabel","Copy"),order:2},{menuId:me.CommandPalette,group:"",title:T("actions.clipboard.copyLabel","Copy"),order:1},{menuId:me.SimpleEditorContext,group:qp,title:T("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Ua.appendMenuItem(me.MenubarEditMenu,{submenu:me.MenubarCopy,title:{value:T("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Ua.appendMenuItem(me.EditorContext,{submenu:me.EditorContextCopy,title:{value:T("copy as","Copy As"),original:"Copy As"},group:qp,order:3});Ua.appendMenuItem(me.EditorContext,{submenu:me.EditorContextShare,title:{value:T("share","Share"),original:"Share"},group:"11_share",order:-1});const M2=QDe?iH(new j1({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:dc?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:me.MenubarEditMenu,group:"2_ccp",title:T({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:me.EditorContext,group:qp,title:T("actions.clipboard.pasteLabel","Paste"),when:ue.writable,order:4},{menuId:me.CommandPalette,group:"",title:T("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:me.SimpleEditorContext,group:qp,title:T("actions.clipboard.pasteLabel","Paste"),when:ue.writable,order:4}]})):void 0;class e2e extends at{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:T("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:ue.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(33)&&t.getSelection().isEmpty()||(XO.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),XO.forceCopyWithSyntaxHighlighting=!1)}}function CJ(i,e){!i||(i.addImplementation(1e4,"code-editor",(t,n)=>{const s=t.get(Ei).getFocusedCodeEditor();if(s&&s.hasTextFocus()){const r=s.getOption(33),o=s.getSelection();return o&&o.isEmpty()&&!r||document.execCommand(e),!0}return!1}),i.addImplementation(0,"generic-dom",(t,n)=>(document.execCommand(e),!0)))}CJ(ZDe,"cut");CJ(JDe,"copy");M2&&(M2.addImplementation(1e4,"code-editor",(i,e)=>{const t=i.get(Ei),n=i.get(fh),s=t.getFocusedCodeEditor();return s&&s.hasTextFocus()?!document.execCommand("paste")&&tg?(()=>$De(void 0,void 0,void 0,function*(){const o=yield n.readText();if(o!==""){const a=jC.INSTANCE.get(o);let l=!1,c=null,u=null;a&&(l=s.getOption(33)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,u=a.mode),s.trigger("keyboard","paste",{text:o,pasteOnNewLine:l,multicursorText:c,mode:u})}}))():!0:!1}),M2.addImplementation(0,"generic-dom",(i,e)=>(document.execCommand("paste"),!0)));bJ&&$e(e2e);class si{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+si.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new si(this.value+si.sep+e)}}si.sep=".";si.None=new si("@@none@@");si.Empty=new si("");si.QuickFix=new si("quickfix");si.Refactor=new si("refactor");si.Source=new si("source");si.SourceOrganizeImports=si.Source.append("organizeImports");si.SourceFixAll=si.Source.append("fixAll");var Pr;(function(i){i.Refactor="refactor",i.RefactorPreview="refactor preview",i.Lightbulb="lightbulb",i.Default="other (default)",i.SourceAction="source action",i.QuickFix="quick fix action",i.FixAll="fix all",i.OrganizeImports="organize imports",i.AutoFix="auto fix",i.QuickFixHover="quick fix hover window",i.OnSave="save participants",i.ProblemsView="problems view"})(Pr||(Pr={}));function t2e(i,e){return!(i.include&&!i.include.intersects(e)||i.excludes&&i.excludes.some(t=>EJ(e,t,i.include))||!i.includeSourceActions&&si.Source.contains(e))}function i2e(i,e){const t=e.kind?new si(e.kind):void 0;return!(i.include&&(!t||!i.include.contains(t))||i.excludes&&t&&i.excludes.some(n=>EJ(t,n,i.include))||!i.includeSourceActions&&t&&si.Source.contains(t)||i.onlyIncludePreferredActions&&!e.isPreferred)}function EJ(i,e,t){return!(!e.contains(i)||t&&e.contains(t))}class cu{constructor(e,t,n){this.kind=e,this.apply=t,this.preferred=n}static fromUser(e,t){return!e||typeof e!="object"?new cu(t.kind,t.apply,!1):new cu(cu.getKindFromUser(e,t.kind),cu.getApplyFromUser(e,t.apply),cu.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new si(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var nH=globalThis&&globalThis.__awaiter||function(i,e,t,n){function s(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function a(u){try{c(n.next(u))}catch(h){o(h)}}function l(u){try{c(n.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):s(u.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};const SJ="editor.action.codeAction",yJ="editor.action.refactor",n2e="editor.action.refactor.preview",TJ="editor.action.sourceAction",sH="editor.action.organizeImports",rH="editor.action.fixAll";class wJ{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return nH(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let n;try{n=yield this.provider.resolveCodeAction(this.action,e)}catch(s){ks(s)}n&&(this.action.edit=n.edit)}return this})}}class oH extends Me{constructor(e,t,n){super(),this.documentation=t,this._register(n),this.allActions=[...e].sort(oH.codeActionsComparator),this.validActions=this.allActions.filter(({action:s})=>!s.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:vr(e.diagnostics)?vr(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:vr(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&si.QuickFix.contains(new si(e.kind))&&!!e.isPreferred)}}const dz={actions:[],documentation:void 0};function aH(i,e,t,n,s,r){var o;const a=n.filter||{},l={only:(o=a.include)===null||o===void 0?void 0:o.value,trigger:n.type},c=new X6(e,r),u=s2e(i,e,a),h=new Ke,p=u.map(C=>nH(this,void 0,void 0,function*(){try{s.report(C);const y=yield C.provideCodeActions(e,t,l,c.token);if(y&&h.add(y),c.token.isCancellationRequested)return dz;const I=((y==null?void 0:y.actions)||[]).filter(A=>A&&i2e(a,A)),L=r2e(C,I,a.include);return{actions:I.map(A=>new wJ(A,C)),documentation:L}}catch(y){if(Bu(y))throw y;return ks(y),dz}})),_=i.onDidChange(()=>{const C=i.all(e);ca(C,u)||c.cancel()});return Promise.all(p).then(C=>{const y=C.map(L=>L.actions).flat(),I=gS(C.map(L=>L.documentation));return new oH(y,I,h)}).finally(()=>{_.dispose(),c.dispose()})}function s2e(i,e,t){return i.all(e).filter(n=>n.providedCodeActionKinds?n.providedCodeActionKinds.some(s=>t2e(t,new si(s))):!0)}function r2e(i,e,t){if(!i.documentation)return;const n=i.documentation.map(s=>({kind:new si(s.kind),command:s.command}));if(t){let s;for(const r of n)r.kind.contains(t)&&(s?s.kind.contains(r.kind)&&(s=r):s=r);if(s)return s==null?void 0:s.command}for(const s of e)if(!!s.kind){for(const r of n)if(r.kind.contains(new si(s.kind)))return r.command}}ai.registerCommand("_executeCodeActionProvider",function(i,e,t,n,s){return nH(this,void 0,void 0,function*(){if(!(e instanceof yt))throw hc();const{codeActionProvider:r}=i.get(lt),o=i.get(bn).getModel(e);if(!o)throw hc();const a=nt.isISelection(t)?nt.liftSelection(t):Z.isIRange(t)?o.validateRange(t):void 0;if(!a)throw hc();const l=typeof n=="string"?new si(n):void 0,c=yield aH(r,o,a,{type:1,triggerAction:Pr.Default,filter:{includeSourceActions:!0,include:l}},Lm.None,qt.None),u=[],h=Math.min(c.validActions.length,typeof s=="number"?s:0);for(let p=0;pp.action)}finally{setTimeout(()=>c.dispose(),100)}})});var o2e=globalThis&&globalThis.__decorate||function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},a2e=globalThis&&globalThis.__param||function(i,e){return function(t,n){e(t,n,i)}};let Bo=class S4{constructor(e,t){this._messageWidget=new Or,this._messageListeners=new Ke,this._editor=e,this._visible=S4.MESSAGE_VISIBLE.bindTo(t)}static get(e){return e.getContribution(S4.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){tr(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new hz(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new va(()=>this.closeMessage(),3e3));let n;this._messageListeners.add(this._editor.onMouseMove(s=>{!s.target.position||(n?n.containsPosition(s.target.position)||this.closeMessage():n=new Z(t.lineNumber-3,1,s.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(hz.fadeOut(this._messageWidget.value))}};Bo.ID="editor.contrib.messageController";Bo.MESSAGE_VISIBLE=new ot("messageVisible",!1,T("messageVisible","Whether the editor is currently showing an inline message"));Bo=o2e([a2e(1,Pt)],Bo);const l2e=Es.bindToContribution(Bo.get);je(new l2e({id:"leaveEditorMessage",precondition:Bo.MESSAGE_VISIBLE,handler:i=>i.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class hz{constructor(e,{lineNumber:t,column:n},s){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const r=document.createElement("div");r.classList.add("anchor","top"),this._domNode.appendChild(r);const o=document.createElement("div");o.classList.add("message"),o.textContent=s,this._domNode.appendChild(o);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener("animationend",t)},n=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}}di(Bo.ID,Bo);var AJ=globalThis&&globalThis.__decorate||function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},sd=globalThis&&globalThis.__param||function(i,e){return function(t,n){e(t,n,i)}},c2e=globalThis&&globalThis.__awaiter||function(i,e,t,n){function s(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function a(u){try{c(n.next(u))}catch(h){o(h)}}function l(u){try{c(n.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):s(u.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};const nv={Visible:new ot("CodeActionMenuVisible",!1,T("CodeActionMenuVisible","Whether the code action list widget is visible"))};class D2 extends Ro{constructor(e,t){super(e.command?e.command.id:e.title,u2e(e.title),void 0,!e.disabled,t),this.action=e}}function u2e(i){return i.replace(/\r\n|\r|\n/g," ")}const d2e="codeActionWidget",k2=26;let y4=class{constructor(e,t){this.acceptKeybindings=e,this.keybindingService=t}get templateId(){return d2e}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}renderElement(e,t,n){const s=n,r=e.title,o=e.isEnabled,a=e.isSeparator,l=e.isDocumentation;s.text.textContent=r,o?s.root.classList.remove("option-disabled"):(s.root.classList.add("option-disabled"),s.root.style.backgroundColor="transparent !important"),a&&(s.root.classList.add("separator"),s.root.style.height="10px"),l||(()=>{var u,h;const[p,_]=this.acceptKeybindings;s.root.title=T({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",(u=this.keybindingService.lookupKeybinding(p))===null||u===void 0?void 0:u.getLabel(),(h=this.keybindingService.lookupKeybinding(_))===null||h===void 0?void 0:h.getLabel())})()}disposeTemplate(e){e.disposables=pi(e.disposables)}};y4=AJ([sd(1,rs)],y4);let Hx=class T4 extends Me{constructor(e,t,n,s,r,o,a,l,c,u){super(),this._editor=e,this._delegate=t,this._contextMenuService=n,this._languageFeaturesService=r,this._telemetryService=o,this._configurationService=l,this._contextViewService=c,this._contextKeyService=u,this._showingActions=this._register(new Or),this.codeActionList=this._register(new Or),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new gN({getKeybindings:()=>s.getKeybindings()}),this._ctxMenuWidgetVisible=nv.Visible.bindTo(this._contextKeyService),this.listRenderer=new y4(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],s)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}_onListSelection(e){e.elements.length&&e.elements.forEach(t=>{t.isEnabled&&(t.action.run(),this.hideCodeActionWidget())})}_onListHover(e){var t,n,s,r;e.element?!((n=e.element)===null||n===void 0)&&n.isEnabled?((s=this.codeActionList.value)===null||s===void 0||s.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,(r=this.codeActionList.value)===null||r===void 0||r.setFocus([e.element.index])):(this.currSelectedItem=void 0,(t=this.codeActionList.value)===null||t===void 0||t.setFocus([]))}renderCodeActionMenuList(e,t){var n;const s=new Ke,r=document.createElement("div"),o=document.createElement("div");this.block=e.appendChild(o),this.block.classList.add("context-view-block"),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",s.add(We(this.block,rt.MOUSE_DOWN,p=>p.stopPropagation())),r.id="codeActionMenuWidget",r.classList.add("codeActionMenuWidget"),e.appendChild(r),this.codeActionList.value=new Mc("codeActionWidget",r,{getHeight(p){return p.isSeparator?10:k2},getTemplateId(p){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),s.add(this.codeActionList.value.onMouseOver(p=>this._onListHover(p))),s.add(this.codeActionList.value.onDidChangeFocus(p=>{var _;return(_=this.codeActionList.value)===null||_===void 0?void 0:_.domFocus()})),s.add(this.codeActionList.value.onDidChangeSelection(p=>this._onListSelection(p))),s.add(this._editor.onDidLayoutChange(p=>this.hideCodeActionWidget())),t.forEach((p,_)=>{const C=p.class==="separator";let y=!1;p instanceof D2&&(y=p.action.kind===T4.documentationID),C&&(this.hasSeperator=!0);const I={title:p.label,detail:p.tooltip,action:t[_],isEnabled:p.enabled,isSeparator:C,index:_,isDocumentation:y};p.enabled&&this.viewItems.push(I),this.options.push(I)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const a=this.hasSeperator?(t.length-1)*k2+10:t.length*k2;r.style.height=String(a)+"px",this.codeActionList.value.layout(a);const l=[];this.options.forEach((p,_)=>{var C,y;if(!this.codeActionList.value)return;const I=(y=document.getElementById((C=this.codeActionList.value)===null||C===void 0?void 0:C.getElementID(_)))===null||y===void 0?void 0:y.getElementsByTagName("span")[0].offsetWidth;l.push(Number(I))});const c=Math.max(...l);r.style.width=c+52+"px",(n=this.codeActionList.value)===null||n===void 0||n.layout(a,c),this.viewItems.length<1||this.viewItems.every(p=>p.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const u=kp(e),h=u.onDidBlur(()=>{this.hideCodeActionWidget()});return s.add(h),s.add(u),this._ctxMenuWidgetVisible.set(!0),s}focusPrevious(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let n;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),n=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([n.index]),this.currSelectedItem=n.index;while(this.focusedEnabledItem!==t&&(!n.isEnabled||n.action.id===Cr.ID));return!0}focusNext(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let n;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,n=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([n.index]),this.currSelectedItem=n.index;while(this.focusedEnabledItem!==t&&(!n.isEnabled||n.action.id===Cr.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var e;typeof this.currSelectedItem=="number"&&((e=this.codeActionList.value)===null||e===void 0||e.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(e,t,n){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:n.validActions.length,cancelled:t})}show(e,t,n,s){return c2e(this,void 0,void 0,function*(){const r=this._editor.getModel();if(!r)return;const o=s.includeDisabledActions?t.allActions:t.validActions;if(!o.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,Rq();this._visible=!0,this._showingActions.value=t;const a=this.getMenuActions(e,o,t.documentation),l=we.isIPosition(n)?this._toCoords(n):n||{x:0,y:0},c=this._keybindingResolver.getResolver(),u=this._editor.getOption(117);this.isCodeActionWidgetEnabled(r)?this._contextViewService.showContextView({getAnchor:()=>l,render:h=>this.renderCodeActionMenuList(h,a),onHide:h=>{const p=s.fromLightbulb?Pr.Lightbulb:e.triggerAction;this.codeActionTelemetry(p,h,t),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:u?this._editor.getDomNode():void 0,getAnchor:()=>l,getActions:()=>a,onHide:h=>{const p=s.fromLightbulb?Pr.Lightbulb:e.triggerAction;this.codeActionTelemetry(p,h,t),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof D2?c(h.action):void 0})})}getMenuActions(e,t,n){var s,r;const o=u=>new D2(u.action,()=>this._delegate.onSelectCodeAction(u,e)),a=t.map(o),l=[...n],c=this._editor.getModel();if(c&&a.length)for(const u of this._languageFeaturesService.codeActionProvider.all(c))u._getAdditionalMenuItems&&l.push(...u._getAdditionalMenuItems({trigger:e.type,only:(r=(s=e.filter)===null||s===void 0?void 0:s.include)===null||r===void 0?void 0:r.value},t.map(h=>h.action)));return l.length&&a.push(new Cr,...l.map(u=>o(new wJ({title:u.title,command:u,kind:T4.documentationID},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),n=mr(this._editor.getDomNode()),s=n.left+t.left,r=n.top+t.top+t.height;return{x:s,y:r}}};Hx.documentationID="_documentation";Hx=AJ([sd(2,hh),sd(3,rs),sd(4,lt),sd(5,Ic),sd(6,Ki),sd(7,_i),sd(8,xm),sd(9,Pt)],Hx);class gN{constructor(e){this._keybindingProvider=e}getResolver(){const e=new j0(()=>this._keybindingProvider.getKeybindings().filter(t=>gN.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let n=t.commandArgs;return t.command===sH?n={kind:si.SourceOrganizeImports.value}:t.command===rH&&(n={kind:si.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},cu.fromUser(n,{kind:si.None,apply:"never"}))}));return t=>{if(t.kind){const n=this.bestKeybindingForCodeAction(t,e.getValue());return n==null?void 0:n.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const n=new si(e.kind);return t.filter(s=>s.kind.contains(n)).filter(s=>s.preferred?e.isPreferred:!0).reduceRight((s,r)=>s?s.kind.contains(r.kind)?r:s:r,void 0)}}gN.codeActionCommands=[yJ,SJ,TJ,sH,rH];var h2e=globalThis&&globalThis.__decorate||function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},f2e=globalThis&&globalThis.__param||function(i,e){return function(t,n){e(t,n,i)}},sC;(function(i){i.Hidden={type:0};class e{constructor(n,s,r,o){this.actions=n,this.trigger=s,this.editorPosition=r,this.widgetPosition=o,this.type=1}}i.Showing=e})(sC||(sC={}));let Gx=class xJ extends Me{constructor(e,t,n,s){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=n,this._keybindingService=s,this._onClick=this._register(new be),this.onClick=this._onClick.event,this._state=sC.Hidden,this._domNode=document.createElement("div"),this._domNode.className=x.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(r=>{const o=this._editor.getModel();(this.state.type!==1||!o||this.state.editorPosition.lineNumber>=o.getLineCount())&&this.hide()})),Mi.ignoreTarget(this._domNode),this._register(W1e(this._domNode,r=>{if(this.state.type!==1)return;this._editor.focus(),r.preventDefault();const{top:o,height:a}=mr(this._domNode),l=this._editor.getOption(61);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(r.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,n){if(e.validActions.length<=0)return this.hide();const s=this._editor.getOptions();if(!s.get(59).enabled)return this.hide();const r=this._editor.getModel();if(!r)return this.hide();const{lineNumber:o,column:a}=r.validatePosition(n),l=r.getOptions().tabSize,c=s.get(46),u=r.getLineContent(o),h=PI(u,l),p=c.spaceWidth*h>22,_=y=>y>2&&this._editor.getTopForLineNumber(y)===this._editor.getTopForLineNumber(y-1);let C=o;if(!p){if(o>1&&!_(o-1))C-=1;else if(!_(o+1))C+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new sC.Showing(e,t,n,{position:{lineNumber:C,column:1},preference:xJ._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=sC.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...x.lightBulb.classNamesArray),this._domNode.classList.add(...x.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=T("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...x.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...x.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=T("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=T("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};Gx._posPref=[0];Gx=h2e([f2e(3,rs)],Gx);en((i,e)=>{var t;const n=(t=i.getColor(us))===null||t===void 0?void 0:t.transparent(.7),s=i.getColor(nbe);s&&e.addRule(` + *-----------------------------------------------------------------------------*/var ADe=Object.defineProperty,xDe=Object.getOwnPropertyDescriptor,LDe=Object.getOwnPropertyNames,IDe=Object.prototype.hasOwnProperty,uz=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of LDe(e))!IDe.call(i,s)&&s!==t&&ADe(i,s,{get:()=>e[s],enumerable:!(n=xDe(e,s))||n.enumerable});return i},NDe=(i,e,t)=>(uz(i,e,"default"),t&&uz(t,e,"default")),MDe="4.5.5",b1={};NDe(b1,FS);var cJ=(i=>(i[i.None=0]="None",i[i.CommonJS=1]="CommonJS",i[i.AMD=2]="AMD",i[i.UMD=3]="UMD",i[i.System=4]="System",i[i.ES2015=5]="ES2015",i[i.ESNext=99]="ESNext",i))(cJ||{}),uJ=(i=>(i[i.None=0]="None",i[i.Preserve=1]="Preserve",i[i.React=2]="React",i[i.ReactNative=3]="ReactNative",i[i.ReactJSX=4]="ReactJSX",i[i.ReactJSXDev=5]="ReactJSXDev",i))(uJ||{}),dJ=(i=>(i[i.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",i[i.LineFeed=1]="LineFeed",i))(dJ||{}),hJ=(i=>(i[i.ES3=0]="ES3",i[i.ES5=1]="ES5",i[i.ES2015=2]="ES2015",i[i.ES2016=3]="ES2016",i[i.ES2017=4]="ES2017",i[i.ES2018=5]="ES2018",i[i.ES2019=6]="ES2019",i[i.ES2020=7]="ES2020",i[i.ESNext=99]="ESNext",i[i.JSON=100]="JSON",i[i.Latest=99]="Latest",i))(hJ||{}),fJ=(i=>(i[i.Classic=1]="Classic",i[i.NodeJs=2]="NodeJs",i))(fJ||{}),gJ=class{constructor(i,e,t,n){Dt(this,"_onDidChange",new b1.Emitter);Dt(this,"_onDidExtraLibsChange",new b1.Emitter);Dt(this,"_extraLibs");Dt(this,"_removedExtraLibs");Dt(this,"_eagerModelSync");Dt(this,"_compilerOptions");Dt(this,"_diagnosticsOptions");Dt(this,"_workerOptions");Dt(this,"_onDidExtraLibsChangeTimeout");Dt(this,"_inlayHintsOptions");this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(i),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(i,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===i)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(n=this._extraLibs[t].version+1),this._extraLibs[t]={content:i,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let s=this._extraLibs[t];!s||s.version===n&&(delete this._extraLibs[t],this._removedExtraLibs[t]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(i){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),i&&i.length>0)for(const e of i){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=e.content;let s=1;this._removedExtraLibs[t]&&(s=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:n,version:s}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(i){this._compilerOptions=i||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(i){this._diagnosticsOptions=i||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(i){this._workerOptions=i||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(i){this._inlayHintsOptions=i||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(i){}setEagerModelSync(i){this._eagerModelSync=i}getEagerModelSync(){return this._eagerModelSync}},DDe=MDe,pJ=new gJ({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),mJ=new gJ({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),kDe=()=>dN().then(i=>i.getTypeScriptWorker()),RDe=()=>dN().then(i=>i.getJavaScriptWorker());b1.languages.typescript={ModuleKind:cJ,JsxEmit:uJ,NewLineKind:dJ,ScriptTarget:hJ,ModuleResolutionKind:fJ,typescriptVersion:DDe,typescriptDefaults:pJ,javascriptDefaults:mJ,getTypeScriptWorker:kDe,getJavaScriptWorker:RDe};function dN(){return ft(()=>import("./tsMode.62ad3313.js"),[])}b1.languages.onLanguage("typescript",()=>dN().then(i=>i.setupTypeScript(pJ)));b1.languages.onLanguage("javascript",()=>dN().then(i=>i.setupJavaScript(mJ)));var ODe=globalThis&&globalThis.__decorate||function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},PDe=globalThis&&globalThis.__param||function(i,e){return function(t,n){e(t,n,i)}},hN=globalThis&&globalThis.__awaiter||function(i,e,t,n){function s(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function a(u){try{c(n.next(u))}catch(h){o(h)}}function l(u){try{c(n.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):s(u.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};const fN=new ot("selectionAnchorSet",!1);let eh=class _J{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=fN.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(_J.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(nt.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new co().appendText(T("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),tr(T("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(nt.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};eh.ID="editor.contrib.selectionAnchorController";eh=ODe([PDe(1,Pt)],eh);class FDe extends at{constructor(){super({id:"editor.action.setSelectionAnchor",label:T("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:ue.editorTextFocus,primary:fs(2089,2080),weight:100}})}run(e,t){var n;return hN(this,void 0,void 0,function*(){(n=eh.get(t))===null||n===void 0||n.setSelectionAnchor()})}}class BDe extends at{constructor(){super({id:"editor.action.goToSelectionAnchor",label:T("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:fN})}run(e,t){var n;return hN(this,void 0,void 0,function*(){(n=eh.get(t))===null||n===void 0||n.goToSelectionAnchor()})}}class HDe extends at{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:T("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:fN,kbOpts:{kbExpr:ue.editorTextFocus,primary:fs(2089,2089),weight:100}})}run(e,t){var n;return hN(this,void 0,void 0,function*(){(n=eh.get(t))===null||n===void 0||n.selectFromAnchorToCursor()})}}class GDe extends at{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:T("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:fN,kbOpts:{kbExpr:ue.editorTextFocus,primary:9,weight:100}})}run(e,t){var n;return hN(this,void 0,void 0,function*(){(n=eh.get(t))===null||n===void 0||n.cancelSelectionAnchor()})}}di(eh.ID,eh);$e(FDe);$e(BDe);$e(HDe);$e(GDe);const VDe=he("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},T("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class WDe extends at{constructor(){super({id:"editor.action.jumpToBracket",label:T("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:ue.editorTextFocus,primary:3160,weight:100}})}run(e,t){var n;(n=mc.get(t))===null||n===void 0||n.jumpToBracket()}}class zDe extends at{constructor(){super({id:"editor.action.selectToBracket",label:T("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,n){var s;let r=!0;n&&n.selectBrackets===!1&&(r=!1),(s=mc.get(t))===null||s===void 0||s.selectToBracket(r)}}class KDe{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}}class mc extends Me{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new ki(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(66),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(66)&&(this._matchBrackets=this._editor.getOption(66),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(mc.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(n=>{const s=n.getStartPosition(),r=e.bracketPairs.matchBracket(s);let o=null;if(r)r[0].containsPosition(s)&&!r[1].containsPosition(s)?o=r[1].getStartPosition():r[1].containsPosition(s)&&(o=r[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(s);if(a)o=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(s);l&&l.range&&(o=l.range.getStartPosition())}}return o?new nt(o.lineNumber,o.column,o.lineNumber,o.column):new nt(s.lineNumber,s.column,s.lineNumber,s.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(s=>{const r=s.getStartPosition();let o=t.bracketPairs.matchBracket(r);if(!o&&(o=t.bracketPairs.findEnclosingBrackets(r),!o)){const c=t.bracketPairs.findNextBracket(r);c&&c.range&&(o=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(o){o.sort(Z.compareRangesUsingStarts);const[c,u]=o;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?u.getEndPosition():u.getStartPosition(),u.containsPosition(r)){const h=a;a=l,l=h}}a&&l&&n.push(new nt(a.lineNumber,a.column,l.lineNumber,l.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const n of this._lastBracketsData){const s=n.brackets;s&&(e[t++]={range:s[0],options:n.options},e[t++]={range:s[1],options:n.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),n=t.getVersionId();let s=[];this._lastVersionId===n&&(s=this._lastBracketsData);const r=[];let o=0;for(let h=0,p=e.length;h1&&r.sort(we.compare);const a=[];let l=0,c=0;const u=s.length;for(let h=0,p=r.length;h{const t=i.getColor(DCe);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const n=i.getColor(wX);n&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${n}; }`)});Ua.appendMenuItem(me.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:T({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class UDe{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const n=this._selection.startLineNumber,s=this._selection.startColumn,r=this._selection.endColumn;if(!(this._isMovingLeft&&s===1)&&!(!this._isMovingLeft&&r===e.getLineMaxColumn(n)))if(this._isMovingLeft){const o=new Z(n,s-1,n,s),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new Z(n,r,n,r),a)}else{const o=new Z(n,r,n,r+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new Z(n,s,n,s),a)}}computeCursorState(e,t){return this._isMovingLeft?new nt(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new nt(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class vJ extends at{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const n=[],s=t.getSelections();for(const r of s)n.push(new UDe(r,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class YDe extends vJ{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:T("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:ue.writable})}}class jDe extends vJ{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:T("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:ue.writable})}}$e(YDe);$e(jDe);class qDe extends at{constructor(){super({id:"editor.action.transposeLetters",label:T("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:ue.writable,kbOpts:{kbExpr:ue.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const n=t.getModel(),s=[],r=t.getSelections();for(const o of r){if(!o.isEmpty())continue;const a=o.startLineNumber,l=o.startColumn,c=n.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;const u=l===c?o.getPosition():Ci.rightPosition(n,o.getPosition().lineNumber,o.getPosition().column),h=Ci.leftPosition(n,u),p=Ci.leftPosition(n,h),_=n.getValueInRange(Z.fromPositions(p,h)),C=n.getValueInRange(Z.fromPositions(h,u)),y=Z.fromPositions(p,u);s.push(new Ks(y,C+_))}s.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop())}}$e(qDe);var $De=globalThis&&globalThis.__awaiter||function(i,e,t,n){function s(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function a(u){try{c(n.next(u))}catch(h){o(h)}}function l(u){try{c(n.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):s(u.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};const qp="9_cutcopypaste",XDe=dc||document.queryCommandSupported("cut"),bJ=dc||document.queryCommandSupported("copy"),QDe=typeof navigator.clipboard>"u"||pa?document.queryCommandSupported("paste"):!0;function iH(i){return i.register(),i}const ZDe=XDe?iH(new j1({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:dc?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:me.MenubarEditMenu,group:"2_ccp",title:T({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:me.EditorContext,group:qp,title:T("actions.clipboard.cutLabel","Cut"),when:ue.writable,order:1},{menuId:me.CommandPalette,group:"",title:T("actions.clipboard.cutLabel","Cut"),order:1},{menuId:me.SimpleEditorContext,group:qp,title:T("actions.clipboard.cutLabel","Cut"),when:ue.writable,order:1}]})):void 0,JDe=bJ?iH(new j1({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:dc?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:me.MenubarEditMenu,group:"2_ccp",title:T({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:me.EditorContext,group:qp,title:T("actions.clipboard.copyLabel","Copy"),order:2},{menuId:me.CommandPalette,group:"",title:T("actions.clipboard.copyLabel","Copy"),order:1},{menuId:me.SimpleEditorContext,group:qp,title:T("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Ua.appendMenuItem(me.MenubarEditMenu,{submenu:me.MenubarCopy,title:{value:T("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Ua.appendMenuItem(me.EditorContext,{submenu:me.EditorContextCopy,title:{value:T("copy as","Copy As"),original:"Copy As"},group:qp,order:3});Ua.appendMenuItem(me.EditorContext,{submenu:me.EditorContextShare,title:{value:T("share","Share"),original:"Share"},group:"11_share",order:-1});const M2=QDe?iH(new j1({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:dc?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:me.MenubarEditMenu,group:"2_ccp",title:T({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:me.EditorContext,group:qp,title:T("actions.clipboard.pasteLabel","Paste"),when:ue.writable,order:4},{menuId:me.CommandPalette,group:"",title:T("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:me.SimpleEditorContext,group:qp,title:T("actions.clipboard.pasteLabel","Paste"),when:ue.writable,order:4}]})):void 0;class e2e extends at{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:T("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:ue.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(33)&&t.getSelection().isEmpty()||(XO.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),XO.forceCopyWithSyntaxHighlighting=!1)}}function CJ(i,e){!i||(i.addImplementation(1e4,"code-editor",(t,n)=>{const s=t.get(Ei).getFocusedCodeEditor();if(s&&s.hasTextFocus()){const r=s.getOption(33),o=s.getSelection();return o&&o.isEmpty()&&!r||document.execCommand(e),!0}return!1}),i.addImplementation(0,"generic-dom",(t,n)=>(document.execCommand(e),!0)))}CJ(ZDe,"cut");CJ(JDe,"copy");M2&&(M2.addImplementation(1e4,"code-editor",(i,e)=>{const t=i.get(Ei),n=i.get(fh),s=t.getFocusedCodeEditor();return s&&s.hasTextFocus()?!document.execCommand("paste")&&tg?(()=>$De(void 0,void 0,void 0,function*(){const o=yield n.readText();if(o!==""){const a=jC.INSTANCE.get(o);let l=!1,c=null,u=null;a&&(l=s.getOption(33)&&!!a.isFromEmptySelection,c=typeof a.multicursorText<"u"?a.multicursorText:null,u=a.mode),s.trigger("keyboard","paste",{text:o,pasteOnNewLine:l,multicursorText:c,mode:u})}}))():!0:!1}),M2.addImplementation(0,"generic-dom",(i,e)=>(document.execCommand("paste"),!0)));bJ&&$e(e2e);class si{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+si.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new si(this.value+si.sep+e)}}si.sep=".";si.None=new si("@@none@@");si.Empty=new si("");si.QuickFix=new si("quickfix");si.Refactor=new si("refactor");si.Source=new si("source");si.SourceOrganizeImports=si.Source.append("organizeImports");si.SourceFixAll=si.Source.append("fixAll");var Pr;(function(i){i.Refactor="refactor",i.RefactorPreview="refactor preview",i.Lightbulb="lightbulb",i.Default="other (default)",i.SourceAction="source action",i.QuickFix="quick fix action",i.FixAll="fix all",i.OrganizeImports="organize imports",i.AutoFix="auto fix",i.QuickFixHover="quick fix hover window",i.OnSave="save participants",i.ProblemsView="problems view"})(Pr||(Pr={}));function t2e(i,e){return!(i.include&&!i.include.intersects(e)||i.excludes&&i.excludes.some(t=>EJ(e,t,i.include))||!i.includeSourceActions&&si.Source.contains(e))}function i2e(i,e){const t=e.kind?new si(e.kind):void 0;return!(i.include&&(!t||!i.include.contains(t))||i.excludes&&t&&i.excludes.some(n=>EJ(t,n,i.include))||!i.includeSourceActions&&t&&si.Source.contains(t)||i.onlyIncludePreferredActions&&!e.isPreferred)}function EJ(i,e,t){return!(!e.contains(i)||t&&e.contains(t))}class cu{constructor(e,t,n){this.kind=e,this.apply=t,this.preferred=n}static fromUser(e,t){return!e||typeof e!="object"?new cu(t.kind,t.apply,!1):new cu(cu.getKindFromUser(e,t.kind),cu.getApplyFromUser(e,t.apply),cu.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new si(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var nH=globalThis&&globalThis.__awaiter||function(i,e,t,n){function s(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function a(u){try{c(n.next(u))}catch(h){o(h)}}function l(u){try{c(n.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):s(u.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};const SJ="editor.action.codeAction",yJ="editor.action.refactor",n2e="editor.action.refactor.preview",TJ="editor.action.sourceAction",sH="editor.action.organizeImports",rH="editor.action.fixAll";class wJ{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return nH(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let n;try{n=yield this.provider.resolveCodeAction(this.action,e)}catch(s){ks(s)}n&&(this.action.edit=n.edit)}return this})}}class oH extends Me{constructor(e,t,n){super(),this.documentation=t,this._register(n),this.allActions=[...e].sort(oH.codeActionsComparator),this.validActions=this.allActions.filter(({action:s})=>!s.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:vr(e.diagnostics)?vr(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:vr(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&si.QuickFix.contains(new si(e.kind))&&!!e.isPreferred)}}const dz={actions:[],documentation:void 0};function aH(i,e,t,n,s,r){var o;const a=n.filter||{},l={only:(o=a.include)===null||o===void 0?void 0:o.value,trigger:n.type},c=new X6(e,r),u=s2e(i,e,a),h=new Ke,p=u.map(C=>nH(this,void 0,void 0,function*(){try{s.report(C);const y=yield C.provideCodeActions(e,t,l,c.token);if(y&&h.add(y),c.token.isCancellationRequested)return dz;const I=((y==null?void 0:y.actions)||[]).filter(A=>A&&i2e(a,A)),L=r2e(C,I,a.include);return{actions:I.map(A=>new wJ(A,C)),documentation:L}}catch(y){if(Bu(y))throw y;return ks(y),dz}})),_=i.onDidChange(()=>{const C=i.all(e);ca(C,u)||c.cancel()});return Promise.all(p).then(C=>{const y=C.map(L=>L.actions).flat(),I=gS(C.map(L=>L.documentation));return new oH(y,I,h)}).finally(()=>{_.dispose(),c.dispose()})}function s2e(i,e,t){return i.all(e).filter(n=>n.providedCodeActionKinds?n.providedCodeActionKinds.some(s=>t2e(t,new si(s))):!0)}function r2e(i,e,t){if(!i.documentation)return;const n=i.documentation.map(s=>({kind:new si(s.kind),command:s.command}));if(t){let s;for(const r of n)r.kind.contains(t)&&(s?s.kind.contains(r.kind)&&(s=r):s=r);if(s)return s==null?void 0:s.command}for(const s of e)if(!!s.kind){for(const r of n)if(r.kind.contains(new si(s.kind)))return r.command}}ai.registerCommand("_executeCodeActionProvider",function(i,e,t,n,s){return nH(this,void 0,void 0,function*(){if(!(e instanceof yt))throw hc();const{codeActionProvider:r}=i.get(lt),o=i.get(bn).getModel(e);if(!o)throw hc();const a=nt.isISelection(t)?nt.liftSelection(t):Z.isIRange(t)?o.validateRange(t):void 0;if(!a)throw hc();const l=typeof n=="string"?new si(n):void 0,c=yield aH(r,o,a,{type:1,triggerAction:Pr.Default,filter:{includeSourceActions:!0,include:l}},Lm.None,qt.None),u=[],h=Math.min(c.validActions.length,typeof s=="number"?s:0);for(let p=0;pp.action)}finally{setTimeout(()=>c.dispose(),100)}})});var o2e=globalThis&&globalThis.__decorate||function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},a2e=globalThis&&globalThis.__param||function(i,e){return function(t,n){e(t,n,i)}};let Bo=class S4{constructor(e,t){this._messageWidget=new Or,this._messageListeners=new Ke,this._editor=e,this._visible=S4.MESSAGE_VISIBLE.bindTo(t)}static get(e){return e.getContribution(S4.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){tr(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new hz(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new va(()=>this.closeMessage(),3e3));let n;this._messageListeners.add(this._editor.onMouseMove(s=>{!s.target.position||(n?n.containsPosition(s.target.position)||this.closeMessage():n=new Z(t.lineNumber-3,1,s.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(hz.fadeOut(this._messageWidget.value))}};Bo.ID="editor.contrib.messageController";Bo.MESSAGE_VISIBLE=new ot("messageVisible",!1,T("messageVisible","Whether the editor is currently showing an inline message"));Bo=o2e([a2e(1,Pt)],Bo);const l2e=Es.bindToContribution(Bo.get);je(new l2e({id:"leaveEditorMessage",precondition:Bo.MESSAGE_VISIBLE,handler:i=>i.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class hz{constructor(e,{lineNumber:t,column:n},s){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const r=document.createElement("div");r.classList.add("anchor","top"),this._domNode.appendChild(r);const o=document.createElement("div");o.classList.add("message"),o.textContent=s,this._domNode.appendChild(o);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener("animationend",t)},n=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}}di(Bo.ID,Bo);var AJ=globalThis&&globalThis.__decorate||function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},sd=globalThis&&globalThis.__param||function(i,e){return function(t,n){e(t,n,i)}},c2e=globalThis&&globalThis.__awaiter||function(i,e,t,n){function s(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function a(u){try{c(n.next(u))}catch(h){o(h)}}function l(u){try{c(n.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):s(u.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};const nv={Visible:new ot("CodeActionMenuVisible",!1,T("CodeActionMenuVisible","Whether the code action list widget is visible"))};class D2 extends Ro{constructor(e,t){super(e.command?e.command.id:e.title,u2e(e.title),void 0,!e.disabled,t),this.action=e}}function u2e(i){return i.replace(/\r\n|\r|\n/g," ")}const d2e="codeActionWidget",k2=26;let y4=class{constructor(e,t){this.acceptKeybindings=e,this.keybindingService=t}get templateId(){return d2e}renderTemplate(e){const t=Object.create(null);return t.disposables=[],t.root=e,t.text=document.createElement("span"),e.append(t.text),t}renderElement(e,t,n){const s=n,r=e.title,o=e.isEnabled,a=e.isSeparator,l=e.isDocumentation;s.text.textContent=r,o?s.root.classList.remove("option-disabled"):(s.root.classList.add("option-disabled"),s.root.style.backgroundColor="transparent !important"),a&&(s.root.classList.add("separator"),s.root.style.height="10px"),l||(()=>{var u,h;const[p,_]=this.acceptKeybindings;s.root.title=T({key:"label",comment:['placeholders are keybindings, e.g "F2 to Refactor, Shift+F2 to Preview"']},"{0} to Refactor, {1} to Preview",(u=this.keybindingService.lookupKeybinding(p))===null||u===void 0?void 0:u.getLabel(),(h=this.keybindingService.lookupKeybinding(_))===null||h===void 0?void 0:h.getLabel())})()}disposeTemplate(e){e.disposables=pi(e.disposables)}};y4=AJ([sd(1,rs)],y4);let Hx=class T4 extends Me{constructor(e,t,n,s,r,o,a,l,c,u){super(),this._editor=e,this._delegate=t,this._contextMenuService=n,this._languageFeaturesService=r,this._telemetryService=o,this._configurationService=l,this._contextViewService=c,this._contextKeyService=u,this._showingActions=this._register(new Or),this.codeActionList=this._register(new Or),this.options=[],this._visible=!1,this.viewItems=[],this.hasSeperator=!1,this._keybindingResolver=new gN({getKeybindings:()=>s.getKeybindings()}),this._ctxMenuWidgetVisible=nv.Visible.bindTo(this._contextKeyService),this.listRenderer=new y4(["onEnterSelectCodeAction","onEnterSelectCodeActionWithPreview"],s)}get isVisible(){return this._visible}isCodeActionWidgetEnabled(e){return this._configurationService.getValue("editor.experimental.useCustomCodeActionMenu",{resource:e.uri})}_onListSelection(e){e.elements.length&&e.elements.forEach(t=>{t.isEnabled&&(t.action.run(),this.hideCodeActionWidget())})}_onListHover(e){var t,n,s,r;e.element?!((n=e.element)===null||n===void 0)&&n.isEnabled?((s=this.codeActionList.value)===null||s===void 0||s.setFocus([e.element.index]),this.focusedEnabledItem=this.viewItems.indexOf(e.element),this.currSelectedItem=e.element.index):(this.currSelectedItem=void 0,(r=this.codeActionList.value)===null||r===void 0||r.setFocus([e.element.index])):(this.currSelectedItem=void 0,(t=this.codeActionList.value)===null||t===void 0||t.setFocus([]))}renderCodeActionMenuList(e,t){var n;const s=new Ke,r=document.createElement("div"),o=document.createElement("div");this.block=e.appendChild(o),this.block.classList.add("context-view-block"),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",s.add(We(this.block,rt.MOUSE_DOWN,p=>p.stopPropagation())),r.id="codeActionMenuWidget",r.classList.add("codeActionMenuWidget"),e.appendChild(r),this.codeActionList.value=new Mc("codeActionWidget",r,{getHeight(p){return p.isSeparator?10:k2},getTemplateId(p){return"codeActionWidget"}},[this.listRenderer],{keyboardSupport:!1}),s.add(this.codeActionList.value.onMouseOver(p=>this._onListHover(p))),s.add(this.codeActionList.value.onDidChangeFocus(p=>{var _;return(_=this.codeActionList.value)===null||_===void 0?void 0:_.domFocus()})),s.add(this.codeActionList.value.onDidChangeSelection(p=>this._onListSelection(p))),s.add(this._editor.onDidLayoutChange(p=>this.hideCodeActionWidget())),t.forEach((p,_)=>{const C=p.class==="separator";let y=!1;p instanceof D2&&(y=p.action.kind===T4.documentationID),C&&(this.hasSeperator=!0);const I={title:p.label,detail:p.tooltip,action:t[_],isEnabled:p.enabled,isSeparator:C,index:_,isDocumentation:y};p.enabled&&this.viewItems.push(I),this.options.push(I)}),this.codeActionList.value.splice(0,this.codeActionList.value.length,this.options);const a=this.hasSeperator?(t.length-1)*k2+10:t.length*k2;r.style.height=String(a)+"px",this.codeActionList.value.layout(a);const l=[];this.options.forEach((p,_)=>{var C,y;if(!this.codeActionList.value)return;const I=(y=document.getElementById((C=this.codeActionList.value)===null||C===void 0?void 0:C.getElementID(_)))===null||y===void 0?void 0:y.getElementsByTagName("span")[0].offsetWidth;l.push(Number(I))});const c=Math.max(...l);r.style.width=c+52+"px",(n=this.codeActionList.value)===null||n===void 0||n.layout(a,c),this.viewItems.length<1||this.viewItems.every(p=>p.isDocumentation)?this.currSelectedItem=void 0:(this.focusedEnabledItem=0,this.currSelectedItem=this.viewItems[0].index,this.codeActionList.value.setFocus([this.currSelectedItem])),this.codeActionList.value.domFocus();const u=kp(e),h=u.onDidBlur(()=>{this.hideCodeActionWidget()});return s.add(h),s.add(u),this._ctxMenuWidgetVisible.set(!0),s}focusPrevious(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems[0].index;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let n;do this.focusedEnabledItem=this.focusedEnabledItem-1,this.focusedEnabledItem<0&&(this.focusedEnabledItem=this.viewItems.length-1),n=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([n.index]),this.currSelectedItem=n.index;while(this.focusedEnabledItem!==t&&(!n.isEnabled||n.action.id===Cr.ID));return!0}focusNext(){var e;if(typeof this.focusedEnabledItem>"u")this.focusedEnabledItem=this.viewItems.length-1;else if(this.viewItems.length<1)return!1;const t=this.focusedEnabledItem;let n;do this.focusedEnabledItem=(this.focusedEnabledItem+1)%this.viewItems.length,n=this.viewItems[this.focusedEnabledItem],(e=this.codeActionList.value)===null||e===void 0||e.setFocus([n.index]),this.currSelectedItem=n.index;while(this.focusedEnabledItem!==t&&(!n.isEnabled||n.action.id===Cr.ID));return!0}navigateListWithKeysUp(){this.focusPrevious()}navigateListWithKeysDown(){this.focusNext()}onEnterSet(){var e;typeof this.currSelectedItem=="number"&&((e=this.codeActionList.value)===null||e===void 0||e.setSelection([this.currSelectedItem]))}dispose(){super.dispose()}hideCodeActionWidget(){this._ctxMenuWidgetVisible.reset(),this.options=[],this.viewItems=[],this.focusedEnabledItem=0,this.currSelectedItem=void 0,this.hasSeperator=!1,this._contextViewService.hideContextView({source:this})}codeActionTelemetry(e,t,n){this._telemetryService.publicLog2("codeAction.applyCodeAction",{codeActionFrom:e,validCodeActions:n.validActions.length,cancelled:t})}show(e,t,n,s){return c2e(this,void 0,void 0,function*(){const r=this._editor.getModel();if(!r)return;const o=s.includeDisabledActions?t.allActions:t.validActions;if(!o.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,Rq();this._visible=!0,this._showingActions.value=t;const a=this.getMenuActions(e,o,t.documentation),l=we.isIPosition(n)?this._toCoords(n):n||{x:0,y:0},c=this._keybindingResolver.getResolver(),u=this._editor.getOption(117);this.isCodeActionWidgetEnabled(r)?this._contextViewService.showContextView({getAnchor:()=>l,render:h=>this.renderCodeActionMenuList(h,a),onHide:h=>{const p=s.fromLightbulb?Pr.Lightbulb:e.triggerAction;this.codeActionTelemetry(p,h,t),this._visible=!1,this._editor.focus()}},this._editor.getDomNode(),!1):this._contextMenuService.showContextMenu({domForShadowRoot:u?this._editor.getDomNode():void 0,getAnchor:()=>l,getActions:()=>a,onHide:h=>{const p=s.fromLightbulb?Pr.Lightbulb:e.triggerAction;this.codeActionTelemetry(p,h,t),this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:h=>h instanceof D2?c(h.action):void 0})})}getMenuActions(e,t,n){var s,r;const o=u=>new D2(u.action,()=>this._delegate.onSelectCodeAction(u,e)),a=t.map(o),l=[...n],c=this._editor.getModel();if(c&&a.length)for(const u of this._languageFeaturesService.codeActionProvider.all(c))u._getAdditionalMenuItems&&l.push(...u._getAdditionalMenuItems({trigger:e.type,only:(r=(s=e.filter)===null||s===void 0?void 0:s.include)===null||r===void 0?void 0:r.value},t.map(h=>h.action)));return l.length&&a.push(new Cr,...l.map(u=>o(new wJ({title:u.title,command:u,kind:T4.documentationID},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),n=mr(this._editor.getDomNode()),s=n.left+t.left,r=n.top+t.top+t.height;return{x:s,y:r}}};Hx.documentationID="_documentation";Hx=AJ([sd(2,hh),sd(3,rs),sd(4,lt),sd(5,Ic),sd(6,Ki),sd(7,_i),sd(8,xm),sd(9,Pt)],Hx);class gN{constructor(e){this._keybindingProvider=e}getResolver(){const e=new j0(()=>this._keybindingProvider.getKeybindings().filter(t=>gN.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let n=t.commandArgs;return t.command===sH?n={kind:si.SourceOrganizeImports.value}:t.command===rH&&(n={kind:si.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},cu.fromUser(n,{kind:si.None,apply:"never"}))}));return t=>{if(t.kind){const n=this.bestKeybindingForCodeAction(t,e.getValue());return n==null?void 0:n.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const n=new si(e.kind);return t.filter(s=>s.kind.contains(n)).filter(s=>s.preferred?e.isPreferred:!0).reduceRight((s,r)=>s?s.kind.contains(r.kind)?r:s:r,void 0)}}gN.codeActionCommands=[yJ,SJ,TJ,sH,rH];var h2e=globalThis&&globalThis.__decorate||function(i,e,t,n){var s=arguments.length,r=s<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(r=(s<3?o(r):s>3?o(e,t,r):o(e,t))||r);return s>3&&r&&Object.defineProperty(e,t,r),r},f2e=globalThis&&globalThis.__param||function(i,e){return function(t,n){e(t,n,i)}},sC;(function(i){i.Hidden={type:0};class e{constructor(n,s,r,o){this.actions=n,this.trigger=s,this.editorPosition=r,this.widgetPosition=o,this.type=1}}i.Showing=e})(sC||(sC={}));let Gx=class xJ extends Me{constructor(e,t,n,s){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=n,this._keybindingService=s,this._onClick=this._register(new be),this.onClick=this._onClick.event,this._state=sC.Hidden,this._domNode=document.createElement("div"),this._domNode.className=x.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(r=>{const o=this._editor.getModel();(this.state.type!==1||!o||this.state.editorPosition.lineNumber>=o.getLineCount())&&this.hide()})),Mi.ignoreTarget(this._domNode),this._register(W1e(this._domNode,r=>{if(this.state.type!==1)return;this._editor.focus(),r.preventDefault();const{top:o,height:a}=mr(this._domNode),l=this._editor.getOption(61);let c=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(r.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,n){if(e.validActions.length<=0)return this.hide();const s=this._editor.getOptions();if(!s.get(59).enabled)return this.hide();const r=this._editor.getModel();if(!r)return this.hide();const{lineNumber:o,column:a}=r.validatePosition(n),l=r.getOptions().tabSize,c=s.get(46),u=r.getLineContent(o),h=PI(u,l),p=c.spaceWidth*h>22,_=y=>y>2&&this._editor.getTopForLineNumber(y)===this._editor.getTopForLineNumber(y-1);let C=o;if(!p){if(o>1&&!_(o-1))C-=1;else if(!_(o+1))C+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new sC.Showing(e,t,n,{position:{lineNumber:C,column:1},preference:xJ._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=sC.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...x.lightBulb.classNamesArray),this._domNode.classList.add(...x.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=T("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...x.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...x.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=T("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=T("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};Gx._posPref=[0];Gx=h2e([f2e(3,rs)],Gx);en((i,e)=>{var t;const n=(t=i.getColor(us))===null||t===void 0?void 0:t.transparent(.7),s=i.getColor(nbe);s&&e.addRule(` .monaco-editor .contentWidgets ${x.lightBulb.cssSelector} { color: ${s}; background-color: ${n}; @@ -876,7 +876,7 @@ maximize z: `+this.strExpr(e.c)+`; ${ci.DPS}: ${i.dps.toFixed(2)} -`+fg(...t)}function t8e(i,e){const t=new es(ci.NAME,ci.DAMAGE,ci.RELATIVE);t.AddRow(i,e.damage,BT(e.relative));for(const n in e.elements){const s=parseInt(n);t.AddRow(d.stat.Name(s),e.elements[n].damage,BT(e.elements[n].relative))}for(const n in e.talents){const s=parseInt(n);t.AddRow(d.stat.Name(s),e.talents[n].damage,BT(e.talents[n].relative))}for(const n in e.instances)t.AddRow(n,e.instances[n].damage,BT(e.instances[n].relative));return t.toString()}var BT=i=>i*100;function i8e(...i){const e=new es("NAME","STARS","TYPE","EFFECTS");for(const t of i){const n=(()=>{if(t instanceof F0.Food){const s=t.GetRank();return t.Options.Effects.map(([r,o,a])=>{const l=o+(a-o)*(s-1)/2;return`${d.stat.Name(r)}: ${l}`}).join(", ")}else return t.Effects.map(([s,r,o])=>`${d.stat.Name(s)}: ${r}-${o}`).join(", ")})();e.AddRow(t.Name,t.Stars,t.Type,n)}return e.String()}var n8e=[{Name:V.hits.HIT_Q_1,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.6816000000000004}]},{Name:V.hits.HIT_Q_2,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.49090000000000006}]}],s8e=k.Factory({Name:"ChevreuseC2",OnApply:new k.Builder().instance.Options({Name:"HIT_C2",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Initial:1.2,Talent:d.stat.NONE}]}).Build()}),r8e=k.Factory({Name:"ChevreuseC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),o8e=k.Factory({Name:"ChevreuseC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),a8e=k.Factory({Name:"ChevreuseC6",ApplyOther:!0,MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.PYRO_DMG,d.stat.ELECTRO_DMG).Values(.2).Stacks().Build()}),l8e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5313}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.49310000000000004}]},{Name:V.hits.HIT_N3_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2764}]},{Name:V.hits.HIT_N3_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3245}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7726000000000001}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2168999999999999}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],c8e=k.Factory({Name:"ChevreuseA1",Conditions:["HIT_OVERLOAD"],ApplyOther:!0,MaxConditions:1,OnApply:new k.Builder().Where({owner:{ascension:1},effect:{conditions:["HIT_OVERLOAD"]}}).stat.Enemy(d.stat.PYRO_RES,d.stat.ELECTRO_RES).Values(-.4).Build()}),u8e=k.Factory({Name:"ChevreuseA4",ApplyOther:!0,MaxConditions:1,OnApply:new k.Builder().Where({owner:{ascension:4},target:{element:[d.stat.PYRO_DMG,d.stat.ELECTRO_DMG]}}).observe.Owner(d.stat.HP_BASE,d.stat.HP_PERCENT,d.stat.HP_FLAT).stat.Enemy(d.stat.ATK_PERCENT).Values(1/100).Map((i,e,t)=>{const s=t.Owner.GetCharacter().Get(d.stat.HP);return Math.min(i*s/1e3,.4)}).Build()}),d8e=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.1520000000000001}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.7280000000000002}]},{Name:V.hits.HIT_E_HOLD+"_2",Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.824}]},{Name:V.hits.HIT_E+"_OUSIA",Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.28800000000000003}]}],Wse=Nt.Factory({Name:"Chevreuse",Stars:4,Weapon:d.weapon.POLEARM,Element:d.stat.PYRO_DMG,StatBonus:d.stat.HP_PERCENT,BurstCost:60,Region:d.region.FONTAINE,HpBase:[1002.9700927734,3588.6091308594],AtkBase:[16.205280303955,57.983562469482],DefBase:[50.701351165771,181.40849304199],Normals:l8e,Skills:d8e,Bursts:n8e,Extra:[],Effects:[c8e,u8e,s8e,r8e,o8e,a8e]}),h8e=[{Name:V.hits.HIT_Q,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.752}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.4315}]}],f8e=new k.Builder().stat.Char(d.stat.CRIT_RATE).Instance("HIT_E").Values(.12).Map((i,e)=>{const t=e.FindEffect("NaviaE");if(!t)throw new Error("NaviaE not found");const n=Math.min(t.GetStacks(),3);return i*n}).Build(),g8e=k.Factory({Name:"NaviaC2",OnApply(i,e,t){const n=f8e(i,e,t),s=i.FindEffect("NaviaE");if(!s)throw new Error("NaviaE not found");return t.Observer(s.CreateObserver(k.EffectEvent.CHANGE_STACKS,n)),n}}),p8e=k.Factory({Name:"NaviaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),m8e=k.Factory({Name:"NaviaC4",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.GEO_RES).Values(-.2).Build()}),_8e=k.Factory({Name:"NaviaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),v8e=new k.Builder().stat.Char(d.stat.CRIT_DMG).Instance("HIT_E").Values(.45).Map((i,e)=>{const t=e.FindEffect("NaviaE");if(!t)throw new Error("NaviaE not found");const n=Math.max(0,Math.min(t.GetStacks()-3,3));return i*n}).Build(),b8e=k.Factory({Name:"NaviaC6",OnApply(i,e,t){const n=v8e(i,e,t),s=i.FindEffect("NaviaE");if(!s)throw new Error("NaviaE not found");return t.Observer(s.CreateObserver(k.EffectEvent.CHANGE_STACKS,n)),n}}),C8e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9352}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8651}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3489}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.3343}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6252}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1309}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7459}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4914}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.8629}]}],E8e=k.Factory({Name:"NaviaA1",OnApply:new k.Builder().Where({target:{ascension:1}}).infusion.Set(d.stat.GEO_DMG,!0).Next().Where({target:{ascension:1}}).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG,d.stat.PLUNGE_ATTACK_DMG).Values(.4).Build()}),S8e=k.Factory({Name:"NaviaA4",OnApply:new k.Builder().Where({target:{ascension:4}}).observe.Party(!0).stat.Char(d.stat.ATK_PERCENT).Values(.2).Map((i,e)=>{var t;const n=((t=e.GetParty())==null?void 0:t.GetMembers())||[e];let s=0;for(const r of n){const o=r.GetCharacter().Options.Element;d.Swirlable.includes(d.DmgToAura(o))&&s++}return s>2&&(s=2),i*s}).Build()}),y8e=[{Name:V.hits.HIT_E,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.948}]},{Name:V.hits.HIT_E+"_OUSIA",Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.36}]}],T8e=k.Factory({Name:"NaviaE2",MaxStacks:6,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Instance(V.hits.HIT_E).Values(.15).Map((i,e,t)=>i*Math.max(0,t.GetStacks()-3)).Next().Where({effect:{conditions:["ALL_STRIKE"]}}).mv.Multiplier(2,V.hits.HIT_E).Build()}),w8e=k.Factory({Name:"NaviaE",MaxStacks:11,OnApply:new k.Builder().mv.Multiplier(1,V.hits.HIT_E).Map((i,e,t)=>i*t.GetStacks()/11+1).Build()}),zse=Nt.Factory({Name:"Navia",Element:d.stat.GEO_DMG,Stars:5,Weapon:d.weapon.CLAYMORE,StatBonus:d.stat.CRIT_DMG,BurstCost:60,Region:d.region.FONTAINE,HpBase:[984.78,4044.0373535156],AtkBase:[27.3714,112.3935546875],DefBase:[61.74456,253.56239318848],Normals:C8e,Skills:y8e,Bursts:h8e,Extra:[],Effects:[w8e,T8e,E8e,S8e,g8e,p8e,m8e,_8e,b8e]}),A8e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4839}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4373}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5512}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.733}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7422}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]},{Name:"HIT_ARKHE",Element:d.stat.HYDRO_DMG,Talent:d.stat.NONE,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.0946}]}],x8e=[{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0786}]},{Name:V.hits.HIT_E_1,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0596}]},{Name:V.hits.HIT_E_2,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0323}]},{Name:V.hits.HIT_E_3,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0829}]}],L8e=k.Factory({Name:"FurinaE",OnApply(i,e,t){const n=I8e(i,e,t),s=[],r=()=>{for(const l of s)t.RemoveObserver(l);let o=[];const a=i.GetParty();a&&(o=a.GetMembers());for(const l of o){if(l===i)continue;const c=t.Observer(l.GetCharacter().CreateObserver(d.stat.HP_CURRENT,n));s.push(c)}};return t.Observer(i.Event.CreateObserver(bf.CHANGE_PARTY,r)),r(),()=>0}}),I8e=new k.Builder().observe.Party(!0).observe.Target(d.stat.HP_CURRENT).mv.Multiplier(1,/E_\d/).Map((i,e)=>{let t=[];const n=e.GetParty();n?t=n.GetMembers():t=[e];let s=0;for(const r of t)r.GetCharacter().Get(d.stat.HP_CURRENT)>.5&&s++;return s=Math.min(s,4),1+s/10}).Build(),N8e=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.1141}]}],M8e=k.Factory({Name:"FurinaQ",MaxStacks:400,ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.ALL_DMG).Values(1).Stacks().Map((i,e,t)=>{let s=.05+.02*t.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL);return s=s*i/100,s}).Build()}),D8e=k.Factory({Name:"FurinaA4",OnApply:new k.Builder().Where({target:{ascension:4}}).observe.Target(d.stat.HP,d.stat.HP_BASE,d.stat.HP_PERCENT,d.stat.HP_FLAT).stat.Char(d.stat.ALL_DMG).Instance(/E_\d/).Values(.7/100).Map((i,e)=>Math.min(.28,i*e.GetCharacter().Get(d.stat.HP)/1e3)).Build()}),k8e=k.Factory({Name:"FurinaC1",OnApply(i,e,t){const n=i.FindEffect("FurinaQ");if(!n)throw new Error("FurinaC1: could not find FurinaQ");let s=0,r=e.Enabled();const o=()=>{const a=n.GetStacks();e.Enabled()?!r&&a300&&(s=a,n.SetStacks(300)),r=e.Enabled()};return o(),t.Observer(e.CreateObserver(qs.ENABLE,o)),t.Observer(e.CreateObserver(qs.DISABLE,o)),n.CreateObserver(qs.CHANGE_STACKS,o),()=>0}}),R8e=k.Factory({Name:"FurinaC2",MaxStacks:400,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.35/100).Stacks().Build()}),O8e=k.Factory({Name:"FurinaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),P8e=k.Factory({Name:"FurinaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),F8e=k.Factory({Name:"FurinaC6",Conditions:["ARKHE_PNEUMA"],MaxConditions:1,OnApply:new k.Builder().infusion.Set(d.stat.HYDRO_DMG,!0).Next().mv.Mv(d.stat.HP,.18,/N\d|Charged|Plunge/i).Next().Where({effect:{conditions:["ARKHE_PNEUMA"]}}).mv.Mv(d.stat.HP,.25,/N\d|Charged|Plunge/i).Build()}),Kse=Nt.Factory({Name:"Furina",Stars:5,Element:d.stat.HYDRO_DMG,Weapon:d.weapon.SWORD,StatBonus:d.stat.CRIT_RATE,BurstCost:60,Region:d.region.FONTAINE,Normals:A8e,Skills:x8e,Bursts:N8e,Extra:[],Effects:[L8e,M8e,D8e,k8e,R8e,O8e,P8e,F8e],HpBase:[1191.65,4893.5590820312],AtkBase:[18.9924,77.987365722656],DefBase:[54.146148681641,222.35850524902]}),B8e=[{Name:V.hits.HIT_N1,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5458}]},{Name:V.hits.HIT_N2,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.4625}]},{Name:V.hits.HIT_N3,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.7234}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:1.368}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.HP,Scaling:P.TalentScaling.PHYSICAL_1,Initial:.0732}]},{Name:V.hits.HIT_CHARGED+"_C6",Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.HP,Scaling:P.TalentScaling.NONE,Initial:.1}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],H8e=[{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.1286}]},{Name:V.hits.HIT_E_DOT,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.208}]}],G8e=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.2226}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0911}]}],V8e=k.Factory({Name:"NeuvilletteA1",MaxStacks:3,OnApply:new k.Builder().Where({target:{ascension:1}}).mv.Multiplier(1,"HIT_CHARGED_2","HIT_CHARGED_C6").Map((i,e,t)=>[0,1.1,1.25,1.6][t.GetStacks()]).Build()}),W8e=k.Factory({Name:"NeuvilletteA4",OnApply:new k.Builder().Where({target:{ascension:4}}).observe.Target(d.stat.HP_CURRENT).stat.Char(d.stat.HYDRO_DMG).Values(1).Map((i,e)=>Math.min(.3,.6*Math.max(0,e.GetCharacter().Get(d.stat.HP_CURRENT)-.3))).Build()}),z8e=k.Factory({Name:"NeuvilletteC2",OnApply(i,e,t){const n=i.FindEffect("NeuvilletteA1");if(!n)throw new Error("NeuvilletteC2: Could not find NeuvilletteA1");const s=i.FindInstance("HIT_CHARGED_2"),r=i.FindInstance("HIT_CHARGED_C6");if(!s)throw new Error("NeuvilletteC2: Could not find HIT_CHARGED_2");if(!r)throw new Error("NeuvilletteC2: Could not find HIT_CHARGED_C6");const o=t.Modifier(s.Subject.CreateModifier(d.stat.CRIT_DMG,0)),a=t.Modifier(r.Subject.CreateModifier(d.stat.CRIT_DMG,0)),l=()=>{if(i.GetCharacter().GetAscension()<1){o.SetValue(0),a.SetValue(0);return}const c=n.GetStacks();o.SetValue(.14*c),a.SetValue(.14*c)};return l(),t.Observer(n.CreateObserver(k.EffectEvent.CHANGE_STACKS,l)),t.Observer(i.GetCharacter().CreateObserver(d.stat.LEVEL,l)),t.Observer(i.GetCharacter().CreateObserver(d.stat.ASCENSION,l)),()=>0}}),K8e=k.Factory({Name:"NeuvilletteC3",OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_LEVEL_UP).Values(3).Build()}),U8e=k.Factory({Name:"NeuvilletteC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Use=Nt.Factory({Name:"Neuvillette",Stars:5,Element:d.stat.HYDRO_DMG,Weapon:d.weapon.CATALYST,StatBonus:d.stat.CRIT_DMG,BurstCost:70,Region:d.region.FONTAINE,HpBase:[1143.984,4697.8169],AtkBase:[16.218,66.595],DefBase:[44.8725,184.275],Normals:B8e,Skills:H8e,Bursts:G8e,Extra:[],Effects:[V8e,W8e,z8e,K8e,U8e]}),Y8e=k.Factory({Name:"MikaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),j8e=k.Factory({Name:"MikaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),q8e=k.Factory({Name:"MikaC6",ApplyOther:!0,MaxTargets:1,OnApply:new k.Builder().stat.Char(d.stat.PHYSICAL_CRIT_DMG).Values(.6).Build()}),$8e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4326}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.415}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.545}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2761}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7087}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1275}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],X8e=k.Factory({Name:"MikaA1",MaxStacks:4,ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:1}}).stat.Char(d.stat.PHYSICAL_DMG).Values(.1).Stacks().Build()}),Q8e=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.672}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.84}]},{Name:V.hits.HIT_E_DOT,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.252}]}],Yse=Nt.Factory({Name:"Mika",Element:d.stat.CRYO_DMG,Stars:4,Weapon:d.weapon.POLEARM,StatBonus:d.stat.HP_PERCENT,BurstCost:70,Region:d.region.MONDSTADT,HpBase:[1048.5597,3751.7275],AtkBase:[18.6984,66.90411],DefBase:[59.800125,213.96375],Normals:$8e,Skills:Q8e,Bursts:[],Extra:[],Effects:[X8e,Y8e,j8e,q8e]}),Z8e=[{Name:V.hits.HIT_N1+"_Q",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.987},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0169}]},{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.393},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.0239}]}],J8e=k.Factory({Name:"DehyaC1",OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.2).Next().mv.Mv(d.stat.HP,.036,i=>i.Options.Talent===d.stat.ELEMENTAL_SKILL_DMG).Next().mv.Mv(d.stat.HP,.06,i=>i.Options.Talent===d.stat.ELEMENTAL_BURST_DMG).Build()}),e9e=k.Factory({Name:"DehyaC2",OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Instance("HIT_E_DOT").Values(.5).Build()}),t9e=k.Factory({Name:"DehyaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),i9e=k.Factory({Name:"DehyaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),n9e=k.Factory({Name:"DehyaC6",MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.1).Next().stat.Char(d.stat.ELEMENTAL_BURST_CRIT_DMG).Values(.15).Stacks().Build()}),s9e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6212}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6171}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7663}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9529}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5633}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0182}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7459}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4914}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.8629}]}],r9e=[{Name:V.hits.HIT_E_1,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.1288}]},{Name:V.hits.HIT_E_2,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.328}]},{Name:V.hits.HIT_E_DOT,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.602},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0103}]}],jse=Nt.Factory({Name:"Dehya",Stars:5,Element:d.stat.PYRO_DMG,Weapon:d.weapon.CLAYMORE,StatBonus:d.stat.HP_PERCENT,Region:d.region.SUMERU,BurstCost:70,HpBase:[1220.2496,5011.0044],AtkBase:[20.6682,84.8686],DefBase:[48.88111,200.7369],Normals:s9e,Skills:r9e,Bursts:Z8e,Extra:[],Effects:[J8e,e9e,t9e,i9e,n9e]}),o9e=[{Name:V.hits.HIT_Q,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.776}]}],a9e=k.Factory({Name:"FaruzanQ",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.ANEMO_RES).Values(-.3).Next().observe.Owner(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.ANEMO_DMG).Values(...P.TalentScaling.ELEMENTAL_1).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map(i=>i*.18).Build()}),l9e=k.Factory({Name:"FaruzanC3",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),c9e=k.Factory({Name:"FaruzanC5",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),u9e=k.Factory({Name:"FaruzanC6",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ANEMO_CRIT_DMG).Values(.4).Build()}),d9e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4473}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4219}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5316}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7062}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.ANEMO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],h9e=k.Factory({Name:"FaruzanA4",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:4}}).observe.Owner(d.stat.ATK_BASE).stat.Char(d.stat.ANEMO_DMG_FLAT).Values(.32).Map((i,e,t)=>t.Owner.GetCharacter().Get(d.stat.ATK_BASE)*i).Build()}),f9e=[{Name:V.hits.HIT_E,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.488}]},{Name:V.hits.HIT_E_2,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.08}]}],qse=Nt.Factory({Name:"Faruzan",Stars:4,Element:d.stat.ANEMO_DMG,Weapon:d.weapon.BOW,StatBonus:d.stat.ATK_PERCENT,BurstCost:80,Region:d.region.SUMERU,HpBase:[802.3761,2870.8872],AtkBase:[16.4724,58.939335],DefBase:[52.647,188.37],Normals:d9e,Skills:f9e,Bursts:o9e,Extra:[],Effects:[a9e,h9e,l9e,c9e,u9e]}),g9e=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.1843}]},{Name:V.hits.HIT_Q_2,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.2253}]}],p9e=k.Factory({Name:"NilouC1",OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Instance("HIT_E_3_1").Values(.65).Build()}),m9e=k.Factory({Name:"NilouC2",ApplyOther:!0,Conditions:["BLOOM"],MaxConditions:1,OnApply:new k.Builder().Where({owner:{ascension:1}}).stat.Enemy(d.stat.HYDRO_RES).Values(-.35).Next().Where({owner:{ascension:1},effect:{conditions:["BLOOM"]}}).stat.Enemy(d.stat.DENDRO_RES).Values(-.35).Build()}),_9e=k.Factory({Name:"NilouC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),v9e=k.Factory({Name:"NilouC4",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.5).Build()}),b9e=k.Factory({Name:"NilouC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),C9e=k.Factory({Name:"NilouC6",OnApply:new k.Builder().observe.Target(d.stat.HP_PERCENT,d.stat.HP_BASE,d.stat.HP_FLAT).stat.Char(d.stat.CRIT_RATE).Values(.6/100).Map((i,e)=>Math.max(0,Math.min(.3,i*e.GetCharacter().Get(d.stat.HP)/1e3))).Next().observe.Target(d.stat.HP_PERCENT,d.stat.HP_BASE,d.stat.HP_FLAT).stat.Char(d.stat.CRIT_DMG).Values(1.2/100).Map((i,e)=>Math.max(0,Math.min(.6,i*e.GetCharacter().Get(d.stat.HP)/1e3))).Build()}),E9e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5031}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4544}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7035}]},{Name:V.hits.HIT_CHARGED_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5022}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5444}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}];function $se(i){const e=i.GetParty();if(!e)return!1;let t=!1,n=!1;for(const s of e.GetMembers()){const r=s.GetCharacter().Options.Element;if(r===d.stat.DENDRO_DMG)t=!0;else if(r===d.stat.HYDRO_DMG)n=!0;else return!1}return t&&n}var S9e=k.Factory({Name:"NilouA1",ApplyOther:!0,OnApply:new k.Builder().Where((i,e)=>e.GetCharacter().GetAscension()<1?!1:$se(i)).observe.Party(!0).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(100).Build()}),y9e=k.Factory({Name:"NilouA4",ApplyOther:!0,OnApply:new k.Builder().Where((i,e)=>e.GetCharacter().GetAscension()<4?!1:$se(i)).observe.Party(!0).observe.Owner(d.stat.HP_FLAT,d.stat.HP_BASE,d.stat.HP_PERCENT).stat.Char(d.stat.BLOOM_DMG).Values(.09).Map((i,e,t)=>Math.max(0,Math.min(4,(t.Owner.GetCharacter().Get(d.stat.HP)-3e4)*i/1e3))).Build()}),T9e=[{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0334}]},{Name:V.hits.HIT_E_1+"_1",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0455}]},{Name:V.hits.HIT_E_1+"_2",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0326}]},{Name:V.hits.HIT_E_2+"_1",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0514}]},{Name:V.hits.HIT_E_2+"_2",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0396}]},{Name:V.hits.HIT_E_3+"_1",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0717}]},{Name:V.hits.HIT_E_3+"_2",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0506}]}],Xse=Nt.Factory({Name:"Nilou",Stars:5,Element:d.stat.HYDRO_DMG,Weapon:d.weapon.SWORD,StatBonus:d.stat.HP_PERCENT,Region:d.region.SUMERU,BurstCost:70,HpBase:[1182.1168,4854.4106],AtkBase:[17.8752,73.39987],DefBase:[56.71884,232.9236],Normals:E9e,Skills:T9e,Bursts:g9e,Extra:[],Effects:[S9e,y9e,p9e,m9e,_9e,v9e,b9e,C9e]}),Ek=new Set,Sk=[.025,.05,.075,.115];function w9e(i){const e=i.FindEffect("YunjinA4");if(!e||!e.Enabled()||i.GetCharacter().GetAscension()<4)return 0;const t=i.GetParty();if(!t)return Sk[0];Ek.clear();for(const s of t.GetMembers()){const r=s.GetCharacter().Options.Element;Ek.add(r)}const n=Math.max(1,Math.min(Sk.length,Ek.size));return Sk[n-1]}var A9e=k.Factory({Name:"YunjinA4",OnApply(i,e,t){const n=i.FindEffect("YunjinQ");if(!n)throw new Error("Yunjin Burst effect not found");const s=n;function r(){s.Enabled()&&(s.Disable(),s.Enable())}return r(),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_TARGET,r)),()=>0}}),x9e=[{Name:V.hits.HIT_Q,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.44}]}],L9e=k.Factory({Name:"YunjinQ",ApplyOther:!0,OnApply:new k.Builder().observe.Party(!0).observe.Owner(d.stat.DEF_PERCENT,d.stat.DEF_BASE,d.stat.DEF_FLAT,d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.NORMAL_ATTACK_DMG_FLAT).Values(...P.TalentScaling.ELEMENTAL_1).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map((i,e,t)=>(.3216*i+w9e(t.Owner))*t.Owner.GetCharacter().Get(d.stat.DEF)).Build()}),I9e=k.Factory({Name:"YunjinC2",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.15).Build()}),N9e=k.Factory({Name:"YunjinC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),M9e=k.Factory({Name:"YunjinC4",OnApply:new k.Builder().stat.Char(d.stat.DEF_PERCENT).Values(.2).Build()}),D9e=k.Factory({Name:"YunjinC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),k9e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4051}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4025}]},{Name:V.hits.HIT_N3_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2296}]},{Name:V.hits.HIT_N3_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2752}]},{Name:V.hits.HIT_N4_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2399}]},{Name:V.hits.HIT_N4_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2881}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6734}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2169}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],R9e=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.4912}]},{Name:V.hits.HIT_E_1,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.6096}]},{Name:V.hits.HIT_E_2,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.728}]}],Qse=Nt.Factory({Name:"Yunjin",Stars:4,Weapon:d.weapon.POLEARM,Element:d.stat.GEO_DMG,StatBonus:d.stat.ENERGY_RECHARGE,Region:d.region.LIYUE,BurstCost:60,HpBase:[893.5552,3197.1245],AtkBase:[16.0272,57.34638],DefBase:[61.5741,220.311],Normals:k9e,Skills:R9e,Bursts:x9e,Extra:[],Effects:[L9e,A9e,I9e,N9e,M9e,D9e]}),O9e=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.272}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.22}]}],P9e=k.Factory({Name:"YoimiyaC1",OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2).Build()}),F9e=k.Factory({Name:"YoimiyaC2",OnApply:new k.Builder().stat.Char(d.stat.PYRO_DMG).Values(.25).Build()}),B9e=k.Factory({Name:"YoimiyaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),H9e=k.Factory({Name:"YoimiyaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),G9e=k.Factory({Name:"YoimiyaC6",OnApply:new k.Builder().instance.Location("Normal").Options({Name:"HIT_C6",Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Talent:d.stat.NORMAL_ATTACK_LEVEL,Initial:.164*.6}]}).Build()}),V9e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3564}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6838}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8889}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4642}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0586}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:"HIT_KindlingArrow",Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.164}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],W9e=k.Factory({Name:"YoimiyaA1",MaxStacks:10,OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.PYRO_DMG).Values(.02).Stacks().Build()}),z9e=k.Factory({Name:"YoimiyaA4",ApplyOther:!0,ApplySelf:!1,OnApply(i,e,t){const n=i.GetCharacter(),s=e.Owner.GetCharacter(),r=e.Owner.FindEffect("YoimiyaA1");if(!r)throw new Error("Cannot find Yoimiya A1");const o=t.Modifier(n.CreateModifier(d.stat.ATK_PERCENT,0)),a=()=>{if(s.GetAscension()<4){o.SetValue(0);return}o.SetValue(.1+.01*r.GetStacks())};return a(),t.Observer(s.CreateObserver(d.stat.LEVEL,a)),t.Observer(s.CreateObserver(d.stat.ASCENSION,a)),t.Observer(r.CreateObserver(k.EffectEvent.CHANGE_STACKS,a)),()=>0}}),K9e=k.Factory({Name:"YoimiyaE",OnApply:new k.Builder().infusion.Set(d.stat.PYRO_DMG,!0).Next().observe.Target(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.3791,/hit_n\d/i).Map((i,e)=>1+i*P.TalentScaling.ELEMENTAL_2[e.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),Zse=Nt.Factory({Name:"Yoimiya",Stars:5,Weapon:d.weapon.BOW,Element:d.stat.PYRO_DMG,StatBonus:d.stat.CRIT_RATE,Region:d.region.INAZUMA,BurstCost:60,HpBase:[791.2556,3249.3232],AtkBase:[25.137,103.21857],DefBase:[47.864,196.56],Normals:V9e,Skills:[],Bursts:O9e,Extra:[],Effects:[K9e,W9e,z9e,P9e,F9e,B9e,H9e,G9e]}),U9e=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.824}]}],Y9e=k.Factory({Name:"YanfeiQ",OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(...P.TalentScaling.ELEMENTAL_2).Rank(i=>i.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map(i=>.334*i).Build()}),j9e=k.Factory({Name:"YanfeiC2",OnApply:new k.Builder().stat.Char(d.stat.CHARGED_ATTACK_CRIT_RATE).Values(.2).Build()}),q9e=k.Factory({Name:"YanfeiC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),$9e=k.Factory({Name:"YanfeiC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),X9e=[{Name:V.hits.HIT_N1,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5834}]},{Name:V.hits.HIT_N2,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5213}]},{Name:V.hits.HIT_N3,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.7601}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_2,Initial:.9823}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PYRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PYRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PYRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],Q9e=k.Factory({Name:"YanfeiA1",OnApply(i,e,t){const n=i.GetCharacter(),s=i.FindEffect("YanfeiSeal");if(!s)throw new Error("Cannot find Yanfei Scarlet Seals");const r=t.Modifier(n.CreateModifier(d.stat.PYRO_DMG,0)),o=()=>{if(n.GetAscension()<1){r.SetValue(0);return}r.SetValue(s.GetStacks()*.05)};return o(),t.Observer(s.CreateObserver(k.EffectEvent.CHANGE_STACKS,o)),t.Observer(n.CreateObserver(d.stat.LEVEL,o)),t.Observer(n.CreateObserver(d.stat.ASCENSION,o)),()=>0}}),Z9e=k.Factory({Name:"YanfeiA4",OnApply:new k.Builder().Where({target:{ascension:4}}).instance.Location("Normal").Options({Name:"HIT_A4",Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Initial:.8,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE}]}).Build()}),J9e=k.Factory({Name:"YanfeiSeal",MaxStacks:4,OnApply:new k.Builder().observe.Target(d.stat.NORMAL_ATTACK_LEVEL,d.stat.NORMAL_ATTACK_LEVEL_UP).mv.Mv(d.stat.ATK,.1733,"HIT_CHARGED").Map((i,e,t)=>i*t.GetStacks()*P.TalentScaling.ELEMENTAL_2[e.GetCharacter().Get(d.stat.NORMAL_ATTACK_LEVEL)-1]).Build()}),e7e=[{Name:V.hits.HIT_E,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.696}]}],Jse=Nt.Factory({Name:"Yanfei",Stars:4,Element:d.stat.PYRO_DMG,StatBonus:d.stat.PYRO_DMG,Weapon:d.weapon.CATALYST,Region:d.region.LIYUE,BurstCost:80,HpBase:[784.14026,2805.64],AtkBase:[20.12304,72.001564],DefBase:[49.2135,176.085],Normals:X9e,Skills:e7e,Bursts:U9e,Extra:[],Effects:[J9e,Y9e,Q9e,Z9e,j9e,q9e,$9e]}),t7e=[{Name:V.hits.HIT_Q,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.6}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.3382}]}],i7e=k.Factory({Name:"YaeC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),n7e=k.Factory({Name:"YaeC4",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ELECTRO_DMG).Values(.2).Build()}),s7e=k.Factory({Name:"YaeC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),r7e=k.Factory({Name:"YaeC6",OnApply:new k.Builder().stat.Char(d.stat.DEFIGNORED).Instance(/HIT_E_\d/i).Values(.6).Build()}),o7e=[{Name:V.hits.HIT_N1,Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.3966}]},{Name:V.hits.HIT_N2,Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.3852}]},{Name:V.hits.HIT_N3,Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5689}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.ELECTRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4289}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.ELECTRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.ELECTRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.ELECTRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],a7e=k.Factory({Name:"YaeA4",OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_MASTERY).Where({target:{ascension:4}}).stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.15/100).Map((i,e)=>i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Build()}),l7e=[{Name:V.hits.HIT_E_1,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.6067}]},{Name:V.hits.HIT_E_2,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.7584}]},{Name:V.hits.HIT_E_3,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.948}]},{Name:V.hits.HIT_E_4,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.185}]}],ere=Nt.Factory({Name:"Yae",Stars:5,Element:d.stat.ELECTRO_DMG,StatBonus:d.stat.CRIT_RATE,Weapon:d.weapon.CATALYST,Region:d.region.INAZUMA,BurstCost:90,HpBase:[807.46204,3315.8757],AtkBase:[26.4404,108.57064],DefBase:[44.2742,181.818],Normals:o7e,Skills:l7e,Bursts:t7e,Extra:[],Effects:[a7e,i7e,n7e,s7e,r7e]}),c7e=k.Factory({Name:"XiaoQ",OnApply:new k.Builder().infusion.Set(d.stat.ANEMO_DMG,!0).Next().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG,d.stat.PLUNGE_ATTACK_DMG).Values(...P.TalentScaling.ELEMENTAL_2).Rank(i=>i.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map(i=>.5845*i).Build()}),u7e=k.Factory({Name:"XiaoC2",OnApply:new k.Builder().stat.Char(d.stat.ENERGY_RECHARGE).Values(.25).Build()}),d7e=k.Factory({Name:"XiaoC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),h7e=k.Factory({Name:"XiaoC4",OnApply:new k.Builder().Where({target:{hp:{leq:.5}}}).stat.Char(d.stat.DEF_PERCENT).Values(1).Build()}),f7e=k.Factory({Name:"XiaoC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),g7e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.2754}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.5694}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.6855}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.3766}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.7154}]},{Name:V.hits.HIT_N6,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.9583}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:1.2109}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8183}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.6363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:2.0439}]}],p7e=k.Factory({Name:"XiaoA1",MaxStacks:5,OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.ALL_DMG).Values(.05).Stacks().Build()}),m7e=k.Factory({Name:"XiaoA4",MaxStacks:3,OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.15).Stacks().Build()}),_7e=[{Name:V.hits.HIT_E,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.528}]}],tre=Nt.Factory({Name:"Xiao",Stars:5,Element:d.stat.ANEMO_DMG,StatBonus:d.stat.CRIT_RATE,Weapon:d.weapon.POLEARM,Region:d.region.LIYUE,BurstCost:70,HpBase:[991.4528,4071.4412],AtkBase:[27.1852,111.628975],DefBase:[62.2232,255.528],Normals:g7e,Skills:_7e,Bursts:[],Extra:[],Effects:[c7e,p7e,m7e,u7e,d7e,h7e,f7e]}),v7e=[{Name:V.hits.HIT_Q_1,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.72}]},{Name:V.hits.HIT_Q_2,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.88}]},{Name:V.hits.HIT_Q_3,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.096}]},{Name:"HIT_PYRONADO",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.12}]}],b7e=k.Factory({Name:"XianglingC1",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.PYRO_RES).Values(-.15).Build()}),C7e=k.Factory({Name:"XianglingC2",OnApply:new k.Builder().instance.Options({Name:"HIT_C2",Element:d.stat.PYRO_DMG,Talent:d.stat.NONE,Scaling:[{Stat:d.stat.ATK,Initial:.75,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE}]}).Build()}),E7e=k.Factory({Name:"XianglingC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),S7e=k.Factory({Name:"XianglingC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),y7e=k.Factory({Name:"XianglingC6",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.PYRO_DMG).Values(.15).Build()}),T7e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4205}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4214}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.2606}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.141}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7104}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.2169}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],w7e=k.Factory({Name:"XianglingA4",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:4}}).stat.Char(d.stat.ATK_PERCENT).Values(.1).Build()}),A7e=[{Name:V.hits.HIT_E,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.1128}]}],ire=Nt.Factory({Name:"Xiangling",Stars:4,Element:d.stat.PYRO_DMG,StatBonus:d.stat.ELEMENTAL_MASTERY,Weapon:d.weapon.POLEARM,Region:d.region.LIYUE,BurstCost:80,HpBase:[911.791,3262.3718],AtkBase:[18.87648,67.54129],DefBase:[56.0805,200.655],Normals:T7e,Skills:A7e,Bursts:v7e,Extra:[],Effects:[w7e,b7e,C7e,E7e,S7e,y7e]}),x7e=[{Name:V.hits.HIT_Q,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.472}]}],L7e=k.Factory({Name:"WandererC1",OnApply(i,e,t){if(!i.FindEffect("WandererA4"))throw new Error("Cannot find Wanderer A4");let s;const r=()=>{const o=i.FindInstance("HIT_A4");!o||s||(s=t.Mv({Stat:d.stat.ATK,Value:.25,Enabled:!0},o))};return r(),t.Observer(i.GetCharacter().CreateObserver(d.stat.LEVEL,r)),t.Observer(i.GetCharacter().CreateObserver(d.stat.ASCENSION,r)),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,r)),()=>0}}),I7e=k.Factory({Name:"WandererC2",MaxStacks:120,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.04).Stacks().Map(i=>Math.min(2,i)).Build()}),N7e=k.Factory({Name:"WandererC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),M7e=k.Factory({Name:"WandererC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),D7e=[{Name:V.hits.HIT_N1,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.6871}]},{Name:V.hits.HIT_N2,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.6502}]},{Name:V.hits.HIT_N3,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.4764}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.ANEMO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:1.3208}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]},{Name:V.hits.HIT_N1+"_C6",Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.6871*.4}]},{Name:V.hits.HIT_N2+"_C6",Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.6502*.4}]},{Name:V.hits.HIT_N3+"_C6",Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.4764*.4}]}],k7e=k.Factory({Name:"WandererA1",MaxAuras:1,ValidAuras:d.Swirlable,OnApply:new k.Builder().Where({target:{ascension:1},effect:{affected:[d.stat.PYRO_DMG]}}).stat.Char(d.stat.ATK_PERCENT).Values(.3).Next().Where({target:{ascension:1},effect:{affected:[d.stat.CRYO_DMG]}}).stat.Char(d.stat.CRIT_RATE).Values(.2).Build()}),R7e=k.Factory({Name:"WandererA4",OnApply:new k.Builder().Where({target:{ascension:4}}).instance.Options({Name:"HIT_A4",Element:d.stat.ANEMO_DMG,Talent:d.stat.NONE,Scaling:[{Stat:d.stat.ATK,Initial:.35,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE}]}).Build()}),O7e=[{Name:V.hits.HIT_E,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.952}]}],P7e=k.Factory({Name:"WandererE",OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.3298,/hit_n\d/i).Map((i,e)=>1+i*P.TalentScaling.ELEMENTAL_2[e.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)-1]).Next().observe.Target(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.2639,/hit_charged/i).Map((i,e)=>1+i*P.TalentScaling.ELEMENTAL_2[e.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),nre=Nt.Factory({Name:"Wanderer",Stars:5,Weapon:d.weapon.CATALYST,Element:d.stat.ANEMO_DMG,StatBonus:d.stat.CRIT_RATE,Region:d.region.SUMERU,BurstCost:60,HpBase:[791.2556,3249.3232],AtkBase:[25.5094,104.747734],DefBase:[47.2657,194.103],Normals:D7e,Skills:O7e,Bursts:x7e,Extra:[],Effects:[P7e,k7e,R7e,L7e,I7e,N7e,M7e]}),F7e=[{Name:V.hits.HIT_Q_DOT,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.376}]}],B7e=k.Factory({Name:"VentiQ",MaxAuras:1,ValidAuras:d.Swirlable,OnApply(i,e,t){H7e(i,e,t);function n(){const s=i.FindBurst(V.hits.HIT_Q+"_ADDITIONAL");if(!s)return;const r=e.GetAuras()[0];!r||(s.Options.Element=d.AuraToDmg(r))}return n(),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_AURAS,n)),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,n)),()=>0}}),H7e=new k.Builder().instance.Location("Burst").Options({Name:V.hits.HIT_Q+"_ADDITIONAL",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.188,Talent:d.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),G7e=k.Factory({Name:"VentiC1",OnApply:new k.Builder().instance.Location("Normal").Options({Name:"HIT_C1",Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Talent:d.stat.NORMAL_ATTACK_LEVEL,Stat:d.stat.ATK,Initial:.4386*.33}]}).Next().instance.Location("Normal").Options({Name:"HIT_CHARGED_C1",Element:d.stat.ANEMO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Talent:d.stat.NORMAL_ATTACK_LEVEL,Stat:d.stat.ATK,Initial:1.24*.33}]}).Next().Build()}),V7e=k.Factory({Name:"VentiC2",ApplyOther:!0,Conditions:["AIRBORNE","NO_AIRBORNE"],MaxConditions:1,OnApply:new k.Builder().stat.Enemy(d.stat.ANEMO_RES,d.stat.PHYSICAL_RES).Values(-.12).Next().Where({effect:{conditions:["AIRBORNE"]}}).stat.Enemy(d.stat.ANEMO_RES,d.stat.PHYSICAL_RES).Values(-.12).Build()}),W7e=k.Factory({Name:"VentiC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),z7e=k.Factory({Name:"VentiC4",OnApply:new k.Builder().stat.Char(d.stat.ANEMO_DMG).Values(.25).Build()}),K7e=k.Factory({Name:"VentiC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),U7e=k.Factory({Name:"VentiC6",ApplyOther:!0,OnApply(i,e,t){const n=i.GetCharacter().GetEnemy(),s=e.Owner.FindEffect("VentiQ");if(!s)throw new Error("Venti Q not found");t.Modifier(n.Subject.CreateModifier(d.stat.ANEMO_RES,-.2));const r=t.Modifier(n.Subject.CreateModifier(d.stat.ANEMO_RES,0)),o=()=>{const a=s.GetAuras();if(!a.length||a[0]===d.aura.NONE)r.SetValue(0);else{const l=d.DmgToRes(d.AuraToDmg(a[0]));r.SetValue(-.2),r.SetProp(l)}};return o(),t.Observer(s.CreateObserver(k.EffectEvent.CHANGE_AURAS,o)),()=>0}}),Y7e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.2038}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4438}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.5237}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.2606}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.5065}]},{Name:V.hits.HIT_N6,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7095}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.ANEMO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],j7e=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.76}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.8}]}],sre=Nt.Factory({Name:"Venti",Stars:5,Element:d.stat.ANEMO_DMG,StatBonus:d.stat.ENERGY_RECHARGE,Weapon:d.weapon.BOW,Region:d.region.MONDSTADT,BurstCost:60,HpBase:[819.8552,3366.7688],AtkBase:[20.482,84.10402],DefBase:[52.0521,213.759],Normals:Y7e,Skills:j7e,Bursts:F7e,Extra:[],Effects:[B7e,G7e,V7e,W7e,z7e,K7e,U7e]}),q7e=[{Name:V.hits.HIT_Q+"_MELEE",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:4.64}]},{Name:V.hits.HIT_Q+"_RANGED",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.784}]},{Name:"HIT_RiptideBlast",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.2}]}],$7e=k.Factory({Name:"TartagliaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),X7e=k.Factory({Name:"TartagliaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Q7e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4128}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4627}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5538}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5702}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6089}]},{Name:V.hits.HIT_N6,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7276}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:"HIT_RiptideFlash",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.124}]},{Name:"HIT_RiptideBurst",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.62}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],Z7e=k.Factory({Name:"TartagliaA0",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_LEVEL_UP).Values(1).Build()}),J7e=[{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.72}]},{Name:V.hits.HIT_N1+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3887}]},{Name:V.hits.HIT_N2+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4162}]},{Name:V.hits.HIT_N3+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5633}]},{Name:V.hits.HIT_N4+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5994}]},{Name:V.hits.HIT_N5+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.553}]},{Name:V.hits.HIT_N6_1+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3543}]},{Name:V.hits.HIT_N6_2+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3767}]},{Name:V.hits.HIT_CHARGED_1+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.602}]},{Name:V.hits.HIT_CHARGED_2+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7198}]},{Name:"HIT_RiptideSlash",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.602}]}],rre=Nt.Factory({Name:"Tartaglia",Stars:5,Weapon:d.weapon.BOW,Element:d.stat.HYDRO_DMG,StatBonus:d.stat.HYDRO_DMG,Region:d.region.SNEZHNAYA,BurstCost:60,HpBase:[1020.0524,4188.8867],AtkBase:[23.4612,96.33733],DefBase:[63.4198,260.442],Normals:Q7e,Skills:J7e,Bursts:q7e,Extra:[],Effects:[Z7e,$7e,X7e]}),eGe=[{Name:V.hits.HIT_Q_DOT,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.48}]}],tGe=k.Factory({Name:"SucroseQ",MaxAuras:1,ValidAuras:d.Swirlable,OnApply(i,e,t){iGe(i,e,t);function n(){const s=i.FindBurst(V.hits.HIT_Q+"_ADDITIONAL");if(!s)return;const r=e.GetAuras()[0];!r||(s.Options.Element=d.AuraToDmg(r))}return n(),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_AURAS,n)),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,n)),()=>0}}),iGe=new k.Builder().instance.Location("Burst").Options({Name:V.hits.HIT_Q+"_ADDITIONAL",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.44,Talent:d.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),nGe=k.Factory({Name:"SucroseC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),sGe=k.Factory({Name:"SucroseC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),rGe=k.Factory({Name:"SucroseC6",ApplyOther:!0,OnApply(i,e,t){const n=e.Owner.FindEffect("SucroseQ"),s=i.GetCharacter();if(!n)throw new Error("Cannot find Sucrose Q");const r=t.Modifier(s.CreateModifier(d.stat.PYRO_DMG,0)),o=()=>{const a=n.GetAuras();(!a.length||a[0]===d.aura.NONE)&&r.SetValue(0);const l=d.AuraToDmg(a[0]);r.SetProp(l),r.SetValue(.2)};return o(),t.Observer(n.CreateObserver(k.EffectEvent.CHANGE_AURAS,o)),()=>0}}),oGe=[{Name:V.hits.HIT_N1,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.3346}]},{Name:V.hits.HIT_N2,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.3062}]},{Name:V.hits.HIT_N3,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.3845}]},{Name:V.hits.HIT_N4,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.4792}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.ANEMO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.2016}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],aGe=k.Factory({Name:"SucroseA1",ApplySelf:!1,ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:1}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(50).Build()}),lGe=k.Factory({Name:"SucroseA4",ApplySelf:!1,ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_MASTERY).Where({owner:{ascension:1}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(.2).Map((i,e,t)=>i*t.Owner.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Build()}),cGe=[{Name:V.hits.HIT_E,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.112}]}],ore=Nt.Factory({Name:"Sucrose",Stars:4,Element:d.stat.ANEMO_DMG,StatBonus:d.stat.ANEMO_DMG,Weapon:d.weapon.CATALYST,Region:d.region.MONDSTADT,BurstCost:80,HpBase:[775.02234,2773.016],AtkBase:[14.2464,50.97456],DefBase:[58.94175,210.8925],Normals:oGe,Skills:cGe,Bursts:eGe,Extra:[],Effects:[tGe,aGe,lGe,nGe,sGe,rGe]}),uGe=k.Factory({Name:"ShenheA1",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:1}}).stat.Char(d.stat.CRYO_DMG).Values(.15).Build()}),dGe=k.Factory({Name:"ShenheA4",ApplyOther:!0,Conditions:["PRESS","HOLD"],MaxConditions:1,OnApply:new k.Builder().Where({owner:{ascension:4},effect:{conditions:["PRESS"]}}).stat.Char(d.stat.ELEMENTAL_SKILL_DMG,d.stat.ELEMENTAL_BURST_DMG).Values(.15).Next().Where({owner:{ascension:4},effect:{conditions:["HOLD"]}}).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG,d.stat.PLUNGE_ATTACK_DMG).Values(.15).Build()}),hGe=[{Name:V.hits.HIT_Q,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.008}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.3312}]}],fGe=k.Factory({Name:"ShenheQ",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Enemy(d.stat.CRYO_RES,d.stat.PHYSICAL_RES).Values(-.06,-.07,-.08,-.09,-.1,-.11,-.12,-.13,-.14,-.15).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Build()}),gGe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4326}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4025}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5332}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2632}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6562}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1067}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],pGe=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.392}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.888}]}],mGe=k.Factory({Name:"ShenheE",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP,d.stat.ATK_PERCENT,d.stat.ATK_BASE,d.stat.ATK_FLAT).stat.Char(d.stat.CRYO_DMG_FLAT).Values(...P.TalentScaling.ELEMENTAL_1).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)).Map((i,e,t)=>.4566*i*t.Owner.GetCharacter().Get(d.stat.ATK)).Build()}),_Ge=k.Factory({Name:"ShenheC2",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.CRYO_CRIT_DMG).Values(.15).Build()}),vGe=k.Factory({Name:"ShenheC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),bGe=k.Factory({Name:"ShenheC4",MaxStacks:50,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.05).Stacks().Build()}),CGe=k.Factory({Name:"ShenheC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),are=Nt.Factory({Name:"Shenhe",Stars:5,Element:d.stat.CRYO_DMG,Weapon:d.weapon.POLEARM,StatBonus:d.stat.ATK_PERCENT,Region:d.region.LIYUE,BurstCost:80,HpBase:[1011.47253,4153.653],AtkBase:[23.6474,97.10191],DefBase:[64.6164,265.356],Normals:gGe,Skills:pGe,Bursts:hGe,Extra:[],Effects:[mGe,fGe,uGe,dGe,_Ge,vGe,bGe,CGe]}),EGe=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.1042}]}],SGe=k.Factory({Name:"KokomiQ",OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(d.stat.HP,.0484,/HIT_N\d/i).Map((i,e)=>i*P.TalentScaling.ELEMENTAL_1[e.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)-1]).Next().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(d.stat.HP,.0678,/charged/i).Map((i,e)=>i*P.TalentScaling.ELEMENTAL_1[e.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)-1]).Next().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(d.stat.HP,.071,/HIT_E$/i).Map((i,e)=>i*P.TalentScaling.ELEMENTAL_1[e.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)-1]).Build()}),yGe=k.Factory({Name:"KokomiC1",OnApply:new k.Builder().instance.Options({Name:"HIT_C1",Element:d.stat.HYDRO_DMG,Talent:d.stat.NONE,Scaling:[{Stat:d.stat.HP,Initial:.3,Talent:d.stat.NONE,Scaling:P.TalentScaling.NONE}]}).Build()}),TGe=k.Factory({Name:"KokomiC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),wGe=k.Factory({Name:"KokomiC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),AGe=k.Factory({Name:"KokomiC6",OnApply:new k.Builder().stat.Char(d.stat.HYDRO_DMG).Values(.4).Build()}),xGe=[{Name:V.hits.HIT_N1,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.6838}]},{Name:V.hits.HIT_N2,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.6154}]},{Name:V.hits.HIT_N3,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.9431}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4832}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],LGe=k.Factory({Name:"KokomiA1",OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.HEALING_BONUS).Values(.25).Next().Where({target:{ascension:1}}).stat.Char(d.stat.CRIT_RATE).Values(-1).Next().Build()}),IGe=k.Factory({Name:"KokomiA4",OnApply(i,e,t){const n=i.GetCharacter(),s=i.FindEffect("KokomiQ");if(!s)throw new Error("Kokomi Q effect not found");const r=dL(i.GetNormals(),[/HIT_N\d/i]),o=dL(i.GetNormals(),[/charged/i]),a=t.Mv({Stat:d.stat.HP,Value:0,Enabled:!0},...r),l=t.Mv({Stat:d.stat.HP,Value:0,Enabled:!0},...o),c=()=>{(!s.Enabled()||n.GetAscension()<4)&&(a.Value=0,l.Value=0);const u=n.Get(d.stat.HEALING_BONUS);a.Value=l.Value=.15*u};return c(),t.Observer(n.CreateObserver(d.stat.HEALING_BONUS,c)),t.Observer(s.CreateObserver(k.EffectEvent.ENABLE,c)),t.Observer(s.CreateObserver(k.EffectEvent.DISABLE,c)),()=>0}}),NGe=[{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.0919}]}],lre=Nt.Factory({Name:"Kokomi",Stars:5,Weapon:d.weapon.CATALYST,Element:d.stat.HYDRO_DMG,StatBonus:d.stat.HYDRO_DMG,Region:d.region.INAZUMA,BurstCost:70,HpBase:[1048.652,4306.332],AtkBase:[18.2476,74.92904],DefBase:[51.15465,210.0735],Normals:xGe,Skills:NGe,Bursts:EGe,Extra:[],Effects:[SGe,LGe,IGe,yGe,TGe,wGe,AGe]}),MGe=[{Name:V.hits.HIT_Q_1,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.04}]},{Name:V.hits.HIT_Q_2,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.52}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.32}]}],DGe=k.Factory({Name:"RosariaC1",OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.1).Build()}),kGe=k.Factory({Name:"RosariaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),RGe=k.Factory({Name:"RosariaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),OGe=k.Factory({Name:"RosariaC6",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.PHYSICAL_RES).Values(-.2).Build()}),PGe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5246}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.516}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3182}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6966}]},{Name:V.hits.HIT_N5_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4162}]},{Name:V.hits.HIT_N5_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.43}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.3674}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],FGe=k.Factory({Name:"RosariaA1",OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.CRIT_RATE).Values(.12).Build()}),BGe=k.Factory({Name:"RosariaA4",ApplySelf:!1,ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.CRIT_RATE).Where({owner:{ascension:4}}).stat.Char(d.stat.CRIT_RATE).Values(.15).Map((i,e,t)=>Math.max(0,Math.min(1,i*t.Owner.GetCharacter().Get(d.stat.CRIT_RATE)))).Build()}),HGe=[{Name:V.hits.HIT_E_1,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.584}]},{Name:V.hits.HIT_E_2,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.36}]}],cre=Nt.Factory({Name:"Rosaria",Stars:4,Weapon:d.weapon.POLEARM,Element:d.stat.CRYO_DMG,Region:d.region.MONDSTADT,StatBonus:d.stat.ATK_PERCENT,BurstCost:60,HpBase:[1030.3239,3686.4802],AtkBase:[20.12304,72.001564],DefBase:[59.514,212.94],Normals:PGe,Skills:HGe,Bursts:MGe,Extra:[],Effects:[FGe,BGe,DGe,kGe,RGe,OGe]}),GGe=[{Name:V.hits.HIT_Q_1,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.672}]},{Name:V.hits.HIT_Q_2,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.928}]}],VGe=k.Factory({Name:"NoelleQ",OnApply:new k.Builder().infusion.Set(d.stat.GEO_DMG,!0).Next().observe.Target(d.stat.DEF_FLAT,d.stat.DEF_PERCENT,d.stat.DEF_FLAT,d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.ATK_FLAT).Values(.4,.43,.46,.5,.53,.56,.6,.64,.68,.72,.76,.8,.85,.9,.95).Rank(i=>i.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map((i,e)=>i*e.GetCharacter().Get(d.stat.DEF)).Build()}),WGe=k.Factory({Name:"NoelleC2",OnApply:new k.Builder().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.15).Build()}),zGe=k.Factory({Name:"NoelleC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),KGe=k.Factory({Name:"NoelleC4",OnApply:new k.Builder().instance.Location("Skill").Options({Name:"HIT_C4",Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE,Stat:d.stat.ATK,Initial:4}]}).Build()}),UGe=k.Factory({Name:"NoelleC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),YGe=k.Factory({Name:"NoelleC6",OnApply(i,e,t){const n=i.GetCharacter(),s=i.FindEffect("NoelleQ");if(!s)throw new Error("Noelle Q effect not found");const r=t.Modifier(n.CreateModifier(d.stat.ATK_FLAT,0)),o=()=>{s.Enabled()?r.SetValue(.5*n.Get(d.stat.DEF)):r.SetValue(0)};return o(),t.Observer(n.CreateObserver(d.stat.DEF_FLAT,o)),t.Observer(n.CreateObserver(d.stat.DEF_PERCENT,o)),t.Observer(n.CreateObserver(d.stat.DEF_BASE,o)),t.Observer(s.CreateObserver(k.EffectEvent.ENABLE,o)),t.Observer(s.CreateObserver(k.EffectEvent.DISABLE,o)),()=>0}}),jGe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7912}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7336}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8626}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1343}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5074}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9047}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7459}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4914}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.8629}]}],qGe=[{Name:V.hits.HIT_E,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.DEF,Initial:1.2}]}],ure=Nt.Factory({Name:"Noelle",Stars:4,Element:d.stat.GEO_DMG,StatBonus:d.stat.DEF_PERCENT,BurstCost:60,Region:d.region.MONDSTADT,Weapon:d.weapon.CLAYMORE,HpBase:[1012.088,3621.2327],AtkBase:[16.0272,57.34638],DefBase:[66.95325,239.5575],Normals:jGe,Skills:qGe,Bursts:GGe,Extra:[],Effects:[VGe,WGe,zGe,KGe,UGe,YGe]}),$Ge=[{Name:V.hits.HIT_Q,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.8696}]}],XGe=k.Factory({Name:"NingguangC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),QGe=k.Factory({Name:"NingguangC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),ZGe=[{Name:V.hits.HIT_N1,Element:d.stat.GEO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:.28}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.GEO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:1.7408}]},{Name:"HIT_Jade",Element:d.stat.GEO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:.496}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.GEO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.GEO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.GEO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],JGe=k.Factory({Name:"NingguangA4",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:4}}).stat.Char(d.stat.GEO_DMG).Values(.12).Build()}),eVe=[{Name:V.hits.HIT_E,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.304}]}],dre=Nt.Factory({Name:"Ningguang",Stars:4,Element:d.stat.GEO_DMG,StatBonus:d.stat.GEO_DMG,Weapon:d.weapon.CATALYST,Region:d.region.LIYUE,BurstCost:40,HpBase:[820.6119,2936.1348],AtkBase:[17.808,63.7182],DefBase:[48.069,171.99],Normals:ZGe,Skills:eVe,Bursts:$Ge,Extra:[],Effects:[JGe,XGe,QGe]}),tVe=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:4.424}]}],iVe=k.Factory({Name:"MonaQ",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.ALL_DMG).Values(.4,.42,.44,.46,.48,.5,.52,.54,.56,.58,.6).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Build()}),nVe=k.Factory({Name:"MonaC1",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ELECTROCHARGE_DMG,d.stat.VAPORIZE_DMG).Values(.15).Next().stat.Char(d.stat.ALL_DMG).Instance("HIT_SWIRL_HYDRO").Values(.15).Build()}),sVe=k.Factory({Name:"MonaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),rVe=k.Factory({Name:"MonaC4",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(.15).Build()}),oVe=k.Factory({Name:"MonaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),aVe=k.Factory({Name:"MonaC6",MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.6).Stacks().Build()}),lVe=[{Name:V.hits.HIT_N1,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.376}]},{Name:V.hits.HIT_N2,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.36}]},{Name:V.hits.HIT_N3,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.448}]},{Name:V.hits.HIT_N4,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5616}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:1.4972}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],cVe=k.Factory({Name:"MonaA1",OnApply:new k.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Talent:d.stat.ELEMENTAL_SKILL_LEVEL,Stat:d.stat.ATK,Initial:1.328*.5}]}).Build()}),uVe=k.Factory({Name:"MonaA4",OnApply:new k.Builder().Where({target:{ascension:4}}).observe.Target(d.stat.ENERGY_RECHARGE).stat.Char(d.stat.HYDRO_DMG).Values(.2).Map((i,e)=>i*e.GetCharacter().Get(d.stat.ENERGY_RECHARGE)).Build()}),dVe=[{Name:V.hits.HIT_E_DOT,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.32}]},{Name:V.hits.HIT_E_EXPLOSION,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.328}]}],hre=Nt.Factory({Name:"Mona",Stars:5,Weapon:d.weapon.CATALYST,Element:d.stat.HYDRO_DMG,StatBonus:d.stat.ENERGY_RECHARGE,Region:d.region.MONDSTADT,BurstCost:60,HpBase:[810.322,3327.62],AtkBase:[22.344,91.74984],DefBase:[50.8555,208.845],Normals:lVe,Skills:dVe,Bursts:tVe,Extra:[],Effects:[iVe,cVe,uVe,nVe,sVe,rVe,oVe,aVe]}),hVe=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.4264}]}],fVe=k.Factory({Name:"KleeC1",OnApply:new k.Builder().instance.Location("Burst").Options({Name:"HIT_C1",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Talent:d.stat.ELEMENTAL_BURST_LEVEL,Stat:d.stat.ATK,Initial:.4264*1.2}]}).Build()}),gVe=k.Factory({Name:"KleeC2",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.DEFREDUCTION).Values(.23).Build()}),pVe=k.Factory({Name:"KleeC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),mVe=k.Factory({Name:"KleeC4",OnApply:new k.Builder().instance.Location("Burst").Options({Name:"HIT_C4",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE,Stat:d.stat.ATK,Initial:5.55}]}).Build()}),_Ve=k.Factory({Name:"KleeC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),vVe=k.Factory({Name:"KleeC6",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.PYRO_DMG).Build()}),bVe=[{Name:V.hits.HIT_N1,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:.7216}]},{Name:V.hits.HIT_N2,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:.624}]},{Name:V.hits.HIT_N3,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:.8992}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:1.5736}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PYRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PYRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PYRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],CVe=k.Factory({Name:"KleeA1",OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.5).Build()}),EVe=[{Name:V.hits.HIT_E,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.952}]},{Name:V.hits.HIT_E_DOT,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.328}]}],fre=Nt.Factory({Name:"Klee",Stars:5,Weapon:d.weapon.CATALYST,Element:d.stat.PYRO_DMG,StatBonus:d.stat.PYRO_DMG,Region:d.region.MONDSTADT,BurstCost:60,HpBase:[800.7888,3288.4717],AtkBase:[24.206,99.39566],DefBase:[47.864,196.56],Normals:bVe,Skills:EVe,Bursts:hVe,Extra:[],Effects:[CVe,fVe,gVe,pVe,mVe,_Ve,vVe]}),SVe=[{Name:V.hits.HIT_Q,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.88}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.24}]},{Name:V.hits.HIT_Q_EXPLOSION,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.888}]}],yVe=k.Factory({Name:"KeqingC1",OnApply:new k.Builder().instance.Options({Name:"HIT_C1",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NONE,Scaling:[{Stat:d.stat.ATK,Initial:.5,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE}]}).Build()}),TVe=k.Factory({Name:"KeqingC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),wVe=k.Factory({Name:"KeqingC4",OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.25).Build()}),AVe=k.Factory({Name:"KeqingC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),xVe=k.Factory({Name:"KeqingC6",OnApply:new k.Builder().stat.Char(d.stat.ELECTRO_DMG).Values(.06).Build()}),LVe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4102}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4102}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5444}]},{Name:V.hits.HIT_N4_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3148}]},{Name:V.hits.HIT_N4_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.344}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6699}]},{Name:V.hits.HIT_CHARGED_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.768}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.86}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],IVe=k.Factory({Name:"KeqingA1",OnApply:new k.Builder().Where({target:{ascension:1}}).infusion.Set(d.stat.ELECTRO_DMG,!1).Build()}),NVe=k.Factory({Name:"KeqingA4",OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Char(d.stat.CRIT_RATE,d.stat.ENERGY_RECHARGE).Values(.15).Build()}),MVe=[{Name:V.hits.HIT_E,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.504}]},{Name:V.hits.HIT_E+"_SLASH",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.68}]},{Name:V.hits.HIT_E+"_SLASH_2",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.84}]}],gre=Nt.Factory({Name:"Keqing",Stars:5,Element:d.stat.ELECTRO_DMG,StatBonus:d.stat.CRIT_DMG,Weapon:d.weapon.SWORD,Region:d.region.LIYUE,BurstCost:40,HpBase:[1020.0524,4188.8867],AtkBase:[25.137,103.21857],DefBase:[62.2232,255.528],Normals:LVe,Skills:MVe,Bursts:SVe,Extra:[],Effects:[IVe,NVe,yVe,TVe,wVe,AVe,xVe]}),DVe=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.6646}]}],kVe=k.Factory({Name:"AyatoQ",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.11,.12,.13,.14,.15,.16,.17,.18,.19,.2).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Build()}),RVe=k.Factory({Name:"AyatoC1",OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Instance(/HIT_N\d_E/i).Values(.4).Build()}),OVe=k.Factory({Name:"AyatoC2",OnApply(i,e,t){const n=i.FindEffect("AyatoE");if(!n)throw new Error("Cannot find Ayato Skill");const s=t.Modifier(i.GetCharacter().CreateModifier(d.stat.HP_PERCENT,0)),r=function(){n.GetStacks()>=3?s.SetValue(.5):s.SetValue(0)};return r(),t.Observer(n.CreateObserver(k.EffectEvent.CHANGE_STACKS,r)),()=>0}}),PVe=k.Factory({Name:"AyatoC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),FVe=k.Factory({Name:"AyatoC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),BVe=k.Factory({Name:"AyatoC6",OnApply:new k.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE,Stat:d.stat.ATK,Initial:4.5}]}).Build()}),HVe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4496}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4716}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5861}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2945}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.756}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2953}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],GVe=[{Name:V.hits.HIT_N1+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5289}]},{Name:V.hits.HIT_N2+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5891}]},{Name:V.hits.HIT_N3+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6493}]},{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0148}]}],VVe=k.Factory({Name:"AyatoE",MaxStacks:5,OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Mv(d.stat.HP,.56/100,/HIT_N\d_E/i).Map((i,e,t)=>i*t.GetStacks()*P.TalentScaling.PHYSICAL_1[e.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),pre=Nt.Factory({Name:"Ayato",Stars:5,Weapon:d.weapon.SWORD,Element:d.stat.HYDRO_DMG,StatBonus:d.stat.CRIT_DMG,Region:d.region.INAZUMA,BurstCost:80,HpBase:[1067.7184,4384.629],AtkBase:[23.275,95.57275],DefBase:[59.83,245.7],Normals:HVe,Skills:GVe,Bursts:DVe,Extra:[],Effects:[VVe,kVe,RVe,OVe,PVe,FVe,BVe]}),WVe=[{Name:V.hits.HIT_Q_DOT,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.123}]},{Name:V.hits.HIT_Q_EXPLOSION,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.6845}]}],zVe=k.Factory({Name:"AyakaC2",OnApply:new k.Builder().instance.Location("Burst").Options({Name:"HIT_C2",Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Talent:d.stat.ELEMENTAL_BURST_LEVEL,Stat:d.stat.ATK,Initial:1.123}]}).Build()}),KVe=k.Factory({Name:"AyakaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),UVe=k.Factory({Name:"AyakaC4",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.DEFREDUCTION).Values(.3).Build()}),YVe=k.Factory({Name:"AyakaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),jVe=k.Factory({Name:"AyakaC6",OnApply:new k.Builder().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(2.98).Build()}),qVe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4573}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4868}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6262}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2265}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7818}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5513}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],$Ve=k.Factory({Name:"AyakaSprint",OnApply:new k.Builder().infusion.Set(d.stat.CRYO_DMG,!1).Build()}),XVe=k.Factory({Name:"AyakaA1",OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.3).Build()}),QVe=k.Factory({Name:"AyakaA4",OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Char(d.stat.CRYO_DMG).Values(.18).Build()}),ZVe=[{Name:V.hits.HIT_E,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.392}]}],mre=Nt.Factory({Name:"Ayaka",Stars:5,Element:d.stat.CRYO_DMG,StatBonus:d.stat.CRIT_DMG,Weapon:d.weapon.SWORD,Region:d.region.INAZUMA,BurstCost:80,HpBase:[1000.986,4110.59],AtkBase:[26.6266,109.33523],DefBase:[61.0266,250.614],Normals:qVe,Skills:ZVe,Bursts:WVe,Extra:[],Effects:[$Ve,XVe,QVe,zVe,KVe,UVe,YVe,jVe]}),JVe=[{Name:V.hits.HIT_Q,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:4.248}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.784}]}],eWe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4833}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4558}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.6029}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.6588}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7921}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.6202}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],tWe=k.Factory({Name:"JeanC1",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.4).Build()}),iWe=k.Factory({Name:"JeanC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nWe=k.Factory({Name:"JeanC4",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.ANEMO_RES).Values(-.4).Build()}),sWe=k.Factory({Name:"JeanC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),rWe=[{Name:V.hits.HIT_E,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.92}]}],_re=Nt.Factory({Name:"Jean",Stars:5,Element:d.stat.ANEMO_DMG,StatBonus:d.stat.HEALING_BONUS,Weapon:d.weapon.SWORD,Region:d.region.MONDSTADT,BurstCost:80,HpBase:[1143.984,4697.817],AtkBase:[18.62,76.4582],DefBase:[59.83,245.7],Normals:eWe,Skills:rWe,Bursts:JVe,Extra:[],Effects:[tWe,iWe,nWe,sWe]}),oWe=[{Name:V.hits.HIT_Q,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.DEF,Initial:.9822}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.DEF,Initial:.613}]}];function J5(i){const e=i.GetParty();if(!e)return i.GetCharacter().Options.Element===d.stat.GEO_DMG?1:0;let t=0;for(const n of e.GetMembers())n.GetCharacter().Options.Element===d.stat.GEO_DMG&&t++;return t}var aWe=k.Factory({Name:"GorouC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),lWe=k.Factory({Name:"GorouC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),cWe=k.Factory({Name:"GorouC6",ApplyOther:!0,OnApply:new k.Builder().observe.Party(!0).stat.Char(d.stat.GEO_CRIT_DMG).Values(.1,.2,.4).Rank(i=>J5(i)).Build()}),uWe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3775}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3715}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4945}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.59}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.GEO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],dWe=k.Factory({Name:"GorouA1",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:1}}).stat.Char(d.stat.DEF_PERCENT).Values(.25).Build()}),hWe=k.Factory({Name:"GorouA4",OnApply:new k.Builder().Where({target:{ascension:4}}).mv.Mv(d.stat.DEF,1.56,"HIT_E").Next().Where({target:{ascension:4}}).mv.Mv(d.stat.DEF,.156,"HIT_Q","HIT_Q_DOT").Next().Build()}),fWe=[{Name:V.hits.HIT_E,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.072}]}],gWe=k.Factory({Name:"GorouE",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).observe.Party(!0).stat.Char(d.stat.DEF_FLAT).Values(...P.TalentScaling.ELEMENTAL_1).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)).Map((i,e)=>206.16*i*(J5(e)>=1?1:0)).Next().observe.Party(!0).stat.Char(d.stat.GEO_DMG).Values(.15).Map((i,e)=>i*(J5(e)>=3?1:0)).Build()}),vre=Nt.Factory({Name:"Gorou",Stars:4,Weapon:d.weapon.BOW,Element:d.stat.GEO_DMG,StatBonus:d.stat.GEO_DMG,BurstCost:80,Region:d.region.INAZUMA,HpBase:[802.3761,2870.8872],AtkBase:[15.31488,54.797653],DefBase:[54.36375,194.5125],Normals:uWe,Skills:fWe,Bursts:oWe,Extra:[],Effects:[gWe,dWe,hWe,aWe,lWe,cWe]}),pWe=[{Name:V.hits.HIT_Q,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.7027}]}],mWe=k.Factory({Name:"GanyuC1",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.CRYO_RES).Values(-.15).Build()}),_We=k.Factory({Name:"GanyuC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),vWe=k.Factory({Name:"GanyuC4",ApplyOther:!0,MaxStacks:5,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.05).Stacks().Build()}),bWe=k.Factory({Name:"GanyuC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),CWe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3173}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.356}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4549}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4549}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4825}]},{Name:V.hits.HIT_N6,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.5762}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.CRYO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:"HIT_Frostflake",Element:d.stat.CRYO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.28}]},{Name:"HIT_FrostflakeBloom",Element:d.stat.CRYO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.176}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],EWe=k.Factory({Name:"GanyuA1",OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.CRIT_RATE).Instance(/Frostflake/i).Values(.2).Build()}),SWe=k.Factory({Name:"GanyuA4",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:4}}).stat.Char(d.stat.CRYO_DMG).Values(.2).Build()}),yWe=[{Name:V.hits.HIT_E,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.32}]}],bre=Nt.Factory({Name:"Ganyu",Stars:5,Weapon:d.weapon.BOW,Region:d.region.LIYUE,Element:d.stat.CRYO_DMG,StatBonus:d.stat.CRIT_DMG,BurstCost:60,HpBase:[762.656,3131.878],AtkBase:[26.068,107.04148],DefBase:[49.0606,201.474],Normals:CWe,Skills:yWe,Bursts:pWe,Extra:[],Effects:[EWe,SWe,mWe,_We,vWe,bWe]}),TWe=[{Name:V.hits.HIT_Q,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.456}]},{Name:"HIT_LightfallSword",Element:d.stat.PHYSICAL_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:3.6705}]}],wWe=k.Factory({Name:"EulaQ",MaxStacks:30,OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(d.stat.ATK,.7499,"HIT_LightfallSword").Map((i,e,t)=>{const n=Math.max(1,Math.min(15,e.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)));return t.GetStacks()*i*P.TalentScaling.PHYSICAL_1A[n-1]}).Build()}),AWe=k.Factory({Name:"EulaC1",OnApply:new k.Builder().stat.Char(d.stat.PHYSICAL_DMG).Values(.3).Build()}),xWe=k.Factory({Name:"EulaC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),LWe=k.Factory({Name:"EulaC4",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.25).Build()}),IWe=k.Factory({Name:"EulaC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),NWe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.8973}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.9355}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.568}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.1264}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7183}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.688}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.244}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7459}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.4914}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.8629}]}],MWe=k.Factory({Name:"EulaA1",OnApply:new k.Builder().Where({target:{ascension:1}}).instance.Location("Burst").Options({Name:"HIT_A1",Talent:d.stat.ELEMENTAL_BURST_DMG,Element:d.stat.PHYSICAL_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Talent:d.stat.ELEMENTAL_BURST_LEVEL,Stat:d.stat.ATK,Initial:3.6705*.5}]}).Build()}),DWe=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.464}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.456}]},{Name:"HIT_Icewhirl",Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.96}]}],kWe=k.Factory({Name:"EulaE_1",MaxStacks:2,OnApply:new k.Builder().stat.Char(d.stat.DEF_PERCENT).Values(.3).Stacks().Build()}),RWe=k.Factory({Name:"EulaE_2",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Enemy(d.stat.CRYO_RES,d.stat.PHYSICAL_RES).Values(-.16,-.17,-.18,-.19,-.2,-.21,-.22,-.23,-.24,-.25).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)).Build()}),Cre=Nt.Factory({Name:"Eula",Stars:5,Weapon:d.weapon.CLAYMORE,Element:d.stat.CRYO_DMG,StatBonus:d.stat.CRIT_DMG,BurstCost:80,Region:d.region.MONDSTADT,HpBase:[1029.5856,4228.035],AtkBase:[26.6266,109.33523],DefBase:[58.45391,240.0489],Normals:NWe,Skills:DWe,Bursts:TWe,Extra:[],Effects:[kWe,RWe,wWe,MWe,AWe,xWe,LWe,IWe]}),OWe=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.04}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.6}]},{Name:V.hits.HIT_Q_EXPLOSION,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.04}]}],PWe=k.Factory({Name:"DilucQ",OnApply:new k.Builder().infusion.Set(d.stat.PYRO_DMG,!1).Build()}),FWe=k.Factory({Name:"DilucC1",OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.15).Build()}),BWe=k.Factory({Name:"DilucC2",MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.1).Stacks().Build()}),HWe=k.Factory({Name:"DilucC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),GWe=k.Factory({Name:"DilucC4",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.4).Build()}),VWe=k.Factory({Name:"DilucC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),WWe=k.Factory({Name:"DilucC6",OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.3).Build()}),zWe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.897}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.8763}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.9881}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.3399}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.688}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.247}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8951}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.7897}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:2.2355}]}],KWe=k.Factory({Name:"DilucA4",OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Char(d.stat.PYRO_DMG).Values(.2).Build()}),UWe=[{Name:V.hits.HIT_E_1,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.944}]},{Name:V.hits.HIT_E_2,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.976}]},{Name:V.hits.HIT_E_3,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.288}]}],Ere=Nt.Factory({Name:"Diluc",Stars:5,Weapon:d.weapon.CLAYMORE,Element:d.stat.PYRO_DMG,StatBonus:d.stat.CRIT_RATE,BurstCost:40,Region:d.region.MONDSTADT,HpBase:[1010.5192,4149.7383],AtkBase:[26.068,107.04148],DefBase:[61.0266,250.614],Normals:zWe,Skills:UWe,Bursts:OWe,Extra:[],Effects:[PWe,KWe,FWe,BWe,HWe,GWe,VWe,WWe]}),YWe=[{Name:V.hits.HIT_N1+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7828}]},{Name:V.hits.HIT_N2+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8247}]},{Name:V.hits.HIT_N3+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0463}]},{Name:V.hits.HIT_N4+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5169}]},{Name:V.hits.HIT_N5+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.3084}]},{Name:V.hits.HIT_CHARGED+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0105}]},{Name:V.hits.HIT_PLUNGE+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],jWe=k.Factory({Name:"CynoQ",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(100).Build()}),qWe=k.Factory({Name:"CynoC2",MaxStacks:5,OnApply:new k.Builder().stat.Char(d.stat.ELECTRO_DMG).Values(.1).Stacks().Build()}),$We=k.Factory({Name:"CynoC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),XWe=k.Factory({Name:"CynoC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),QWe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4926}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4792}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2931}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7589}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2238}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],ZWe=k.Factory({Name:"CynoA1",OnApply:new k.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:d.stat.ATK,Initial:.35,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE}]}).Next().Where({target:{ascension:1}}).stat.Char(d.stat.ALL_DMG).Instance("HIT_E","HIT_E_2").Values(.35).Build()}),JWe=new k.Builder().Where({target:{ascension:4}}).observe.Target(d.stat.ELEMENTAL_MASTERY).stat.Char(d.stat.DMG_FLAT).Instance(/N\d_Q$/i).Values(1.5).Map((i,e)=>i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Build(),eze=k.Factory({Name:"CynoA4",OnApply(i,e,t){JWe(i,e,t);const n=i.GetCharacter(),s=i.FindEffect("CynoA1");let r;if(!s)throw new Error("Cannot find Cyno A1");function o(){if(!r){const a=i.FindInstance("HIT_A1");if(!a)return;r=t.Modifier(a.Subject.CreateModifier(d.stat.DMG_FLAT,0))}!r||(n.GetAscension()>=4?r.SetValue(2.5*n.Get(d.stat.ELEMENTAL_MASTERY)):r.SetValue(0))}o();for(const a of k.EffectEvent.Values())t.Observer(s.CreateObserver(a,o));return t.Observer(n.CreateObserver(d.stat.ELEMENTAL_MASTERY,o)),t.Observer(n.CreateObserver(d.stat.LEVEL,o)),t.Observer(n.CreateObserver(d.stat.ASCENSION,o)),()=>0}}),tze=[{Name:V.hits.HIT_E,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.304}]},{Name:V.hits.HIT_E_2,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.568}]}],Sre=Nt.Factory({Name:"Cyno",Stars:5,Weapon:d.weapon.POLEARM,Element:d.stat.ELECTRO_DMG,StatBonus:d.stat.CRIT_DMG,BurstCost:80,Region:d.region.SUMERU,HpBase:[972.3864,3993.1443],AtkBase:[24.7646,101.68941],DefBase:[66.88994,274.6926],Normals:QWe,Skills:tze,Bursts:YWe,Extra:[],Effects:[jWe,ZWe,eze,qWe,$We,XWe]}),ize=[{Name:V.hits.HIT_Q,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.0182}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.4325}]}],nze=k.Factory({Name:"ColleiC1",OnApply:new k.Builder().stat.Char(d.stat.ENERGY_RECHARGE).Values(.2).Build()}),sze=k.Factory({Name:"ColleiC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),rze=k.Factory({Name:"ColleiC4",ApplyOther:!0,ApplySelf:!1,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(60).Build()}),oze=k.Factory({Name:"ColleiC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),aze=k.Factory({Name:"ColleiC6",OnApply:new k.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE,Initial:2}]}).Build()}),lze=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.436}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4266}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5409}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6803}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.DENDRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],cze=k.Factory({Name:"ColleiA1",OnApply:new k.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE,Initial:.4}]}).Build()}),uze=[{Name:V.hits.HIT_E,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.512}]}],yre=Nt.Factory({Name:"Collei",Stars:4,Weapon:d.weapon.BOW,Element:d.stat.DENDRO_DMG,StatBonus:d.stat.ATK_PERCENT,BurstCost:60,Region:d.region.SUMERU,HpBase:[820.6119,2936.1348],AtkBase:[16.73952,59.895107],DefBase:[50.358,180.18],Normals:lze,Skills:uze,Bursts:ize,Extra:[],Effects:[cze,nze,sze,rze,oze,aze]}),dze=[{Name:V.hits.HIT_Q,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.424}]}],hze=k.Factory({Name:"ChongyunC1",OnApply:new k.Builder().instance.Basic({Name:"HIT_C1",Element:d.stat.CRYO_DMG,Stat:d.stat.ATK,Values:[.5]}).Build()}),fze=k.Factory({Name:"ChongyunC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),gze=k.Factory({Name:"ChongyunC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),pze=k.Factory({Name:"ChongyunC6",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.15).Build()}),mze=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6312}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8032}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0122}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5629}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0178}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7459}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4914}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.8629}]}],_ze=k.Factory({Name:"ChongyunA4",ApplyOther:!0,OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Enemy(d.stat.CRYO_RES).Values(-.1).Build()}),vze=[{Name:V.hits.HIT_E,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.7204}]}],bze=k.Factory({Name:"ChongyunE",ApplyOther:!0,OnApply:new k.Builder().infusion.Set(d.stat.CRYO_DMG,!1).Build()}),Tre=Nt.Factory({Name:"Chongyun",Stars:4,Element:d.stat.CRYO_DMG,Weapon:d.weapon.CLAYMORE,StatBonus:d.stat.ATK_PERCENT,BurstCost:40,Region:d.region.LIYUE,HpBase:[920.90894,3294.9956],AtkBase:[18.6984,66.90411],DefBase:[54.36375,194.5125],Normals:mze,Skills:vze,Bursts:dze,Extra:[],Effects:[bze,_ze,hze,fze,gze,pze]}),Cze=k.Factory({Name:"IttoQ",OnApply:new k.Builder().observe.Target(d.stat.DEF_FLAT,d.stat.DEF_BASE,d.stat.DEF_PERCENT,d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.ATK_FLAT).Values(...P.TalentScaling.ELEMENTAL_1).Rank(i=>i.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map((i,e)=>.576*i*e.GetCharacter().Get(d.stat.DEF)).Next().infusion.Set(d.stat.GEO_DMG,!0).Build()}),Eze=k.Factory({Name:"IttoC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Sze=k.Factory({Name:"IttoC4",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.DEF_PERCENT,d.stat.ATK_PERCENT).Values(.2).Build()}),yze=k.Factory({Name:"IttoC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Tze=k.Factory({Name:"IttoC6",OnApply:new k.Builder().stat.Char(d.stat.CHARGED_ATTACK_CRIT_DMG).Values(.7).Build()}),wze=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7923}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7637}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9164}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1722}]},{Name:"HIT_KesagiriSlash",Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9116}]},{Name:"HIT_KesagiriFinal",Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.9092}]},{Name:"HIT_SaichimonjiSlash",Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9047}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8183}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.6363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:2.0439}]}],Aze=k.Factory({Name:"IttoA4",OnApply:new k.Builder().Where({target:{ascension:4}}).mv.Mv(d.stat.DEF,.35,/Kesagiri/i).Build()}),xze=[{Name:V.hits.HIT_E,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.072}]}],wre=Nt.Factory({Name:"Itto",Stars:5,Weapon:d.weapon.CLAYMORE,Element:d.stat.GEO_DMG,StatBonus:d.stat.CRIT_RATE,Region:d.region.INAZUMA,BurstCost:70,HpBase:[1000.986,4110.59],AtkBase:[17.689,72.63529],DefBase:[74.66784,306.6336],Normals:wze,Skills:xze,Bursts:[],Extra:[],Effects:[Cze,Aze,Eze,Sze,yze,Tze]}),Lze=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.2808}]}],Ize=k.Factory({Name:"AmberC1",OnApply:new k.Builder().instance.Location("Normal").Options({Name:"HIT_C1",Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Talent:d.stat.NORMAL_ATTACK_LEVEL,Stat:d.stat.ATK,Initial:1.24*.2}]}).Build()}),Nze=k.Factory({Name:"AmberC2",OnApply:new k.Builder().mv.Mv(d.stat.ATK,2,/hit_e/i).Build()}),Mze=k.Factory({Name:"AmberC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Dze=k.Factory({Name:"AmberC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),kze=k.Factory({Name:"AmberC6",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.15).Build()}),Rze=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3612}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3612}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4644}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.473}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5934}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],Oze=k.Factory({Name:"AmberA1",OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.1).Build()}),Pze=k.Factory({Name:"AmberA4",OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Char(d.stat.ATK_PERCENT).Values(.15).Build()}),Fze=[{Name:V.hits.HIT_E,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.232}]}],Are=Nt.Factory({Name:"Amber",Stars:4,Weapon:d.weapon.BOW,Element:d.stat.PYRO_DMG,StatBonus:d.stat.ATK_PERCENT,BurstCost:40,Region:d.region.MONDSTADT,HpBase:[793.2582,2838.2634],AtkBase:[18.6984,66.90411],DefBase:[50.358,180.18],Normals:Rze,Skills:Fze,Bursts:Lze,Extra:[],Effects:[Oze,Pze,Ize,Nze,Mze,Dze,kze]}),Bze=k.Factory({Name:"AlhaithamA4",OnApply:new k.Builder().Where({target:{ascension:4}}).observe.Target(d.stat.ELEMENTAL_MASTERY).stat.Char(d.stat.ELEMENTAL_SKILL_DMG,d.stat.ELEMENTAL_BURST_DMG).Values(.1/100).Map((i,e)=>Math.min(1,i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY))).Build()}),Hze=[{Name:V.hits.HIT_Q,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.216},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ELEMENTAL_MASTERY,Initial:.9728}]}],Gze=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4953}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5075}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3418}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6677}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8385}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5526}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],Vze=[{Name:V.hits.HIT_E,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.936},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ELEMENTAL_MASTERY,Initial:1.5488}]},{Name:V.hits.HIT_E_DOT+"_1",Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.672},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ELEMENTAL_MASTERY,Initial:1.344}]},{Name:V.hits.HIT_E_DOT+"_2",Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.672*2},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ELEMENTAL_MASTERY,Initial:1.344*2}]},{Name:V.hits.HIT_E_DOT+"_3",Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.672*3},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ELEMENTAL_MASTERY,Initial:1.344*3}]}],Wze=k.Factory({Name:"AlhaithamE",OnApply:new k.Builder().infusion.Set(d.stat.DENDRO_DMG,!0).Build()}),zze=k.Factory({Name:"AlhaithamC2",MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(50).Stacks().Build()}),Kze=k.Factory({Name:"AlhaithamC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Uze=k.Factory({Name:"AlhaithamC4",MaxStacks:3,ApplyOther:!0,OnApply:new k.Builder().Where({target:{isOwner:!0}}).stat.Char(d.stat.DENDRO_DMG).Values(.1).Stacks().Next().Where({target:{isOwner:!1}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(30).Stacks().Build()}),Yze=k.Factory({Name:"AlhaithamC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),jze=k.Factory({Name:"AlhaithamC6",OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(.1).Next().stat.Char(d.stat.CRIT_DMG).Values(.7).Build()}),xre=Nt.Factory({Name:"Alhaitham",Stars:5,Weapon:d.weapon.SWORD,Element:d.stat.DENDRO_DMG,StatBonus:d.stat.DENDRO_DMG,Region:d.region.SUMERU,BurstCost:70,AtkBase:[24.3922,100.16024],DefBase:[60.84711,249.8769],HpBase:[1039.1188,4267.1836],Normals:Gze,Skills:Vze,Bursts:Hze,Extra:[],Effects:[Wze,Bze,zze,Kze,Uze,Yze,jze]}),qze=[{Name:V.hits.HIT_Q,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.672}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.72}]}],$ze=k.Factory({Name:"AlbedoC2",MaxStacks:4,OnApply:new k.Builder().mv.Mv(d.stat.DEF,.3,/HIT_Q/i).Map((i,e,t)=>i*t.GetStacks()).Build()}),Xze=k.Factory({Name:"AlbedoC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Qze=k.Factory({Name:"AlbedoC4",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.PLUNGE_ATTACK_DMG).Values(.3).Build()}),Zze=k.Factory({Name:"AlbedoC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Jze=k.Factory({Name:"AlbedoC6",ApplyOther:!0,OnApply:new k.Builder().Where({target:{shielded:!0}}).stat.Char(d.stat.ALL_DMG).Values(.17).Build()}),eKe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3674}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3674}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4745}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4975}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.6207}]},{Name:V.hits.HIT_CHARGED_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.473}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.602}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],tKe=k.Factory({Name:"AlbedoA1",OnApply(i,e,t){const n=i.GetCharacter(),s=i.FindSkill(V.hits.HIT_E_DOT);if(!s)throw new Error("Cannot find Albedo Skill");const r=t.Modifier(s.Subject.CreateModifier(d.stat.ALL_DMG,0));function o(){n.GetAscension()>=1?r.SetValue(.25):r.SetValue(0)}return o(),t.Observer(n.CreateObserver(d.stat.LEVEL,o)),t.Observer(n.CreateObserver(d.stat.ASCENSION,o)),()=>0}}),iKe=k.Factory({Name:"AlbedoA4",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:4}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(125).Build()}),nKe=[{Name:V.hits.HIT_E,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.304}]},{Name:V.hits.HIT_E_DOT,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.DEF,Initial:1.336}]}],Lre=Nt.Factory({Name:"Albedo",Element:d.stat.GEO_DMG,Stars:5,Weapon:d.weapon.SWORD,StatBonus:d.stat.GEO_DMG,Region:d.region.MONDSTADT,AtkBase:[19.551,80.28111],DefBase:[68.2062,280.098],HpBase:[1029.5856,4228.035],BurstCost:40,Normals:eKe,Skills:nKe,Bursts:qze,Extra:[],Effects:[tKe,iKe,$ze,Xze,Qze,Zze,Jze]}),sKe=[{Name:V.hits.HIT_Q,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.216}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.96}]}],rKe=k.Factory({Name:"BeidouC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),oKe=k.Factory({Name:"BeidouC4",ApplySelf:!0,OnApply:new k.Builder().instance.Options({Name:"HIT_C4",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NONE,Scaling:[{Stat:d.stat.ATK,Initial:.2,Talent:d.stat.NONE,Scaling:P.TalentScaling.NONE}]}).Build()}),aKe=k.Factory({Name:"BeidouC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),lKe=k.Factory({Name:"BeidouC6",ApplySelf:!0,ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.ELECTRO_RES).Values(-.15).Build()}),cKe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7112}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7086}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.8832}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.8652}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.1214}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.5624}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.0182}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7459}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4914}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.8629}]}],uKe=k.Factory({Name:"BeidouA4",OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.15).Build()}),dKe=[{Name:V.hits.HIT_E,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.216}]}],hKe=k.Factory({Name:"BeidouE",MaxStacks:2,OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Mv(d.stat.ATK,.96,V.hits.HIT_E).Map((i,e,t)=>{const n=t.GetStacks(),s=e.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)-1,r=P.TalentScaling.ELEMENTAL_1[s];return i*r*n}).Build()}),Ire=Nt.Factory({Name:"Beidou",Stars:4,Weapon:d.weapon.CLAYMORE,Element:d.stat.ELECTRO_DMG,Region:d.region.LIYUE,StatBonus:d.stat.ELECTRO_DMG,AtkBase:[18.87648,67.54129],DefBase:[54.36375,194.5125],HpBase:[1094.1492,3914.8462],BurstCost:80,Normals:cKe,Skills:dKe,Bursts:sKe,Extra:[],Effects:[hKe,uKe,rKe,oKe,aKe,lKe]}),fKe=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.5427}]}],gKe=k.Factory({Name:"XingqiuC2",ApplySelf:!0,ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.HYDRO_RES).Values(-.15).Build()}),pKe=k.Factory({Name:"XingqiuC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),mKe=k.Factory({Name:"XingqiuC4",ApplySelf:!0,OnApply:new k.Builder().mv.Multiplier(1.5,/^HIT_E_/i).Build()}),_Ke=k.Factory({Name:"XingqiuC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),vKe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4661}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4764}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.2855}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.5599}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3586}]},{Name:V.hits.HIT_CHARGED_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.473}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.5616}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],bKe=k.Factory({Name:"XingqiuA4",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.HYDRO_DMG).Where({owner:{ascension:4}}).Values(.2).Build()}),CKe=[{Name:V.hits.HIT_E_1,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.68}]},{Name:V.hits.HIT_E_2,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.912}]}],Nre=Nt.Factory({Name:"Xingqiu",Stars:4,Element:d.stat.HYDRO_DMG,Weapon:d.weapon.SWORD,Region:d.region.LIYUE,HpBase:[857.08356,3066.6296],AtkBase:[16.9176,60.53229],DefBase:[63.51975,227.2725],StatBonus:d.stat.ATK_PERCENT,Normals:vKe,Skills:CKe,Bursts:fKe,Extra:[],Effects:[bKe,gKe,pKe,mKe,_Ke],BurstCost:80}),EKe=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_2,Stat:d.stat.ATK,Initial:3.0327}]}],SKe=k.Factory({Name:"HuTaoQ",OnApply:new k.Builder().mv.Where({target:{hp:{leq:.5}}}).Multiplier(3.7909/3.0327,"HIT_Q").Build()}),yKe=k.Factory({Name:"HuTaoC2",ApplySelf:!0,OnApply:new k.Builder().mv.Mv(d.stat.HP,.1,"HIT_E").Build()}),TKe=k.Factory({Name:"HuTaoC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wKe=k.Factory({Name:"HuTaoC4",ApplySelf:!1,ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(.12).Build()}),AKe=k.Factory({Name:"HuTaoC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),xKe=k.Factory({Name:"HuTaoC6",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(1).Build()}),LKe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.4689}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.4825}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.6105}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.6564}]},{Name:V.hits.HIT_N5_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.3327}]},{Name:V.hits.HIT_N5_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.352}]},{Name:V.hits.HIT_N6,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.8596}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:1.3596}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.6542}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:1.3081}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:1.6339}]}],IKe=k.Factory({Name:"HuTaoA1",ApplySelf:!1,ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Where({owner:{ascension:1}}).Values(.12).Build()}),NKe=k.Factory({Name:"HuTaoA4",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.PYRO_DMG).Where({owner:{ascension:4,hp:{leq:.5}}}).Values(.33).Build()}),MKe=[{Name:V.hits.HIT_E,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.64}]}],DKe=k.Factory({Name:"HuTaoE",ApplySelf:!0,OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP,d.stat.ATK_BASE,d.stat.HP_BASE,d.stat.HP_FLAT,d.stat.HP_PERCENT).stat.Char(d.stat.ATK_FLAT).Values(...P.TalentScaling.ELEMENTAL_2).Rank(i=>i.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)).Map((i,e)=>{const t=e.GetCharacter(),n=.0384*i*t.Get(d.stat.HP),s=t.Get(d.stat.ATK_BASE)*4;return Math.max(0,Math.min(s,n))}).Next().infusion.Set(d.stat.PYRO_DMG,!0).Build()}),Mre=Nt.Factory({Name:"HuTao",Element:d.stat.PYRO_DMG,Region:d.region.LIYUE,Stars:5,Weapon:d.weapon.POLEARM,HpBase:[1210.7164,4971.856],AtkBase:[8.2859,34.0239],DefBase:[68.2062,280.098],StatBonus:d.stat.CRIT_DMG,Normals:LKe,Skills:MKe,Bursts:EKe,Extra:[],Effects:[DKe,SKe,IKe,NKe,yKe,TKe,wKe,AKe,xKe],BurstCost:60}),kKe=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0731}]},{Name:V.hits.HIT_Q+"_THROW",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0487}]}],RKe=k.Factory({Name:"YelanC2",OnApply:new k.Builder().instance.Options({Name:"HIT_C2",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.14,Talent:d.stat.ELEMENTAL_BURST_LEVEL}]}).Build()}),OKe=k.Factory({Name:"YelanC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),PKe=k.Factory({Name:"YelanC4",MaxStacks:4,ApplySelf:!0,ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.1).Stacks().Build()}),FKe=k.Factory({Name:"YelanC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),BKe=k.Factory({Name:"YelanC6",OnApply:new k.Builder().instance.Options({Name:"HIT_C6",Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:1.56*.1158,Talent:d.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),HKe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4068}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3904}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.516}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3251}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:"HIT_BREAKTHROUGH_BARB",Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.1158}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],GKe=k.Factory({Name:"YelanA1",ApplySelf:!0,OnApply:new k.Builder().observe.Party(!0).stat.Char(d.stat.HP_PERCENT).Where({owner:{ascension:1}}).Values(.06,.12,.18,.3).Rank(i=>{const e=i.GetParty();if(!e)return 1;const t=e.GetMembers(),n=new Map;for(const r of t)n.set(r.GetCharacter().Options.Element,!0);let s=0;for(const r of n.values())r&&s++;return s}).Build()}),VKe=k.Factory({Name:"YelanA4",ApplySelf:!0,ApplyOther:!0,MaxTargets:1,MaxStacks:15,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Where({owner:{ascension:4}}).Values(.01).Next().stat.Char(d.stat.ALL_DMG).Where({owner:{ascension:4}}).Values(.035).Stacks().Map(i=>Math.min(.5,i)).Build()}),WKe=[{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.2261}]}],Dre=Nt.Factory({Name:"Yelan",Stars:5,Element:d.stat.HYDRO_DMG,Weapon:d.weapon.BOW,Region:d.region.LIYUE,BurstCost:70,HpBase:[1124.9176,4619.52],AtkBase:[18.9924,77.987366],DefBase:[42.65879,175.1841],StatBonus:d.stat.CRIT_RATE,Normals:HKe,Skills:WKe,Bursts:kKe,Extra:[],Effects:[GKe,VKe,RKe,OKe,PKe,FKe,BKe]}),zKe=[{Name:V.hits.HIT_Q,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:[1,1.108,1.216,1.351,1.473,1.595,1.757,1.919,2.081,2.243,2.405,2.568,2.703,2.838,2.973],Stat:d.stat.ATK,Initial:4.0108}]}],KKe=k.Factory({Name:"ZhongliC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),UKe=k.Factory({Name:"ZhongliC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),YKe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3077}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3115}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3858}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4294}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.1075}]},{Name:V.hits.HIT_N6,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.545}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.1103}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],jKe=k.Factory({Name:"ZhongliA4",ApplySelf:!0,OnApply:new k.Builder().Where({target:{ascension:4}}).mv.Mv(d.stat.HP,.0139,/HIT_(N(\d)|CHARGED|PLUNGE)/).Next().Where({target:{ascension:4}}).mv.Mv(d.stat.HP,.019,/HIT_E/).Next().Where({target:{ascension:4}}).mv.Mv(d.stat.HP,.33,/HIT_Q/).Build()}),qKe=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.16}]},{Name:V.hits.HIT_E+"_RESONANCE",Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.32}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.8}]}],$Ke=k.Factory({Name:"ZhongliE",ApplySelf:!0,ApplyOther:!0,OnApply:(i,e,t)=>{const n=d.Elements;for(const s of n){const r=d.DmgToRes(s);t.Modifier(i.GetCharacter().GetEnemy().Subject.CreateModifier(r,-.2))}return()=>0}}),kre=Nt.Factory({Name:"Zhongli",Stars:5,Element:d.stat.GEO_DMG,Weapon:d.weapon.POLEARM,Region:d.region.LIYUE,HpBase:[1143.984,4697.817],AtkBase:[19.551,80.2811],DefBase:[57.4368,235.872],StatBonus:d.stat.GEO_DMG,BurstCost:40,Normals:YKe,Skills:qKe,Bursts:zKe,Extra:[],Effects:[$Ke,jKe,KKe,UKe]}),XKe=[{Name:V.hits.HIT_Q,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:4.008}]},{Name:V.hits.HIT_N1+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.4447}]},{Name:V.hits.HIT_N2+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.4396}]},{Name:V.hits.HIT_N3+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.5382}]},{Name:V.hits.HIT_N4+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.3089}]},{Name:V.hits.HIT_N5+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.7394}]},{Name:V.hits.HIT_CHARGED_1+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.616}]},{Name:V.hits.HIT_CHARGED_2+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.7436}]},{Name:V.hits.HIT_PLUNGE+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],QKe=k.Factory({Name:"RaidenQ",MaxStacks:60,OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(d.stat.ATK,.0389,V.hits.HIT_Q).Map((i,e,t)=>t.GetStacks()*i*P.TalentScaling.ELEMENTAL_1[Math.max(0,Math.min(P.TalentScaling.ELEMENTAL_1.length-1,e.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)-1))]).Next().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(d.stat.ATK,.0073,/_.+_Q$/).Map((i,e,t)=>t.GetStacks()*i*P.TalentScaling.ELEMENTAL_1[Math.max(0,Math.min(P.TalentScaling.ELEMENTAL_1.length-1,e.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)-1))]).Build()}),ZKe=k.Factory({Name:"RaidenC2",OnApply:new k.Builder().stat.Char(d.stat.DEFIGNORED).Values(.6).Build()}),JKe=k.Factory({Name:"RaidenC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),eUe=k.Factory({Name:"RaidenC4",ApplyOther:!0,ApplySelf:!1,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.3).Build()}),tUe=k.Factory({Name:"RaidenC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),iUe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3965}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3973}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4988}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2898}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6545}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9959}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],nUe=k.Factory({Name:"RaidenA4",OnApply:new k.Builder().Where({target:{ascension:4}}).observe.Target(d.stat.ENERGY_RECHARGE).stat.Char(d.stat.ELECTRO_DMG).Values(.4).Map((i,e)=>i*Math.max(0,e.GetCharacter().Get(d.stat.ENERGY_RECHARGE)-1)).Build()}),sUe=[{Name:V.hits.HIT_E,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.172}]},{Name:V.hits.HIT_E+"_COORDINATED",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.42}]}],rUe=k.Factory({Name:"RaidenE",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.0022,.0023,.0024,.0025,.0026,.0027,.0028,.0029,.003).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)).Map((i,e)=>i*e.GetCharacter().Options.BurstCost).Build()}),Rre=Nt.Factory({Name:"Raiden",Stars:5,Weapon:d.weapon.POLEARM,Region:d.region.INAZUMA,Element:d.stat.ELECTRO_DMG,StatBonus:d.stat.ENERGY_RECHARGE,BurstCost:90,AtkBase:[26.2542,107.80606],DefBase:[61.44541,252.3339],HpBase:[1004.79926,4126.249],Normals:iUe,Skills:sUe,Bursts:XKe,Extra:[],Effects:[rUe,QKe,nUe,ZKe,JKe,eUe,tUe]}),oUe=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.328}]}],aUe=k.Factory({Name:"BennettQ",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ATK_BASE,d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.ATK_FLAT).Values(...P.TalentScaling.ELEMENTAL_1).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map((i,e,t)=>{const n=t.Owner.FindEffect("BennettC1");return(.56*i+(n&&n.Enabled()?.2:0))*t.Owner.GetCharacter().Get(d.stat.ATK_BASE)}).Build()}),lUe=k.Factory({Name:"BennettC1",OnApply(i,e,t){const n=i.FindEffect("BennettQ");if(!n)throw new Error("Bennett Burst effect not found");const s=n;function r(){s.Enabled()&&(s.Disable(),s.Enable())}return r(),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_TARGET,r)),()=>0}}),cUe=k.Factory({Name:"BennettC2",OnApply:new k.Builder().Where({target:{hp:{leq:.7}}}).stat.Char(d.stat.ENERGY_RECHARGE).Values(.3).Build()}),uUe=k.Factory({Name:"BennettC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),dUe=k.Factory({Name:"BennettC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),hUe=k.Factory({Name:"BennettC6",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.PYRO_DMG).Values(.15).Next().Where({target:{weapon:[d.weapon.CLAYMORE,d.weapon.SWORD,d.weapon.POLEARM]}}).infusion.Set(d.stat.PYRO_DMG,!1).Build()}),fUe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4455}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4274}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5461}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5968}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.719}]},{Name:V.hits.HIT_CHARGED_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.559}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6072}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],gUe=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.376}]},{Name:V.hits.HIT_E_1_1,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.84}]},{Name:V.hits.HIT_E_1_2,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.92}]},{Name:V.hits.HIT_E_2_1,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.88}]},{Name:V.hits.HIT_E_2_2,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.96}]},{Name:V.hits.HIT_E_EXPLOSION,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.32}]},{Name:"HIT_C4",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.92*1.35}]}],Ore=Nt.Factory({Name:"Bennett",Stars:4,Weapon:d.weapon.SWORD,Element:d.stat.PYRO_DMG,Region:d.region.MONDSTADT,StatBonus:d.stat.ENERGY_RECHARGE,BurstCost:60,HpBase:[1039.4418,3719.104],AtkBase:[16.0272,57.34638],DefBase:[64.66425,231.3675],Normals:fUe,Skills:gUe,Bursts:oUe,Effects:[aUe,lUe,cUe,uUe,dUe,hUe],Extra:[]}),pUe=[{Name:V.hits.HIT_Q,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.08}]}],mUe=k.Factory({Name:"FischlC1",OnApply:new k.Builder().instance.Options({Name:"HIT_C1",Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Initial:.22,Talent:d.stat.NONE}]}).Build()}),_Ue=k.Factory({Name:"FischlC2",OnApply:new k.Builder().mv.Mv(d.stat.ATK,2,/HIT_E$/).Build()}),vUe=k.Factory({Name:"FischlC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),bUe=k.Factory({Name:"FischlC4",OnApply:new k.Builder().instance.Options({Name:"HIT_C4",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Initial:2.22,Talent:d.stat.NONE}]}).Build()}),CUe=k.Factory({Name:"FischlC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),EUe=k.Factory({Name:"FischlC6",OnApply:new k.Builder().instance.Options({Name:"HIT_C6",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Initial:.3,Talent:d.stat.NONE}]}).Build()}),SUe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4412}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4678}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5814}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5771}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7207}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.ELECTRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],yUe=k.Factory({Name:"FischlA1",OnApply:new k.Builder().Where({target:{ascension:1}}).instance.Options({Name:"HIT_A1",Element:d.stat.ELECTRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24*1.527,Talent:d.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),TUe=k.Factory({Name:"FischlA4",OnApply:new k.Builder().Where({target:{ascension:4}}).instance.Options({Name:"HIT_A4",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Initial:.8,Talent:d.stat.NONE}]}).Build()}),wUe=[{Name:V.hits.HIT_E,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.1544}]},{Name:"HIT_OZ",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.888}]}],Pre=Nt.Factory({Name:"Fischl",Stars:4,Element:d.stat.ELECTRO_DMG,Region:d.region.MONDSTADT,Weapon:d.weapon.BOW,StatBonus:d.stat.ATK_PERCENT,AtkBase:[20.4792,73.27593],HpBase:[770.4634,2756.704],DefBase:[49.78575,178.1325],BurstCost:60,Normals:SUe,Skills:wUe,Bursts:pUe,Extra:[],Effects:[yUe,TUe,mUe,_Ue,vUe,bUe,CUe,EUe]}),AUe=[{Name:V.hits.HIT_Q,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.624}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.2}]}],xUe=k.Factory({Name:"KazuhaQ",MaxAuras:1,ValidAuras:d.Swirlable,OnApply(i,e,t){LUe(i,e,t);function n(){const s=i.FindBurst(V.hits.HIT_Q+"_ADDITIONAL");if(!s)return;const r=e.GetAuras()[0];!r||(s.Options.Element=d.AuraToDmg(r))}return n(),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_AURAS,n)),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,n)),()=>0}}),LUe=new k.Builder().instance.Location("Burst").Options({Name:V.hits.HIT_Q+"_ADDITIONAL",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.36,Talent:d.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),IUe=k.Factory({Name:"KazuhaC2",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(200).Build()}),NUe=k.Factory({Name:"KazuhaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),MUe=k.Factory({Name:"KazuhaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),DUe=k.Factory({Name:"KazuhaC6",OnApply:new k.Builder().infusion.Set(d.stat.ANEMO_DMG,!1).Build()}),kUe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4498}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4524}]},{Name:V.hits.HIT_N3_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.258}]},{Name:V.hits.HIT_N3_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3096}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.6072}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.2537}]},{Name:V.hits.HIT_CHARGED_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.43}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7465}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8183}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.6363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:2.0439}]}],RUe=k.Factory({Name:"KazuhaA1",MaxAuras:1,ValidAuras:d.Swirlable,OnApply(i,e,t){OUe(i,e,t);function n(){const s=i.FindNormal("HIT_A1");if(!s)return;const r=e.GetAuras()[0];!r||(s.Options.Element=d.AuraToDmg(r))}return n(),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_AURAS,n)),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,n)),()=>0}}),OUe=new k.Builder().Where({target:{ascension:1}}).instance.Location("Normal").Options({Name:"HIT_A1",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Initial:2,Talent:d.stat.NONE}]}).Build(),PUe=k.Factory({Name:"KazuhaA4",ApplyOther:!0,MaxAuras:1/0,ValidAuras:d.Swirlable,OnApply(i,e,t){const n=e.Owner.GetCharacter(),s=i.GetCharacter(),r=d.Elements.filter(a=>a!==d.stat.PHYSICAL_DMG).map(a=>t.Modifier(s.CreateModifier(a,0)));function o(){const a=e.GetAuras().map(l=>d.AuraToDmg(l));for(const l of r)a.includes(l.GetProp())&&n.GetAscension()>=4?l.SetValue(.04/100*n.Get(d.stat.ELEMENTAL_MASTERY)):l.SetValue(0)}return o(),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_AURAS,o)),t.Observer(n.CreateObserver(d.stat.ELEMENTAL_MASTERY,o)),t.Observer(n.CreateObserver(d.stat.LEVEL,o)),t.Observer(n.CreateObserver(d.stat.ASCENSION,o)),()=>0}}),FUe=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.92}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.608}]}],BUe=k.Factory({Name:"KazuhaE",OnApply:new k.Builder().instance.Location("Normal").Options({Name:V.hits.HIT_PLUNGE+"_E",Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8183,Talent:d.stat.NORMAL_ATTACK_LEVEL}]}).Next().instance.Location("Normal").Options({Name:V.hits.HIT_PLUNGE_LOW+"_E",Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.6363,Talent:d.stat.NORMAL_ATTACK_LEVEL}]}).Next().instance.Location("Normal").Options({Name:V.hits.HIT_PLUNGE_HIGH+"_E",Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:2.0439,Talent:d.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),Fre=Nt.Factory({Name:"Kazuha",Stars:5,Weapon:d.weapon.SWORD,Region:d.region.INAZUMA,Element:d.stat.ANEMO_DMG,StatBonus:d.stat.ELEMENTAL_MASTERY,BurstCost:60,HpBase:[1039.1188,4267.1836],AtkBase:[23.0888,94.80817],DefBase:[62.8215,257.985],Normals:kUe,Skills:FUe,Bursts:AUe,Extra:[],Effects:[BUe,xUe,RUe,PUe,IUe,NUe,MUe,DUe]}),HUe=[{Name:V.hits.HIT_Q,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:4.096}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.3412}]}],GUe=k.Factory({Name:"SaraC2",OnApply:new k.Builder().instance.Location("Skill").Options({Name:"HIT_C2",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.2576*.3,Talent:d.stat.ELEMENTAL_SKILL_LEVEL}]}).Build()}),VUe=k.Factory({Name:"SaraC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),WUe=k.Factory({Name:"SaraC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),zUe=k.Factory({Name:"SaraC6",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ELECTRO_CRIT_DMG).Values(.6).Build()}),KUe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3689}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.387}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.485}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.504}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.585}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.ELECTRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],UUe=[{Name:V.hits.HIT_E,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.2576}]}],YUe=k.Factory({Name:"SaraE",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ATK_BASE,d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Char(d.stat.ATK_FLAT).Values(...P.TalentScaling.ELEMENTAL_1).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)).Map((i,e,t)=>.4296*i*t.Owner.GetCharacter().Get(d.stat.ATK_BASE)).Build()}),Bre=Nt.Factory({Name:"Sara",Stars:4,Weapon:d.weapon.BOW,Region:d.region.INAZUMA,Element:d.stat.ELECTRO_DMG,BurstCost:80,HpBase:[802.3761,2870.8872],AtkBase:[16.38336,58.620743],DefBase:[52.647,188.37],StatBonus:d.stat.ATK_PERCENT,Normals:KUe,Skills:UUe,Bursts:HUe,Extra:[],Effects:[YUe,GUe,VUe,WUe,zUe]}),jUe=[{Name:V.hits.HIT_N1,Element:d.stat.DENDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.403}]},{Name:V.hits.HIT_N2,Element:d.stat.DENDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.3697}]},{Name:V.hits.HIT_N3,Element:d.stat.DENDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.4587}]},{Name:V.hits.HIT_N4,Element:d.stat.DENDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5841}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.DENDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:1.32}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.DENDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.DENDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.DENDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],qUe=k.Factory({Name:"NahidaA1",ApplyOther:!0,MaxTargets:1,OnApply(i,e,t){const n=i.GetCharacter(),s=e.Owner.GetCharacter(),r=t.Modifier(n.CreateModifier(d.stat.ELEMENTAL_MASTERY,0));let o=[];const a=[];function l(u){if(u===r)return;if(s.Get(d.stat.ASCENSION)<1){r.SetValue(0);return}let h=0,p=n;for(const C of o){const y=C.Get(d.stat.ELEMENTAL_MASTERY);y>h&&(h=y,p=C)}p===n&&(h-=r.GetValue());const _=Math.min(250,Math.max(0,.25*h));r.SetValue(_)}function c(){a.forEach(h=>h.Remove());const u=i.GetParty();if(!u)o=[n];else{o=[];for(const h of u.GetMembers())o.push(h.GetCharacter())}for(const h of o)a.push(t.Observer(h.CreateObserver(d.stat.ELEMENTAL_MASTERY,l)));l()}return c(),t.Observer(i.Event.CreateObserver(Nt.CharboxEvent.CHANGE_PARTY,c)),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,c)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,c)),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_CONDITIONS,c)),t.Observer(s.CreateObserver(d.stat.LEVEL,l)),t.Observer(s.CreateObserver(d.stat.ASCENSION,l)),()=>0}}),$Ue=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.984}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.304}]},{Name:V.hits.HIT_E_DOT,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.032},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ELEMENTAL_MASTERY,Initial:2.064}]}],XUe=k.Factory({Name:"NahidaA4",OnApply(i,e,t){const n=i.GetCharacter(),s=i.FindSkill(V.hits.HIT_E_DOT);if(!s)throw new Error("Cannot find Nahida Skill");const r=t.Modifier(s.Subject.CreateModifier(d.stat.ALL_DMG,0)),o=t.Modifier(s.Subject.CreateModifier(d.stat.CRIT_RATE,0));let a,l;function c(){if(n.GetAscension()<4){r.SetValue(0),o.SetValue(0),a&&a.SetValue(0),l&&l.SetValue(0);return}const u=i.FindSkill("HIT_C6");u&&(a||(a=t.Modifier(u.Subject.CreateModifier(d.stat.ALL_DMG,0))),l||(l=t.Modifier(u.Subject.CreateModifier(d.stat.CRIT_RATE,0))));const h=Math.max(0,n.Get(d.stat.ELEMENTAL_MASTERY)-200),p=Math.min(.24,h*.03/100),_=Math.min(.8,h*.1/100);r.SetValue(_),o.SetValue(p),a&&a.SetValue(_),l&&l.SetValue(p)}return c(),t.Observer(n.CreateObserver(d.stat.ELEMENTAL_MASTERY,c)),t.Observer(n.CreateObserver(d.stat.LEVEL,c)),t.Observer(n.CreateObserver(d.stat.ASCENSION,c)),()=>0}}),QUe=k.Factory({Name:"NahidaQ",OnApply(i,e,t){const n=i.FindSkill(V.hits.HIT_E_DOT);if(!n)throw new Error("Cannot find Nahida Skill");const s=t.Modifier(n.Subject.CreateModifier(d.stat.ALL_DMG,0));let r;function o(){const a=i.GetParty();if(!a){s.SetValue(0),r&&r.SetValue(0);return}const l=i.FindSkill("HIT_C6");l&&!r&&(r=t.Modifier(l.Subject.CreateModifier(d.stat.ALL_DMG,0)));const c=i.FindEffect("NahidaC1");let h=c&&c.Enabled()&&c.GetTargets().includes(i)?1:0;for(const C of a.GetMembers())C.GetCharacter().Options.Element===d.stat.PYRO_DMG&&h++;let p=0;h>=1&&(p=.1488),h>=2&&(p=.2232);const _=p*P.TalentScaling.ELEMENTAL_1[i.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)-1];s.SetValue(_),r&&r.SetValue(_)}return o(),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,o)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,o)),t.Observer(i.GetCharacter().CreateObserver(d.stat.ELEMENTAL_BURST_LEVEL,o)),t.Observer(i.GetCharacter().CreateObserver(d.stat.ELEMENTAL_BURST_LEVEL_UP,o)),t.Observer(i.Event.CreateObserver(Nt.CharboxEvent.CHANGE_PARTY,o)),()=>0}}),ZUe=k.Factory({Name:"NahidaC1",OnApply(i,e,t){const n=i.FindEffect("NahidaQ");if(!n)throw new Error("Nahida Burst effect not found");const s=n;function r(){s.Enabled()&&(s.Disable(),s.Enable())}return r(),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_TARGET,r)),()=>0}}),JUe=k.Factory({Name:"NahidaC2",ApplyOther:!0,MaxAuras:1,ValidAuras:[d.aura.QUICKEN],OnApply(i,e,t){eYe(i,e,t);const s=["BURGEON","BLOOM","HYPERBLOOM","BURNING"].map(r=>i.FindTr("HIT_"+r));for(const r of s)!r||(t.Modifier(r.Subject.CreateModifier(d.stat.CRIT_RATE,.2)),t.Modifier(r.Subject.CreateModifier(d.stat.CRIT_DMG,1)));return()=>0}}),eYe=new k.Builder().Where({effect:{aura:[d.aura.QUICKEN]}}).stat.Enemy(d.stat.DEFREDUCTION).Values(.3).Build(),tYe=k.Factory({Name:"NahidaC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),iYe=k.Factory({Name:"NahidaC4",MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Stacks([0,100,120,140,160]).Build()}),nYe=k.Factory({Name:"NahidaC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),sYe=k.Factory({Name:"NahidaC6",OnApply(i,e,t){rYe(i,e,t);function n(){const s=i.FindEffect("NahidaQ"),r=i.FindEffect("NahidaA4");s&&s.Enabled()&&(s.Disable(),s.Enable()),r&&r.Enabled()&&(r.Disable(),r.Enable())}return n(),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,n)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,n)),()=>0}}),rYe=new k.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Talent:d.stat.NONE,Initial:2},{Scaling:P.TalentScaling.NONE,Stat:d.stat.ELEMENTAL_MASTERY,Talent:d.stat.NONE,Initial:4}]}).Build(),Hre=Nt.Factory({Name:"Nahida",Stars:5,Element:d.stat.DENDRO_DMG,Region:d.region.SUMERU,Weapon:d.weapon.CATALYST,StatBonus:d.stat.ELEMENTAL_MASTERY,BurstCost:50,HpBase:[806.5087,3311.961],AtkBase:[23.275,95.57275],DefBase:[49.0606,201.474],Normals:jUe,Skills:$Ue,Bursts:[],Extra:[],Effects:[QUe,qUe,XUe,ZUe,JUe,tYe,iYe,nYe,sYe]}),i8=new ho(i=>i.Name);i8.AddList(Object.values(Gse).sort((i,e)=>i.Name.localeCompare(e.Name)));function Gre(){return i8.Get()}function oYe(i){return i8.Find(i)}var ja={};hi(ja,{Akuoumaru:()=>doe,AlleyHunter:()=>Dae,AmberBead:()=>ule,AmenomaKageuchi:()=>eae,AmosBow:()=>yae,AquaSimulacra:()=>Eae,AquilaFavonia:()=>qoe,BalladOfTheFjords:()=>ioe,BeaconOfTheReedSea:()=>loe,BlackTassel:()=>Ple,BlackcliffAgate:()=>sle,BlackcliffLongsword:()=>sae,BlackcliffPole:()=>Ble,BlackcliffSlasher:()=>poe,BlackcliffWarbow:()=>soe,BloodtaintedGreatsword:()=>moe,CalamityQueller:()=>_le,CinnabarSpindle:()=>Joe,CompoundBow:()=>Rae,CoolSteel:()=>vae,CrescentPike:()=>Lle,DarkIronSword:()=>gae,Deathmatch:()=>Hle,DebateClub:()=>_oe,DodocoTales:()=>tle,DragonsBane:()=>Nle,DragonspineSpear:()=>Ale,ElegyForTheEnd:()=>Dle,EmeraldOrb:()=>hle,EndOfTheLine:()=>Tae,EngulfingLightning:()=>yle,EverlastingMoonglow:()=>qae,EyeOfPerception:()=>nle,FadingTwilight:()=>Mae,FavoniusCodex:()=>cle,FavoniusGreatsword:()=>voe,FavoniusLance:()=>Rle,FavoniusSword:()=>Wle,FavoniusWarbow:()=>zle,FerrousShadow:()=>boe,FesteringDesire:()=>tae,FilletBlade:()=>pae,FinaleOfTheDeep:()=>$re,FindByName:()=>_Ye,FleuveCendreFerryman:()=>Xre,FlowingPurity:()=>qre,ForestRegalia:()=>Soe,FreedomSworn:()=>Voe,Frostbearer:()=>ile,FruitOfFulfillment:()=>Zae,GetByType:()=>vYe,GetList:()=>Yle,HakushinRing:()=>ele,Halberd:()=>Ile,Hamayumi:()=>Lae,HaranGeppakuFutsu:()=>Koe,HarbingerOfDawn:()=>_ae,HuntersPath:()=>bae,IbisPiercer:()=>roe,IronSting:()=>rae,JadeCutter:()=>Yoe,JadeSpear:()=>vle,JadefallSplendor:()=>ooe,KagotsurubeIsshin:()=>Zoe,KagurasVerity:()=>jae,KatsuragikiriNagamasa:()=>yoe,KeyOfKhajNisut:()=>zoe,KingsSquire:()=>wae,KitainCrossSpear:()=>wle,LightOfFoliarIncision:()=>Woe,LionsRoar:()=>aae,LithicBlade:()=>woe,LithicSpear:()=>xle,LostPrayer:()=>Xae,LuxuriousSeaLord:()=>Coe,MagicGuide:()=>ple,MailedFlower:()=>aoe,MakhairaAquamarine:()=>goe,MappaMare:()=>rle,MemoryOfDust:()=>$ae,Messenger:()=>Hae,MissiveWindspear:()=>Ele,MistsplitterReforged:()=>Uoe,MitternachtsWaltz:()=>Nae,Moonpiercer:()=>Sle,MouunsMoon:()=>Aae,OathswornEye:()=>Jae,OtherworldlyStory:()=>fle,PolarStar:()=>Sae,Predator:()=>xae,PrototypeAmber:()=>ole,PrototypeArchaic:()=>xoe,PrototypeCrescent:()=>Oae,PrototypeRancour:()=>oae,PrototypeStarglitter:()=>Fle,Rainslasher:()=>Loe,RavenBow:()=>zae,RecurveBow:()=>Vae,RedhornStonethresher:()=>Ioe,RightfulReward:()=>Yre,RoyalBow:()=>dae,RoyalGreatsword:()=>Noe,RoyalGrimoire:()=>cae,RoyalLongsword:()=>hae,RoyalSpear:()=>uae,Rust:()=>Pae,SacrificialBow:()=>Fae,SacrificialFragments:()=>lle,SacrificialGreatsword:()=>Moe,SacrificialJade:()=>Jre,SacrificialSword:()=>Mle,SapwoodBlade:()=>Qoe,ScionOfTheBlazingSun:()=>eoe,SerpentSpine:()=>Goe,SharpshootersOath:()=>Wae,SkyriderGreatsword:()=>Doe,SkyriderSword:()=>fae,SkywardAtlas:()=>Qae,SkywardBlade:()=>Gle,SkywardHarp:()=>Vle,SkywardPride:()=>koe,SkywardSpine:()=>Cle,Slingshot:()=>Gae,SnowTombedStarsilver:()=>Roe,SolarPearl:()=>ale,SongOfBrokenPines:()=>Aoe,SongOfStillness:()=>jre,SplendorOfTranquilWaters:()=>Kre,StaffOfHoma:()=>kle,StaffOfTheScarletSands:()=>mle,SummitShaper:()=>joe,SwordOfDescension:()=>iae,TalkingStick:()=>toe,TheAlleyFlash:()=>nae,TheBell:()=>Ooe,TheBlackSword:()=>coe,TheCatch:()=>uoe,TheFirstGreatMagic:()=>noe,TheFlute:()=>lae,TheStringless:()=>Bae,TheUnforged:()=>Poe,TheViridescentHunt:()=>kae,TheWidsith:()=>Kle,ThousandFloatingDreams:()=>Uae,ThrillingTalesOfDragonSlayers:()=>gle,ThunderingPulse:()=>Cae,TidalShadow:()=>Qre,TomeOfTheEternalFlow:()=>Ure,ToukabouShigure:()=>$oe,TravelersHandySword:()=>mae,TulaytullahsRemembrance:()=>Kae,TwinNephrite:()=>dle,UltimateOverlordsMegaMagicSword:()=>Wre,Veredict:()=>zre,VortexVanquisher:()=>ble,WanderingEvenstar:()=>Yae,WavebreakerFin:()=>Tle,WhiteIronGreatsword:()=>Boe,WhiteTassel:()=>Ole,Whiteblind:()=>Foe,WindblumeOde:()=>Iae,WineAndSong:()=>hoe,WolfFang:()=>Zre,WolfsGravestone:()=>Hoe,XiphosMoonlight:()=>Xoe});var Vre={};hi(Vre,{Akuoumaru:()=>doe,AlleyHunter:()=>Dae,AmberBead:()=>ule,AmenomaKageuchi:()=>eae,AmosBow:()=>yae,AquaSimulacra:()=>Eae,AquilaFavonia:()=>qoe,BalladOfTheFjords:()=>ioe,BeaconOfTheReedSea:()=>loe,BlackTassel:()=>Ple,BlackcliffAgate:()=>sle,BlackcliffLongsword:()=>sae,BlackcliffPole:()=>Ble,BlackcliffSlasher:()=>poe,BlackcliffWarbow:()=>soe,BloodtaintedGreatsword:()=>moe,CalamityQueller:()=>_le,CinnabarSpindle:()=>Joe,CompoundBow:()=>Rae,CoolSteel:()=>vae,CrescentPike:()=>Lle,DarkIronSword:()=>gae,Deathmatch:()=>Hle,DebateClub:()=>_oe,DodocoTales:()=>tle,DragonsBane:()=>Nle,DragonspineSpear:()=>Ale,ElegyForTheEnd:()=>Dle,EmeraldOrb:()=>hle,EndOfTheLine:()=>Tae,EngulfingLightning:()=>yle,EverlastingMoonglow:()=>qae,EyeOfPerception:()=>nle,FadingTwilight:()=>Mae,FavoniusCodex:()=>cle,FavoniusGreatsword:()=>voe,FavoniusLance:()=>Rle,FavoniusSword:()=>Wle,FavoniusWarbow:()=>zle,FerrousShadow:()=>boe,FesteringDesire:()=>tae,FilletBlade:()=>pae,FinaleOfTheDeep:()=>$re,FleuveCendreFerryman:()=>Xre,FlowingPurity:()=>qre,ForestRegalia:()=>Soe,FreedomSworn:()=>Voe,Frostbearer:()=>ile,FruitOfFulfillment:()=>Zae,HakushinRing:()=>ele,Halberd:()=>Ile,Hamayumi:()=>Lae,HaranGeppakuFutsu:()=>Koe,HarbingerOfDawn:()=>_ae,HuntersPath:()=>bae,IbisPiercer:()=>roe,IronSting:()=>rae,JadeCutter:()=>Yoe,JadeSpear:()=>vle,JadefallSplendor:()=>ooe,KagotsurubeIsshin:()=>Zoe,KagurasVerity:()=>jae,KatsuragikiriNagamasa:()=>yoe,KeyOfKhajNisut:()=>zoe,KingsSquire:()=>wae,KitainCrossSpear:()=>wle,LightOfFoliarIncision:()=>Woe,LionsRoar:()=>aae,LithicBlade:()=>woe,LithicSpear:()=>xle,LostPrayer:()=>Xae,LuxuriousSeaLord:()=>Coe,MagicGuide:()=>ple,MailedFlower:()=>aoe,MakhairaAquamarine:()=>goe,MappaMare:()=>rle,MemoryOfDust:()=>$ae,Messenger:()=>Hae,MissiveWindspear:()=>Ele,MistsplitterReforged:()=>Uoe,MitternachtsWaltz:()=>Nae,Moonpiercer:()=>Sle,MouunsMoon:()=>Aae,OathswornEye:()=>Jae,OtherworldlyStory:()=>fle,PolarStar:()=>Sae,Predator:()=>xae,PrototypeAmber:()=>ole,PrototypeArchaic:()=>xoe,PrototypeCrescent:()=>Oae,PrototypeRancour:()=>oae,PrototypeStarglitter:()=>Fle,Rainslasher:()=>Loe,RavenBow:()=>zae,RecurveBow:()=>Vae,RedhornStonethresher:()=>Ioe,RightfulReward:()=>Yre,RoyalBow:()=>dae,RoyalGreatsword:()=>Noe,RoyalGrimoire:()=>cae,RoyalLongsword:()=>hae,RoyalSpear:()=>uae,Rust:()=>Pae,SacrificialBow:()=>Fae,SacrificialFragments:()=>lle,SacrificialGreatsword:()=>Moe,SacrificialJade:()=>Jre,SacrificialSword:()=>Mle,SapwoodBlade:()=>Qoe,ScionOfTheBlazingSun:()=>eoe,SerpentSpine:()=>Goe,SharpshootersOath:()=>Wae,SkyriderGreatsword:()=>Doe,SkyriderSword:()=>fae,SkywardAtlas:()=>Qae,SkywardBlade:()=>Gle,SkywardHarp:()=>Vle,SkywardPride:()=>koe,SkywardSpine:()=>Cle,Slingshot:()=>Gae,SnowTombedStarsilver:()=>Roe,SolarPearl:()=>ale,SongOfBrokenPines:()=>Aoe,SongOfStillness:()=>jre,SplendorOfTranquilWaters:()=>Kre,StaffOfHoma:()=>kle,StaffOfTheScarletSands:()=>mle,SummitShaper:()=>joe,SwordOfDescension:()=>iae,TalkingStick:()=>toe,TheAlleyFlash:()=>nae,TheBell:()=>Ooe,TheBlackSword:()=>coe,TheCatch:()=>uoe,TheFirstGreatMagic:()=>noe,TheFlute:()=>lae,TheStringless:()=>Bae,TheUnforged:()=>Poe,TheViridescentHunt:()=>kae,TheWidsith:()=>Kle,ThousandFloatingDreams:()=>Uae,ThrillingTalesOfDragonSlayers:()=>gle,ThunderingPulse:()=>Cae,TidalShadow:()=>Qre,TomeOfTheEternalFlow:()=>Ure,ToukabouShigure:()=>$oe,TravelersHandySword:()=>mae,TulaytullahsRemembrance:()=>Kae,TwinNephrite:()=>dle,UltimateOverlordsMegaMagicSword:()=>Wre,Veredict:()=>zre,VortexVanquisher:()=>ble,WanderingEvenstar:()=>Yae,WavebreakerFin:()=>Tle,WhiteIronGreatsword:()=>Boe,WhiteTassel:()=>Ole,Whiteblind:()=>Foe,WindblumeOde:()=>Iae,WineAndSong:()=>hoe,WolfFang:()=>Zre,WolfsGravestone:()=>Hoe,XiphosMoonlight:()=>Xoe});var b_=4,Wre=Pe.Factory({Name:"UltimateOverlordsMegaMagicSword",Stars:4,Type:d.weapon.CLAYMORE,Substat:d.stat.ENERGY_RECHARGE,Scaling:P.WeaponScaling.TYPE_44,Effects:[k.Factory({Name:"UltimateOverlordsMegaMagicSword1",MaxRank:5,MaxStacks:b_,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(d.stat.ATK_PERCENT).Values(.12/b_,.15/b_,.18/b_,.21/b_,.24/b_).Stacks().Build()})]}),zre=Pe.Factory({Name:"Verdict",Stars:5,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"Verdict1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(d.stat.ATK).Values(.2,.25,.3,.35,.4).Next().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.18,.225,.27,.315,.36).Stacks().Build()})]}),Kre=Pe.Factory({Name:"SplendorOfTranquilWaters",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"SplendorOfTranquilWaters1",MaxStacks:3,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.08,.1,.12,.14,.16).Stacks().Build()}),k.Factory({Name:"SplendorOfTranquilWaters2",MaxStacks:2,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.14,.175,.21,.245,.28).Stacks().Build()})]}),Ure=Pe.Factory({Name:"TomeOfTheEternalFlow",Stars:5,Type:d.weapon.CATALYST,Substat:d.stat.CRIT_DMG,Scaling:P.WeaponScaling.TYPE_44b,Effects:[k.Factory({Name:"TomeOfTheEternalFlow1",MaxStacks:3,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.16,.2,.24,.28,.32).Next().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.14,.18,.22,.26,.3).Stacks().Build()})]}),Yre=Pe.Factory({Name:"RightfulReward",Stars:4,Type:d.weapon.POLEARM,Substat:d.stat.HP_PERCENT,Scaling:P.WeaponScaling.TYPE_44,Effects:[]}),jre=Pe.Factory({Name:"SongOfStillness",Stars:4,Type:d.weapon.BOW,Substat:d.stat.ATK_PERCENT,Scaling:P.WeaponScaling.TYPE_42,Effects:[k.Factory({Name:"SongOfStillness1",MaxRank:5,MaxConditions:1,Conditions:["HEALED"],OnApply:new k.Builder().Where({effect:{conditions:["HEALED"]}}).stat.Char(d.stat.ALL_DMG).Values(.16,.2,.24,.28,.32).Build()})]}),qre=Pe.Factory({Name:"FlowingPurity",Stars:4,Type:d.weapon.CATALYST,Substat:d.stat.ATK_PERCENT,Scaling:P.WeaponScaling.TYPE_44,Effects:[k.Factory({Name:"FlowingPurity1",MaxRank:5,MaxConditions:1,MaxStacks:6e3,Conditions:["CAST_SKILL"],OnApply:new k.Builder().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Next().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(...[.02,.025,.03,.035,.04].map(i=>i/1e3)).Stacks().Build()})]}),$re=Pe.Factory({Name:"FinaleOfTheDeep",Stars:4,Type:d.weapon.SWORD,Substat:d.stat.ATK_PERCENT,Scaling:P.WeaponScaling.TYPE_44,Effects:[k.Factory({Name:"FinaleOfTheDeep1",MaxRank:5,MaxStacks:100,MaxConditions:1,Conditions:["CAST_SKILL"],OnApply:new k.Builder().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().observe.Target(d.stat.HP_BASE,d.stat.HP_PERCENT,d.stat.HP_FLAT).stat.Char(d.stat.ATK_FLAT).Values(.024,.03,.036,.042,.048).Map((i,e,t)=>{let n=i*t.GetStacks()/100*.25*e.GetCharacter().Get(d.stat.HP);return n=Math.min(n,150/.024*i),n}).Build()})]}),Xre=Pe.Factory({Name:"FleuveCendreFerryman",Stars:4,Type:d.weapon.SWORD,Substat:d.stat.ENERGY_RECHARGE,Scaling:P.WeaponScaling.TYPE_42,Effects:[k.Factory({Name:"FleuveCendreFerryman1",MaxRank:5,Conditions:["CAST_SKILL"],MaxConditions:1,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.08,.1,.12,.14,.16).Next().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(d.stat.ENERGY_RECHARGE).Values(.16,.2,.24,.28,.32).Build()})]}),Qre=Pe.Factory({Name:"TidalShadow",Stars:4,Type:d.weapon.CLAYMORE,Substat:d.stat.ATK_PERCENT,Scaling:P.WeaponScaling.TYPE_42,Effects:[k.Factory({Name:"TidalShadow1",MaxRank:5,Conditions:["HEALED"],MaxConditions:1,OnApply:new k.Builder().Where({effect:{conditions:["HEALED"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),Zre=Pe.Factory({Name:"WolfFang",Stars:4,Type:d.weapon.SWORD,Substat:d.stat.CRIT_RATE,Scaling:P.WeaponScaling.TYPE_42,Effects:[k.Factory({Name:"WolfFang1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG,d.stat.ELEMENTAL_BURST_DMG).Values(.16,.2,.24,.28,.32).Build()}),k.Factory({Name:"WolfFang2",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.02,.025,.03,.035,.04).Stacks().Build()}),k.Factory({Name:"WolfFang3",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.02,.025,.03,.035,.04).Stacks().Build()})]}),Jre=Pe.Factory({Name:"SacrificialJade",Stars:4,Type:d.weapon.CATALYST,Substat:d.stat.CRIT_RATE,Scaling:P.WeaponScaling.TYPE_42,Effects:[k.Factory({Name:"SacrificialJade1",MaxRank:5,Conditions:["OFF_FIELD"],MaxConditions:1,OnApply:new k.Builder().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(d.stat.HP_PERCENT).Values(.32,.4,.48,.56,.64).Next().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(40,50,60,70,80).Build()})]}),eoe=Pe.Factory({Name:"ScionOfTheBlazingSun",Stars:4,Type:d.weapon.BOW,Substat:d.stat.CRIT_RATE,Scaling:P.WeaponScaling.TYPE_44,Effects:[k.Factory({Name:"ScionOfTheBlazingSun1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_ScionOfTheBlazingSun",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.6,.75,.9,1.05,1.2]}).Next().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.28,.35,.42,.49,.56).Build()})]}),toe=Pe.Factory({Name:"TalkingStick",Stars:4,Type:d.weapon.CLAYMORE,Substat:d.stat.CRIT_RATE,Scaling:P.WeaponScaling.TYPE_44,Effects:[k.Factory({Name:"TalkingStick1",MaxRank:5,MaxAuras:2,ValidAuras:[d.aura.PYRO,d.aura.HYDRO],OnApply:new k.Builder().Where({effect:{aura:[d.aura.PYRO]}}).stat.Char(d.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{aura:[d.aura.HYDRO]}}).stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Build()})]}),ioe=Pe.Factory({Name:"BalladOfTheFjords",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"BalladOfTheFjords1",MaxRank:5,OnApply:new k.Builder().observe.Party(!0).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(120,150,180,210,240).Map((i,e)=>{const t=e.GetParty();if(!t)return 0;const n=new Set;for(const s of t.GetMembers())n.add(s.GetCharacter().Options.Element);return n.size>=3?i:0}).Build()})]}),noe=Pe.Factory({Name:"TheFirstGreatMagic",Type:d.weapon.BOW,Stars:5,Substat:d.stat.CRIT_DMG,Scaling:P.WeaponScaling.TYPE_46,Effects:[k.Factory({Name:"TheFirstGreatMagic1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().observe.Party(!0).stat.Char(d.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Map((i,e)=>{let t=1;const n=e.GetCharacter().Options.Element,s=e.GetParty();if(s)for(const r of s.GetMembers())r!==e&&r.GetCharacter().Options.Element===n&&t++;return t=Math.min(t,3),i*t}).Build()})]}),ty=i=>k.Factory({Name:i,MaxRank:5,MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Stacks().Build()}),soe=Pe.Factory({Name:"BlackcliffWarbow",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.CRIT_DMG,Effects:[ty("BlackcliffWarbow1")]}),roe=Pe.Factory({Name:"IbisPiercer",Type:d.weapon.BOW,Stars:4,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"IbisPiercer1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(40,50,60,70,80).Stacks().Build()})]}),ooe=Pe.Factory({Name:"JadefallSplendor",Type:d.weapon.CATALYST,Stars:5,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"JadefallSplendor1",MaxRank:5,OnApply:new k.Builder().observe.Owner(d.stat.HP_PERCENT,d.stat.HP_BASE,d.stat.HP_FLAT).stat.MapStat(i=>[i.GetCharacter().Options.Element]).Values(.3,.5,.7,.9,1.1).Map((i,e,t)=>Math.min([.12,.2,.28,.36,.44][t.GetRank()-1],i/100*e.GetCharacter().Get(d.stat.HP)/1e3)).Build()})]}),aoe=Pe.Factory({Name:"MailedFlower",Stars:4,Type:d.weapon.CLAYMORE,Substat:d.stat.ELEMENTAL_MASTERY,Scaling:P.WeaponScaling.TYPE_44,Effects:[k.Factory({Name:"MailedFlower1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(48,60,72,84,96).Build()})]}),loe=Pe.Factory({Name:"BeaconOfTheReedSea",Stars:5,Type:d.weapon.CLAYMORE,Substat:d.stat.CRIT_RATE,Scaling:P.WeaponScaling.TYPE_46,Effects:[k.Factory({Name:"BeaconOfTheReedSea1",MaxRank:5,Conditions:["HIT_SKILL","DMG_TAKEN"],MaxConditions:2,OnApply:new k.Builder().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["DMG_TAKEN"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().Where({target:{shielded:!1}}).stat.Char(d.stat.HP_PERCENT).Values(.32,.4,.48,.56,.64).Build()})]}),coe=Pe.Factory({Name:"TheBlackSword",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"TheBlackSword1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),uoe=Pe.Factory({Name:"TheCatch",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"TheCatch1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(d.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.06,.075,.09,.105,.12).Build()})]}),n8=i=>k.Factory({Name:i,MaxRank:5,OnApply(e,t,n){const s=e.GetCharacter(),r=n.Modifier(s.CreateModifier(d.stat.ELEMENTAL_BURST_DMG,0));function o(){let a=[s];const l=e.GetParty();l&&(a=l.GetMembers().map(h=>h.GetCharacter()));let c=0;for(const h of a)c+=h.Options.BurstCost;const u=Math.min(lYe[t.GetRank()-1],aYe[t.GetRank()-1]*c);r.SetValue(u)}return n.Observer(t.Event.CreateObserver(k.EffectEvent.CHANGE_RANK,o)),n.Observer(e.Event.CreateObserver(Nt.CharboxEvent.CHANGE_PARTY,o)),()=>0}}),aYe=[.12/100,.15/100,.18/100,.21/100,.24/100],lYe=[.4,.5,.6,.7,.8],doe=Pe.Factory({Name:"Akuoumaru",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[n8("Akuoumaru1")]}),hoe=Pe.Factory({Name:"WineAndSong",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"WineAndSong1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),foe=(i,e,t)=>k.Factory({Name:i,ApplyOther:!0,StackSelf:!0,MaxRank:5,OnApply(n,s,r){const o=s.Owner.GetCharacter(),a=n.GetCharacter(),l=r.Modifier(a.CreateModifier(e,0));function c(){const u=o.Get(d.stat.ELEMENTAL_MASTERY);let h=t[s.GetRank()-1]*u;o!==a&&(h*=.3),l.SetValue(h)}return c(),r.Observer(o.CreateObserver(d.stat.ELEMENTAL_MASTERY,c)),()=>0}}),goe=Pe.Factory({Name:"MakhairaAquamarine",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[foe("MakhairaAquamarine1",d.stat.ATK_FLAT,[.24,.3,.36,.42,.48])]}),poe=Pe.Factory({Name:"BlackcliffSlasher",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_DMG,Effects:[ty("BlackcliffSlasher1")]}),moe=Pe.Factory({Name:"BloodtaintedGreatsword",Stars:3,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_38,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"BloodtaintedGreatsword1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.PYRO_DMG,d.stat.ELECTRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),_oe=Pe.Factory({Name:"DebateClub",Stars:3,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"DebateClub1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_DebateClub",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.6,.75,.9,1.05,1.2]}).Build()})]}),voe=Pe.Factory({Name:"FavoniusGreatsword",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),boe=Pe.Factory({Name:"FerrousShadow",Stars:3,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"FerrousShadow1",MaxRank:5,OnApply:new k.Builder().Where({target:{hp:{leq:.7}}}).stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.3,.35,.4,.45,.5).Build()})]}),Coe=Pe.Factory({Name:"LuxuriousSeaLord",Type:d.weapon.CLAYMORE,Stars:4,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"LuxuriousSeaLord1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.12,.15,.18,.21,.24).Next().instance.Basic({Name:"HIT_LuxuriousSeaLord",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),Eoe=i=>k.Factory({Name:i,MaxRank:5,ApplyOther:!0,MaxTargets:1,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(60,75,90,105,120).Build()}),Soe=Pe.Factory({Name:"ForestRegalia",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[Eoe("ForestRegalia1")]}),yoe=Pe.Factory({Name:"KatsuragikiriNagamasa",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"KatsuragikiriNagamasa1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.06,.075,.09,.105,.12).Build()})]}),Toe=i=>k.Factory({Name:i,MaxRank:5,OnApply(e,t,n){const s=e.GetCharacter(),r=n.Modifier(s.CreateModifier(d.stat.CRIT_RATE,0)),o=n.Modifier(s.CreateModifier(d.stat.ATK_PERCENT,0));function a(){let l=[s];const c=e.GetParty();c&&(l=c.GetMembers().map(_=>_.GetCharacter()));const u=Math.min(4,l.filter(_=>_.Options.Region===d.region.LIYUE).length),h=cYe[t.GetRank()-1]*u,p=uYe[t.GetRank()-1]*u;r.SetValue(h),o.SetValue(p)}return a(),n.Observer(t.CreateObserver(k.EffectEvent.CHANGE_RANK,a)),n.Observer(e.Event.CreateObserver(Nt.CharboxEvent.CHANGE_PARTY,a)),()=>0}}),cYe=[.03,.04,.05,.06,.07],uYe=[.07,.08,.09,.1,.11],woe=Pe.Factory({Name:"LithicBlade",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[Toe("LithicBlade1")]}),e3=new Map;function dYe(i){const e=e3.get(i);if(!e){const t=new Set;return e3.set(i,t),t}return e}var s8=({Name:i,OnApply:e})=>k.Factory({Name:i,MaxRank:5,ApplyOther:!0,OnApply(t,n,s){e(t,n,s);const r=s.GetModifiers(),o=dYe(t);r.forEach(l=>o.add(l));function a(){for(const l of r)Array.from(o).some(u=>u!==l&&u.GetProp()===l.GetProp()&&u.Enabled()&&u.GetValue()!==0)&&(l.SetValue(0),l.Disable())}a();for(const l of k.EffectEvent.Values())s.Observer(n.CreateObserver(l,a));return()=>{r.forEach(l=>o.delete(l)),o.size===0&&e3.delete(t)}}}),Aoe=Pe.Factory({Name:"SongOfBrokenPines",Stars:5,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_49,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"SongOfBrokenPines1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()}),s8({Name:"SongOfBrokenPines2",OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),xoe=Pe.Factory({Name:"PrototypeArchaic",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"PrototypeArchaic1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_PrototypeArchaic",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[2.4,3,3.6,4.2,4.8]}).Build()})]}),Loe=Pe.Factory({Name:"Rainslasher",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"Rainslasher1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.HYDRO_DMG,d.stat.ELECTRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),Ioe=Pe.Factory({Name:"RedhornStonethresher",Stars:5,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"RedhornStonethresher1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.DEF_PERCENT).Values(.28,.35,.42,.49,.56).Next().observe.Target(d.stat.DEF,d.stat.DEF_PERCENT,d.stat.DEF_FLAT).stat.Char(d.stat.NORMAL_ATTACK_DMG_FLAT).Values(.4,.5,.6,.7,.8).Map((i,e)=>i*e.GetCharacter().Get(d.stat.DEF)).Build()})]}),iy=i=>k.Factory({Name:i,MaxRank:5,OnApply(e,t,n){const s=e.GetCharacter();function r(o=!0){if(!o)s.MapCritRate=a=>a;else{const a=t.GetRank();s.MapCritRate=l=>hYe(a,l)}}return r(!0),n.Observer(t.CreateObserver(k.EffectEvent.ENABLE,()=>r(!0))),n.Observer(t.CreateObserver(k.EffectEvent.CHANGE_RANK,()=>r(!0))),n.Observer(t.CreateObserver(k.EffectEvent.DISABLE,()=>r(!1))),()=>r(!1)}});function hYe(i,e){const t=Math.max,n=.08+.02*(i-1);return e<0?((5*n+e)*t(0,e)-(5*n*e-5*n+bt(e,2)-e)*t(0,n+e)+(5*bt(n,2)*e-5*bt(n,2)+6*n*bt(e,2)-11*n*e+5*n+bt(e,3)-2*bt(e,2)+e)*t(0,2*n+e)-(10*bt(n,3)*e-10*bt(n,3)+17*bt(n,2)*bt(e,2)-32*bt(n,2)*e+15*bt(n,2)+8*n*bt(e,3)-21*n*bt(e,2)+18*n*e-5*n+bt(e,4)-3*bt(e,3)+3*bt(e,2)-e)*t(0,3*n+e)+(30*bt(n,4)*e-30*bt(n,4)+61*bt(n,3)*bt(e,2)-116*bt(n,3)*e+55*bt(n,3)+41*bt(n,2)*bt(e,3)-112*bt(n,2)*bt(e,2)+101*bt(n,2)*e-30*bt(n,2)+11*n*bt(e,4)-38*n*bt(e,3)+48*n*bt(e,2)-26*n*e+5*n+bt(e,5)-4*bt(e,4)+6*bt(e,3)-4*bt(e,2)+e)*t(0,4*n+e)-(24*bt(n,4)*e-24*bt(n,4)+50*bt(n,3)*bt(e,2)-100*bt(n,3)*e+50*bt(n,3)+35*bt(n,2)*bt(e,3)-105*bt(n,2)*bt(e,2)+105*bt(n,2)*e-35*bt(n,2)+10*n*bt(e,4)-40*n*bt(e,3)+60*n*bt(e,2)-40*n*e+10*n+bt(e,5)-5*bt(e,4)+10*bt(e,3)-10*bt(e,2)+5*e-1)*t(0,5*n+e))/(6*bt(n,4)*e-6*bt(n,4)+11*bt(n,3)*bt(e,2)-26*bt(n,3)*e+15*bt(n,3)+6*bt(n,2)*bt(e,3)-24*bt(n,2)*bt(e,2)+33*bt(n,2)*e-15*bt(n,2)+n*bt(e,4)-6*n*bt(e,3)+15*n*bt(e,2)-20*n*e+15*n+1):(5*n+e)/(6*bt(n,4)*e-6*bt(n,4)+11*bt(n,3)*bt(e,2)-26*bt(n,3)*e+15*bt(n,3)+6*bt(n,2)*bt(e,3)-24*bt(n,2)*bt(e,2)+33*bt(n,2)*e-15*bt(n,2)+n*bt(e,4)-6*n*bt(e,3)+15*n*bt(e,2)-20*n*e+15*n+1)}var Noe=Pe.Factory({Name:"RoyalGreatsword",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[iy("RoyalGreatsword1")]}),Moe=Pe.Factory({Name:"SacrificialGreatsword",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),Doe=Pe.Factory({Name:"SkyriderGreatsword",Type:d.weapon.CLAYMORE,Stars:3,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"SkyriderGreatsword1",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.06,.07,.08,.09,.1).Build()})]}),koe=Pe.Factory({Name:"SkywardPride",Stars:5,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"SkywardPride1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.08,.1,.12,.14,.16).Next().instance.Basic({Name:"HIT_SkywardPride",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.8,1,1.2,1.4,1.6]}).Build()})]}),r8=(i,e)=>k.Factory({Name:i,MaxRank:5,OnApply:new k.Builder().instance.Options({Name:e,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NONE,Scaling:[{Initial:0,Stat:d.stat.NONE,Talent:d.stat.NONE,Scaling:P.TalentScaling.NONE}]}).Next().Where({not:!0,enemy:{affected:[d.stat.CRYO_DMG]}}).mv.Mv(d.stat.ATK,.8,e).Map((t,n,s)=>[.8,.95,1.1,1.25,1.4][s.GetRank()-1]).Next().Where({enemy:{affected:[d.stat.CRYO_DMG]}}).mv.Mv(d.stat.ATK,2,e).Map((t,n,s)=>[2,2.4,2.8,3.2,3.6][s.GetRank()-1]).Build()}),Roe=Pe.Factory({Name:"SnowTombedStarsilver",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.PHYSICAL_DMG,Effects:[r8("SnowTombedStarsilver1","HIT_SnowTombedStarsilver")]}),Ooe=Pe.Factory({Name:"TheBell",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"TheBell1",MaxRank:5,OnApply:new k.Builder().Where({target:{shielded:!0}}).stat.Char(d.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),tM=i=>k.Factory({Name:i,MaxRank:5,MaxStacks:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Next().Where({target:{shielded:!0}}).stat.Char(d.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()}),Poe=Pe.Factory({Name:"TheUnforged",Type:d.weapon.CLAYMORE,Stars:5,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ATK_PERCENT,Effects:[tM("TheUnforged1")]}),Foe=Pe.Factory({Name:"Whiteblind",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.DEF_PERCENT,Effects:[k.Factory({Name:"Whiteblind1",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT,d.stat.DEF_PERCENT).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),Boe=Pe.Factory({Name:"WhiteIronGreatsword",Stars:3,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.DEF_PERCENT,Effects:[]}),Hoe=Pe.Factory({Name:"WolfsGravestone",Stars:5,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"WolfsGravestone1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()}),k.Factory({Name:"WolfsGravestone2",MaxRank:5,ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.4,.5,.6,.7,.8).Build()})]}),Goe=Pe.Factory({Name:"SerpentSpine",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"SerpentSpine1",MaxRank:5,MaxStacks:5,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.06,.07,.08,.09,.1).Stacks().Build()})]}),Voe=Pe.Factory({Name:"FreedomSworn",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"FreedomSworn1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.1,.125,.15,.175,.2).Build()}),s8({Name:"FreedomSworn2",OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG,d.stat.PLUNGE_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Woe=Pe.Factory({Name:"LightOfFoliarIncision",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"LightOfFoliarIncision1",MaxRank:5,Conditions:["HIT_NORMAL"],MaxConditions:1,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(.04,.05,.06,.07,.08).Next().observe.Target(d.stat.ELEMENTAL_MASTERY).Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(d.stat.NORMAL_ATTACK_DMG_FLAT,d.stat.ELEMENTAL_SKILL_DMG_FLAT).Values(1.2,1.5,1.8,2.1,2.4).Map((i,e)=>i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Build()})]}),zoe=Pe.Factory({Name:"KeyOfKhajNisut",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"KeyOfKhajNisut1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Build()}),k.Factory({Name:"KeyOfKhajNisut2",MaxRank:5,MaxStacks:3,ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.HP,d.stat.HP_PERCENT,d.stat.HP_FLAT).Where({target:{isOwner:!0}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(.12,.15,.18,.21,.24).Stacks().Map((i,e)=>i*e.GetCharacter().Get(d.stat.HP)/100).Next().observe.Owner(d.stat.HP,d.stat.HP_PERCENT,d.stat.HP_FLAT).stat.Char(d.stat.ELEMENTAL_MASTERY).Stacks([0,0,0,.2],[0,0,0,.25],[0,0,0,.3],[0,0,0,.35],[0,0,0,.4]).Map((i,e,{Owner:t})=>i*t.GetCharacter().Get(d.stat.HP)/100).Build()})]}),Koe=Pe.Factory({Name:"HaranGeppakuFutsu",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"HaranGeppakuFutsu1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Stacks().Build()})]}),Uoe=Pe.Factory({Name:"MistsplitterReforged",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"MistsplitterReforged1",MaxRank:5,MaxStacks:3,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char().MapStat(i=>[i.GetCharacter().Options.Element]).Stacks([0,.08,.16,.28],[0,.1,.2,.35],[0,.12,.24,.42],[0,.14,.28,.49],[0,.16,.32,.56]).Build()})]}),Yoe=Pe.Factory({Name:"JadeCutter",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"JadeCutter1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Next().observe.Target(d.stat.HP_PERCENT,d.stat.HP_FLAT,d.stat.HP_BASE).stat.Char(d.stat.ATK_FLAT).Values(.012,.015,.018,.021,.024).Map((i,e)=>i*e.GetCharacter().Get(d.stat.HP)).Build()})]}),joe=Pe.Factory({Name:"SummitShaper",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ATK_PERCENT,Effects:[tM("SummitShaper1")]}),qoe=Pe.Factory({Name:"AquilaFavonia",Type:d.weapon.SWORD,Stars:5,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"AquilaFavonia1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().instance.Basic({Name:"HIT_AquilaFavonia",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[2,2.3,2.6,2.9,3.2]}).Build()})]}),$oe=Pe.Factory({Name:"ToukabouShigure",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"ToukabouShigure1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.16,.2,.24,.28,.32).Build()})]}),Xoe=Pe.Factory({Name:"XiphosMoonlight",Type:d.weapon.SWORD,Stars:4,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[foe("XiphosMoonlight1",d.stat.ENERGY_RECHARGE,[.036/100,.045/100,.054/100,.063/100,.072/100])]}),Qoe=Pe.Factory({Name:"SapwoodBlade",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[Eoe("SapwoodBlade1")]}),Zoe=Pe.Factory({Name:"KagotsurubeIsshin",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"KagotsurubeIsshin1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_KagotsurubeIsshin",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1.8]}).Next().stat.Char(d.stat.ATK_PERCENT).Values(.15).Build()})]}),Joe=Pe.Factory({Name:"CinnabarSpindle",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.DEF_PERCENT,Effects:[k.Factory({Name:"CinnabarSpindle1",MaxRank:5,OnApply:new k.Builder().mv.Mv(d.stat.DEF,.4,i=>i.Options.Talent===d.stat.ELEMENTAL_SKILL_DMG).Map((i,e,t)=>[.4,.5,.6,.7,.8][t.GetRank()-1]).Build()})]}),eae=Pe.Factory({Name:"AmenomaKageuchi",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ATK_PERCENT,Effects:[]}),tae=Pe.Factory({Name:"FesteringDesire",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"FesteringDesire1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(d.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.06,.075,.09,.105,.12).Build()})]}),iae=Pe.Factory({Name:"SwordOfDescension",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_39b,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"SwordOfDescension1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_SwordOfDescension",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[2]}).Next().Where({target:{name:/traveler/i}}).stat.Char(d.stat.ATK_FLAT).Values(66).Build()})]}),nae=Pe.Factory({Name:"TheAlleyFlash",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"TheAlleyFlash1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),sae=Pe.Factory({Name:"BlackcliffLongsword",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.CRIT_DMG,Effects:[ty("BlackcliffLongsword1")]}),rae=Pe.Factory({Name:"IronSting",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"IronSting1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),oae=Pe.Factory({Name:"PrototypeRancour",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"PrototypeRancour1",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT,d.stat.DEF_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()})]}),aae=Pe.Factory({Name:"LionsRoar",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"LionsRoar1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.PYRO_DMG,d.stat.ELECTRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),lae=Pe.Factory({Name:"TheFlute",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"TheFlute1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_TheFlute",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),cae=Pe.Factory({Name:"RoyalGrimoire",Type:d.weapon.CATALYST,Stars:4,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[iy("RoyalGrimoire1")]}),uae=Pe.Factory({Name:"RoyalSpear",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[iy("RoyalSpear1")]}),dae=Pe.Factory({Name:"RoyalBow",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[iy("RoyalBow1")]}),hae=Pe.Factory({Name:"RoyalLongsword",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[iy("RoyalLongsword1")]}),fae=Pe.Factory({Name:"SkyriderSword",Stars:3,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_38,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"SkyriderSword1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Build()})]}),gae=Pe.Factory({Name:"DarkIronSword",Stars:3,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"DarkIronSword1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),pae=Pe.Factory({Name:"FilletBlade",Stars:3,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"FilletBlade1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_FilletBlade",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[2.4,2.8,3.2,3.6,4]}).Build()})]}),mae=Pe.Factory({Name:"TravelersHandySword",Stars:3,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_40,Substat:d.stat.DEF_PERCENT,Effects:[]}),_ae=Pe.Factory({Name:"HarbingerOfDawn",Stars:3,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"HarbingerOfDawn1",MaxRank:5,OnApply:new k.Builder().Where({target:{hp:{geq:.9}}}).stat.Char(d.stat.CRIT_RATE).Values(.14,.175,.21,.245,.28).Build()})]}),vae=Pe.Factory({Name:"CoolSteel",Stars:3,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"CoolSteel1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.CRYO_DMG,d.stat.HYDRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),bae=Pe.Factory({Name:"HuntersPath",Stars:5,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"HuntersPath1",MaxRank:5,Conditions:["HIT_CHARGED"],MaxConditions:1,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().observe.Target(d.stat.ELEMENTAL_MASTERY).Where({effect:{conditions:["HIT_CHARGED"]}}).stat.Char(d.stat.CHARGED_ATTACK_DMG_FLAT).Values(1.6,2,2.4,2.8,3.2).Map((i,e)=>i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Build()})]}),Cae=Pe.Factory({Name:"ThunderingPulse",Stars:5,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"ThunderingPulse1",MaxRank:5,MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().stat.Char(d.stat.NORMAL_ATTACK_DMG).Stacks([0,.12,.24,.4],[0,.15,.3,.5],[0,.18,.36,.6],[0,.21,.42,.7],[0,.24,.48,.8]).Build()})]}),Eae=Pe.Factory({Name:"AquaSimulacra",Stars:5,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"AquaSimulacra1",MaxRank:5,Conditions:["FAR","NEAR"],MaxConditions:1,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["NEAR"]}}).stat.Char(d.stat.ALL_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),Sae=Pe.Factory({Name:"PolarStar",Stars:5,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"PolarStar1",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Stacks([0,.1,.2,.3,.48],[0,.125,.25,.375,.6],[0,.15,.3,.45,.72],[0,.175,.35,.525,.84],[0,.2,.4,.6,.96]).Build()})]}),yae=Pe.Factory({Name:"AmosBow",Stars:5,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"AmosBow1",MaxRank:5,MaxStacks:5,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),Tae=Pe.Factory({Name:"EndOfTheLine",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"EndOfTheLine1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_EndOfTheLine",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.8,1,1.2,1.4,1.6]}).Build()})]}),wae=Pe.Factory({Name:"KingsSquire",Type:d.weapon.BOW,Stars:4,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"KingsSquire1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(60,80,100,120,140).Next().instance.Basic({Name:"HIT_KingsSquire",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1,1.2,1.4,1.6,1.8]}).Build()})]}),Aae=Pe.Factory({Name:"MouunsMoon",Type:d.weapon.BOW,Stars:4,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[n8("MouunsMoon1")]}),xae=Pe.Factory({Name:"Predator",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"Predator1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.1).Stacks().Next().Where({target:{name:"Aloy"}}).stat.Char(d.stat.ATK_FLAT).Values(66).Build()})]}),Lae=Pe.Factory({Name:"Hamayumi",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"Hamayumi1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().Where({target:{energy:{geq:1}}}).stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().Where({target:{energy:{geq:1}}}).stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().Build()})]}),Iae=Pe.Factory({Name:"WindblumeOde",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"WindblumeOde1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()})]}),Nae=Pe.Factory({Name:"MitternachtsWaltz",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"MitternachtsWaltz1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_SKILL"],MaxConditions:2,OnApply:new k.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),Mae=Pe.Factory({Name:"FadingTwilight",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"FadingTwilight1",MaxRank:5,MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Stacks([0,.06,.1,.14],[0,.075,.125,.175],[0,.09,.15,.21],[0,.105,.175,.245],[0,.12,.2,.28]).Build()})]}),Dae=Pe.Factory({Name:"AlleyHunter",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"AlleyHunter1",MaxRank:5,MaxStacks:10,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.02,.025,.03,.035,.04).Stacks().Build()})]}),kae=Pe.Factory({Name:"TheViridescentHunt",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"TheViridescentHunt1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_TheViridescentHunt",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.4,.5,.6,.7,.8]}).Build()})]}),Rae=Pe.Factory({Name:"CompoundBow",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"CompoundBow1",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()})]}),Oae=Pe.Factory({Name:"PrototypeCrescent",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"PrototypeCrescent1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.36,.45,.54,.63,.72).Build()})]}),Pae=Pe.Factory({Name:"Rust",Type:d.weapon.BOW,Stars:4,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"Rust1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.4,.5,.6,.7,.8).Next().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(-.1).Build()})]}),Fae=Pe.Factory({Name:"SacrificialBow",Type:d.weapon.BOW,Stars:4,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),Bae=Pe.Factory({Name:"TheStringless",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"TheStringless1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG,d.stat.ELEMENTAL_BURST_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),Hae=Pe.Factory({Name:"Messenger",Type:d.weapon.BOW,Stars:3,Scaling:P.WeaponScaling.TYPE_40,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"Messenger1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_Messenger",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),Gae=Pe.Factory({Name:"Slingshot",Stars:3,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_38,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"Slingshot1",MaxRank:5,Conditions:["FAR","NEAR"],MaxConditions:1,OnApply:new k.Builder().Where({effect:{conditions:["FAR"]}}).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.36,.42,.48,.54,.6).Next().Where({effect:{conditions:["NEAR"]}}).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(-.1).Build()})]}),Vae=Pe.Factory({Name:"RecurveBow",Stars:3,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_38,Substat:d.stat.HP_PERCENT,Effects:[]}),Wae=Pe.Factory({Name:"SharpshootersOath",Stars:3,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"SharpshootersOath1",Conditions:["WEAK_SPOT"],MaxConditions:1,MaxRank:5,OnApply:new k.Builder().Where({effect:{conditions:["WEAK_SPOT"]}}).stat.Char(d.stat.AIMED_SHOT_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),zae=Pe.Factory({Name:"RavenBow",Stars:3,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_40,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"RavenBow1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.PYRO_DMG,d.stat.ELECTRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),Kae=Pe.Factory({Name:"TulaytullahsRemembrance",Stars:5,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"TulaytullahsRemembrance1",MaxRank:5,MaxStacks:10,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.048,.06,.072,.084,.096).Stacks().Build()})]}),Uae=Pe.Factory({Name:"ThousandFloatingDreams",Type:d.weapon.CATALYST,Stars:5,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"ThousandFloatingDreams1",MaxRank:5,OnApply(i,e,t){const n=i.GetCharacter(),s=t.Modifier(n.CreateModifier(d.stat.ELEMENTAL_MASTERY,0)),r=[t.Modifier(n.CreateModifier(n.Options.Element,0)),t.Modifier(n.CreateModifier(n.Options.Element,0)),t.Modifier(n.CreateModifier(n.Options.Element,0))];function o(){r.forEach(h=>h.SetValue(0));let a=[n];const l=i.GetParty();l&&(a=l.GetMembers().map(h=>h.GetCharacter()));let c=0,u=0;for(const h of a)if(h!==n)if(h.Options.Element===n.Options.Element)c++;else{const p=r[u++];if(!p)continue;p.SetProp(h.Options.Element),p.SetValue(gYe[e.GetRank()-1])}c=Math.min(3,c),s.SetValue(fYe[e.GetRank()-1]*c)}return o(),t.Observer(i.Event.CreateObserver(Nt.CharboxEvent.CHANGE_PARTY,o)),t.Observer(e.Event.CreateObserver(k.EffectEvent.CHANGE_RANK,o)),()=>0}}),k.Factory({Name:"ThousandFloatingDreams2",MaxRank:5,ApplyOther:!0,ApplySelf:!1,StackSelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(40,42,44,46,48).Build()})]}),fYe=[32,40,48,56,64],gYe=[.1,.14,.18,.22,.26],Yae=Pe.Factory({Name:"WanderingEvenstar",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"WanderingEvenstar1",StackSelf:!0,ApplyOther:!0,MaxRank:5,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_MASTERY).stat.Char(d.stat.ATK_FLAT).Values(.24,.3,.36,.42,.48).Map((i,e,t)=>i*t.Owner.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)*(e===t.Owner?1:.3)).Build()})]}),jae=Pe.Factory({Name:"KagurasVerity",Stars:5,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"KagurasVerity1",MaxRank:5,MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.12,.15,.18,.21,.24).Stacks().Next().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Stacks([0,0,0,.12],[0,0,0,.15],[0,0,0,.18],[0,0,0,.21],[0,0,0,.24]).Build()})]}),qae=Pe.Factory({Name:"EverlastingMoonglow",Stars:5,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"EverlastingMoonglow1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.HEALING_BONUS).Values(.1,.125,.15,.175,.2).Next().observe.Target(d.stat.HP_PERCENT,d.stat.HP_BASE,d.stat.HP_FLAT).stat.Char(d.stat.NORMAL_ATTACK_DMG_FLAT).Values(.01,.015,.02,.025,.03).Map((i,e)=>i*e.GetCharacter().Get(d.stat.HP)).Build()})]}),$ae=Pe.Factory({Name:"MemoryOfDust",Stars:5,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ATK_PERCENT,Effects:[tM("MemoryOfDust1")]}),Xae=Pe.Factory({Name:"LostPrayer",Stars:5,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"LostPrayer1",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),Qae=Pe.Factory({Name:"SkywardAtlas",Stars:5,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"SkywardAtlas1",MaxRank:5,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().instance.Basic({Name:"HIT_SkywardAtlas",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1.6,2,2.4,4.8,3.2]}).Build()})]}),Zae=Pe.Factory({Name:"FruitOfFulfillment",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"FruitOfFulfillment1",MaxRank:5,MaxStacks:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(24,27,30,33,36).Stacks().Next().stat.Char(d.stat.ATK_PERCENT).Values(-.05).Stacks().Build()})]}),Jae=Pe.Factory({Name:"OathswornEye",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"OathswornEye1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ENERGY_RECHARGE).Values(.24,.3,.36,.42,.48).Build()})]}),ele=Pe.Factory({Name:"HakushinRing",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"HakushinRing1",ApplyOther:!0,MaxRank:5,OnApply:new k.Builder().stat.Char().MapStat(i=>[i.GetCharacter().Options.Element]).Values(.1,.125,.15,.175,.2).Build()})]}),tle=Pe.Factory({Name:"DodocoTales",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"DodocoTales1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_CHARGED"],MaxConditions:2,OnApply:new k.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["HIT_CHARGED"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.08,.1,.12,.14,.16).Next().Build()})]}),ile=Pe.Factory({Name:"Frostbearer",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[r8("Frostbearer1","HIT_Frostbearer")]}),nle=Pe.Factory({Name:"EyeOfPerception",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"EyeOfPerception1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_EyeOfPerception",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[2.4,2.7,3,3.3,3.6]}).Build()})]}),sle=Pe.Factory({Name:"BlackcliffAgate",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_DMG,Effects:[ty("BlackcliffAgate1")]}),rle=Pe.Factory({Name:"MappaMare",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"MappaMare1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),ole=Pe.Factory({Name:"PrototypeAmber",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.HP_PERCENT,Effects:[]}),ale=Pe.Factory({Name:"SolarPearl",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"SolarPearl1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_SKILL"],MaxConditions:2,OnApply:new k.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(d.stat.ELEMENTAL_SKILL_DMG,d.stat.ELEMENTAL_BURST_DMG).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Next().Build()})]}),lle=Pe.Factory({Name:"SacrificialFragments",Type:d.weapon.CATALYST,Stars:4,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[]}),cle=Pe.Factory({Name:"FavoniusCodex",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),ule=Pe.Factory({Name:"AmberBead",Stars:3,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"AmberBead1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),dle=Pe.Factory({Name:"TwinNephrite",Stars:3,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_40,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"TwinNephrite1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.12,.14,.16,.18,.2).Build()})]}),hle=Pe.Factory({Name:"EmeraldOrb",Stars:3,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_40,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"EmeraldOrb1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),fle=Pe.Factory({Name:"OtherworldlyStory",Stars:3,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),gle=Pe.Factory({Name:"ThrillingTalesOfDragonSlayers",Stars:3,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"ThrillingTalesOfDragonSlayers1",MaxRank:5,ApplySelf:!1,ApplyOther:!0,MaxTargets:1,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),ple=Pe.Factory({Name:"MagicGuide",Type:d.weapon.CATALYST,Stars:3,Scaling:P.WeaponScaling.TYPE_38,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"MagicGuide1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.HYDRO_DMG,d.stat.ELECTRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),mle=Pe.Factory({Name:"StaffOfTheScarletSands",Stars:5,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"StaffOfTheScarletSands1",MaxRank:5,MaxStacks:3,OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_MASTERY).stat.Char(d.stat.ATK_FLAT).Values(.52,.65,.78,.91,1.04).Map((i,e)=>i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Next().observe.Target(d.stat.ELEMENTAL_MASTERY).stat.Char(d.stat.ATK_FLAT).Values(.28,.35,.42,.49,.56).Stacks().Map((i,e)=>i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Next().Build()})]}),_le=Pe.Factory({Name:"CalamityQueller",Stars:5,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_49,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"CalamityQueller1",MaxRank:5,MaxStacks:6,Conditions:["ON_FIELD","OFF_FIELD"],MaxConditions:1,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char(d.stat.ATK_PERCENT).Values(.032,.04,.048,.056,.064).Stacks().Next().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.032,.04,.048,.056,.064).Stacks().Next().Build()})]}),vle=Pe.Factory({Name:"JadeSpear",Stars:5,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"JadeSpear1",MaxRank:5,MaxStacks:7,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.032,.039,.046,.053,.06).Stacks().Next().stat.Char(d.stat.ALL_DMG).Stacks([0,0,0,0,0,0,0,.12],[0,0,0,0,0,0,0,.15],[0,0,0,0,0,0,0,.18],[0,0,0,0,0,0,0,.21],[0,0,0,0,0,0,0,.24]).Build()})]}),ble=Pe.Factory({Name:"VortexVanquisher",Stars:5,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ATK_PERCENT,Effects:[tM("VortexVanquisher1")]}),Cle=Pe.Factory({Name:"SkywardSpine",Stars:5,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"SkywardSpine1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(.08,.1,.12,.14,.16).Next().instance.Basic({Name:"HIT_SkywardSpine",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.4,.55,.7,.85,1]}).Build()})]}),Ele=Pe.Factory({Name:"MissiveWindspear",Type:d.weapon.POLEARM,Stars:4,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"MissiveWindspear1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(48,60,72,84,96).Build()})]}),Sle=Pe.Factory({Name:"Moonpiercer",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"Moonpiercer1",ApplyOther:!0,MaxTargets:1,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()})]}),yle=Pe.Factory({Name:"EngulfingLightning",Stars:5,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"EngulfingLightning1",MaxRank:5,Conditions:["CAST_BURST","NO_BURST"],MaxConditions:1,OnApply:new k.Builder().observe.Target(d.stat.ENERGY_RECHARGE).stat.Char(d.stat.ATK_PERCENT).Values(.28,.35,.42,.49,.56).Map((i,e,t)=>pYe(i,e.GetCharacter().Get(d.stat.ENERGY_RECHARGE),t.GetRank())).Next().Where({effect:{conditions:["CAST_BURST"]}}).stat.Char(d.stat.ENERGY_RECHARGE).Values(.3,.35,.4,.45,.5).Build()})]});function pYe(i,e,t){return Math.min(i*Math.max(0,e-1),mYe[t-1])}var mYe=[.8,.9,1,1.1,1.2],Tle=Pe.Factory({Name:"WavebreakerFin",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_45,Substat:d.stat.ATK_PERCENT,Effects:[n8("WavebreakerFin1")]}),wle=Pe.Factory({Name:"KitainCrossSpear",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"KitainCrossSpear1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.06,.075,.09,.105,.12).Build()})]}),Ale=Pe.Factory({Name:"DragonspineSpear",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.PHYSICAL_DMG,Effects:[r8("DragonspineSpear1","HIT_DragonspineSpear")]}),xle=Pe.Factory({Name:"LithicSpear",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[Toe("LithicSpear1")]}),Lle=Pe.Factory({Name:"CrescentPike",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"CrescentPike1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_CrescentPike",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.2,.25,.3,.35,.4]}).Build()})]}),Ile=Pe.Factory({Name:"Halberd",Stars:3,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_40,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"Halberd1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_Halberd",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1.6,2,2.4,2.8,3.2]}).Build()})]}),Nle=Pe.Factory({Name:"DragonsBane",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"DragonsBane1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.HYDRO_DMG,d.stat.PYRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),Mle=Pe.Factory({Name:"SacrificialSword",Type:d.weapon.SWORD,Stars:4,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),Dle=Pe.Factory({Name:"ElegyForTheEnd",Type:d.weapon.BOW,Stars:5,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"ElegyForTheEnd1",ApplySelf:!0,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(60,75,90,105,120).Build()}),s8({Name:"ElegyForTheEnd2",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(100,125,150,175,200).Next().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),kle=Pe.Factory({Name:"StaffOfHoma",Type:d.weapon.POLEARM,Stars:5,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"StaffOfHoma1",ApplySelf:!0,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Next().observe.Target(d.stat.HP_BASE,d.stat.HP_PERCENT,d.stat.HP_FLAT).stat.Char(d.stat.ATK_FLAT).Values(.008,.01,.012,.014,.016).Map((i,e)=>e.GetCharacter().Get(d.stat.HP)*i).Next().observe.Target(d.stat.HP_BASE,d.stat.HP_PERCENT,d.stat.HP_FLAT).stat.Char(d.stat.ATK_FLAT).Where({target:{hp:{leq:.5}}}).Values(.01,.012,.014,.016,.018).Map((i,e)=>e.GetCharacter().Get(d.stat.HP)*i).Build()})]}),Rle=Pe.Factory({Name:"FavoniusLance",Type:d.weapon.POLEARM,Stars:4,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),Ole=Pe.Factory({Name:"WhiteTassel",Stars:3,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"WhiteTassel1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),Ple=Pe.Factory({Name:"BlackTassel",Stars:3,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_38,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"BlackTassel1",MaxRank:5,Conditions:["NO_SLIMES","SLIMES"],MaxConditions:1,OnApply:new k.Builder().Where({effect:{conditions:["SLIMES"]}}).stat.Char(d.stat.ALL_DMG).Values(.4,.5,.6,.7,.8).Build()})]}),Fle=Pe.Factory({Name:"PrototypeStarglitter",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"PrototypeStarglitter1",MaxStacks:2,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.08,.1,.12,.14,.16).Stacks().Next().Build()})]}),Ble=Pe.Factory({Name:"BlackcliffPole",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_DMG,Effects:[ty("BlackcliffPole1")]}),Hle=Pe.Factory({Name:"Deathmatch",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"Deathmatch1",MaxRank:5,MaxConditions:1,Conditions:["ENEMY_1","ENEMY_2"],OnApply:new k.Builder().Where({effect:{conditions:["ENEMY_2"]}}).stat.Char(d.stat.ATK_PERCENT,d.stat.DEF_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["ENEMY_1"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),Gle=Pe.Factory({Name:"SkywardBlade",Stars:5,Type:d.weapon.SWORD,Substat:d.stat.ENERGY_RECHARGE,Scaling:P.WeaponScaling.TYPE_46,Effects:[k.Factory({Name:"SkywardBlade1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(.04,.05,.06,.07,.08).Next().instance.Basic({Name:"HIT_SkywardBlade",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.2,.25,.3,.35,.4]}).Build()})]}),Vle=Pe.Factory({Name:"SkywardHarp",Type:d.weapon.BOW,Stars:5,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"SkywardHarp1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.CRIT_DMG).Values(.2,.25,.3,.35,.4).Next().instance.Basic({Name:"HIT_SkywardHarp",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1.25]}).Build()})]}),Wle=Pe.Factory({Name:"FavoniusSword",Type:d.weapon.SWORD,Stars:4,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),zle=Pe.Factory({Name:"FavoniusWarbow",Type:d.weapon.BOW,Stars:4,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),Kle=Pe.Factory({Name:"TheWidsith",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"TheWidsith1",MaxRank:5,Conditions:["RECITATIVE","ARIA","INTERLUDE"],MaxConditions:1,OnApply:new k.Builder().Where({effect:{conditions:["RECITATIVE"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.6,.75,.9,1.05,1.2).Next().Where({effect:{conditions:["ARIA"]}}).stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.48,.6,.72,.84,.96).Next().Where({effect:{conditions:["INTERLUDE"]}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(240,300,360,420,480).Build()})]}),Ule=Object.values(Vre).sort((i,e)=>i.Type===e.Type?i.Stars===e.Stars?i.Name.localeCompare(e.Name):i.Stars-e.Stars:i.Type-e.Type),$w={};for(const i of Ule)$w[i.Type]||($w[i.Type]=[]),$w[i.Type].push(i);var o8=new ho(i=>i.Name);o8.AddList(Ule);function Yle(){return o8.Get()}function _Ye(i){return o8.Find(i)}function vYe(i){return $w[i]||[]}var iM={};hi(iM,{FindByName:()=>CYe,GetList:()=>bYe});var hm=new ho(i=>i.Name);for(const i of Gre())i.Effects.forEach(e=>hm.Add(e));for(const i of Yle())i.Effects.forEach(e=>hm.Add(e));for(const i of Hse())i.Piece2.forEach(e=>hm.Add(e)),i.Piece4.forEach(e=>hm.Add(e));for(const i of Tne())hm.Add(i);function bYe(){return hm.Get()}function CYe(i){return hm.Find(i)}var ny={};hi(ny,{ArtifactStore:()=>yYe,CopyCharbox:()=>LYe,FilterArtifacts:()=>t3,PartyFrom:()=>EYe});function EYe(i){const e=new Nt.Party;for(const t in i.characters){const n=dm.FindByName(t);if(!n)throw new Error(`Character not found: ${t}`);const s=n();e.Add(s);const r=i.characters[t],o=Object.keys(r.weapon)[0];if(o){const a=ja.FindByName(o);if(!a)throw new Error(`Weapon not found: ${t}`);s.SetWeapon(a)}r.artifacts&&Object.keys(r.artifacts).length>0&&s.SetArtifacts(new Bm.Artbox(s))}return Nt.ImportParty(i,e),e}function t3(i,e,t){const n=e.map(s=>SYe(s));return t&&n.push({filter(s){return!(t.pieces&&!t.pieces.includes(s.piece)||t.only&&t.only==="locked"!==!!s.locked)}}),gie.Filter({values:i,mode:"every",filters:n})}function SYe(i){const e=i.pieces||d.piece.Values(),t=i.subsMode||"some";return{for(n){return e.includes(n.piece)},filter(n){if(i.main&&!i.main.includes(n.mainstat))return!1;if(i.subs){const s=n.substats.map(o=>o.stat);if(!i.subs[t](o=>s.includes(o)))return!1}return!(Number.isFinite(i.stars)&&n.stars<(i.stars||0)||Number.isFinite(i.level)&&n.level<(i.level||0))}}}var yYe=class{constructor(i){this.onChange=i,this.list=[],this.filtered=[]}Update(){this.onChange()}All(){return this.list}Clear(){this.list.splice(0,this.list.length),this.filtered.splice(0,this.filtered.length),this.onChange()}Add(i,e="push"){const t=Zt.Export(i);this.list[e](t),this.filtered=[...this.list],this.onChange()}AddExported(i,e="push"){this.list[e](i),this.filtered=[...this.list],this.onChange()}Filter(i,e){const{values:t}=t3(this.list,i,e);return this.filtered=t,t}Get(){return this.filtered}Replace(i,e){const t=this.list.indexOf(i);return t===-1?!1:(this.list.splice(t,1,e),this.onChange(),!0)}RemoveMultiple(i,e){const{indexes:t}=t3(this.list,i,e),n=[];return this.list.forEach((s,r)=>{t.includes(r)||n.push(s)}),this.list=n,this.onChange(),n.length}Remove(i){const e=this.list.indexOf(i);return e===-1?!1:(this.list.splice(e,1),this.onChange(),!0)}};function TYe(i,e){const t=i.GetArtifacts();let n=e.GetArtifacts();if(!t){e.SetArtifacts(void 0);return}n||(n=new Bm.Artbox(e),e.SetArtifacts(n));const s=n,r=t.GetActiveSets(),o=s.GetActiveSets(),a=(()=>{const l=new Map;return t.GetEffects().forEach(c=>{const u=c.GetTargets().map(h=>h===i?e:h);l.set(c.Options.Name,u)}),l})();s.GetArtifacts().forEach((l,c)=>{const u=t.Get(c);Zt.Import(Zt.Export(u),l)}),r.every(l=>o.includes(l))&&s.GetEffects().forEach(l=>{const c=a.get(l.Options.Name);c&&l.ApplyMultiple(c)})}var wYe=[[d.stat.NORMAL_ATTACK_LEVEL,d.stat.NORMAL_ATTACK_LEVEL_UP],[d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP],[d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP]];function AYe(i,e){const t=i.GetCharacter(),n=e.GetCharacter();for(const[s,r]of wYe){const o=t.Get(s)-t.Get(r),a=n.Get(r);n.Set(s,o+a)}}function xYe(i,e){const t=i.GetWeapon(),n=e.GetWeapon();if(!t){e.SetWeapon(void 0);return}if(!n||n.Options.Name!==t.Options.Name){const r=ja.FindByName(t.Options.Name);if(!r)throw new Error(`Weapon not found: ${t.Options.Name}`);e.SetWeapon(r)}const s=e.GetWeapon();if(!s)throw new Error("Target has no weapon");Pe.Import(Pe.Export(t),s)}function LYe(i,e){e.GetCharacter().SetLevel(i.GetCharacter().GetLevel()),e.GetCharacter().SetAscension(i.GetCharacter().GetAscension()),AYe(i,e),xYe(i,e),TYe(i,e)}var a8=class extends die{constructor(i){super(i),this.functions=new Map;const e=R1.Contexts("math","logic",{functions:{pick:{name:"pick",arguments:[{name:"index",description:"integer index of the item to pick, starting at 1"},"..."],evaluate({values:[n,...s]}){return s[n-1]}},var:{name:"var",arguments:[{name:"name",description:"name of the variable to set",expression:!0},{name:"value",description:"value to set the variable to"}],evaluate:({values:[,n],expressions:[s]})=>{const r=s.token.value;return t.setVar(r,n),n}},add:{name:"add",arguments:[{name:"variable",description:"name of the variable to add to",expression:!0},{name:"value",description:"value to add to the variable"}],evaluate:({values:[,n],expressions:[s],location:r})=>{const o=s.token.value,a=t.getVar(o);if(a===void 0)throw new Error(`Variable ${o} is not defined at ${r}`);const l=a+n;return t.setVar(o,l),l}},multiply:{name:"multiply",arguments:[{name:"variable",description:"name of the variable to multiply",expression:!0},{name:"value",description:"value to multiply the variable by"}],evaluate:({values:[,n],expressions:[s]})=>{const r=s.token.value,o=t.getVar(r);if(o===void 0)throw new Error(`Variable ${r} is not defined`);const a=o*n;return t.setVar(r,a),a}},func:{name:"func",description:"define a function. Example: function(myfunc, (arg1, arg2), (arg1 + arg2))",arguments:[{name:"name",description:"name of the function to define",expression:!0},{name:"arguments",description:"arguments to the function",expression:!0},{name:"body",description:"body of the function",expression:!0}],evaluate:({expressions:[n,s,r],location:o})=>{const a=n.token.value,l=s.children.length?s.children.map(({token:u})=>u.value):s.token.value==="0"?[]:[s.token.value],c=(()=>r.evaluate?[r.evaluate]:r.children.map(u=>u.evaluate||(()=>0)))();if(!c)throw new Error(`Function body is not an expression at ${o}`);return this.functions.set(a,{args:l,expr:c}),0}},call:{name:"call",description:"call a function. Example: call(myfunc, arg1, arg2)",arguments:[{name:"name",description:"name of the function to call",expression:!0},"..."],evaluate:({expressions:[n],values:[,...s],location:r})=>{var o;const a=n.token.value,l=this.functions.get(a);if(!l)throw new Error(`Function ${a} is not defined at ${r}`);if(s.length!==l.args.length)throw new Error(`Function ${a} expects ${l.args.length} arguments, but ${s.length} were provided at ${r}`);for(let c=0;cc()).pop())!=null?o:0}}}});e.ignoreCase=!0;const t=new R1(e);this.exprParser=t}};function Sn(i){if(typeof i=="number")return i;const e=i.endsWith("%");e&&(i=i.slice(0,i.length-1));let t=parseFloat(i);if(!Number.isFinite(t))throw new Error(`Invalid number format: "${i}"`);return e&&(t/=100),t}var IYe=()=>({show:{name:"show",description:"Shows the rolls of the character artifacts",compile(i,{context:e,logger:t}){return function(){const r=e.GetChar().GetArtifacts();if(!r){t.error("Current character has no artifacts");return}t.log(` +`+fg(...t)}function t8e(i,e){const t=new es(ci.NAME,ci.DAMAGE,ci.RELATIVE);t.AddRow(i,e.damage,BT(e.relative));for(const n in e.elements){const s=parseInt(n);t.AddRow(d.stat.Name(s),e.elements[n].damage,BT(e.elements[n].relative))}for(const n in e.talents){const s=parseInt(n);t.AddRow(d.stat.Name(s),e.talents[n].damage,BT(e.talents[n].relative))}for(const n in e.instances)t.AddRow(n,e.instances[n].damage,BT(e.instances[n].relative));return t.toString()}var BT=i=>i*100;function i8e(...i){const e=new es("NAME","STARS","TYPE","EFFECTS");for(const t of i){const n=(()=>{if(t instanceof F0.Food){const s=t.GetRank();return t.Options.Effects.map(([r,o,a])=>{const l=o+(a-o)*(s-1)/2;return`${d.stat.Name(r)}: ${l}`}).join(", ")}else return t.Effects.map(([s,r,o])=>`${d.stat.Name(s)}: ${r}-${o}`).join(", ")})();e.AddRow(t.Name,t.Stars,t.Type,n)}return e.String()}var n8e=[{Name:V.hits.HIT_Q_1,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.6816000000000004}]},{Name:V.hits.HIT_Q_2,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.49090000000000006}]}],s8e=k.Factory({Name:"ChevreuseC2",OnApply:new k.Builder().instance.Options({Name:"HIT_C2",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Initial:1.2,Talent:d.stat.NONE}]}).Build()}),r8e=k.Factory({Name:"ChevreuseC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),o8e=k.Factory({Name:"ChevreuseC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),a8e=k.Factory({Name:"ChevreuseC6",ApplyOther:!0,MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.PYRO_DMG,d.stat.ELECTRO_DMG).Values(.2).Stacks().Build()}),l8e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5313}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.49310000000000004}]},{Name:V.hits.HIT_N3_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2764}]},{Name:V.hits.HIT_N3_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3245}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7726000000000001}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2168999999999999}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],c8e=k.Factory({Name:"ChevreuseA1",Conditions:["HIT_OVERLOAD"],ApplyOther:!0,MaxConditions:1,OnApply:new k.Builder().Where({owner:{ascension:1},effect:{conditions:["HIT_OVERLOAD"]}}).stat.Enemy(d.stat.PYRO_RES,d.stat.ELECTRO_RES).Values(-.4).Build()}),u8e=k.Factory({Name:"ChevreuseA4",ApplyOther:!0,MaxConditions:1,OnApply:new k.Builder().Where({owner:{ascension:4},target:{element:[d.stat.PYRO_DMG,d.stat.ELECTRO_DMG]}}).observe.Owner(d.stat.HP_BASE,d.stat.HP_PERCENT,d.stat.HP_FLAT).stat.Enemy(d.stat.ATK_PERCENT).Values(1/100).Map((i,e,t)=>{const s=t.Owner.GetCharacter().Get(d.stat.HP);return Math.min(i*s/1e3,.4)}).Build()}),d8e=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.1520000000000001}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.7280000000000002}]},{Name:V.hits.HIT_E_HOLD+"_2",Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.824}]},{Name:V.hits.HIT_E+"_OUSIA",Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.28800000000000003}]}],Wse=Nt.Factory({Name:"Chevreuse",Stars:4,Weapon:d.weapon.POLEARM,Element:d.stat.PYRO_DMG,StatBonus:d.stat.HP_PERCENT,BurstCost:60,Region:d.region.FONTAINE,HpBase:[1002.9700927734,3588.6091308594],AtkBase:[16.205280303955,57.983562469482],DefBase:[50.701351165771,181.40849304199],Normals:l8e,Skills:d8e,Bursts:n8e,Extra:[],Effects:[c8e,u8e,s8e,r8e,o8e,a8e]}),h8e=[{Name:V.hits.HIT_Q,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.752}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.4315}]}],f8e=new k.Builder().stat.Char(d.stat.CRIT_RATE).Instance("HIT_E").Values(.12).Map((i,e)=>{const t=e.FindEffect("NaviaE");if(!t)throw new Error("NaviaE not found");const n=Math.min(t.GetStacks(),3);return i*n}).Build(),g8e=k.Factory({Name:"NaviaC2",OnApply(i,e,t){const n=f8e(i,e,t),s=i.FindEffect("NaviaE");if(!s)throw new Error("NaviaE not found");return t.Observer(s.CreateObserver(k.EffectEvent.CHANGE_STACKS,n)),n}}),p8e=k.Factory({Name:"NaviaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),m8e=k.Factory({Name:"NaviaC4",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.GEO_RES).Values(-.2).Build()}),_8e=k.Factory({Name:"NaviaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),v8e=new k.Builder().stat.Char(d.stat.CRIT_DMG).Instance("HIT_E").Values(.45).Map((i,e)=>{const t=e.FindEffect("NaviaE");if(!t)throw new Error("NaviaE not found");const n=Math.max(0,Math.min(t.GetStacks()-3,3));return i*n}).Build(),b8e=k.Factory({Name:"NaviaC6",OnApply(i,e,t){const n=v8e(i,e,t),s=i.FindEffect("NaviaE");if(!s)throw new Error("NaviaE not found");return t.Observer(s.CreateObserver(k.EffectEvent.CHANGE_STACKS,n)),n}}),C8e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9352}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8651}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3489}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.3343}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6252}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1309}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7459}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4914}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.8629}]}],E8e=k.Factory({Name:"NaviaA1",OnApply:new k.Builder().Where({target:{ascension:1}}).infusion.Set(d.stat.GEO_DMG,!0).Next().Where({target:{ascension:1}}).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG,d.stat.PLUNGE_ATTACK_DMG).Values(.4).Build()}),S8e=k.Factory({Name:"NaviaA4",OnApply:new k.Builder().Where({target:{ascension:4}}).observe.Party(!0).stat.Char(d.stat.ATK_PERCENT).Values(.2).Map((i,e)=>{var t;const n=((t=e.GetParty())==null?void 0:t.GetMembers())||[e];let s=0;for(const r of n){const o=r.GetCharacter().Options.Element;d.Swirlable.includes(d.DmgToAura(o))&&s++}return s>2&&(s=2),i*s}).Build()}),y8e=[{Name:V.hits.HIT_E,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.948}]},{Name:V.hits.HIT_E+"_OUSIA",Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.36}]}],T8e=k.Factory({Name:"NaviaE2",MaxStacks:6,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Instance(V.hits.HIT_E).Values(.15).Map((i,e,t)=>i*Math.max(0,t.GetStacks()-3)).Next().Where({effect:{conditions:["ALL_STRIKE"]}}).mv.Multiplier(2,V.hits.HIT_E).Build()}),w8e=k.Factory({Name:"NaviaE",MaxStacks:11,OnApply:new k.Builder().mv.Multiplier(1,V.hits.HIT_E).Map((i,e,t)=>i*t.GetStacks()/11+1).Build()}),zse=Nt.Factory({Name:"Navia",Element:d.stat.GEO_DMG,Stars:5,Weapon:d.weapon.CLAYMORE,StatBonus:d.stat.CRIT_DMG,BurstCost:60,Region:d.region.FONTAINE,HpBase:[984.78,4044.0373535156],AtkBase:[27.3714,112.3935546875],DefBase:[61.74456,253.56239318848],Normals:C8e,Skills:y8e,Bursts:h8e,Extra:[],Effects:[w8e,T8e,E8e,S8e,g8e,p8e,m8e,_8e,b8e]}),A8e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4839}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4373}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5512}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.733}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7422}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]},{Name:"HIT_ARKHE",Element:d.stat.HYDRO_DMG,Talent:d.stat.NONE,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.0946}]}],x8e=[{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0786}]},{Name:V.hits.HIT_E_1,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0596}]},{Name:V.hits.HIT_E_2,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0323}]},{Name:V.hits.HIT_E_3,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0829}]}],L8e=k.Factory({Name:"FurinaE",OnApply(i,e,t){const n=I8e(i,e,t),s=[],r=()=>{for(const l of s)t.RemoveObserver(l);let o=[];const a=i.GetParty();a&&(o=a.GetMembers());for(const l of o){if(l===i)continue;const c=t.Observer(l.GetCharacter().CreateObserver(d.stat.HP_CURRENT,n));s.push(c)}};return t.Observer(i.Event.CreateObserver(bf.CHANGE_PARTY,r)),r(),()=>0}}),I8e=new k.Builder().observe.Party(!0).observe.Target(d.stat.HP_CURRENT).mv.Multiplier(1,/E_\d/).Map((i,e)=>{let t=[];const n=e.GetParty();n?t=n.GetMembers():t=[e];let s=0;for(const r of t)r.GetCharacter().Get(d.stat.HP_CURRENT)>.5&&s++;return s=Math.min(s,4),1+s/10}).Build(),N8e=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.1141}]}],M8e=k.Factory({Name:"FurinaQ",MaxStacks:400,ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.ALL_DMG).Values(1).Stacks().Map((i,e,t)=>{let s=.05+.02*t.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL);return s=s*i/100,s}).Build()}),D8e=k.Factory({Name:"FurinaA4",OnApply:new k.Builder().Where({target:{ascension:4}}).observe.Target(d.stat.HP,d.stat.HP_BASE,d.stat.HP_PERCENT,d.stat.HP_FLAT).stat.Char(d.stat.ALL_DMG).Instance(/E_\d/).Values(.7/100).Map((i,e)=>Math.min(.28,i*e.GetCharacter().Get(d.stat.HP)/1e3)).Build()}),k8e=k.Factory({Name:"FurinaC1",OnApply(i,e,t){const n=i.FindEffect("FurinaQ");if(!n)throw new Error("FurinaC1: could not find FurinaQ");let s=0,r=e.Enabled();const o=()=>{const a=n.GetStacks();e.Enabled()?!r&&a300&&(s=a,n.SetStacks(300)),r=e.Enabled()};return o(),t.Observer(e.CreateObserver(qs.ENABLE,o)),t.Observer(e.CreateObserver(qs.DISABLE,o)),n.CreateObserver(qs.CHANGE_STACKS,o),()=>0}}),R8e=k.Factory({Name:"FurinaC2",MaxStacks:400,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.35/100).Stacks().Build()}),O8e=k.Factory({Name:"FurinaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),P8e=k.Factory({Name:"FurinaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),F8e=k.Factory({Name:"FurinaC6",Conditions:["ARKHE_PNEUMA"],MaxConditions:1,OnApply:new k.Builder().infusion.Set(d.stat.HYDRO_DMG,!0).Next().mv.Mv(d.stat.HP,.18,/N\d|Charged|Plunge/i).Next().Where({effect:{conditions:["ARKHE_PNEUMA"]}}).mv.Mv(d.stat.HP,.25,/N\d|Charged|Plunge/i).Build()}),Kse=Nt.Factory({Name:"Furina",Stars:5,Element:d.stat.HYDRO_DMG,Weapon:d.weapon.SWORD,StatBonus:d.stat.CRIT_RATE,BurstCost:60,Region:d.region.FONTAINE,Normals:A8e,Skills:x8e,Bursts:N8e,Extra:[],Effects:[L8e,M8e,D8e,k8e,R8e,O8e,P8e,F8e],HpBase:[1191.65,4893.5590820312],AtkBase:[18.9924,77.987365722656],DefBase:[54.146148681641,222.35850524902]}),B8e=[{Name:V.hits.HIT_N1,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5458}]},{Name:V.hits.HIT_N2,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.4625}]},{Name:V.hits.HIT_N3,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.7234}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:1.368}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.HP,Scaling:P.TalentScaling.PHYSICAL_1,Initial:.0732}]},{Name:V.hits.HIT_CHARGED+"_C6",Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.HP,Scaling:P.TalentScaling.NONE,Initial:.1}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],H8e=[{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.1286}]},{Name:V.hits.HIT_E_DOT,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.208}]}],G8e=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.2226}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0911}]}],V8e=k.Factory({Name:"NeuvilletteA1",MaxStacks:3,OnApply:new k.Builder().Where({target:{ascension:1}}).mv.Multiplier(1,"HIT_CHARGED_2","HIT_CHARGED_C6").Map((i,e,t)=>[0,1.1,1.25,1.6][t.GetStacks()]).Build()}),W8e=k.Factory({Name:"NeuvilletteA4",OnApply:new k.Builder().Where({target:{ascension:4}}).observe.Target(d.stat.HP_CURRENT).stat.Char(d.stat.HYDRO_DMG).Values(1).Map((i,e)=>Math.min(.3,.6*Math.max(0,e.GetCharacter().Get(d.stat.HP_CURRENT)-.3))).Build()}),z8e=k.Factory({Name:"NeuvilletteC2",OnApply(i,e,t){const n=i.FindEffect("NeuvilletteA1");if(!n)throw new Error("NeuvilletteC2: Could not find NeuvilletteA1");const s=i.FindInstance("HIT_CHARGED_2"),r=i.FindInstance("HIT_CHARGED_C6");if(!s)throw new Error("NeuvilletteC2: Could not find HIT_CHARGED_2");if(!r)throw new Error("NeuvilletteC2: Could not find HIT_CHARGED_C6");const o=t.Modifier(s.Subject.CreateModifier(d.stat.CRIT_DMG,0)),a=t.Modifier(r.Subject.CreateModifier(d.stat.CRIT_DMG,0)),l=()=>{if(i.GetCharacter().GetAscension()<1){o.SetValue(0),a.SetValue(0);return}const c=n.GetStacks();o.SetValue(.14*c),a.SetValue(.14*c)};return l(),t.Observer(n.CreateObserver(k.EffectEvent.CHANGE_STACKS,l)),t.Observer(i.GetCharacter().CreateObserver(d.stat.LEVEL,l)),t.Observer(i.GetCharacter().CreateObserver(d.stat.ASCENSION,l)),()=>0}}),K8e=k.Factory({Name:"NeuvilletteC3",OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_LEVEL_UP).Values(3).Build()}),U8e=k.Factory({Name:"NeuvilletteC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Use=Nt.Factory({Name:"Neuvillette",Stars:5,Element:d.stat.HYDRO_DMG,Weapon:d.weapon.CATALYST,StatBonus:d.stat.CRIT_DMG,BurstCost:70,Region:d.region.FONTAINE,HpBase:[1143.984,4697.8169],AtkBase:[16.218,66.595],DefBase:[44.8725,184.275],Normals:B8e,Skills:H8e,Bursts:G8e,Extra:[],Effects:[V8e,W8e,z8e,K8e,U8e]}),Y8e=k.Factory({Name:"MikaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),j8e=k.Factory({Name:"MikaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),q8e=k.Factory({Name:"MikaC6",ApplyOther:!0,MaxTargets:1,OnApply:new k.Builder().stat.Char(d.stat.PHYSICAL_CRIT_DMG).Values(.6).Build()}),$8e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4326}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.415}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.545}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2761}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7087}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1275}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],X8e=k.Factory({Name:"MikaA1",MaxStacks:4,ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:1}}).stat.Char(d.stat.PHYSICAL_DMG).Values(.1).Stacks().Build()}),Q8e=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.672}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.84}]},{Name:V.hits.HIT_E_DOT,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.252}]}],Yse=Nt.Factory({Name:"Mika",Element:d.stat.CRYO_DMG,Stars:4,Weapon:d.weapon.POLEARM,StatBonus:d.stat.HP_PERCENT,BurstCost:70,Region:d.region.MONDSTADT,HpBase:[1048.5597,3751.7275],AtkBase:[18.6984,66.90411],DefBase:[59.800125,213.96375],Normals:$8e,Skills:Q8e,Bursts:[],Extra:[],Effects:[X8e,Y8e,j8e,q8e]}),Z8e=[{Name:V.hits.HIT_N1+"_Q",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.987},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0169}]},{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.393},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.0239}]}],J8e=k.Factory({Name:"DehyaC1",OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.2).Next().mv.Mv(d.stat.HP,.036,i=>i.Options.Talent===d.stat.ELEMENTAL_SKILL_DMG).Next().mv.Mv(d.stat.HP,.06,i=>i.Options.Talent===d.stat.ELEMENTAL_BURST_DMG).Build()}),e9e=k.Factory({Name:"DehyaC2",OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Instance("HIT_E_DOT").Values(.5).Build()}),t9e=k.Factory({Name:"DehyaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),i9e=k.Factory({Name:"DehyaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),n9e=k.Factory({Name:"DehyaC6",MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.1).Next().stat.Char(d.stat.ELEMENTAL_BURST_CRIT_DMG).Values(.15).Stacks().Build()}),s9e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6212}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6171}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7663}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9529}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5633}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0182}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7459}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4914}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.8629}]}],r9e=[{Name:V.hits.HIT_E_1,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.1288}]},{Name:V.hits.HIT_E_2,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.328}]},{Name:V.hits.HIT_E_DOT,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.602},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0103}]}],jse=Nt.Factory({Name:"Dehya",Stars:5,Element:d.stat.PYRO_DMG,Weapon:d.weapon.CLAYMORE,StatBonus:d.stat.HP_PERCENT,Region:d.region.SUMERU,BurstCost:70,HpBase:[1220.2496,5011.0044],AtkBase:[20.6682,84.8686],DefBase:[48.88111,200.7369],Normals:s9e,Skills:r9e,Bursts:Z8e,Extra:[],Effects:[J8e,e9e,t9e,i9e,n9e]}),o9e=[{Name:V.hits.HIT_Q,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.776}]}],a9e=k.Factory({Name:"FaruzanQ",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.ANEMO_RES).Values(-.3).Next().observe.Owner(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.ANEMO_DMG).Values(...P.TalentScaling.ELEMENTAL_1).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map(i=>i*.18).Build()}),l9e=k.Factory({Name:"FaruzanC3",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),c9e=k.Factory({Name:"FaruzanC5",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),u9e=k.Factory({Name:"FaruzanC6",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ANEMO_CRIT_DMG).Values(.4).Build()}),d9e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4473}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4219}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5316}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7062}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.ANEMO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],h9e=k.Factory({Name:"FaruzanA4",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:4}}).observe.Owner(d.stat.ATK_BASE).stat.Char(d.stat.ANEMO_DMG_FLAT).Values(.32).Map((i,e,t)=>t.Owner.GetCharacter().Get(d.stat.ATK_BASE)*i).Build()}),f9e=[{Name:V.hits.HIT_E,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.488}]},{Name:V.hits.HIT_E_2,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.08}]}],qse=Nt.Factory({Name:"Faruzan",Stars:4,Element:d.stat.ANEMO_DMG,Weapon:d.weapon.BOW,StatBonus:d.stat.ATK_PERCENT,BurstCost:80,Region:d.region.SUMERU,HpBase:[802.3761,2870.8872],AtkBase:[16.4724,58.939335],DefBase:[52.647,188.37],Normals:d9e,Skills:f9e,Bursts:o9e,Extra:[],Effects:[a9e,h9e,l9e,c9e,u9e]}),g9e=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.1843}]},{Name:V.hits.HIT_Q_2,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.2253}]}],p9e=k.Factory({Name:"NilouC1",OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Instance("HIT_E_3_1").Values(.65).Build()}),m9e=k.Factory({Name:"NilouC2",ApplyOther:!0,Conditions:["BLOOM"],MaxConditions:1,OnApply:new k.Builder().Where({owner:{ascension:1}}).stat.Enemy(d.stat.HYDRO_RES).Values(-.35).Next().Where({owner:{ascension:1},effect:{conditions:["BLOOM"]}}).stat.Enemy(d.stat.DENDRO_RES).Values(-.35).Build()}),_9e=k.Factory({Name:"NilouC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),v9e=k.Factory({Name:"NilouC4",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.5).Build()}),b9e=k.Factory({Name:"NilouC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),C9e=k.Factory({Name:"NilouC6",OnApply:new k.Builder().observe.Target(d.stat.HP_PERCENT,d.stat.HP_BASE,d.stat.HP_FLAT).stat.Char(d.stat.CRIT_RATE).Values(.6/100).Map((i,e)=>Math.max(0,Math.min(.3,i*e.GetCharacter().Get(d.stat.HP)/1e3))).Next().observe.Target(d.stat.HP_PERCENT,d.stat.HP_BASE,d.stat.HP_FLAT).stat.Char(d.stat.CRIT_DMG).Values(1.2/100).Map((i,e)=>Math.max(0,Math.min(.6,i*e.GetCharacter().Get(d.stat.HP)/1e3))).Build()}),E9e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5031}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4544}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7035}]},{Name:V.hits.HIT_CHARGED_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5022}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5444}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}];function $se(i){const e=i.GetParty();if(!e)return!1;let t=!1,n=!1;for(const s of e.GetMembers()){const r=s.GetCharacter().Options.Element;if(r===d.stat.DENDRO_DMG)t=!0;else if(r===d.stat.HYDRO_DMG)n=!0;else return!1}return t&&n}var S9e=k.Factory({Name:"NilouA1",ApplyOther:!0,OnApply:new k.Builder().Where((i,e)=>e.GetCharacter().GetAscension()<1?!1:$se(i)).observe.Party(!0).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(100).Build()}),y9e=k.Factory({Name:"NilouA4",ApplyOther:!0,OnApply:new k.Builder().Where((i,e)=>e.GetCharacter().GetAscension()<4?!1:$se(i)).observe.Party(!0).observe.Owner(d.stat.HP_FLAT,d.stat.HP_BASE,d.stat.HP_PERCENT).stat.Char(d.stat.BLOOM_DMG).Values(.09).Map((i,e,t)=>Math.max(0,Math.min(4,(t.Owner.GetCharacter().Get(d.stat.HP)-3e4)*i/1e3))).Build()}),T9e=[{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0334}]},{Name:V.hits.HIT_E_1+"_1",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0455}]},{Name:V.hits.HIT_E_1+"_2",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0326}]},{Name:V.hits.HIT_E_2+"_1",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0514}]},{Name:V.hits.HIT_E_2+"_2",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0396}]},{Name:V.hits.HIT_E_3+"_1",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0717}]},{Name:V.hits.HIT_E_3+"_2",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0506}]}],Xse=Nt.Factory({Name:"Nilou",Stars:5,Element:d.stat.HYDRO_DMG,Weapon:d.weapon.SWORD,StatBonus:d.stat.HP_PERCENT,Region:d.region.SUMERU,BurstCost:70,HpBase:[1182.1168,4854.4106],AtkBase:[17.8752,73.39987],DefBase:[56.71884,232.9236],Normals:E9e,Skills:T9e,Bursts:g9e,Extra:[],Effects:[S9e,y9e,p9e,m9e,_9e,v9e,b9e,C9e]}),Ek=new Set,Sk=[.025,.05,.075,.115];function w9e(i){const e=i.FindEffect("YunjinA4");if(!e||!e.Enabled()||i.GetCharacter().GetAscension()<4)return 0;const t=i.GetParty();if(!t)return Sk[0];Ek.clear();for(const s of t.GetMembers()){const r=s.GetCharacter().Options.Element;Ek.add(r)}const n=Math.max(1,Math.min(Sk.length,Ek.size));return Sk[n-1]}var A9e=k.Factory({Name:"YunjinA4",OnApply(i,e,t){const n=i.FindEffect("YunjinQ");if(!n)throw new Error("Yunjin Burst effect not found");const s=n;function r(){s.Enabled()&&(s.Disable(),s.Enable())}return r(),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_TARGET,r)),()=>0}}),x9e=[{Name:V.hits.HIT_Q,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.44}]}],L9e=k.Factory({Name:"YunjinQ",ApplyOther:!0,OnApply:new k.Builder().observe.Party(!0).observe.Owner(d.stat.DEF_PERCENT,d.stat.DEF_BASE,d.stat.DEF_FLAT,d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.NORMAL_ATTACK_DMG_FLAT).Values(...P.TalentScaling.ELEMENTAL_1).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map((i,e,t)=>(.3216*i+w9e(t.Owner))*t.Owner.GetCharacter().Get(d.stat.DEF)).Build()}),I9e=k.Factory({Name:"YunjinC2",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.15).Build()}),N9e=k.Factory({Name:"YunjinC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),M9e=k.Factory({Name:"YunjinC4",OnApply:new k.Builder().stat.Char(d.stat.DEF_PERCENT).Values(.2).Build()}),D9e=k.Factory({Name:"YunjinC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),k9e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4051}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4025}]},{Name:V.hits.HIT_N3_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2296}]},{Name:V.hits.HIT_N3_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2752}]},{Name:V.hits.HIT_N4_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2399}]},{Name:V.hits.HIT_N4_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2881}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6734}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2169}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],R9e=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.4912}]},{Name:V.hits.HIT_E_1,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.6096}]},{Name:V.hits.HIT_E_2,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.728}]}],Qse=Nt.Factory({Name:"Yunjin",Stars:4,Weapon:d.weapon.POLEARM,Element:d.stat.GEO_DMG,StatBonus:d.stat.ENERGY_RECHARGE,Region:d.region.LIYUE,BurstCost:60,HpBase:[893.5552,3197.1245],AtkBase:[16.0272,57.34638],DefBase:[61.5741,220.311],Normals:k9e,Skills:R9e,Bursts:x9e,Extra:[],Effects:[L9e,A9e,I9e,N9e,M9e,D9e]}),O9e=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.272}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.22}]}],P9e=k.Factory({Name:"YoimiyaC1",OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2).Build()}),F9e=k.Factory({Name:"YoimiyaC2",OnApply:new k.Builder().stat.Char(d.stat.PYRO_DMG).Values(.25).Build()}),B9e=k.Factory({Name:"YoimiyaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),H9e=k.Factory({Name:"YoimiyaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),G9e=k.Factory({Name:"YoimiyaC6",OnApply:new k.Builder().instance.Location("Normal").Options({Name:"HIT_C6",Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Talent:d.stat.NORMAL_ATTACK_LEVEL,Initial:.164*.6}]}).Build()}),V9e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3564}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6838}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8889}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4642}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0586}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:"HIT_KindlingArrow",Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.164}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],W9e=k.Factory({Name:"YoimiyaA1",MaxStacks:10,OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.PYRO_DMG).Values(.02).Stacks().Build()}),z9e=k.Factory({Name:"YoimiyaA4",ApplyOther:!0,ApplySelf:!1,OnApply(i,e,t){const n=i.GetCharacter(),s=e.Owner.GetCharacter(),r=e.Owner.FindEffect("YoimiyaA1");if(!r)throw new Error("Cannot find Yoimiya A1");const o=t.Modifier(n.CreateModifier(d.stat.ATK_PERCENT,0)),a=()=>{if(s.GetAscension()<4){o.SetValue(0);return}o.SetValue(.1+.01*r.GetStacks())};return a(),t.Observer(s.CreateObserver(d.stat.LEVEL,a)),t.Observer(s.CreateObserver(d.stat.ASCENSION,a)),t.Observer(r.CreateObserver(k.EffectEvent.CHANGE_STACKS,a)),()=>0}}),K9e=k.Factory({Name:"YoimiyaE",OnApply:new k.Builder().infusion.Set(d.stat.PYRO_DMG,!0).Next().observe.Target(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.3791,/hit_n\d/i).Map((i,e)=>1+i*P.TalentScaling.ELEMENTAL_2[e.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),Zse=Nt.Factory({Name:"Yoimiya",Stars:5,Weapon:d.weapon.BOW,Element:d.stat.PYRO_DMG,StatBonus:d.stat.CRIT_RATE,Region:d.region.INAZUMA,BurstCost:60,HpBase:[791.2556,3249.3232],AtkBase:[25.137,103.21857],DefBase:[47.864,196.56],Normals:V9e,Skills:[],Bursts:O9e,Extra:[],Effects:[K9e,W9e,z9e,P9e,F9e,B9e,H9e,G9e]}),U9e=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.824}]}],Y9e=k.Factory({Name:"YanfeiQ",OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(...P.TalentScaling.ELEMENTAL_2).Rank(i=>i.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map(i=>.334*i).Build()}),j9e=k.Factory({Name:"YanfeiC2",OnApply:new k.Builder().stat.Char(d.stat.CHARGED_ATTACK_CRIT_RATE).Values(.2).Build()}),q9e=k.Factory({Name:"YanfeiC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),$9e=k.Factory({Name:"YanfeiC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),X9e=[{Name:V.hits.HIT_N1,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5834}]},{Name:V.hits.HIT_N2,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5213}]},{Name:V.hits.HIT_N3,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.7601}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_2,Initial:.9823}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PYRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PYRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PYRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],Q9e=k.Factory({Name:"YanfeiA1",OnApply(i,e,t){const n=i.GetCharacter(),s=i.FindEffect("YanfeiSeal");if(!s)throw new Error("Cannot find Yanfei Scarlet Seals");const r=t.Modifier(n.CreateModifier(d.stat.PYRO_DMG,0)),o=()=>{if(n.GetAscension()<1){r.SetValue(0);return}r.SetValue(s.GetStacks()*.05)};return o(),t.Observer(s.CreateObserver(k.EffectEvent.CHANGE_STACKS,o)),t.Observer(n.CreateObserver(d.stat.LEVEL,o)),t.Observer(n.CreateObserver(d.stat.ASCENSION,o)),()=>0}}),Z9e=k.Factory({Name:"YanfeiA4",OnApply:new k.Builder().Where({target:{ascension:4}}).instance.Location("Normal").Options({Name:"HIT_A4",Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Initial:.8,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE}]}).Build()}),J9e=k.Factory({Name:"YanfeiSeal",MaxStacks:4,OnApply:new k.Builder().observe.Target(d.stat.NORMAL_ATTACK_LEVEL,d.stat.NORMAL_ATTACK_LEVEL_UP).mv.Mv(d.stat.ATK,.1733,"HIT_CHARGED").Map((i,e,t)=>i*t.GetStacks()*P.TalentScaling.ELEMENTAL_2[e.GetCharacter().Get(d.stat.NORMAL_ATTACK_LEVEL)-1]).Build()}),e7e=[{Name:V.hits.HIT_E,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.696}]}],Jse=Nt.Factory({Name:"Yanfei",Stars:4,Element:d.stat.PYRO_DMG,StatBonus:d.stat.PYRO_DMG,Weapon:d.weapon.CATALYST,Region:d.region.LIYUE,BurstCost:80,HpBase:[784.14026,2805.64],AtkBase:[20.12304,72.001564],DefBase:[49.2135,176.085],Normals:X9e,Skills:e7e,Bursts:U9e,Extra:[],Effects:[J9e,Y9e,Q9e,Z9e,j9e,q9e,$9e]}),t7e=[{Name:V.hits.HIT_Q,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.6}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.3382}]}],i7e=k.Factory({Name:"YaeC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),n7e=k.Factory({Name:"YaeC4",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ELECTRO_DMG).Values(.2).Build()}),s7e=k.Factory({Name:"YaeC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),r7e=k.Factory({Name:"YaeC6",OnApply:new k.Builder().stat.Char(d.stat.DEFIGNORED).Instance(/HIT_E_\d/i).Values(.6).Build()}),o7e=[{Name:V.hits.HIT_N1,Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.3966}]},{Name:V.hits.HIT_N2,Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.3852}]},{Name:V.hits.HIT_N3,Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5689}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.ELECTRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4289}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.ELECTRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.ELECTRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.ELECTRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],a7e=k.Factory({Name:"YaeA4",OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_MASTERY).Where({target:{ascension:4}}).stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.15/100).Map((i,e)=>i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Build()}),l7e=[{Name:V.hits.HIT_E_1,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.6067}]},{Name:V.hits.HIT_E_2,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.7584}]},{Name:V.hits.HIT_E_3,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.948}]},{Name:V.hits.HIT_E_4,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.185}]}],ere=Nt.Factory({Name:"Yae",Stars:5,Element:d.stat.ELECTRO_DMG,StatBonus:d.stat.CRIT_RATE,Weapon:d.weapon.CATALYST,Region:d.region.INAZUMA,BurstCost:90,HpBase:[807.46204,3315.8757],AtkBase:[26.4404,108.57064],DefBase:[44.2742,181.818],Normals:o7e,Skills:l7e,Bursts:t7e,Extra:[],Effects:[a7e,i7e,n7e,s7e,r7e]}),c7e=k.Factory({Name:"XiaoQ",OnApply:new k.Builder().infusion.Set(d.stat.ANEMO_DMG,!0).Next().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG,d.stat.PLUNGE_ATTACK_DMG).Values(...P.TalentScaling.ELEMENTAL_2).Rank(i=>i.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map(i=>.5845*i).Build()}),u7e=k.Factory({Name:"XiaoC2",OnApply:new k.Builder().stat.Char(d.stat.ENERGY_RECHARGE).Values(.25).Build()}),d7e=k.Factory({Name:"XiaoC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),h7e=k.Factory({Name:"XiaoC4",OnApply:new k.Builder().Where({target:{hp:{leq:.5}}}).stat.Char(d.stat.DEF_PERCENT).Values(1).Build()}),f7e=k.Factory({Name:"XiaoC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),g7e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.2754}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.5694}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.6855}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.3766}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.7154}]},{Name:V.hits.HIT_N6,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.9583}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:1.2109}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8183}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.6363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:2.0439}]}],p7e=k.Factory({Name:"XiaoA1",MaxStacks:5,OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.ALL_DMG).Values(.05).Stacks().Build()}),m7e=k.Factory({Name:"XiaoA4",MaxStacks:3,OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.15).Stacks().Build()}),_7e=[{Name:V.hits.HIT_E,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.528}]}],tre=Nt.Factory({Name:"Xiao",Stars:5,Element:d.stat.ANEMO_DMG,StatBonus:d.stat.CRIT_RATE,Weapon:d.weapon.POLEARM,Region:d.region.LIYUE,BurstCost:70,HpBase:[991.4528,4071.4412],AtkBase:[27.1852,111.628975],DefBase:[62.2232,255.528],Normals:g7e,Skills:_7e,Bursts:[],Extra:[],Effects:[c7e,p7e,m7e,u7e,d7e,h7e,f7e]}),v7e=[{Name:V.hits.HIT_Q_1,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.72}]},{Name:V.hits.HIT_Q_2,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.88}]},{Name:V.hits.HIT_Q_3,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.096}]},{Name:"HIT_PYRONADO",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.12}]}],b7e=k.Factory({Name:"XianglingC1",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.PYRO_RES).Values(-.15).Build()}),C7e=k.Factory({Name:"XianglingC2",OnApply:new k.Builder().instance.Options({Name:"HIT_C2",Element:d.stat.PYRO_DMG,Talent:d.stat.NONE,Scaling:[{Stat:d.stat.ATK,Initial:.75,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE}]}).Build()}),E7e=k.Factory({Name:"XianglingC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),S7e=k.Factory({Name:"XianglingC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),y7e=k.Factory({Name:"XianglingC6",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.PYRO_DMG).Values(.15).Build()}),T7e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4205}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4214}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.2606}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.141}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7104}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.2169}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],w7e=k.Factory({Name:"XianglingA4",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:4}}).stat.Char(d.stat.ATK_PERCENT).Values(.1).Build()}),A7e=[{Name:V.hits.HIT_E,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.1128}]}],ire=Nt.Factory({Name:"Xiangling",Stars:4,Element:d.stat.PYRO_DMG,StatBonus:d.stat.ELEMENTAL_MASTERY,Weapon:d.weapon.POLEARM,Region:d.region.LIYUE,BurstCost:80,HpBase:[911.791,3262.3718],AtkBase:[18.87648,67.54129],DefBase:[56.0805,200.655],Normals:T7e,Skills:A7e,Bursts:v7e,Extra:[],Effects:[w7e,b7e,C7e,E7e,S7e,y7e]}),x7e=[{Name:V.hits.HIT_Q,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.472}]}],L7e=k.Factory({Name:"WandererC1",OnApply(i,e,t){if(!i.FindEffect("WandererA4"))throw new Error("Cannot find Wanderer A4");let s;const r=()=>{const o=i.FindInstance("HIT_A4");!o||s||(s=t.Mv({Stat:d.stat.ATK,Value:.25,Enabled:!0},o))};return r(),t.Observer(i.GetCharacter().CreateObserver(d.stat.LEVEL,r)),t.Observer(i.GetCharacter().CreateObserver(d.stat.ASCENSION,r)),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,r)),()=>0}}),I7e=k.Factory({Name:"WandererC2",MaxStacks:120,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.04).Stacks().Map(i=>Math.min(2,i)).Build()}),N7e=k.Factory({Name:"WandererC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),M7e=k.Factory({Name:"WandererC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),D7e=[{Name:V.hits.HIT_N1,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.6871}]},{Name:V.hits.HIT_N2,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.6502}]},{Name:V.hits.HIT_N3,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.4764}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.ANEMO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:1.3208}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]},{Name:V.hits.HIT_N1+"_C6",Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.6871*.4}]},{Name:V.hits.HIT_N2+"_C6",Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.6502*.4}]},{Name:V.hits.HIT_N3+"_C6",Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.4764*.4}]}],k7e=k.Factory({Name:"WandererA1",MaxAuras:1,ValidAuras:d.Swirlable,OnApply:new k.Builder().Where({target:{ascension:1},effect:{affected:[d.stat.PYRO_DMG]}}).stat.Char(d.stat.ATK_PERCENT).Values(.3).Next().Where({target:{ascension:1},effect:{affected:[d.stat.CRYO_DMG]}}).stat.Char(d.stat.CRIT_RATE).Values(.2).Build()}),R7e=k.Factory({Name:"WandererA4",OnApply:new k.Builder().Where({target:{ascension:4}}).instance.Options({Name:"HIT_A4",Element:d.stat.ANEMO_DMG,Talent:d.stat.NONE,Scaling:[{Stat:d.stat.ATK,Initial:.35,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE}]}).Build()}),O7e=[{Name:V.hits.HIT_E,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.952}]}],P7e=k.Factory({Name:"WandererE",OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.3298,/hit_n\d/i).Map((i,e)=>1+i*P.TalentScaling.ELEMENTAL_2[e.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)-1]).Next().observe.Target(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.2639,/hit_charged/i).Map((i,e)=>1+i*P.TalentScaling.ELEMENTAL_2[e.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),nre=Nt.Factory({Name:"Wanderer",Stars:5,Weapon:d.weapon.CATALYST,Element:d.stat.ANEMO_DMG,StatBonus:d.stat.CRIT_RATE,Region:d.region.SUMERU,BurstCost:60,HpBase:[791.2556,3249.3232],AtkBase:[25.5094,104.747734],DefBase:[47.2657,194.103],Normals:D7e,Skills:O7e,Bursts:x7e,Extra:[],Effects:[P7e,k7e,R7e,L7e,I7e,N7e,M7e]}),F7e=[{Name:V.hits.HIT_Q_DOT,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.376}]}],B7e=k.Factory({Name:"VentiQ",MaxAuras:1,ValidAuras:d.Swirlable,OnApply(i,e,t){H7e(i,e,t);function n(){const s=i.FindBurst(V.hits.HIT_Q+"_ADDITIONAL");if(!s)return;const r=e.GetAuras()[0];!r||(s.Options.Element=d.AuraToDmg(r))}return n(),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_AURAS,n)),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,n)),()=>0}}),H7e=new k.Builder().instance.Location("Burst").Options({Name:V.hits.HIT_Q+"_ADDITIONAL",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.188,Talent:d.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),G7e=k.Factory({Name:"VentiC1",OnApply:new k.Builder().instance.Location("Normal").Options({Name:"HIT_C1",Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Talent:d.stat.NORMAL_ATTACK_LEVEL,Stat:d.stat.ATK,Initial:.4386*.33}]}).Next().instance.Location("Normal").Options({Name:"HIT_CHARGED_C1",Element:d.stat.ANEMO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Talent:d.stat.NORMAL_ATTACK_LEVEL,Stat:d.stat.ATK,Initial:1.24*.33}]}).Next().Build()}),V7e=k.Factory({Name:"VentiC2",ApplyOther:!0,Conditions:["AIRBORNE","NO_AIRBORNE"],MaxConditions:1,OnApply:new k.Builder().stat.Enemy(d.stat.ANEMO_RES,d.stat.PHYSICAL_RES).Values(-.12).Next().Where({effect:{conditions:["AIRBORNE"]}}).stat.Enemy(d.stat.ANEMO_RES,d.stat.PHYSICAL_RES).Values(-.12).Build()}),W7e=k.Factory({Name:"VentiC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),z7e=k.Factory({Name:"VentiC4",OnApply:new k.Builder().stat.Char(d.stat.ANEMO_DMG).Values(.25).Build()}),K7e=k.Factory({Name:"VentiC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),U7e=k.Factory({Name:"VentiC6",ApplyOther:!0,OnApply(i,e,t){const n=i.GetCharacter().GetEnemy(),s=e.Owner.FindEffect("VentiQ");if(!s)throw new Error("Venti Q not found");t.Modifier(n.Subject.CreateModifier(d.stat.ANEMO_RES,-.2));const r=t.Modifier(n.Subject.CreateModifier(d.stat.ANEMO_RES,0)),o=()=>{const a=s.GetAuras();if(!a.length||a[0]===d.aura.NONE)r.SetValue(0);else{const l=d.DmgToRes(d.AuraToDmg(a[0]));r.SetValue(-.2),r.SetProp(l)}};return o(),t.Observer(s.CreateObserver(k.EffectEvent.CHANGE_AURAS,o)),()=>0}}),Y7e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.2038}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4438}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.5237}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.2606}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.5065}]},{Name:V.hits.HIT_N6,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7095}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.ANEMO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],j7e=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.76}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.8}]}],sre=Nt.Factory({Name:"Venti",Stars:5,Element:d.stat.ANEMO_DMG,StatBonus:d.stat.ENERGY_RECHARGE,Weapon:d.weapon.BOW,Region:d.region.MONDSTADT,BurstCost:60,HpBase:[819.8552,3366.7688],AtkBase:[20.482,84.10402],DefBase:[52.0521,213.759],Normals:Y7e,Skills:j7e,Bursts:F7e,Extra:[],Effects:[B7e,G7e,V7e,W7e,z7e,K7e,U7e]}),q7e=[{Name:V.hits.HIT_Q+"_MELEE",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:4.64}]},{Name:V.hits.HIT_Q+"_RANGED",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.784}]},{Name:"HIT_RiptideBlast",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.2}]}],$7e=k.Factory({Name:"TartagliaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),X7e=k.Factory({Name:"TartagliaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Q7e=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4128}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4627}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5538}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5702}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6089}]},{Name:V.hits.HIT_N6,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7276}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:"HIT_RiptideFlash",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.124}]},{Name:"HIT_RiptideBurst",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.62}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],Z7e=k.Factory({Name:"TartagliaA0",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_LEVEL_UP).Values(1).Build()}),J7e=[{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.72}]},{Name:V.hits.HIT_N1+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3887}]},{Name:V.hits.HIT_N2+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4162}]},{Name:V.hits.HIT_N3+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5633}]},{Name:V.hits.HIT_N4+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5994}]},{Name:V.hits.HIT_N5+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.553}]},{Name:V.hits.HIT_N6_1+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3543}]},{Name:V.hits.HIT_N6_2+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3767}]},{Name:V.hits.HIT_CHARGED_1+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.602}]},{Name:V.hits.HIT_CHARGED_2+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7198}]},{Name:"HIT_RiptideSlash",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.602}]}],rre=Nt.Factory({Name:"Tartaglia",Stars:5,Weapon:d.weapon.BOW,Element:d.stat.HYDRO_DMG,StatBonus:d.stat.HYDRO_DMG,Region:d.region.SNEZHNAYA,BurstCost:60,HpBase:[1020.0524,4188.8867],AtkBase:[23.4612,96.33733],DefBase:[63.4198,260.442],Normals:Q7e,Skills:J7e,Bursts:q7e,Extra:[],Effects:[Z7e,$7e,X7e]}),eGe=[{Name:V.hits.HIT_Q_DOT,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.48}]}],tGe=k.Factory({Name:"SucroseQ",MaxAuras:1,ValidAuras:d.Swirlable,OnApply(i,e,t){iGe(i,e,t);function n(){const s=i.FindBurst(V.hits.HIT_Q+"_ADDITIONAL");if(!s)return;const r=e.GetAuras()[0];!r||(s.Options.Element=d.AuraToDmg(r))}return n(),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_AURAS,n)),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,n)),()=>0}}),iGe=new k.Builder().instance.Location("Burst").Options({Name:V.hits.HIT_Q+"_ADDITIONAL",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.44,Talent:d.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),nGe=k.Factory({Name:"SucroseC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),sGe=k.Factory({Name:"SucroseC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),rGe=k.Factory({Name:"SucroseC6",ApplyOther:!0,OnApply(i,e,t){const n=e.Owner.FindEffect("SucroseQ"),s=i.GetCharacter();if(!n)throw new Error("Cannot find Sucrose Q");const r=t.Modifier(s.CreateModifier(d.stat.PYRO_DMG,0)),o=()=>{const a=n.GetAuras();(!a.length||a[0]===d.aura.NONE)&&r.SetValue(0);const l=d.AuraToDmg(a[0]);r.SetProp(l),r.SetValue(.2)};return o(),t.Observer(n.CreateObserver(k.EffectEvent.CHANGE_AURAS,o)),()=>0}}),oGe=[{Name:V.hits.HIT_N1,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.3346}]},{Name:V.hits.HIT_N2,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.3062}]},{Name:V.hits.HIT_N3,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.3845}]},{Name:V.hits.HIT_N4,Element:d.stat.ANEMO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.4792}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.ANEMO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.2016}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],aGe=k.Factory({Name:"SucroseA1",ApplySelf:!1,ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:1}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(50).Build()}),lGe=k.Factory({Name:"SucroseA4",ApplySelf:!1,ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_MASTERY).Where({owner:{ascension:1}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(.2).Map((i,e,t)=>i*t.Owner.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Build()}),cGe=[{Name:V.hits.HIT_E,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.112}]}],ore=Nt.Factory({Name:"Sucrose",Stars:4,Element:d.stat.ANEMO_DMG,StatBonus:d.stat.ANEMO_DMG,Weapon:d.weapon.CATALYST,Region:d.region.MONDSTADT,BurstCost:80,HpBase:[775.02234,2773.016],AtkBase:[14.2464,50.97456],DefBase:[58.94175,210.8925],Normals:oGe,Skills:cGe,Bursts:eGe,Extra:[],Effects:[tGe,aGe,lGe,nGe,sGe,rGe]}),uGe=k.Factory({Name:"ShenheA1",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:1}}).stat.Char(d.stat.CRYO_DMG).Values(.15).Build()}),dGe=k.Factory({Name:"ShenheA4",ApplyOther:!0,Conditions:["PRESS","HOLD"],MaxConditions:1,OnApply:new k.Builder().Where({owner:{ascension:4},effect:{conditions:["PRESS"]}}).stat.Char(d.stat.ELEMENTAL_SKILL_DMG,d.stat.ELEMENTAL_BURST_DMG).Values(.15).Next().Where({owner:{ascension:4},effect:{conditions:["HOLD"]}}).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG,d.stat.PLUNGE_ATTACK_DMG).Values(.15).Build()}),hGe=[{Name:V.hits.HIT_Q,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.008}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.3312}]}],fGe=k.Factory({Name:"ShenheQ",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Enemy(d.stat.CRYO_RES,d.stat.PHYSICAL_RES).Values(-.06,-.07,-.08,-.09,-.1,-.11,-.12,-.13,-.14,-.15).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Build()}),gGe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4326}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4025}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5332}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2632}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6562}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1067}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],pGe=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.392}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.888}]}],mGe=k.Factory({Name:"ShenheE",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP,d.stat.ATK_PERCENT,d.stat.ATK_BASE,d.stat.ATK_FLAT).stat.Char(d.stat.CRYO_DMG_FLAT).Values(...P.TalentScaling.ELEMENTAL_1).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)).Map((i,e,t)=>.4566*i*t.Owner.GetCharacter().Get(d.stat.ATK)).Build()}),_Ge=k.Factory({Name:"ShenheC2",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.CRYO_CRIT_DMG).Values(.15).Build()}),vGe=k.Factory({Name:"ShenheC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),bGe=k.Factory({Name:"ShenheC4",MaxStacks:50,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.05).Stacks().Build()}),CGe=k.Factory({Name:"ShenheC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),are=Nt.Factory({Name:"Shenhe",Stars:5,Element:d.stat.CRYO_DMG,Weapon:d.weapon.POLEARM,StatBonus:d.stat.ATK_PERCENT,Region:d.region.LIYUE,BurstCost:80,HpBase:[1011.47253,4153.653],AtkBase:[23.6474,97.10191],DefBase:[64.6164,265.356],Normals:gGe,Skills:pGe,Bursts:hGe,Extra:[],Effects:[mGe,fGe,uGe,dGe,_Ge,vGe,bGe,CGe]}),EGe=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.1042}]}],SGe=k.Factory({Name:"KokomiQ",OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(d.stat.HP,.0484,/HIT_N\d/i).Map((i,e)=>i*P.TalentScaling.ELEMENTAL_1[e.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)-1]).Next().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(d.stat.HP,.0678,/charged/i).Map((i,e)=>i*P.TalentScaling.ELEMENTAL_1[e.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)-1]).Next().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(d.stat.HP,.071,/HIT_E$/i).Map((i,e)=>i*P.TalentScaling.ELEMENTAL_1[e.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)-1]).Build()}),yGe=k.Factory({Name:"KokomiC1",OnApply:new k.Builder().instance.Options({Name:"HIT_C1",Element:d.stat.HYDRO_DMG,Talent:d.stat.NONE,Scaling:[{Stat:d.stat.HP,Initial:.3,Talent:d.stat.NONE,Scaling:P.TalentScaling.NONE}]}).Build()}),TGe=k.Factory({Name:"KokomiC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),wGe=k.Factory({Name:"KokomiC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),AGe=k.Factory({Name:"KokomiC6",OnApply:new k.Builder().stat.Char(d.stat.HYDRO_DMG).Values(.4).Build()}),xGe=[{Name:V.hits.HIT_N1,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.6838}]},{Name:V.hits.HIT_N2,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.6154}]},{Name:V.hits.HIT_N3,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.9431}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4832}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],LGe=k.Factory({Name:"KokomiA1",OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.HEALING_BONUS).Values(.25).Next().Where({target:{ascension:1}}).stat.Char(d.stat.CRIT_RATE).Values(-1).Next().Build()}),IGe=k.Factory({Name:"KokomiA4",OnApply(i,e,t){const n=i.GetCharacter(),s=i.FindEffect("KokomiQ");if(!s)throw new Error("Kokomi Q effect not found");const r=dL(i.GetNormals(),[/HIT_N\d/i]),o=dL(i.GetNormals(),[/charged/i]),a=t.Mv({Stat:d.stat.HP,Value:0,Enabled:!0},...r),l=t.Mv({Stat:d.stat.HP,Value:0,Enabled:!0},...o),c=()=>{(!s.Enabled()||n.GetAscension()<4)&&(a.Value=0,l.Value=0);const u=n.Get(d.stat.HEALING_BONUS);a.Value=l.Value=.15*u};return c(),t.Observer(n.CreateObserver(d.stat.HEALING_BONUS,c)),t.Observer(s.CreateObserver(k.EffectEvent.ENABLE,c)),t.Observer(s.CreateObserver(k.EffectEvent.DISABLE,c)),()=>0}}),NGe=[{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.0919}]}],lre=Nt.Factory({Name:"Kokomi",Stars:5,Weapon:d.weapon.CATALYST,Element:d.stat.HYDRO_DMG,StatBonus:d.stat.HYDRO_DMG,Region:d.region.INAZUMA,BurstCost:70,HpBase:[1048.652,4306.332],AtkBase:[18.2476,74.92904],DefBase:[51.15465,210.0735],Normals:xGe,Skills:NGe,Bursts:EGe,Extra:[],Effects:[SGe,LGe,IGe,yGe,TGe,wGe,AGe]}),MGe=[{Name:V.hits.HIT_Q_1,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.04}]},{Name:V.hits.HIT_Q_2,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.52}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.32}]}],DGe=k.Factory({Name:"RosariaC1",OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.1).Build()}),kGe=k.Factory({Name:"RosariaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),RGe=k.Factory({Name:"RosariaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),OGe=k.Factory({Name:"RosariaC6",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.PHYSICAL_RES).Values(-.2).Build()}),PGe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5246}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.516}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3182}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6966}]},{Name:V.hits.HIT_N5_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4162}]},{Name:V.hits.HIT_N5_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.43}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.3674}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],FGe=k.Factory({Name:"RosariaA1",OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.CRIT_RATE).Values(.12).Build()}),BGe=k.Factory({Name:"RosariaA4",ApplySelf:!1,ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.CRIT_RATE).Where({owner:{ascension:4}}).stat.Char(d.stat.CRIT_RATE).Values(.15).Map((i,e,t)=>Math.max(0,Math.min(1,i*t.Owner.GetCharacter().Get(d.stat.CRIT_RATE)))).Build()}),HGe=[{Name:V.hits.HIT_E_1,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.584}]},{Name:V.hits.HIT_E_2,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.36}]}],cre=Nt.Factory({Name:"Rosaria",Stars:4,Weapon:d.weapon.POLEARM,Element:d.stat.CRYO_DMG,Region:d.region.MONDSTADT,StatBonus:d.stat.ATK_PERCENT,BurstCost:60,HpBase:[1030.3239,3686.4802],AtkBase:[20.12304,72.001564],DefBase:[59.514,212.94],Normals:PGe,Skills:HGe,Bursts:MGe,Extra:[],Effects:[FGe,BGe,DGe,kGe,RGe,OGe]}),GGe=[{Name:V.hits.HIT_Q_1,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.672}]},{Name:V.hits.HIT_Q_2,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.928}]}],VGe=k.Factory({Name:"NoelleQ",OnApply:new k.Builder().infusion.Set(d.stat.GEO_DMG,!0).Next().observe.Target(d.stat.DEF_FLAT,d.stat.DEF_PERCENT,d.stat.DEF_FLAT,d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.ATK_FLAT).Values(.4,.43,.46,.5,.53,.56,.6,.64,.68,.72,.76,.8,.85,.9,.95).Rank(i=>i.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map((i,e)=>i*e.GetCharacter().Get(d.stat.DEF)).Build()}),WGe=k.Factory({Name:"NoelleC2",OnApply:new k.Builder().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.15).Build()}),zGe=k.Factory({Name:"NoelleC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),KGe=k.Factory({Name:"NoelleC4",OnApply:new k.Builder().instance.Location("Skill").Options({Name:"HIT_C4",Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE,Stat:d.stat.ATK,Initial:4}]}).Build()}),UGe=k.Factory({Name:"NoelleC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),YGe=k.Factory({Name:"NoelleC6",OnApply(i,e,t){const n=i.GetCharacter(),s=i.FindEffect("NoelleQ");if(!s)throw new Error("Noelle Q effect not found");const r=t.Modifier(n.CreateModifier(d.stat.ATK_FLAT,0)),o=()=>{s.Enabled()?r.SetValue(.5*n.Get(d.stat.DEF)):r.SetValue(0)};return o(),t.Observer(n.CreateObserver(d.stat.DEF_FLAT,o)),t.Observer(n.CreateObserver(d.stat.DEF_PERCENT,o)),t.Observer(n.CreateObserver(d.stat.DEF_BASE,o)),t.Observer(s.CreateObserver(k.EffectEvent.ENABLE,o)),t.Observer(s.CreateObserver(k.EffectEvent.DISABLE,o)),()=>0}}),jGe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7912}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7336}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8626}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1343}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5074}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9047}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7459}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4914}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.8629}]}],qGe=[{Name:V.hits.HIT_E,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.DEF,Initial:1.2}]}],ure=Nt.Factory({Name:"Noelle",Stars:4,Element:d.stat.GEO_DMG,StatBonus:d.stat.DEF_PERCENT,BurstCost:60,Region:d.region.MONDSTADT,Weapon:d.weapon.CLAYMORE,HpBase:[1012.088,3621.2327],AtkBase:[16.0272,57.34638],DefBase:[66.95325,239.5575],Normals:jGe,Skills:qGe,Bursts:GGe,Extra:[],Effects:[VGe,WGe,zGe,KGe,UGe,YGe]}),$Ge=[{Name:V.hits.HIT_Q,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.8696}]}],XGe=k.Factory({Name:"NingguangC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),QGe=k.Factory({Name:"NingguangC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),ZGe=[{Name:V.hits.HIT_N1,Element:d.stat.GEO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:.28}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.GEO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:1.7408}]},{Name:"HIT_Jade",Element:d.stat.GEO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:.496}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.GEO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.GEO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.GEO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],JGe=k.Factory({Name:"NingguangA4",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:4}}).stat.Char(d.stat.GEO_DMG).Values(.12).Build()}),eVe=[{Name:V.hits.HIT_E,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.304}]}],dre=Nt.Factory({Name:"Ningguang",Stars:4,Element:d.stat.GEO_DMG,StatBonus:d.stat.GEO_DMG,Weapon:d.weapon.CATALYST,Region:d.region.LIYUE,BurstCost:40,HpBase:[820.6119,2936.1348],AtkBase:[17.808,63.7182],DefBase:[48.069,171.99],Normals:ZGe,Skills:eVe,Bursts:$Ge,Extra:[],Effects:[JGe,XGe,QGe]}),tVe=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:4.424}]}],iVe=k.Factory({Name:"MonaQ",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.ALL_DMG).Values(.4,.42,.44,.46,.48,.5,.52,.54,.56,.58,.6).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Build()}),nVe=k.Factory({Name:"MonaC1",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ELECTROCHARGE_DMG,d.stat.VAPORIZE_DMG).Values(.15).Next().stat.Char(d.stat.ALL_DMG).Instance("HIT_SWIRL_HYDRO").Values(.15).Build()}),sVe=k.Factory({Name:"MonaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),rVe=k.Factory({Name:"MonaC4",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(.15).Build()}),oVe=k.Factory({Name:"MonaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),aVe=k.Factory({Name:"MonaC6",MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.6).Stacks().Build()}),lVe=[{Name:V.hits.HIT_N1,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.376}]},{Name:V.hits.HIT_N2,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.36}]},{Name:V.hits.HIT_N3,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.448}]},{Name:V.hits.HIT_N4,Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5616}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:1.4972}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.HYDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],cVe=k.Factory({Name:"MonaA1",OnApply:new k.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Talent:d.stat.ELEMENTAL_SKILL_LEVEL,Stat:d.stat.ATK,Initial:1.328*.5}]}).Build()}),uVe=k.Factory({Name:"MonaA4",OnApply:new k.Builder().Where({target:{ascension:4}}).observe.Target(d.stat.ENERGY_RECHARGE).stat.Char(d.stat.HYDRO_DMG).Values(.2).Map((i,e)=>i*e.GetCharacter().Get(d.stat.ENERGY_RECHARGE)).Build()}),dVe=[{Name:V.hits.HIT_E_DOT,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.32}]},{Name:V.hits.HIT_E_EXPLOSION,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.328}]}],hre=Nt.Factory({Name:"Mona",Stars:5,Weapon:d.weapon.CATALYST,Element:d.stat.HYDRO_DMG,StatBonus:d.stat.ENERGY_RECHARGE,Region:d.region.MONDSTADT,BurstCost:60,HpBase:[810.322,3327.62],AtkBase:[22.344,91.74984],DefBase:[50.8555,208.845],Normals:lVe,Skills:dVe,Bursts:tVe,Extra:[],Effects:[iVe,cVe,uVe,nVe,sVe,rVe,oVe,aVe]}),hVe=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.4264}]}],fVe=k.Factory({Name:"KleeC1",OnApply:new k.Builder().instance.Location("Burst").Options({Name:"HIT_C1",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Talent:d.stat.ELEMENTAL_BURST_LEVEL,Stat:d.stat.ATK,Initial:.4264*1.2}]}).Build()}),gVe=k.Factory({Name:"KleeC2",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.DEFREDUCTION).Values(.23).Build()}),pVe=k.Factory({Name:"KleeC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),mVe=k.Factory({Name:"KleeC4",OnApply:new k.Builder().instance.Location("Burst").Options({Name:"HIT_C4",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE,Stat:d.stat.ATK,Initial:5.55}]}).Build()}),_Ve=k.Factory({Name:"KleeC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),vVe=k.Factory({Name:"KleeC6",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.PYRO_DMG).Build()}),bVe=[{Name:V.hits.HIT_N1,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:.7216}]},{Name:V.hits.HIT_N2,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:.624}]},{Name:V.hits.HIT_N3,Element:d.stat.PYRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:.8992}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:1.5736}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PYRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PYRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PYRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],CVe=k.Factory({Name:"KleeA1",OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.5).Build()}),EVe=[{Name:V.hits.HIT_E,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.952}]},{Name:V.hits.HIT_E_DOT,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.328}]}],fre=Nt.Factory({Name:"Klee",Stars:5,Weapon:d.weapon.CATALYST,Element:d.stat.PYRO_DMG,StatBonus:d.stat.PYRO_DMG,Region:d.region.MONDSTADT,BurstCost:60,HpBase:[800.7888,3288.4717],AtkBase:[24.206,99.39566],DefBase:[47.864,196.56],Normals:bVe,Skills:EVe,Bursts:hVe,Extra:[],Effects:[CVe,fVe,gVe,pVe,mVe,_Ve,vVe]}),SVe=[{Name:V.hits.HIT_Q,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.88}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.24}]},{Name:V.hits.HIT_Q_EXPLOSION,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.888}]}],yVe=k.Factory({Name:"KeqingC1",OnApply:new k.Builder().instance.Options({Name:"HIT_C1",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NONE,Scaling:[{Stat:d.stat.ATK,Initial:.5,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE}]}).Build()}),TVe=k.Factory({Name:"KeqingC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),wVe=k.Factory({Name:"KeqingC4",OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.25).Build()}),AVe=k.Factory({Name:"KeqingC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),xVe=k.Factory({Name:"KeqingC6",OnApply:new k.Builder().stat.Char(d.stat.ELECTRO_DMG).Values(.06).Build()}),LVe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4102}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4102}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5444}]},{Name:V.hits.HIT_N4_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3148}]},{Name:V.hits.HIT_N4_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.344}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6699}]},{Name:V.hits.HIT_CHARGED_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.768}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.86}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],IVe=k.Factory({Name:"KeqingA1",OnApply:new k.Builder().Where({target:{ascension:1}}).infusion.Set(d.stat.ELECTRO_DMG,!1).Build()}),NVe=k.Factory({Name:"KeqingA4",OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Char(d.stat.CRIT_RATE,d.stat.ENERGY_RECHARGE).Values(.15).Build()}),MVe=[{Name:V.hits.HIT_E,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.504}]},{Name:V.hits.HIT_E+"_SLASH",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.68}]},{Name:V.hits.HIT_E+"_SLASH_2",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.84}]}],gre=Nt.Factory({Name:"Keqing",Stars:5,Element:d.stat.ELECTRO_DMG,StatBonus:d.stat.CRIT_DMG,Weapon:d.weapon.SWORD,Region:d.region.LIYUE,BurstCost:40,HpBase:[1020.0524,4188.8867],AtkBase:[25.137,103.21857],DefBase:[62.2232,255.528],Normals:LVe,Skills:MVe,Bursts:SVe,Extra:[],Effects:[IVe,NVe,yVe,TVe,wVe,AVe,xVe]}),DVe=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.6646}]}],kVe=k.Factory({Name:"AyatoQ",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.11,.12,.13,.14,.15,.16,.17,.18,.19,.2).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Build()}),RVe=k.Factory({Name:"AyatoC1",OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Instance(/HIT_N\d_E/i).Values(.4).Build()}),OVe=k.Factory({Name:"AyatoC2",OnApply(i,e,t){const n=i.FindEffect("AyatoE");if(!n)throw new Error("Cannot find Ayato Skill");const s=t.Modifier(i.GetCharacter().CreateModifier(d.stat.HP_PERCENT,0)),r=function(){n.GetStacks()>=3?s.SetValue(.5):s.SetValue(0)};return r(),t.Observer(n.CreateObserver(k.EffectEvent.CHANGE_STACKS,r)),()=>0}}),PVe=k.Factory({Name:"AyatoC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),FVe=k.Factory({Name:"AyatoC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),BVe=k.Factory({Name:"AyatoC6",OnApply:new k.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE,Stat:d.stat.ATK,Initial:4.5}]}).Build()}),HVe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4496}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4716}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5861}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2945}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.756}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2953}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],GVe=[{Name:V.hits.HIT_N1+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5289}]},{Name:V.hits.HIT_N2+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5891}]},{Name:V.hits.HIT_N3+"_E",Element:d.stat.HYDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6493}]},{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0148}]}],VVe=k.Factory({Name:"AyatoE",MaxStacks:5,OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Mv(d.stat.HP,.56/100,/HIT_N\d_E/i).Map((i,e,t)=>i*t.GetStacks()*P.TalentScaling.PHYSICAL_1[e.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),pre=Nt.Factory({Name:"Ayato",Stars:5,Weapon:d.weapon.SWORD,Element:d.stat.HYDRO_DMG,StatBonus:d.stat.CRIT_DMG,Region:d.region.INAZUMA,BurstCost:80,HpBase:[1067.7184,4384.629],AtkBase:[23.275,95.57275],DefBase:[59.83,245.7],Normals:HVe,Skills:GVe,Bursts:DVe,Extra:[],Effects:[VVe,kVe,RVe,OVe,PVe,FVe,BVe]}),WVe=[{Name:V.hits.HIT_Q_DOT,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.123}]},{Name:V.hits.HIT_Q_EXPLOSION,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.6845}]}],zVe=k.Factory({Name:"AyakaC2",OnApply:new k.Builder().instance.Location("Burst").Options({Name:"HIT_C2",Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Talent:d.stat.ELEMENTAL_BURST_LEVEL,Stat:d.stat.ATK,Initial:1.123}]}).Build()}),KVe=k.Factory({Name:"AyakaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),UVe=k.Factory({Name:"AyakaC4",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.DEFREDUCTION).Values(.3).Build()}),YVe=k.Factory({Name:"AyakaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),jVe=k.Factory({Name:"AyakaC6",OnApply:new k.Builder().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(2.98).Build()}),qVe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4573}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4868}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6262}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2265}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7818}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5513}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],$Ve=k.Factory({Name:"AyakaSprint",OnApply:new k.Builder().infusion.Set(d.stat.CRYO_DMG,!1).Build()}),XVe=k.Factory({Name:"AyakaA1",OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.3).Build()}),QVe=k.Factory({Name:"AyakaA4",OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Char(d.stat.CRYO_DMG).Values(.18).Build()}),ZVe=[{Name:V.hits.HIT_E,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.392}]}],mre=Nt.Factory({Name:"Ayaka",Stars:5,Element:d.stat.CRYO_DMG,StatBonus:d.stat.CRIT_DMG,Weapon:d.weapon.SWORD,Region:d.region.INAZUMA,BurstCost:80,HpBase:[1000.986,4110.59],AtkBase:[26.6266,109.33523],DefBase:[61.0266,250.614],Normals:qVe,Skills:ZVe,Bursts:WVe,Extra:[],Effects:[$Ve,XVe,QVe,zVe,KVe,UVe,YVe,jVe]}),JVe=[{Name:V.hits.HIT_Q,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:4.248}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.784}]}],eWe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4833}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4558}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.6029}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.6588}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7921}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.6202}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],tWe=k.Factory({Name:"JeanC1",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.4).Build()}),iWe=k.Factory({Name:"JeanC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nWe=k.Factory({Name:"JeanC4",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.ANEMO_RES).Values(-.4).Build()}),sWe=k.Factory({Name:"JeanC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),rWe=[{Name:V.hits.HIT_E,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.92}]}],_re=Nt.Factory({Name:"Jean",Stars:5,Element:d.stat.ANEMO_DMG,StatBonus:d.stat.HEALING_BONUS,Weapon:d.weapon.SWORD,Region:d.region.MONDSTADT,BurstCost:80,HpBase:[1143.984,4697.817],AtkBase:[18.62,76.4582],DefBase:[59.83,245.7],Normals:eWe,Skills:rWe,Bursts:JVe,Extra:[],Effects:[tWe,iWe,nWe,sWe]}),oWe=[{Name:V.hits.HIT_Q,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.DEF,Initial:.9822}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.DEF,Initial:.613}]}];function J5(i){const e=i.GetParty();if(!e)return i.GetCharacter().Options.Element===d.stat.GEO_DMG?1:0;let t=0;for(const n of e.GetMembers())n.GetCharacter().Options.Element===d.stat.GEO_DMG&&t++;return t}var aWe=k.Factory({Name:"GorouC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),lWe=k.Factory({Name:"GorouC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),cWe=k.Factory({Name:"GorouC6",ApplyOther:!0,OnApply:new k.Builder().observe.Party(!0).stat.Char(d.stat.GEO_CRIT_DMG).Values(.1,.2,.4).Rank(i=>J5(i)).Build()}),uWe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3775}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3715}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4945}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.59}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.GEO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],dWe=k.Factory({Name:"GorouA1",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:1}}).stat.Char(d.stat.DEF_PERCENT).Values(.25).Build()}),hWe=k.Factory({Name:"GorouA4",OnApply:new k.Builder().Where({target:{ascension:4}}).mv.Mv(d.stat.DEF,1.56,"HIT_E").Next().Where({target:{ascension:4}}).mv.Mv(d.stat.DEF,.156,"HIT_Q","HIT_Q_DOT").Next().Build()}),fWe=[{Name:V.hits.HIT_E,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.072}]}],gWe=k.Factory({Name:"GorouE",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).observe.Party(!0).stat.Char(d.stat.DEF_FLAT).Values(...P.TalentScaling.ELEMENTAL_1).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)).Map((i,e)=>206.16*i*(J5(e)>=1?1:0)).Next().observe.Party(!0).stat.Char(d.stat.GEO_DMG).Values(.15).Map((i,e)=>i*(J5(e)>=3?1:0)).Build()}),vre=Nt.Factory({Name:"Gorou",Stars:4,Weapon:d.weapon.BOW,Element:d.stat.GEO_DMG,StatBonus:d.stat.GEO_DMG,BurstCost:80,Region:d.region.INAZUMA,HpBase:[802.3761,2870.8872],AtkBase:[15.31488,54.797653],DefBase:[54.36375,194.5125],Normals:uWe,Skills:fWe,Bursts:oWe,Extra:[],Effects:[gWe,dWe,hWe,aWe,lWe,cWe]}),pWe=[{Name:V.hits.HIT_Q,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.7027}]}],mWe=k.Factory({Name:"GanyuC1",ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.CRYO_RES).Values(-.15).Build()}),_We=k.Factory({Name:"GanyuC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),vWe=k.Factory({Name:"GanyuC4",ApplyOther:!0,MaxStacks:5,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.05).Stacks().Build()}),bWe=k.Factory({Name:"GanyuC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),CWe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3173}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.356}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4549}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4549}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4825}]},{Name:V.hits.HIT_N6,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.5762}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.CRYO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:"HIT_Frostflake",Element:d.stat.CRYO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.28}]},{Name:"HIT_FrostflakeBloom",Element:d.stat.CRYO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.176}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],EWe=k.Factory({Name:"GanyuA1",OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.CRIT_RATE).Instance(/Frostflake/i).Values(.2).Build()}),SWe=k.Factory({Name:"GanyuA4",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:4}}).stat.Char(d.stat.CRYO_DMG).Values(.2).Build()}),yWe=[{Name:V.hits.HIT_E,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.32}]}],bre=Nt.Factory({Name:"Ganyu",Stars:5,Weapon:d.weapon.BOW,Region:d.region.LIYUE,Element:d.stat.CRYO_DMG,StatBonus:d.stat.CRIT_DMG,BurstCost:60,HpBase:[762.656,3131.878],AtkBase:[26.068,107.04148],DefBase:[49.0606,201.474],Normals:CWe,Skills:yWe,Bursts:pWe,Extra:[],Effects:[EWe,SWe,mWe,_We,vWe,bWe]}),TWe=[{Name:V.hits.HIT_Q,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.456}]},{Name:"HIT_LightfallSword",Element:d.stat.PHYSICAL_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:3.6705}]}],wWe=k.Factory({Name:"EulaQ",MaxStacks:30,OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(d.stat.ATK,.7499,"HIT_LightfallSword").Map((i,e,t)=>{const n=Math.max(1,Math.min(15,e.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)));return t.GetStacks()*i*P.TalentScaling.PHYSICAL_1A[n-1]}).Build()}),AWe=k.Factory({Name:"EulaC1",OnApply:new k.Builder().stat.Char(d.stat.PHYSICAL_DMG).Values(.3).Build()}),xWe=k.Factory({Name:"EulaC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),LWe=k.Factory({Name:"EulaC4",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.25).Build()}),IWe=k.Factory({Name:"EulaC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),NWe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.8973}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.9355}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.568}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.1264}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7183}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.688}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.244}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7459}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.4914}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.8629}]}],MWe=k.Factory({Name:"EulaA1",OnApply:new k.Builder().Where({target:{ascension:1}}).instance.Location("Burst").Options({Name:"HIT_A1",Talent:d.stat.ELEMENTAL_BURST_DMG,Element:d.stat.PHYSICAL_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Talent:d.stat.ELEMENTAL_BURST_LEVEL,Stat:d.stat.ATK,Initial:3.6705*.5}]}).Build()}),DWe=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.464}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.456}]},{Name:"HIT_Icewhirl",Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.96}]}],kWe=k.Factory({Name:"EulaE_1",MaxStacks:2,OnApply:new k.Builder().stat.Char(d.stat.DEF_PERCENT).Values(.3).Stacks().Build()}),RWe=k.Factory({Name:"EulaE_2",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Enemy(d.stat.CRYO_RES,d.stat.PHYSICAL_RES).Values(-.16,-.17,-.18,-.19,-.2,-.21,-.22,-.23,-.24,-.25).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)).Build()}),Cre=Nt.Factory({Name:"Eula",Stars:5,Weapon:d.weapon.CLAYMORE,Element:d.stat.CRYO_DMG,StatBonus:d.stat.CRIT_DMG,BurstCost:80,Region:d.region.MONDSTADT,HpBase:[1029.5856,4228.035],AtkBase:[26.6266,109.33523],DefBase:[58.45391,240.0489],Normals:NWe,Skills:DWe,Bursts:TWe,Extra:[],Effects:[kWe,RWe,wWe,MWe,AWe,xWe,LWe,IWe]}),OWe=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.04}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.6}]},{Name:V.hits.HIT_Q_EXPLOSION,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.04}]}],PWe=k.Factory({Name:"DilucQ",OnApply:new k.Builder().infusion.Set(d.stat.PYRO_DMG,!1).Build()}),FWe=k.Factory({Name:"DilucC1",OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.15).Build()}),BWe=k.Factory({Name:"DilucC2",MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.1).Stacks().Build()}),HWe=k.Factory({Name:"DilucC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),GWe=k.Factory({Name:"DilucC4",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.4).Build()}),VWe=k.Factory({Name:"DilucC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),WWe=k.Factory({Name:"DilucC6",OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.3).Build()}),zWe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.897}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.8763}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.9881}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.3399}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.688}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.247}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8951}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.7897}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:2.2355}]}],KWe=k.Factory({Name:"DilucA4",OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Char(d.stat.PYRO_DMG).Values(.2).Build()}),UWe=[{Name:V.hits.HIT_E_1,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.944}]},{Name:V.hits.HIT_E_2,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.976}]},{Name:V.hits.HIT_E_3,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.288}]}],Ere=Nt.Factory({Name:"Diluc",Stars:5,Weapon:d.weapon.CLAYMORE,Element:d.stat.PYRO_DMG,StatBonus:d.stat.CRIT_RATE,BurstCost:40,Region:d.region.MONDSTADT,HpBase:[1010.5192,4149.7383],AtkBase:[26.068,107.04148],DefBase:[61.0266,250.614],Normals:zWe,Skills:UWe,Bursts:OWe,Extra:[],Effects:[PWe,KWe,FWe,BWe,HWe,GWe,VWe,WWe]}),YWe=[{Name:V.hits.HIT_N1+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7828}]},{Name:V.hits.HIT_N2+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8247}]},{Name:V.hits.HIT_N3+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0463}]},{Name:V.hits.HIT_N4+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5169}]},{Name:V.hits.HIT_N5+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.3084}]},{Name:V.hits.HIT_CHARGED+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0105}]},{Name:V.hits.HIT_PLUNGE+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],jWe=k.Factory({Name:"CynoQ",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(100).Build()}),qWe=k.Factory({Name:"CynoC2",MaxStacks:5,OnApply:new k.Builder().stat.Char(d.stat.ELECTRO_DMG).Values(.1).Stacks().Build()}),$We=k.Factory({Name:"CynoC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),XWe=k.Factory({Name:"CynoC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),QWe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4926}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4792}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2931}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7589}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2238}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],ZWe=k.Factory({Name:"CynoA1",OnApply:new k.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:d.stat.ATK,Initial:.35,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE}]}).Next().Where({target:{ascension:1}}).stat.Char(d.stat.ALL_DMG).Instance("HIT_E","HIT_E_2").Values(.35).Build()}),JWe=new k.Builder().Where({target:{ascension:4}}).observe.Target(d.stat.ELEMENTAL_MASTERY).stat.Char(d.stat.DMG_FLAT).Instance(/N\d_Q$/i).Values(1.5).Map((i,e)=>i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Build(),eze=k.Factory({Name:"CynoA4",OnApply(i,e,t){JWe(i,e,t);const n=i.GetCharacter(),s=i.FindEffect("CynoA1");let r;if(!s)throw new Error("Cannot find Cyno A1");function o(){if(!r){const a=i.FindInstance("HIT_A1");if(!a)return;r=t.Modifier(a.Subject.CreateModifier(d.stat.DMG_FLAT,0))}!r||(n.GetAscension()>=4?r.SetValue(2.5*n.Get(d.stat.ELEMENTAL_MASTERY)):r.SetValue(0))}o();for(const a of k.EffectEvent.Values())t.Observer(s.CreateObserver(a,o));return t.Observer(n.CreateObserver(d.stat.ELEMENTAL_MASTERY,o)),t.Observer(n.CreateObserver(d.stat.LEVEL,o)),t.Observer(n.CreateObserver(d.stat.ASCENSION,o)),()=>0}}),tze=[{Name:V.hits.HIT_E,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.304}]},{Name:V.hits.HIT_E_2,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.568}]}],Sre=Nt.Factory({Name:"Cyno",Stars:5,Weapon:d.weapon.POLEARM,Element:d.stat.ELECTRO_DMG,StatBonus:d.stat.CRIT_DMG,BurstCost:80,Region:d.region.SUMERU,HpBase:[972.3864,3993.1443],AtkBase:[24.7646,101.68941],DefBase:[66.88994,274.6926],Normals:QWe,Skills:tze,Bursts:YWe,Extra:[],Effects:[jWe,ZWe,eze,qWe,$We,XWe]}),ize=[{Name:V.hits.HIT_Q,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.0182}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.4325}]}],nze=k.Factory({Name:"ColleiC1",OnApply:new k.Builder().stat.Char(d.stat.ENERGY_RECHARGE).Values(.2).Build()}),sze=k.Factory({Name:"ColleiC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),rze=k.Factory({Name:"ColleiC4",ApplyOther:!0,ApplySelf:!1,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(60).Build()}),oze=k.Factory({Name:"ColleiC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),aze=k.Factory({Name:"ColleiC6",OnApply:new k.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE,Initial:2}]}).Build()}),lze=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.436}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4266}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5409}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6803}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.DENDRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],cze=k.Factory({Name:"ColleiA1",OnApply:new k.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.NONE,Talent:d.stat.NONE,Initial:.4}]}).Build()}),uze=[{Name:V.hits.HIT_E,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.512}]}],yre=Nt.Factory({Name:"Collei",Stars:4,Weapon:d.weapon.BOW,Element:d.stat.DENDRO_DMG,StatBonus:d.stat.ATK_PERCENT,BurstCost:60,Region:d.region.SUMERU,HpBase:[820.6119,2936.1348],AtkBase:[16.73952,59.895107],DefBase:[50.358,180.18],Normals:lze,Skills:uze,Bursts:ize,Extra:[],Effects:[cze,nze,sze,rze,oze,aze]}),dze=[{Name:V.hits.HIT_Q,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.424}]}],hze=k.Factory({Name:"ChongyunC1",OnApply:new k.Builder().instance.Basic({Name:"HIT_C1",Element:d.stat.CRYO_DMG,Stat:d.stat.ATK,Values:[.5]}).Build()}),fze=k.Factory({Name:"ChongyunC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),gze=k.Factory({Name:"ChongyunC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),pze=k.Factory({Name:"ChongyunC6",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.15).Build()}),mze=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6312}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8032}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0122}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5629}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.0178}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7459}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4914}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.8629}]}],_ze=k.Factory({Name:"ChongyunA4",ApplyOther:!0,OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Enemy(d.stat.CRYO_RES).Values(-.1).Build()}),vze=[{Name:V.hits.HIT_E,Element:d.stat.CRYO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.7204}]}],bze=k.Factory({Name:"ChongyunE",ApplyOther:!0,OnApply:new k.Builder().infusion.Set(d.stat.CRYO_DMG,!1).Build()}),Tre=Nt.Factory({Name:"Chongyun",Stars:4,Element:d.stat.CRYO_DMG,Weapon:d.weapon.CLAYMORE,StatBonus:d.stat.ATK_PERCENT,BurstCost:40,Region:d.region.LIYUE,HpBase:[920.90894,3294.9956],AtkBase:[18.6984,66.90411],DefBase:[54.36375,194.5125],Normals:mze,Skills:vze,Bursts:dze,Extra:[],Effects:[bze,_ze,hze,fze,gze,pze]}),Cze=k.Factory({Name:"IttoQ",OnApply:new k.Builder().observe.Target(d.stat.DEF_FLAT,d.stat.DEF_BASE,d.stat.DEF_PERCENT,d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.ATK_FLAT).Values(...P.TalentScaling.ELEMENTAL_1).Rank(i=>i.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map((i,e)=>.576*i*e.GetCharacter().Get(d.stat.DEF)).Next().infusion.Set(d.stat.GEO_DMG,!0).Build()}),Eze=k.Factory({Name:"IttoC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Sze=k.Factory({Name:"IttoC4",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.DEF_PERCENT,d.stat.ATK_PERCENT).Values(.2).Build()}),yze=k.Factory({Name:"IttoC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Tze=k.Factory({Name:"IttoC6",OnApply:new k.Builder().stat.Char(d.stat.CHARGED_ATTACK_CRIT_DMG).Values(.7).Build()}),wze=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7923}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7637}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9164}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1722}]},{Name:"HIT_KesagiriSlash",Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9116}]},{Name:"HIT_KesagiriFinal",Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.9092}]},{Name:"HIT_SaichimonjiSlash",Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9047}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8183}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.6363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:2.0439}]}],Aze=k.Factory({Name:"IttoA4",OnApply:new k.Builder().Where({target:{ascension:4}}).mv.Mv(d.stat.DEF,.35,/Kesagiri/i).Build()}),xze=[{Name:V.hits.HIT_E,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.072}]}],wre=Nt.Factory({Name:"Itto",Stars:5,Weapon:d.weapon.CLAYMORE,Element:d.stat.GEO_DMG,StatBonus:d.stat.CRIT_RATE,Region:d.region.INAZUMA,BurstCost:70,HpBase:[1000.986,4110.59],AtkBase:[17.689,72.63529],DefBase:[74.66784,306.6336],Normals:wze,Skills:xze,Bursts:[],Extra:[],Effects:[Cze,Aze,Eze,Sze,yze,Tze]}),Lze=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.2808}]}],Ize=k.Factory({Name:"AmberC1",OnApply:new k.Builder().instance.Location("Normal").Options({Name:"HIT_C1",Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Talent:d.stat.NORMAL_ATTACK_LEVEL,Stat:d.stat.ATK,Initial:1.24*.2}]}).Build()}),Nze=k.Factory({Name:"AmberC2",OnApply:new k.Builder().mv.Mv(d.stat.ATK,2,/hit_e/i).Build()}),Mze=k.Factory({Name:"AmberC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Dze=k.Factory({Name:"AmberC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),kze=k.Factory({Name:"AmberC6",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.15).Build()}),Rze=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3612}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3612}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4644}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.473}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5934}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.PYRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],Oze=k.Factory({Name:"AmberA1",OnApply:new k.Builder().Where({target:{ascension:1}}).stat.Char(d.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.1).Build()}),Pze=k.Factory({Name:"AmberA4",OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Char(d.stat.ATK_PERCENT).Values(.15).Build()}),Fze=[{Name:V.hits.HIT_E,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.232}]}],Are=Nt.Factory({Name:"Amber",Stars:4,Weapon:d.weapon.BOW,Element:d.stat.PYRO_DMG,StatBonus:d.stat.ATK_PERCENT,BurstCost:40,Region:d.region.MONDSTADT,HpBase:[793.2582,2838.2634],AtkBase:[18.6984,66.90411],DefBase:[50.358,180.18],Normals:Rze,Skills:Fze,Bursts:Lze,Extra:[],Effects:[Oze,Pze,Ize,Nze,Mze,Dze,kze]}),Bze=k.Factory({Name:"AlhaithamA4",OnApply:new k.Builder().Where({target:{ascension:4}}).observe.Target(d.stat.ELEMENTAL_MASTERY).stat.Char(d.stat.ELEMENTAL_SKILL_DMG,d.stat.ELEMENTAL_BURST_DMG).Values(.1/100).Map((i,e)=>Math.min(1,i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY))).Build()}),Hze=[{Name:V.hits.HIT_Q,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.216},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ELEMENTAL_MASTERY,Initial:.9728}]}],Gze=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4953}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5075}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3418}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6677}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8385}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5526}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],Vze=[{Name:V.hits.HIT_E,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.936},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ELEMENTAL_MASTERY,Initial:1.5488}]},{Name:V.hits.HIT_E_DOT+"_1",Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.672},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ELEMENTAL_MASTERY,Initial:1.344}]},{Name:V.hits.HIT_E_DOT+"_2",Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.672*2},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ELEMENTAL_MASTERY,Initial:1.344*2}]},{Name:V.hits.HIT_E_DOT+"_3",Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.672*3},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ELEMENTAL_MASTERY,Initial:1.344*3}]}],Wze=k.Factory({Name:"AlhaithamE",OnApply:new k.Builder().infusion.Set(d.stat.DENDRO_DMG,!0).Build()}),zze=k.Factory({Name:"AlhaithamC2",MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(50).Stacks().Build()}),Kze=k.Factory({Name:"AlhaithamC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Uze=k.Factory({Name:"AlhaithamC4",MaxStacks:3,ApplyOther:!0,OnApply:new k.Builder().Where({target:{isOwner:!0}}).stat.Char(d.stat.DENDRO_DMG).Values(.1).Stacks().Next().Where({target:{isOwner:!1}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(30).Stacks().Build()}),Yze=k.Factory({Name:"AlhaithamC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),jze=k.Factory({Name:"AlhaithamC6",OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(.1).Next().stat.Char(d.stat.CRIT_DMG).Values(.7).Build()}),xre=Nt.Factory({Name:"Alhaitham",Stars:5,Weapon:d.weapon.SWORD,Element:d.stat.DENDRO_DMG,StatBonus:d.stat.DENDRO_DMG,Region:d.region.SUMERU,BurstCost:70,AtkBase:[24.3922,100.16024],DefBase:[60.84711,249.8769],HpBase:[1039.1188,4267.1836],Normals:Gze,Skills:Vze,Bursts:Hze,Extra:[],Effects:[Wze,Bze,zze,Kze,Uze,Yze,jze]}),qze=[{Name:V.hits.HIT_Q,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:3.672}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.72}]}],$ze=k.Factory({Name:"AlbedoC2",MaxStacks:4,OnApply:new k.Builder().mv.Mv(d.stat.DEF,.3,/HIT_Q/i).Map((i,e,t)=>i*t.GetStacks()).Build()}),Xze=k.Factory({Name:"AlbedoC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Qze=k.Factory({Name:"AlbedoC4",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.PLUNGE_ATTACK_DMG).Values(.3).Build()}),Zze=k.Factory({Name:"AlbedoC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Jze=k.Factory({Name:"AlbedoC6",ApplyOther:!0,OnApply:new k.Builder().Where({target:{shielded:!0}}).stat.Char(d.stat.ALL_DMG).Values(.17).Build()}),eKe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3674}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3674}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4745}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4975}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.6207}]},{Name:V.hits.HIT_CHARGED_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.473}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.602}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],tKe=k.Factory({Name:"AlbedoA1",OnApply(i,e,t){const n=i.GetCharacter(),s=i.FindSkill(V.hits.HIT_E_DOT);if(!s)throw new Error("Cannot find Albedo Skill");const r=t.Modifier(s.Subject.CreateModifier(d.stat.ALL_DMG,0));function o(){n.GetAscension()>=1?r.SetValue(.25):r.SetValue(0)}return o(),t.Observer(n.CreateObserver(d.stat.LEVEL,o)),t.Observer(n.CreateObserver(d.stat.ASCENSION,o)),()=>0}}),iKe=k.Factory({Name:"AlbedoA4",ApplyOther:!0,OnApply:new k.Builder().Where({owner:{ascension:4}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(125).Build()}),nKe=[{Name:V.hits.HIT_E,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.304}]},{Name:V.hits.HIT_E_DOT,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.DEF,Initial:1.336}]}],Lre=Nt.Factory({Name:"Albedo",Element:d.stat.GEO_DMG,Stars:5,Weapon:d.weapon.SWORD,StatBonus:d.stat.GEO_DMG,Region:d.region.MONDSTADT,AtkBase:[19.551,80.28111],DefBase:[68.2062,280.098],HpBase:[1029.5856,4228.035],BurstCost:40,Normals:eKe,Skills:nKe,Bursts:qze,Extra:[],Effects:[tKe,iKe,$ze,Xze,Qze,Zze,Jze]}),sKe=[{Name:V.hits.HIT_Q,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.216}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.96}]}],rKe=k.Factory({Name:"BeidouC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),oKe=k.Factory({Name:"BeidouC4",ApplySelf:!0,OnApply:new k.Builder().instance.Options({Name:"HIT_C4",Element:d.stat.ELECTRO_DMG,Talent:d.stat.NONE,Scaling:[{Stat:d.stat.ATK,Initial:.2,Talent:d.stat.NONE,Scaling:P.TalentScaling.NONE}]}).Build()}),aKe=k.Factory({Name:"BeidouC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),lKe=k.Factory({Name:"BeidouC6",ApplySelf:!0,ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.ELECTRO_RES).Values(-.15).Build()}),cKe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7112}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7086}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.8832}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.8652}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.1214}]},{Name:V.hits.HIT_CHARGED_SPIN,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.5624}]},{Name:V.hits.HIT_CHARGED_FINAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.0182}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7459}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4914}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.8629}]}],uKe=k.Factory({Name:"BeidouA4",OnApply:new k.Builder().Where({target:{ascension:4}}).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.15).Build()}),dKe=[{Name:V.hits.HIT_E,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.216}]}],hKe=k.Factory({Name:"BeidouE",MaxStacks:2,OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Mv(d.stat.ATK,.96,V.hits.HIT_E).Map((i,e,t)=>{const n=t.GetStacks(),s=e.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)-1,r=P.TalentScaling.ELEMENTAL_1[s];return i*r*n}).Build()}),Ire=Nt.Factory({Name:"Beidou",Stars:4,Weapon:d.weapon.CLAYMORE,Element:d.stat.ELECTRO_DMG,Region:d.region.LIYUE,StatBonus:d.stat.ELECTRO_DMG,AtkBase:[18.87648,67.54129],DefBase:[54.36375,194.5125],HpBase:[1094.1492,3914.8462],BurstCost:80,Normals:cKe,Skills:dKe,Bursts:sKe,Extra:[],Effects:[hKe,uKe,rKe,oKe,aKe,lKe]}),fKe=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.5427}]}],gKe=k.Factory({Name:"XingqiuC2",ApplySelf:!0,ApplyOther:!0,OnApply:new k.Builder().stat.Enemy(d.stat.HYDRO_RES).Values(-.15).Build()}),pKe=k.Factory({Name:"XingqiuC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),mKe=k.Factory({Name:"XingqiuC4",ApplySelf:!0,OnApply:new k.Builder().mv.Multiplier(1.5,/^HIT_E_/i).Build()}),_Ke=k.Factory({Name:"XingqiuC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),vKe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4661}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4764}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.2855}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.5599}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3586}]},{Name:V.hits.HIT_CHARGED_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.473}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.5616}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],bKe=k.Factory({Name:"XingqiuA4",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.HYDRO_DMG).Where({owner:{ascension:4}}).Values(.2).Build()}),CKe=[{Name:V.hits.HIT_E_1,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.68}]},{Name:V.hits.HIT_E_2,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.912}]}],Nre=Nt.Factory({Name:"Xingqiu",Stars:4,Element:d.stat.HYDRO_DMG,Weapon:d.weapon.SWORD,Region:d.region.LIYUE,HpBase:[857.08356,3066.6296],AtkBase:[16.9176,60.53229],DefBase:[63.51975,227.2725],StatBonus:d.stat.ATK_PERCENT,Normals:vKe,Skills:CKe,Bursts:fKe,Extra:[],Effects:[bKe,gKe,pKe,mKe,_Ke],BurstCost:80}),EKe=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_2,Stat:d.stat.ATK,Initial:3.0327}]}],SKe=k.Factory({Name:"HuTaoQ",OnApply:new k.Builder().mv.Where({target:{hp:{leq:.5}}}).Multiplier(3.7909/3.0327,"HIT_Q").Build()}),yKe=k.Factory({Name:"HuTaoC2",ApplySelf:!0,OnApply:new k.Builder().mv.Mv(d.stat.HP,.1,"HIT_E").Build()}),TKe=k.Factory({Name:"HuTaoC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wKe=k.Factory({Name:"HuTaoC4",ApplySelf:!1,ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(.12).Build()}),AKe=k.Factory({Name:"HuTaoC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),xKe=k.Factory({Name:"HuTaoC6",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(1).Build()}),LKe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.4689}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.4825}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.6105}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.6564}]},{Name:V.hits.HIT_N5_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.3327}]},{Name:V.hits.HIT_N5_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.352}]},{Name:V.hits.HIT_N6,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.8596}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:1.3596}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:.6542}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:1.3081}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_2,Stat:d.stat.ATK,Initial:1.6339}]}],IKe=k.Factory({Name:"HuTaoA1",ApplySelf:!1,ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Where({owner:{ascension:1}}).Values(.12).Build()}),NKe=k.Factory({Name:"HuTaoA4",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.PYRO_DMG).Where({owner:{ascension:4,hp:{leq:.5}}}).Values(.33).Build()}),MKe=[{Name:V.hits.HIT_E,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.64}]}],DKe=k.Factory({Name:"HuTaoE",ApplySelf:!0,OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP,d.stat.ATK_BASE,d.stat.HP_BASE,d.stat.HP_FLAT,d.stat.HP_PERCENT).stat.Char(d.stat.ATK_FLAT).Values(...P.TalentScaling.ELEMENTAL_2).Rank(i=>i.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)).Map((i,e)=>{const t=e.GetCharacter(),n=.0384*i*t.Get(d.stat.HP),s=t.Get(d.stat.ATK_BASE)*4;return Math.max(0,Math.min(s,n))}).Next().infusion.Set(d.stat.PYRO_DMG,!0).Build()}),Mre=Nt.Factory({Name:"HuTao",Element:d.stat.PYRO_DMG,Region:d.region.LIYUE,Stars:5,Weapon:d.weapon.POLEARM,HpBase:[1210.7164,4971.856],AtkBase:[8.2859,34.0239],DefBase:[68.2062,280.098],StatBonus:d.stat.CRIT_DMG,Normals:LKe,Skills:MKe,Bursts:EKe,Extra:[],Effects:[DKe,SKe,IKe,NKe,yKe,TKe,wKe,AKe,xKe],BurstCost:60}),kKe=[{Name:V.hits.HIT_Q,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0731}]},{Name:V.hits.HIT_Q+"_THROW",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.0487}]}],RKe=k.Factory({Name:"YelanC2",OnApply:new k.Builder().instance.Options({Name:"HIT_C2",Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.14,Talent:d.stat.ELEMENTAL_BURST_LEVEL}]}).Build()}),OKe=k.Factory({Name:"YelanC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),PKe=k.Factory({Name:"YelanC4",MaxStacks:4,ApplySelf:!0,ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.1).Stacks().Build()}),FKe=k.Factory({Name:"YelanC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),BKe=k.Factory({Name:"YelanC6",OnApply:new k.Builder().instance.Options({Name:"HIT_C6",Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:1.56*.1158,Talent:d.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),HKe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4068}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3904}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.516}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3251}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:"HIT_BREAKTHROUGH_BARB",Element:d.stat.HYDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.1158}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],GKe=k.Factory({Name:"YelanA1",ApplySelf:!0,OnApply:new k.Builder().observe.Party(!0).stat.Char(d.stat.HP_PERCENT).Where({owner:{ascension:1}}).Values(.06,.12,.18,.3).Rank(i=>{const e=i.GetParty();if(!e)return 1;const t=e.GetMembers(),n=new Map;for(const r of t)n.set(r.GetCharacter().Options.Element,!0);let s=0;for(const r of n.values())r&&s++;return s}).Build()}),VKe=k.Factory({Name:"YelanA4",ApplySelf:!0,ApplyOther:!0,MaxTargets:1,MaxStacks:15,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Where({owner:{ascension:4}}).Values(.01).Next().stat.Char(d.stat.ALL_DMG).Where({owner:{ascension:4}}).Values(.035).Stacks().Map(i=>Math.min(.5,i)).Build()}),WKe=[{Name:V.hits.HIT_E,Element:d.stat.HYDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.HP,Initial:.2261}]}],Dre=Nt.Factory({Name:"Yelan",Stars:5,Element:d.stat.HYDRO_DMG,Weapon:d.weapon.BOW,Region:d.region.LIYUE,BurstCost:70,HpBase:[1124.9176,4619.52],AtkBase:[18.9924,77.987366],DefBase:[42.65879,175.1841],StatBonus:d.stat.CRIT_RATE,Normals:HKe,Skills:WKe,Bursts:kKe,Extra:[],Effects:[GKe,VKe,RKe,OKe,PKe,FKe,BKe]}),zKe=[{Name:V.hits.HIT_Q,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:[1,1.108,1.216,1.351,1.473,1.595,1.757,1.919,2.081,2.243,2.405,2.568,2.703,2.838,2.973],Stat:d.stat.ATK,Initial:4.0108}]}],KKe=k.Factory({Name:"ZhongliC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),UKe=k.Factory({Name:"ZhongliC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),YKe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3077}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3115}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3858}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4294}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.1075}]},{Name:V.hits.HIT_N6,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.545}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:1.1103}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],jKe=k.Factory({Name:"ZhongliA4",ApplySelf:!0,OnApply:new k.Builder().Where({target:{ascension:4}}).mv.Mv(d.stat.HP,.0139,/HIT_(N(\d)|CHARGED|PLUNGE)/).Next().Where({target:{ascension:4}}).mv.Mv(d.stat.HP,.019,/HIT_E/).Next().Where({target:{ascension:4}}).mv.Mv(d.stat.HP,.33,/HIT_Q/).Build()}),qKe=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.16}]},{Name:V.hits.HIT_E+"_RESONANCE",Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.32}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.GEO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.8}]}],$Ke=k.Factory({Name:"ZhongliE",ApplySelf:!0,ApplyOther:!0,OnApply:(i,e,t)=>{const n=d.Elements;for(const s of n){const r=d.DmgToRes(s);t.Modifier(i.GetCharacter().GetEnemy().Subject.CreateModifier(r,-.2))}return()=>0}}),kre=Nt.Factory({Name:"Zhongli",Stars:5,Element:d.stat.GEO_DMG,Weapon:d.weapon.POLEARM,Region:d.region.LIYUE,HpBase:[1143.984,4697.817],AtkBase:[19.551,80.2811],DefBase:[57.4368,235.872],StatBonus:d.stat.GEO_DMG,BurstCost:40,Normals:YKe,Skills:qKe,Bursts:zKe,Extra:[],Effects:[$Ke,jKe,KKe,UKe]}),XKe=[{Name:V.hits.HIT_Q,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:4.008}]},{Name:V.hits.HIT_N1+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.4447}]},{Name:V.hits.HIT_N2+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.4396}]},{Name:V.hits.HIT_N3+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.5382}]},{Name:V.hits.HIT_N4+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.3089}]},{Name:V.hits.HIT_N5+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.7394}]},{Name:V.hits.HIT_CHARGED_1+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.616}]},{Name:V.hits.HIT_CHARGED_2+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.7436}]},{Name:V.hits.HIT_PLUNGE+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH+"_Q",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],QKe=k.Factory({Name:"RaidenQ",MaxStacks:60,OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(d.stat.ATK,.0389,V.hits.HIT_Q).Map((i,e,t)=>t.GetStacks()*i*P.TalentScaling.ELEMENTAL_1[Math.max(0,Math.min(P.TalentScaling.ELEMENTAL_1.length-1,e.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)-1))]).Next().observe.Target(d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(d.stat.ATK,.0073,/_.+_Q$/).Map((i,e,t)=>t.GetStacks()*i*P.TalentScaling.ELEMENTAL_1[Math.max(0,Math.min(P.TalentScaling.ELEMENTAL_1.length-1,e.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)-1))]).Build()}),ZKe=k.Factory({Name:"RaidenC2",OnApply:new k.Builder().stat.Char(d.stat.DEFIGNORED).Values(.6).Build()}),JKe=k.Factory({Name:"RaidenC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),eUe=k.Factory({Name:"RaidenC4",ApplyOther:!0,ApplySelf:!1,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.3).Build()}),tUe=k.Factory({Name:"RaidenC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),iUe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3965}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3973}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4988}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.2898}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6545}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.9959}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],nUe=k.Factory({Name:"RaidenA4",OnApply:new k.Builder().Where({target:{ascension:4}}).observe.Target(d.stat.ENERGY_RECHARGE).stat.Char(d.stat.ELECTRO_DMG).Values(.4).Map((i,e)=>i*Math.max(0,e.GetCharacter().Get(d.stat.ENERGY_RECHARGE)-1)).Build()}),sUe=[{Name:V.hits.HIT_E,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.172}]},{Name:V.hits.HIT_E+"_COORDINATED",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.42}]}],rUe=k.Factory({Name:"RaidenE",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.0022,.0023,.0024,.0025,.0026,.0027,.0028,.0029,.003).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)).Map((i,e)=>i*e.GetCharacter().Options.BurstCost).Build()}),Rre=Nt.Factory({Name:"Raiden",Stars:5,Weapon:d.weapon.POLEARM,Region:d.region.INAZUMA,Element:d.stat.ELECTRO_DMG,StatBonus:d.stat.ENERGY_RECHARGE,BurstCost:90,AtkBase:[26.2542,107.80606],DefBase:[61.44541,252.3339],HpBase:[1004.79926,4126.249],Normals:iUe,Skills:sUe,Bursts:XKe,Extra:[],Effects:[rUe,QKe,nUe,ZKe,JKe,eUe,tUe]}),oUe=[{Name:V.hits.HIT_Q,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.328}]}],aUe=k.Factory({Name:"BennettQ",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ATK_BASE,d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(d.stat.ATK_FLAT).Values(...P.TalentScaling.ELEMENTAL_1).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)).Map((i,e,t)=>{const n=t.Owner.FindEffect("BennettC1");return(.56*i+(n&&n.Enabled()?.2:0))*t.Owner.GetCharacter().Get(d.stat.ATK_BASE)}).Build()}),lUe=k.Factory({Name:"BennettC1",OnApply(i,e,t){const n=i.FindEffect("BennettQ");if(!n)throw new Error("Bennett Burst effect not found");const s=n;function r(){s.Enabled()&&(s.Disable(),s.Enable())}return r(),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_TARGET,r)),()=>0}}),cUe=k.Factory({Name:"BennettC2",OnApply:new k.Builder().Where({target:{hp:{leq:.7}}}).stat.Char(d.stat.ENERGY_RECHARGE).Values(.3).Build()}),uUe=k.Factory({Name:"BennettC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),dUe=k.Factory({Name:"BennettC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),hUe=k.Factory({Name:"BennettC6",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.PYRO_DMG).Values(.15).Next().Where({target:{weapon:[d.weapon.CLAYMORE,d.weapon.SWORD,d.weapon.POLEARM]}}).infusion.Set(d.stat.PYRO_DMG,!1).Build()}),fUe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4455}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4274}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5461}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5968}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.719}]},{Name:V.hits.HIT_CHARGED_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.559}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6072}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.6393}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.2784}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.5968}]}],gUe=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.376}]},{Name:V.hits.HIT_E_1_1,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.84}]},{Name:V.hits.HIT_E_1_2,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.92}]},{Name:V.hits.HIT_E_2_1,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.88}]},{Name:V.hits.HIT_E_2_2,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.96}]},{Name:V.hits.HIT_E_EXPLOSION,Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.32}]},{Name:"HIT_C4",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.92*1.35}]}],Ore=Nt.Factory({Name:"Bennett",Stars:4,Weapon:d.weapon.SWORD,Element:d.stat.PYRO_DMG,Region:d.region.MONDSTADT,StatBonus:d.stat.ENERGY_RECHARGE,BurstCost:60,HpBase:[1039.4418,3719.104],AtkBase:[16.0272,57.34638],DefBase:[64.66425,231.3675],Normals:fUe,Skills:gUe,Bursts:oUe,Effects:[aUe,lUe,cUe,uUe,dUe,hUe],Extra:[]}),pUe=[{Name:V.hits.HIT_Q,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.08}]}],mUe=k.Factory({Name:"FischlC1",OnApply:new k.Builder().instance.Options({Name:"HIT_C1",Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Initial:.22,Talent:d.stat.NONE}]}).Build()}),_Ue=k.Factory({Name:"FischlC2",OnApply:new k.Builder().mv.Mv(d.stat.ATK,2,/HIT_E$/).Build()}),vUe=k.Factory({Name:"FischlC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),bUe=k.Factory({Name:"FischlC4",OnApply:new k.Builder().instance.Options({Name:"HIT_C4",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Initial:2.22,Talent:d.stat.NONE}]}).Build()}),CUe=k.Factory({Name:"FischlC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),EUe=k.Factory({Name:"FischlC6",OnApply:new k.Builder().instance.Options({Name:"HIT_C6",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Initial:.3,Talent:d.stat.NONE}]}).Build()}),SUe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4412}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4678}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5814}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5771}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.7207}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.ELECTRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],yUe=k.Factory({Name:"FischlA1",OnApply:new k.Builder().Where({target:{ascension:1}}).instance.Options({Name:"HIT_A1",Element:d.stat.ELECTRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24*1.527,Talent:d.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),TUe=k.Factory({Name:"FischlA4",OnApply:new k.Builder().Where({target:{ascension:4}}).instance.Options({Name:"HIT_A4",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Initial:.8,Talent:d.stat.NONE}]}).Build()}),wUe=[{Name:V.hits.HIT_E,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.1544}]},{Name:"HIT_OZ",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.888}]}],Pre=Nt.Factory({Name:"Fischl",Stars:4,Element:d.stat.ELECTRO_DMG,Region:d.region.MONDSTADT,Weapon:d.weapon.BOW,StatBonus:d.stat.ATK_PERCENT,AtkBase:[20.4792,73.27593],HpBase:[770.4634,2756.704],DefBase:[49.78575,178.1325],BurstCost:60,Normals:SUe,Skills:wUe,Bursts:pUe,Extra:[],Effects:[yUe,TUe,mUe,_Ue,vUe,bUe,CUe,EUe]}),AUe=[{Name:V.hits.HIT_Q,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.624}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.2}]}],xUe=k.Factory({Name:"KazuhaQ",MaxAuras:1,ValidAuras:d.Swirlable,OnApply(i,e,t){LUe(i,e,t);function n(){const s=i.FindBurst(V.hits.HIT_Q+"_ADDITIONAL");if(!s)return;const r=e.GetAuras()[0];!r||(s.Options.Element=d.AuraToDmg(r))}return n(),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_AURAS,n)),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,n)),()=>0}}),LUe=new k.Builder().instance.Location("Burst").Options({Name:V.hits.HIT_Q+"_ADDITIONAL",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.36,Talent:d.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),IUe=k.Factory({Name:"KazuhaC2",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(200).Build()}),NUe=k.Factory({Name:"KazuhaC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),MUe=k.Factory({Name:"KazuhaC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),DUe=k.Factory({Name:"KazuhaC6",OnApply:new k.Builder().infusion.Set(d.stat.ANEMO_DMG,!1).Build()}),kUe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4498}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.4524}]},{Name:V.hits.HIT_N3_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.258}]},{Name:V.hits.HIT_N3_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.3096}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.6072}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.2537}]},{Name:V.hits.HIT_CHARGED_1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.43}]},{Name:V.hits.HIT_CHARGED_2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1A,Stat:d.stat.ATK,Initial:.7465}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8183}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.6363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:2.0439}]}],RUe=k.Factory({Name:"KazuhaA1",MaxAuras:1,ValidAuras:d.Swirlable,OnApply(i,e,t){OUe(i,e,t);function n(){const s=i.FindNormal("HIT_A1");if(!s)return;const r=e.GetAuras()[0];!r||(s.Options.Element=d.AuraToDmg(r))}return n(),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_AURAS,n)),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,n)),()=>0}}),OUe=new k.Builder().Where({target:{ascension:1}}).instance.Location("Normal").Options({Name:"HIT_A1",Element:d.stat.PYRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Initial:2,Talent:d.stat.NONE}]}).Build(),PUe=k.Factory({Name:"KazuhaA4",ApplyOther:!0,MaxAuras:1/0,ValidAuras:d.Swirlable,OnApply(i,e,t){const n=e.Owner.GetCharacter(),s=i.GetCharacter(),r=d.Elements.filter(a=>a!==d.stat.PHYSICAL_DMG).map(a=>t.Modifier(s.CreateModifier(a,0)));function o(){const a=e.GetAuras().map(l=>d.AuraToDmg(l));for(const l of r)a.includes(l.GetProp())&&n.GetAscension()>=4?l.SetValue(.04/100*n.Get(d.stat.ELEMENTAL_MASTERY)):l.SetValue(0)}return o(),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_AURAS,o)),t.Observer(n.CreateObserver(d.stat.ELEMENTAL_MASTERY,o)),t.Observer(n.CreateObserver(d.stat.LEVEL,o)),t.Observer(n.CreateObserver(d.stat.ASCENSION,o)),()=>0}}),FUe=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.92}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.ANEMO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:2.608}]}],BUe=k.Factory({Name:"KazuhaE",OnApply:new k.Builder().instance.Location("Normal").Options({Name:V.hits.HIT_PLUNGE+"_E",Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.8183,Talent:d.stat.NORMAL_ATTACK_LEVEL}]}).Next().instance.Location("Normal").Options({Name:V.hits.HIT_PLUNGE_LOW+"_E",Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.6363,Talent:d.stat.NORMAL_ATTACK_LEVEL}]}).Next().instance.Location("Normal").Options({Name:V.hits.HIT_PLUNGE_HIGH+"_E",Element:d.stat.ANEMO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:2.0439,Talent:d.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),Fre=Nt.Factory({Name:"Kazuha",Stars:5,Weapon:d.weapon.SWORD,Region:d.region.INAZUMA,Element:d.stat.ANEMO_DMG,StatBonus:d.stat.ELEMENTAL_MASTERY,BurstCost:60,HpBase:[1039.1188,4267.1836],AtkBase:[23.0888,94.80817],DefBase:[62.8215,257.985],Normals:kUe,Skills:FUe,Bursts:AUe,Extra:[],Effects:[BUe,xUe,RUe,PUe,IUe,NUe,MUe,DUe]}),HUe=[{Name:V.hits.HIT_Q,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:4.096}]},{Name:V.hits.HIT_Q_DOT,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.3412}]}],GUe=k.Factory({Name:"SaraC2",OnApply:new k.Builder().instance.Location("Skill").Options({Name:"HIT_C2",Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.2576*.3,Talent:d.stat.ELEMENTAL_SKILL_LEVEL}]}).Build()}),VUe=k.Factory({Name:"SaraC3",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),WUe=k.Factory({Name:"SaraC5",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),zUe=k.Factory({Name:"SaraC6",ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ELECTRO_CRIT_DMG).Values(.6).Build()}),KUe=[{Name:V.hits.HIT_N1,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.3689}]},{Name:V.hits.HIT_N2,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.387}]},{Name:V.hits.HIT_N3,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.485}]},{Name:V.hits.HIT_N4,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.504}]},{Name:V.hits.HIT_N5,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.585}]},{Name:V.hits.HIT_AIMED_NORMAL,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.4386}]},{Name:V.hits.HIT_AIMED_CHARGED,Element:d.stat.ELECTRO_DMG,Talent:d.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.24}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:P.TalentScaling.PHYSICAL_1,Stat:d.stat.ATK,Initial:1.4193}]}],UUe=[{Name:V.hits.HIT_E,Element:d.stat.ELECTRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.2576}]}],YUe=k.Factory({Name:"SaraE",ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.ATK_BASE,d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Char(d.stat.ATK_FLAT).Values(...P.TalentScaling.ELEMENTAL_1).Rank((i,e)=>e.Owner.GetCharacter().Get(d.stat.ELEMENTAL_SKILL_LEVEL)).Map((i,e,t)=>.4296*i*t.Owner.GetCharacter().Get(d.stat.ATK_BASE)).Build()}),Bre=Nt.Factory({Name:"Sara",Stars:4,Weapon:d.weapon.BOW,Region:d.region.INAZUMA,Element:d.stat.ELECTRO_DMG,BurstCost:80,HpBase:[802.3761,2870.8872],AtkBase:[16.38336,58.620743],DefBase:[52.647,188.37],StatBonus:d.stat.ATK_PERCENT,Normals:KUe,Skills:UUe,Bursts:HUe,Extra:[],Effects:[YUe,GUe,VUe,WUe,zUe]}),jUe=[{Name:V.hits.HIT_N1,Element:d.stat.DENDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.403}]},{Name:V.hits.HIT_N2,Element:d.stat.DENDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.3697}]},{Name:V.hits.HIT_N3,Element:d.stat.DENDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.4587}]},{Name:V.hits.HIT_N4,Element:d.stat.DENDRO_DMG,Talent:d.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5841}]},{Name:V.hits.HIT_CHARGED,Element:d.stat.DENDRO_DMG,Talent:d.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1A,Initial:1.32}]},{Name:V.hits.HIT_PLUNGE,Element:d.stat.DENDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:V.hits.HIT_PLUNGE_LOW,Element:d.stat.DENDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:V.hits.HIT_PLUNGE_HIGH,Element:d.stat.DENDRO_DMG,Talent:d.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:d.stat.ATK,Scaling:P.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],qUe=k.Factory({Name:"NahidaA1",ApplyOther:!0,MaxTargets:1,OnApply(i,e,t){const n=i.GetCharacter(),s=e.Owner.GetCharacter(),r=t.Modifier(n.CreateModifier(d.stat.ELEMENTAL_MASTERY,0));let o=[];const a=[];function l(u){if(u===r)return;if(s.Get(d.stat.ASCENSION)<1){r.SetValue(0);return}let h=0,p=n;for(const C of o){const y=C.Get(d.stat.ELEMENTAL_MASTERY);y>h&&(h=y,p=C)}p===n&&(h-=r.GetValue());const _=Math.min(250,Math.max(0,.25*h));r.SetValue(_)}function c(){a.forEach(h=>h.Remove());const u=i.GetParty();if(!u)o=[n];else{o=[];for(const h of u.GetMembers())o.push(h.GetCharacter())}for(const h of o)a.push(t.Observer(h.CreateObserver(d.stat.ELEMENTAL_MASTERY,l)));l()}return c(),t.Observer(i.Event.CreateObserver(Nt.CharboxEvent.CHANGE_PARTY,c)),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,c)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,c)),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_CONDITIONS,c)),t.Observer(s.CreateObserver(d.stat.LEVEL,l)),t.Observer(s.CreateObserver(d.stat.ASCENSION,l)),()=>0}}),$Ue=[{Name:V.hits.HIT_E_PRESS,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:.984}]},{Name:V.hits.HIT_E_HOLD,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.304}]},{Name:V.hits.HIT_E_DOT,Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ATK,Initial:1.032},{Scaling:P.TalentScaling.ELEMENTAL_1,Stat:d.stat.ELEMENTAL_MASTERY,Initial:2.064}]}],XUe=k.Factory({Name:"NahidaA4",OnApply(i,e,t){const n=i.GetCharacter(),s=i.FindSkill(V.hits.HIT_E_DOT);if(!s)throw new Error("Cannot find Nahida Skill");const r=t.Modifier(s.Subject.CreateModifier(d.stat.ALL_DMG,0)),o=t.Modifier(s.Subject.CreateModifier(d.stat.CRIT_RATE,0));let a,l;function c(){if(n.GetAscension()<4){r.SetValue(0),o.SetValue(0),a&&a.SetValue(0),l&&l.SetValue(0);return}const u=i.FindSkill("HIT_C6");u&&(a||(a=t.Modifier(u.Subject.CreateModifier(d.stat.ALL_DMG,0))),l||(l=t.Modifier(u.Subject.CreateModifier(d.stat.CRIT_RATE,0))));const h=Math.max(0,n.Get(d.stat.ELEMENTAL_MASTERY)-200),p=Math.min(.24,h*.03/100),_=Math.min(.8,h*.1/100);r.SetValue(_),o.SetValue(p),a&&a.SetValue(_),l&&l.SetValue(p)}return c(),t.Observer(n.CreateObserver(d.stat.ELEMENTAL_MASTERY,c)),t.Observer(n.CreateObserver(d.stat.LEVEL,c)),t.Observer(n.CreateObserver(d.stat.ASCENSION,c)),()=>0}}),QUe=k.Factory({Name:"NahidaQ",OnApply(i,e,t){const n=i.FindSkill(V.hits.HIT_E_DOT);if(!n)throw new Error("Cannot find Nahida Skill");const s=t.Modifier(n.Subject.CreateModifier(d.stat.ALL_DMG,0));let r;function o(){const a=i.GetParty();if(!a){s.SetValue(0),r&&r.SetValue(0);return}const l=i.FindSkill("HIT_C6");l&&!r&&(r=t.Modifier(l.Subject.CreateModifier(d.stat.ALL_DMG,0)));const c=i.FindEffect("NahidaC1");let h=c&&c.Enabled()&&c.GetTargets().includes(i)?1:0;for(const C of a.GetMembers())C.GetCharacter().Options.Element===d.stat.PYRO_DMG&&h++;let p=0;h>=1&&(p=.1488),h>=2&&(p=.2232);const _=p*P.TalentScaling.ELEMENTAL_1[i.GetCharacter().Get(d.stat.ELEMENTAL_BURST_LEVEL)-1];s.SetValue(_),r&&r.SetValue(_)}return o(),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,o)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,o)),t.Observer(i.GetCharacter().CreateObserver(d.stat.ELEMENTAL_BURST_LEVEL,o)),t.Observer(i.GetCharacter().CreateObserver(d.stat.ELEMENTAL_BURST_LEVEL_UP,o)),t.Observer(i.Event.CreateObserver(Nt.CharboxEvent.CHANGE_PARTY,o)),()=>0}}),ZUe=k.Factory({Name:"NahidaC1",OnApply(i,e,t){const n=i.FindEffect("NahidaQ");if(!n)throw new Error("Nahida Burst effect not found");const s=n;function r(){s.Enabled()&&(s.Disable(),s.Enable())}return r(),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,r)),t.Observer(e.CreateObserver(k.EffectEvent.CHANGE_TARGET,r)),()=>0}}),JUe=k.Factory({Name:"NahidaC2",ApplyOther:!0,MaxAuras:1,ValidAuras:[d.aura.QUICKEN],OnApply(i,e,t){eYe(i,e,t);const s=["BURGEON","BLOOM","HYPERBLOOM","BURNING"].map(r=>i.FindTr("HIT_"+r));for(const r of s)!r||(t.Modifier(r.Subject.CreateModifier(d.stat.CRIT_RATE,.2)),t.Modifier(r.Subject.CreateModifier(d.stat.CRIT_DMG,1)));return()=>0}}),eYe=new k.Builder().Where({effect:{aura:[d.aura.QUICKEN]}}).stat.Enemy(d.stat.DEFREDUCTION).Values(.3).Build(),tYe=k.Factory({Name:"NahidaC3",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),iYe=k.Factory({Name:"NahidaC4",MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Stacks([0,100,120,140,160]).Build()}),nYe=k.Factory({Name:"NahidaC5",ApplySelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),sYe=k.Factory({Name:"NahidaC6",OnApply(i,e,t){rYe(i,e,t);function n(){const s=i.FindEffect("NahidaQ"),r=i.FindEffect("NahidaA4");s&&s.Enabled()&&(s.Disable(),s.Enable()),r&&r.Enabled()&&(r.Disable(),r.Enable())}return n(),t.Observer(e.CreateObserver(k.EffectEvent.ENABLE,n)),t.Observer(e.CreateObserver(k.EffectEvent.DISABLE,n)),()=>0}}),rYe=new k.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:d.stat.DENDRO_DMG,Talent:d.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:P.TalentScaling.NONE,Stat:d.stat.ATK,Talent:d.stat.NONE,Initial:2},{Scaling:P.TalentScaling.NONE,Stat:d.stat.ELEMENTAL_MASTERY,Talent:d.stat.NONE,Initial:4}]}).Build(),Hre=Nt.Factory({Name:"Nahida",Stars:5,Element:d.stat.DENDRO_DMG,Region:d.region.SUMERU,Weapon:d.weapon.CATALYST,StatBonus:d.stat.ELEMENTAL_MASTERY,BurstCost:50,HpBase:[806.5087,3311.961],AtkBase:[23.275,95.57275],DefBase:[49.0606,201.474],Normals:jUe,Skills:$Ue,Bursts:[],Extra:[],Effects:[QUe,qUe,XUe,ZUe,JUe,tYe,iYe,nYe,sYe]}),i8=new ho(i=>i.Name);i8.AddList(Object.values(Gse).sort((i,e)=>i.Name.localeCompare(e.Name)));function Gre(){return i8.Get()}function oYe(i){return i8.Find(i)}var ja={};hi(ja,{Akuoumaru:()=>doe,AlleyHunter:()=>Dae,AmberBead:()=>ule,AmenomaKageuchi:()=>eae,AmosBow:()=>yae,AquaSimulacra:()=>Eae,AquilaFavonia:()=>qoe,BalladOfTheFjords:()=>ioe,BeaconOfTheReedSea:()=>loe,BlackTassel:()=>Ple,BlackcliffAgate:()=>sle,BlackcliffLongsword:()=>sae,BlackcliffPole:()=>Ble,BlackcliffSlasher:()=>poe,BlackcliffWarbow:()=>soe,BloodtaintedGreatsword:()=>moe,CalamityQueller:()=>_le,CinnabarSpindle:()=>Joe,CompoundBow:()=>Rae,CoolSteel:()=>vae,CrescentPike:()=>Lle,DarkIronSword:()=>gae,Deathmatch:()=>Hle,DebateClub:()=>_oe,DodocoTales:()=>tle,DragonsBane:()=>Nle,DragonspineSpear:()=>Ale,ElegyForTheEnd:()=>Dle,EmeraldOrb:()=>hle,EndOfTheLine:()=>Tae,EngulfingLightning:()=>yle,EverlastingMoonglow:()=>qae,EyeOfPerception:()=>nle,FadingTwilight:()=>Mae,FavoniusCodex:()=>cle,FavoniusGreatsword:()=>voe,FavoniusLance:()=>Rle,FavoniusSword:()=>Wle,FavoniusWarbow:()=>zle,FerrousShadow:()=>boe,FesteringDesire:()=>tae,FilletBlade:()=>pae,FinaleOfTheDeep:()=>$re,FindByName:()=>_Ye,FleuveCendreFerryman:()=>Xre,FlowingPurity:()=>qre,ForestRegalia:()=>Soe,FreedomSworn:()=>Voe,Frostbearer:()=>ile,FruitOfFulfillment:()=>Zae,GetByType:()=>vYe,GetList:()=>Yle,HakushinRing:()=>ele,Halberd:()=>Ile,Hamayumi:()=>Lae,HaranGeppakuFutsu:()=>Koe,HarbingerOfDawn:()=>_ae,HuntersPath:()=>bae,IbisPiercer:()=>roe,IronSting:()=>rae,JadeCutter:()=>Yoe,JadeSpear:()=>vle,JadefallSplendor:()=>ooe,KagotsurubeIsshin:()=>Zoe,KagurasVerity:()=>jae,KatsuragikiriNagamasa:()=>yoe,KeyOfKhajNisut:()=>zoe,KingsSquire:()=>wae,KitainCrossSpear:()=>wle,LightOfFoliarIncision:()=>Woe,LionsRoar:()=>aae,LithicBlade:()=>woe,LithicSpear:()=>xle,LostPrayer:()=>Xae,LuxuriousSeaLord:()=>Coe,MagicGuide:()=>ple,MailedFlower:()=>aoe,MakhairaAquamarine:()=>goe,MappaMare:()=>rle,MemoryOfDust:()=>$ae,Messenger:()=>Hae,MissiveWindspear:()=>Ele,MistsplitterReforged:()=>Uoe,MitternachtsWaltz:()=>Nae,Moonpiercer:()=>Sle,MouunsMoon:()=>Aae,OathswornEye:()=>Jae,OtherworldlyStory:()=>fle,PolarStar:()=>Sae,Predator:()=>xae,PrototypeAmber:()=>ole,PrototypeArchaic:()=>xoe,PrototypeCrescent:()=>Oae,PrototypeRancour:()=>oae,PrototypeStarglitter:()=>Fle,Rainslasher:()=>Loe,RavenBow:()=>zae,RecurveBow:()=>Vae,RedhornStonethresher:()=>Ioe,RightfulReward:()=>Yre,RoyalBow:()=>dae,RoyalGreatsword:()=>Noe,RoyalGrimoire:()=>cae,RoyalLongsword:()=>hae,RoyalSpear:()=>uae,Rust:()=>Pae,SacrificialBow:()=>Fae,SacrificialFragments:()=>lle,SacrificialGreatsword:()=>Moe,SacrificialJade:()=>Jre,SacrificialSword:()=>Mle,SapwoodBlade:()=>Qoe,ScionOfTheBlazingSun:()=>eoe,SerpentSpine:()=>Goe,SharpshootersOath:()=>Wae,SkyriderGreatsword:()=>Doe,SkyriderSword:()=>fae,SkywardAtlas:()=>Qae,SkywardBlade:()=>Gle,SkywardHarp:()=>Vle,SkywardPride:()=>koe,SkywardSpine:()=>Cle,Slingshot:()=>Gae,SnowTombedStarsilver:()=>Roe,SolarPearl:()=>ale,SongOfBrokenPines:()=>Aoe,SongOfStillness:()=>jre,SplendorOfTranquilWaters:()=>Kre,StaffOfHoma:()=>kle,StaffOfTheScarletSands:()=>mle,SummitShaper:()=>joe,SwordOfDescension:()=>iae,TalkingStick:()=>toe,TheAlleyFlash:()=>nae,TheBell:()=>Ooe,TheBlackSword:()=>coe,TheCatch:()=>uoe,TheFirstGreatMagic:()=>noe,TheFlute:()=>lae,TheStringless:()=>Bae,TheUnforged:()=>Poe,TheViridescentHunt:()=>kae,TheWidsith:()=>Kle,ThousandFloatingDreams:()=>Uae,ThrillingTalesOfDragonSlayers:()=>gle,ThunderingPulse:()=>Cae,TidalShadow:()=>Qre,TomeOfTheEternalFlow:()=>Ure,ToukabouShigure:()=>$oe,TravelersHandySword:()=>mae,TulaytullahsRemembrance:()=>Kae,TwinNephrite:()=>dle,UltimateOverlordsMegaMagicSword:()=>Wre,Veredict:()=>zre,VortexVanquisher:()=>ble,WanderingEvenstar:()=>Yae,WavebreakerFin:()=>Tle,WhiteIronGreatsword:()=>Boe,WhiteTassel:()=>Ole,Whiteblind:()=>Foe,WindblumeOde:()=>Iae,WineAndSong:()=>hoe,WolfFang:()=>Zre,WolfsGravestone:()=>Hoe,XiphosMoonlight:()=>Xoe});var Vre={};hi(Vre,{Akuoumaru:()=>doe,AlleyHunter:()=>Dae,AmberBead:()=>ule,AmenomaKageuchi:()=>eae,AmosBow:()=>yae,AquaSimulacra:()=>Eae,AquilaFavonia:()=>qoe,BalladOfTheFjords:()=>ioe,BeaconOfTheReedSea:()=>loe,BlackTassel:()=>Ple,BlackcliffAgate:()=>sle,BlackcliffLongsword:()=>sae,BlackcliffPole:()=>Ble,BlackcliffSlasher:()=>poe,BlackcliffWarbow:()=>soe,BloodtaintedGreatsword:()=>moe,CalamityQueller:()=>_le,CinnabarSpindle:()=>Joe,CompoundBow:()=>Rae,CoolSteel:()=>vae,CrescentPike:()=>Lle,DarkIronSword:()=>gae,Deathmatch:()=>Hle,DebateClub:()=>_oe,DodocoTales:()=>tle,DragonsBane:()=>Nle,DragonspineSpear:()=>Ale,ElegyForTheEnd:()=>Dle,EmeraldOrb:()=>hle,EndOfTheLine:()=>Tae,EngulfingLightning:()=>yle,EverlastingMoonglow:()=>qae,EyeOfPerception:()=>nle,FadingTwilight:()=>Mae,FavoniusCodex:()=>cle,FavoniusGreatsword:()=>voe,FavoniusLance:()=>Rle,FavoniusSword:()=>Wle,FavoniusWarbow:()=>zle,FerrousShadow:()=>boe,FesteringDesire:()=>tae,FilletBlade:()=>pae,FinaleOfTheDeep:()=>$re,FleuveCendreFerryman:()=>Xre,FlowingPurity:()=>qre,ForestRegalia:()=>Soe,FreedomSworn:()=>Voe,Frostbearer:()=>ile,FruitOfFulfillment:()=>Zae,HakushinRing:()=>ele,Halberd:()=>Ile,Hamayumi:()=>Lae,HaranGeppakuFutsu:()=>Koe,HarbingerOfDawn:()=>_ae,HuntersPath:()=>bae,IbisPiercer:()=>roe,IronSting:()=>rae,JadeCutter:()=>Yoe,JadeSpear:()=>vle,JadefallSplendor:()=>ooe,KagotsurubeIsshin:()=>Zoe,KagurasVerity:()=>jae,KatsuragikiriNagamasa:()=>yoe,KeyOfKhajNisut:()=>zoe,KingsSquire:()=>wae,KitainCrossSpear:()=>wle,LightOfFoliarIncision:()=>Woe,LionsRoar:()=>aae,LithicBlade:()=>woe,LithicSpear:()=>xle,LostPrayer:()=>Xae,LuxuriousSeaLord:()=>Coe,MagicGuide:()=>ple,MailedFlower:()=>aoe,MakhairaAquamarine:()=>goe,MappaMare:()=>rle,MemoryOfDust:()=>$ae,Messenger:()=>Hae,MissiveWindspear:()=>Ele,MistsplitterReforged:()=>Uoe,MitternachtsWaltz:()=>Nae,Moonpiercer:()=>Sle,MouunsMoon:()=>Aae,OathswornEye:()=>Jae,OtherworldlyStory:()=>fle,PolarStar:()=>Sae,Predator:()=>xae,PrototypeAmber:()=>ole,PrototypeArchaic:()=>xoe,PrototypeCrescent:()=>Oae,PrototypeRancour:()=>oae,PrototypeStarglitter:()=>Fle,Rainslasher:()=>Loe,RavenBow:()=>zae,RecurveBow:()=>Vae,RedhornStonethresher:()=>Ioe,RightfulReward:()=>Yre,RoyalBow:()=>dae,RoyalGreatsword:()=>Noe,RoyalGrimoire:()=>cae,RoyalLongsword:()=>hae,RoyalSpear:()=>uae,Rust:()=>Pae,SacrificialBow:()=>Fae,SacrificialFragments:()=>lle,SacrificialGreatsword:()=>Moe,SacrificialJade:()=>Jre,SacrificialSword:()=>Mle,SapwoodBlade:()=>Qoe,ScionOfTheBlazingSun:()=>eoe,SerpentSpine:()=>Goe,SharpshootersOath:()=>Wae,SkyriderGreatsword:()=>Doe,SkyriderSword:()=>fae,SkywardAtlas:()=>Qae,SkywardBlade:()=>Gle,SkywardHarp:()=>Vle,SkywardPride:()=>koe,SkywardSpine:()=>Cle,Slingshot:()=>Gae,SnowTombedStarsilver:()=>Roe,SolarPearl:()=>ale,SongOfBrokenPines:()=>Aoe,SongOfStillness:()=>jre,SplendorOfTranquilWaters:()=>Kre,StaffOfHoma:()=>kle,StaffOfTheScarletSands:()=>mle,SummitShaper:()=>joe,SwordOfDescension:()=>iae,TalkingStick:()=>toe,TheAlleyFlash:()=>nae,TheBell:()=>Ooe,TheBlackSword:()=>coe,TheCatch:()=>uoe,TheFirstGreatMagic:()=>noe,TheFlute:()=>lae,TheStringless:()=>Bae,TheUnforged:()=>Poe,TheViridescentHunt:()=>kae,TheWidsith:()=>Kle,ThousandFloatingDreams:()=>Uae,ThrillingTalesOfDragonSlayers:()=>gle,ThunderingPulse:()=>Cae,TidalShadow:()=>Qre,TomeOfTheEternalFlow:()=>Ure,ToukabouShigure:()=>$oe,TravelersHandySword:()=>mae,TulaytullahsRemembrance:()=>Kae,TwinNephrite:()=>dle,UltimateOverlordsMegaMagicSword:()=>Wre,Veredict:()=>zre,VortexVanquisher:()=>ble,WanderingEvenstar:()=>Yae,WavebreakerFin:()=>Tle,WhiteIronGreatsword:()=>Boe,WhiteTassel:()=>Ole,Whiteblind:()=>Foe,WindblumeOde:()=>Iae,WineAndSong:()=>hoe,WolfFang:()=>Zre,WolfsGravestone:()=>Hoe,XiphosMoonlight:()=>Xoe});var b_=4,Wre=Pe.Factory({Name:"UltimateOverlordsMegaMagicSword",Stars:4,Type:d.weapon.CLAYMORE,Substat:d.stat.ENERGY_RECHARGE,Scaling:P.WeaponScaling.TYPE_44,Effects:[k.Factory({Name:"UltimateOverlordsMegaMagicSword1",MaxRank:5,MaxStacks:b_,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(d.stat.ATK_PERCENT).Values(.12/b_,.15/b_,.18/b_,.21/b_,.24/b_).Stacks().Build()})]}),zre=Pe.Factory({Name:"Verdict",Stars:5,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"Verdict1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(d.stat.ATK).Values(.2,.25,.3,.35,.4).Next().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.18,.225,.27,.315,.36).Stacks().Build()})]}),Kre=Pe.Factory({Name:"SplendorOfTranquilWaters",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"SplendorOfTranquilWaters1",MaxStacks:3,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.08,.1,.12,.14,.16).Stacks().Build()}),k.Factory({Name:"SplendorOfTranquilWaters2",MaxStacks:2,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.14,.175,.21,.245,.28).Stacks().Build()})]}),Ure=Pe.Factory({Name:"TomeOfTheEternalFlow",Stars:5,Type:d.weapon.CATALYST,Substat:d.stat.CRIT_DMG,Scaling:P.WeaponScaling.TYPE_44b,Effects:[k.Factory({Name:"TomeOfTheEternalFlow1",MaxStacks:3,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.16,.2,.24,.28,.32).Next().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.14,.18,.22,.26,.3).Stacks().Build()})]}),Yre=Pe.Factory({Name:"RightfulReward",Stars:4,Type:d.weapon.POLEARM,Substat:d.stat.HP_PERCENT,Scaling:P.WeaponScaling.TYPE_44,Effects:[]}),jre=Pe.Factory({Name:"SongOfStillness",Stars:4,Type:d.weapon.BOW,Substat:d.stat.ATK_PERCENT,Scaling:P.WeaponScaling.TYPE_42,Effects:[k.Factory({Name:"SongOfStillness1",MaxRank:5,MaxConditions:1,Conditions:["HEALED"],OnApply:new k.Builder().Where({effect:{conditions:["HEALED"]}}).stat.Char(d.stat.ALL_DMG).Values(.16,.2,.24,.28,.32).Build()})]}),qre=Pe.Factory({Name:"FlowingPurity",Stars:4,Type:d.weapon.CATALYST,Substat:d.stat.ATK_PERCENT,Scaling:P.WeaponScaling.TYPE_44,Effects:[k.Factory({Name:"FlowingPurity1",MaxRank:5,MaxConditions:1,MaxStacks:6e3,Conditions:["CAST_SKILL"],OnApply:new k.Builder().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Next().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(...[.02,.025,.03,.035,.04].map(i=>i/1e3)).Stacks().Build()})]}),$re=Pe.Factory({Name:"FinaleOfTheDeep",Stars:4,Type:d.weapon.SWORD,Substat:d.stat.ATK_PERCENT,Scaling:P.WeaponScaling.TYPE_44,Effects:[k.Factory({Name:"FinaleOfTheDeep1",MaxRank:5,MaxStacks:100,MaxConditions:1,Conditions:["CAST_SKILL"],OnApply:new k.Builder().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().observe.Target(d.stat.HP_BASE,d.stat.HP_PERCENT,d.stat.HP_FLAT).stat.Char(d.stat.ATK_FLAT).Values(.024,.03,.036,.042,.048).Map((i,e,t)=>{let n=i*t.GetStacks()/100*.25*e.GetCharacter().Get(d.stat.HP);return n=Math.min(n,150/.024*i),n}).Build()})]}),Xre=Pe.Factory({Name:"FleuveCendreFerryman",Stars:4,Type:d.weapon.SWORD,Substat:d.stat.ENERGY_RECHARGE,Scaling:P.WeaponScaling.TYPE_42,Effects:[k.Factory({Name:"FleuveCendreFerryman1",MaxRank:5,Conditions:["CAST_SKILL"],MaxConditions:1,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.08,.1,.12,.14,.16).Next().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(d.stat.ENERGY_RECHARGE).Values(.16,.2,.24,.28,.32).Build()})]}),Qre=Pe.Factory({Name:"TidalShadow",Stars:4,Type:d.weapon.CLAYMORE,Substat:d.stat.ATK_PERCENT,Scaling:P.WeaponScaling.TYPE_42,Effects:[k.Factory({Name:"TidalShadow1",MaxRank:5,Conditions:["HEALED"],MaxConditions:1,OnApply:new k.Builder().Where({effect:{conditions:["HEALED"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),Zre=Pe.Factory({Name:"WolfFang",Stars:4,Type:d.weapon.SWORD,Substat:d.stat.CRIT_RATE,Scaling:P.WeaponScaling.TYPE_42,Effects:[k.Factory({Name:"WolfFang1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG,d.stat.ELEMENTAL_BURST_DMG).Values(.16,.2,.24,.28,.32).Build()}),k.Factory({Name:"WolfFang2",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.02,.025,.03,.035,.04).Stacks().Build()}),k.Factory({Name:"WolfFang3",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.02,.025,.03,.035,.04).Stacks().Build()})]}),Jre=Pe.Factory({Name:"SacrificialJade",Stars:4,Type:d.weapon.CATALYST,Substat:d.stat.CRIT_RATE,Scaling:P.WeaponScaling.TYPE_42,Effects:[k.Factory({Name:"SacrificialJade1",MaxRank:5,Conditions:["OFF_FIELD"],MaxConditions:1,OnApply:new k.Builder().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(d.stat.HP_PERCENT).Values(.32,.4,.48,.56,.64).Next().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(40,50,60,70,80).Build()})]}),eoe=Pe.Factory({Name:"ScionOfTheBlazingSun",Stars:4,Type:d.weapon.BOW,Substat:d.stat.CRIT_RATE,Scaling:P.WeaponScaling.TYPE_44,Effects:[k.Factory({Name:"ScionOfTheBlazingSun1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_ScionOfTheBlazingSun",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.6,.75,.9,1.05,1.2]}).Next().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.28,.35,.42,.49,.56).Build()})]}),toe=Pe.Factory({Name:"TalkingStick",Stars:4,Type:d.weapon.CLAYMORE,Substat:d.stat.CRIT_RATE,Scaling:P.WeaponScaling.TYPE_44,Effects:[k.Factory({Name:"TalkingStick1",MaxRank:5,MaxAuras:2,ValidAuras:[d.aura.PYRO,d.aura.HYDRO],OnApply:new k.Builder().Where({effect:{aura:[d.aura.PYRO]}}).stat.Char(d.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{aura:[d.aura.HYDRO]}}).stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Build()})]}),ioe=Pe.Factory({Name:"BalladOfTheFjords",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"BalladOfTheFjords1",MaxRank:5,OnApply:new k.Builder().observe.Party(!0).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(120,150,180,210,240).Map((i,e)=>{const t=e.GetParty();if(!t)return 0;const n=new Set;for(const s of t.GetMembers())n.add(s.GetCharacter().Options.Element);return n.size>=3?i:0}).Build()})]}),noe=Pe.Factory({Name:"TheFirstGreatMagic",Type:d.weapon.BOW,Stars:5,Substat:d.stat.CRIT_DMG,Scaling:P.WeaponScaling.TYPE_46,Effects:[k.Factory({Name:"TheFirstGreatMagic1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().observe.Party(!0).stat.Char(d.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Map((i,e)=>{let t=1;const n=e.GetCharacter().Options.Element,s=e.GetParty();if(s)for(const r of s.GetMembers())r!==e&&r.GetCharacter().Options.Element===n&&t++;return t=Math.min(t,3),i*t}).Build()})]}),ty=i=>k.Factory({Name:i,MaxRank:5,MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Stacks().Build()}),soe=Pe.Factory({Name:"BlackcliffWarbow",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.CRIT_DMG,Effects:[ty("BlackcliffWarbow1")]}),roe=Pe.Factory({Name:"IbisPiercer",Type:d.weapon.BOW,Stars:4,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"IbisPiercer1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(40,50,60,70,80).Stacks().Build()})]}),ooe=Pe.Factory({Name:"JadefallSplendor",Type:d.weapon.CATALYST,Stars:5,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"JadefallSplendor1",MaxRank:5,OnApply:new k.Builder().observe.Owner(d.stat.HP_PERCENT,d.stat.HP_BASE,d.stat.HP_FLAT).stat.MapStat(i=>[i.GetCharacter().Options.Element]).Values(.3,.5,.7,.9,1.1).Map((i,e,t)=>Math.min([.12,.2,.28,.36,.44][t.GetRank()-1],i/100*e.GetCharacter().Get(d.stat.HP)/1e3)).Build()})]}),aoe=Pe.Factory({Name:"MailedFlower",Stars:4,Type:d.weapon.CLAYMORE,Substat:d.stat.ELEMENTAL_MASTERY,Scaling:P.WeaponScaling.TYPE_44,Effects:[k.Factory({Name:"MailedFlower1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(48,60,72,84,96).Build()})]}),loe=Pe.Factory({Name:"BeaconOfTheReedSea",Stars:5,Type:d.weapon.CLAYMORE,Substat:d.stat.CRIT_RATE,Scaling:P.WeaponScaling.TYPE_46,Effects:[k.Factory({Name:"BeaconOfTheReedSea1",MaxRank:5,Conditions:["HIT_SKILL","DMG_TAKEN"],MaxConditions:2,OnApply:new k.Builder().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["DMG_TAKEN"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().Where({target:{shielded:!1}}).stat.Char(d.stat.HP_PERCENT).Values(.32,.4,.48,.56,.64).Build()})]}),coe=Pe.Factory({Name:"TheBlackSword",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"TheBlackSword1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),uoe=Pe.Factory({Name:"TheCatch",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"TheCatch1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(d.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.06,.075,.09,.105,.12).Build()})]}),n8=i=>k.Factory({Name:i,MaxRank:5,OnApply(e,t,n){const s=e.GetCharacter(),r=n.Modifier(s.CreateModifier(d.stat.ELEMENTAL_BURST_DMG,0));function o(){let a=[s];const l=e.GetParty();l&&(a=l.GetMembers().map(h=>h.GetCharacter()));let c=0;for(const h of a)c+=h.Options.BurstCost;const u=Math.min(lYe[t.GetRank()-1],aYe[t.GetRank()-1]*c);r.SetValue(u)}return n.Observer(t.Event.CreateObserver(k.EffectEvent.CHANGE_RANK,o)),n.Observer(e.Event.CreateObserver(Nt.CharboxEvent.CHANGE_PARTY,o)),()=>0}}),aYe=[.12/100,.15/100,.18/100,.21/100,.24/100],lYe=[.4,.5,.6,.7,.8],doe=Pe.Factory({Name:"Akuoumaru",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[n8("Akuoumaru1")]}),hoe=Pe.Factory({Name:"WineAndSong",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"WineAndSong1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),foe=(i,e,t)=>k.Factory({Name:i,ApplyOther:!0,StackSelf:!0,MaxRank:5,OnApply(n,s,r){const o=s.Owner.GetCharacter(),a=n.GetCharacter(),l=r.Modifier(a.CreateModifier(e,0));function c(){const u=o.Get(d.stat.ELEMENTAL_MASTERY);let h=t[s.GetRank()-1]*u;o!==a&&(h*=.3),l.SetValue(h)}return c(),r.Observer(o.CreateObserver(d.stat.ELEMENTAL_MASTERY,c)),()=>0}}),goe=Pe.Factory({Name:"MakhairaAquamarine",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[foe("MakhairaAquamarine1",d.stat.ATK_FLAT,[.24,.3,.36,.42,.48])]}),poe=Pe.Factory({Name:"BlackcliffSlasher",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_DMG,Effects:[ty("BlackcliffSlasher1")]}),moe=Pe.Factory({Name:"BloodtaintedGreatsword",Stars:3,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_38,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"BloodtaintedGreatsword1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.PYRO_DMG,d.stat.ELECTRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),_oe=Pe.Factory({Name:"DebateClub",Stars:3,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"DebateClub1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_DebateClub",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.6,.75,.9,1.05,1.2]}).Build()})]}),voe=Pe.Factory({Name:"FavoniusGreatsword",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),boe=Pe.Factory({Name:"FerrousShadow",Stars:3,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"FerrousShadow1",MaxRank:5,OnApply:new k.Builder().Where({target:{hp:{leq:.7}}}).stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.3,.35,.4,.45,.5).Build()})]}),Coe=Pe.Factory({Name:"LuxuriousSeaLord",Type:d.weapon.CLAYMORE,Stars:4,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"LuxuriousSeaLord1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_BURST_DMG).Values(.12,.15,.18,.21,.24).Next().instance.Basic({Name:"HIT_LuxuriousSeaLord",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),Eoe=i=>k.Factory({Name:i,MaxRank:5,ApplyOther:!0,MaxTargets:1,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(60,75,90,105,120).Build()}),Soe=Pe.Factory({Name:"ForestRegalia",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[Eoe("ForestRegalia1")]}),yoe=Pe.Factory({Name:"KatsuragikiriNagamasa",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"KatsuragikiriNagamasa1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.06,.075,.09,.105,.12).Build()})]}),Toe=i=>k.Factory({Name:i,MaxRank:5,OnApply(e,t,n){const s=e.GetCharacter(),r=n.Modifier(s.CreateModifier(d.stat.CRIT_RATE,0)),o=n.Modifier(s.CreateModifier(d.stat.ATK_PERCENT,0));function a(){let l=[s];const c=e.GetParty();c&&(l=c.GetMembers().map(_=>_.GetCharacter()));const u=Math.min(4,l.filter(_=>_.Options.Region===d.region.LIYUE).length),h=cYe[t.GetRank()-1]*u,p=uYe[t.GetRank()-1]*u;r.SetValue(h),o.SetValue(p)}return a(),n.Observer(t.CreateObserver(k.EffectEvent.CHANGE_RANK,a)),n.Observer(e.Event.CreateObserver(Nt.CharboxEvent.CHANGE_PARTY,a)),()=>0}}),cYe=[.03,.04,.05,.06,.07],uYe=[.07,.08,.09,.1,.11],woe=Pe.Factory({Name:"LithicBlade",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[Toe("LithicBlade1")]}),e3=new Map;function dYe(i){const e=e3.get(i);if(!e){const t=new Set;return e3.set(i,t),t}return e}var s8=({Name:i,OnApply:e})=>k.Factory({Name:i,MaxRank:5,ApplyOther:!0,OnApply(t,n,s){e(t,n,s);const r=s.GetModifiers(),o=dYe(t);r.forEach(l=>o.add(l));function a(){for(const l of r)Array.from(o).some(u=>u!==l&&u.GetProp()===l.GetProp()&&u.Enabled()&&u.GetValue()!==0)&&(l.SetValue(0),l.Disable())}a();for(const l of k.EffectEvent.Values())s.Observer(n.CreateObserver(l,a));return()=>{r.forEach(l=>o.delete(l)),o.size===0&&e3.delete(t)}}}),Aoe=Pe.Factory({Name:"SongOfBrokenPines",Stars:5,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_49,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"SongOfBrokenPines1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()}),s8({Name:"SongOfBrokenPines2",OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),xoe=Pe.Factory({Name:"PrototypeArchaic",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"PrototypeArchaic1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_PrototypeArchaic",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[2.4,3,3.6,4.2,4.8]}).Build()})]}),Loe=Pe.Factory({Name:"Rainslasher",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"Rainslasher1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.HYDRO_DMG,d.stat.ELECTRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),Ioe=Pe.Factory({Name:"RedhornStonethresher",Stars:5,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"RedhornStonethresher1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.DEF_PERCENT).Values(.28,.35,.42,.49,.56).Next().observe.Target(d.stat.DEF,d.stat.DEF_PERCENT,d.stat.DEF_FLAT).stat.Char(d.stat.NORMAL_ATTACK_DMG_FLAT).Values(.4,.5,.6,.7,.8).Map((i,e)=>i*e.GetCharacter().Get(d.stat.DEF)).Build()})]}),iy=i=>k.Factory({Name:i,MaxRank:5,OnApply(e,t,n){const s=e.GetCharacter();function r(o=!0){if(!o)s.MapCritRate=a=>a;else{const a=t.GetRank();s.MapCritRate=l=>hYe(a,l)}}return r(!0),n.Observer(t.CreateObserver(k.EffectEvent.ENABLE,()=>r(!0))),n.Observer(t.CreateObserver(k.EffectEvent.CHANGE_RANK,()=>r(!0))),n.Observer(t.CreateObserver(k.EffectEvent.DISABLE,()=>r(!1))),()=>r(!1)}});function hYe(i,e){const t=Math.max,n=.08+.02*(i-1);return e<0?((5*n+e)*t(0,e)-(5*n*e-5*n+bt(e,2)-e)*t(0,n+e)+(5*bt(n,2)*e-5*bt(n,2)+6*n*bt(e,2)-11*n*e+5*n+bt(e,3)-2*bt(e,2)+e)*t(0,2*n+e)-(10*bt(n,3)*e-10*bt(n,3)+17*bt(n,2)*bt(e,2)-32*bt(n,2)*e+15*bt(n,2)+8*n*bt(e,3)-21*n*bt(e,2)+18*n*e-5*n+bt(e,4)-3*bt(e,3)+3*bt(e,2)-e)*t(0,3*n+e)+(30*bt(n,4)*e-30*bt(n,4)+61*bt(n,3)*bt(e,2)-116*bt(n,3)*e+55*bt(n,3)+41*bt(n,2)*bt(e,3)-112*bt(n,2)*bt(e,2)+101*bt(n,2)*e-30*bt(n,2)+11*n*bt(e,4)-38*n*bt(e,3)+48*n*bt(e,2)-26*n*e+5*n+bt(e,5)-4*bt(e,4)+6*bt(e,3)-4*bt(e,2)+e)*t(0,4*n+e)-(24*bt(n,4)*e-24*bt(n,4)+50*bt(n,3)*bt(e,2)-100*bt(n,3)*e+50*bt(n,3)+35*bt(n,2)*bt(e,3)-105*bt(n,2)*bt(e,2)+105*bt(n,2)*e-35*bt(n,2)+10*n*bt(e,4)-40*n*bt(e,3)+60*n*bt(e,2)-40*n*e+10*n+bt(e,5)-5*bt(e,4)+10*bt(e,3)-10*bt(e,2)+5*e-1)*t(0,5*n+e))/(6*bt(n,4)*e-6*bt(n,4)+11*bt(n,3)*bt(e,2)-26*bt(n,3)*e+15*bt(n,3)+6*bt(n,2)*bt(e,3)-24*bt(n,2)*bt(e,2)+33*bt(n,2)*e-15*bt(n,2)+n*bt(e,4)-6*n*bt(e,3)+15*n*bt(e,2)-20*n*e+15*n+1):(5*n+e)/(6*bt(n,4)*e-6*bt(n,4)+11*bt(n,3)*bt(e,2)-26*bt(n,3)*e+15*bt(n,3)+6*bt(n,2)*bt(e,3)-24*bt(n,2)*bt(e,2)+33*bt(n,2)*e-15*bt(n,2)+n*bt(e,4)-6*n*bt(e,3)+15*n*bt(e,2)-20*n*e+15*n+1)}var Noe=Pe.Factory({Name:"RoyalGreatsword",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[iy("RoyalGreatsword1")]}),Moe=Pe.Factory({Name:"SacrificialGreatsword",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),Doe=Pe.Factory({Name:"SkyriderGreatsword",Type:d.weapon.CLAYMORE,Stars:3,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"SkyriderGreatsword1",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.06,.07,.08,.09,.1).Build()})]}),koe=Pe.Factory({Name:"SkywardPride",Stars:5,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"SkywardPride1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.08,.1,.12,.14,.16).Next().instance.Basic({Name:"HIT_SkywardPride",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.8,1,1.2,1.4,1.6]}).Build()})]}),r8=(i,e)=>k.Factory({Name:i,MaxRank:5,OnApply:new k.Builder().instance.Options({Name:e,Element:d.stat.PHYSICAL_DMG,Talent:d.stat.NONE,Scaling:[{Initial:0,Stat:d.stat.NONE,Talent:d.stat.NONE,Scaling:P.TalentScaling.NONE}]}).Next().Where({not:!0,enemy:{affected:[d.stat.CRYO_DMG]}}).mv.Mv(d.stat.ATK,.8,e).Map((t,n,s)=>[.8,.95,1.1,1.25,1.4][s.GetRank()-1]).Next().Where({enemy:{affected:[d.stat.CRYO_DMG]}}).mv.Mv(d.stat.ATK,2,e).Map((t,n,s)=>[2,2.4,2.8,3.2,3.6][s.GetRank()-1]).Build()}),Roe=Pe.Factory({Name:"SnowTombedStarsilver",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.PHYSICAL_DMG,Effects:[r8("SnowTombedStarsilver1","HIT_SnowTombedStarsilver")]}),Ooe=Pe.Factory({Name:"TheBell",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"TheBell1",MaxRank:5,OnApply:new k.Builder().Where({target:{shielded:!0}}).stat.Char(d.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),tM=i=>k.Factory({Name:i,MaxRank:5,MaxStacks:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Next().Where({target:{shielded:!0}}).stat.Char(d.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()}),Poe=Pe.Factory({Name:"TheUnforged",Type:d.weapon.CLAYMORE,Stars:5,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ATK_PERCENT,Effects:[tM("TheUnforged1")]}),Foe=Pe.Factory({Name:"Whiteblind",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.DEF_PERCENT,Effects:[k.Factory({Name:"Whiteblind1",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT,d.stat.DEF_PERCENT).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),Boe=Pe.Factory({Name:"WhiteIronGreatsword",Stars:3,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.DEF_PERCENT,Effects:[]}),Hoe=Pe.Factory({Name:"WolfsGravestone",Stars:5,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"WolfsGravestone1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()}),k.Factory({Name:"WolfsGravestone2",MaxRank:5,ApplyOther:!0,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.4,.5,.6,.7,.8).Build()})]}),Goe=Pe.Factory({Name:"SerpentSpine",Stars:4,Type:d.weapon.CLAYMORE,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"SerpentSpine1",MaxRank:5,MaxStacks:5,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.06,.07,.08,.09,.1).Stacks().Build()})]}),Voe=Pe.Factory({Name:"FreedomSworn",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"FreedomSworn1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.1,.125,.15,.175,.2).Build()}),s8({Name:"FreedomSworn2",OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG,d.stat.PLUNGE_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Woe=Pe.Factory({Name:"LightOfFoliarIncision",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"LightOfFoliarIncision1",MaxRank:5,Conditions:["HIT_NORMAL"],MaxConditions:1,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(.04,.05,.06,.07,.08).Next().observe.Target(d.stat.ELEMENTAL_MASTERY).Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(d.stat.NORMAL_ATTACK_DMG_FLAT,d.stat.ELEMENTAL_SKILL_DMG_FLAT).Values(1.2,1.5,1.8,2.1,2.4).Map((i,e)=>i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Build()})]}),zoe=Pe.Factory({Name:"KeyOfKhajNisut",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"KeyOfKhajNisut1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Build()}),k.Factory({Name:"KeyOfKhajNisut2",MaxRank:5,MaxStacks:3,ApplyOther:!0,OnApply:new k.Builder().observe.Owner(d.stat.HP,d.stat.HP_PERCENT,d.stat.HP_FLAT).Where({target:{isOwner:!0}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(.12,.15,.18,.21,.24).Stacks().Map((i,e)=>i*e.GetCharacter().Get(d.stat.HP)/100).Next().observe.Owner(d.stat.HP,d.stat.HP_PERCENT,d.stat.HP_FLAT).stat.Char(d.stat.ELEMENTAL_MASTERY).Stacks([0,0,0,.2],[0,0,0,.25],[0,0,0,.3],[0,0,0,.35],[0,0,0,.4]).Map((i,e,{Owner:t})=>i*t.GetCharacter().Get(d.stat.HP)/100).Build()})]}),Koe=Pe.Factory({Name:"HaranGeppakuFutsu",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"HaranGeppakuFutsu1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Stacks().Build()})]}),Uoe=Pe.Factory({Name:"MistsplitterReforged",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"MistsplitterReforged1",MaxRank:5,MaxStacks:3,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char().MapStat(i=>[i.GetCharacter().Options.Element]).Stacks([0,.08,.16,.28],[0,.1,.2,.35],[0,.12,.24,.42],[0,.14,.28,.49],[0,.16,.32,.56]).Build()})]}),Yoe=Pe.Factory({Name:"JadeCutter",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"JadeCutter1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Next().observe.Target(d.stat.HP_PERCENT,d.stat.HP_FLAT,d.stat.HP_BASE).stat.Char(d.stat.ATK_FLAT).Values(.012,.015,.018,.021,.024).Map((i,e)=>i*e.GetCharacter().Get(d.stat.HP)).Build()})]}),joe=Pe.Factory({Name:"SummitShaper",Stars:5,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ATK_PERCENT,Effects:[tM("SummitShaper1")]}),qoe=Pe.Factory({Name:"AquilaFavonia",Type:d.weapon.SWORD,Stars:5,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"AquilaFavonia1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().instance.Basic({Name:"HIT_AquilaFavonia",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[2,2.3,2.6,2.9,3.2]}).Build()})]}),$oe=Pe.Factory({Name:"ToukabouShigure",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"ToukabouShigure1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.16,.2,.24,.28,.32).Build()})]}),Xoe=Pe.Factory({Name:"XiphosMoonlight",Type:d.weapon.SWORD,Stars:4,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[foe("XiphosMoonlight1",d.stat.ENERGY_RECHARGE,[.036/100,.045/100,.054/100,.063/100,.072/100])]}),Qoe=Pe.Factory({Name:"SapwoodBlade",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[Eoe("SapwoodBlade1")]}),Zoe=Pe.Factory({Name:"KagotsurubeIsshin",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"KagotsurubeIsshin1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_KagotsurubeIsshin",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1.8]}).Next().stat.Char(d.stat.ATK_PERCENT).Values(.15).Build()})]}),Joe=Pe.Factory({Name:"CinnabarSpindle",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.DEF_PERCENT,Effects:[k.Factory({Name:"CinnabarSpindle1",MaxRank:5,OnApply:new k.Builder().mv.Mv(d.stat.DEF,.4,i=>i.Options.Talent===d.stat.ELEMENTAL_SKILL_DMG).Map((i,e,t)=>[.4,.5,.6,.7,.8][t.GetRank()-1]).Build()})]}),eae=Pe.Factory({Name:"AmenomaKageuchi",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ATK_PERCENT,Effects:[]}),tae=Pe.Factory({Name:"FesteringDesire",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"FesteringDesire1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(d.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.06,.075,.09,.105,.12).Build()})]}),iae=Pe.Factory({Name:"SwordOfDescension",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_39b,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"SwordOfDescension1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_SwordOfDescension",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[2]}).Next().Where({target:{name:/traveler/i}}).stat.Char(d.stat.ATK_FLAT).Values(66).Build()})]}),nae=Pe.Factory({Name:"TheAlleyFlash",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_45,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"TheAlleyFlash1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),sae=Pe.Factory({Name:"BlackcliffLongsword",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.CRIT_DMG,Effects:[ty("BlackcliffLongsword1")]}),rae=Pe.Factory({Name:"IronSting",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"IronSting1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),oae=Pe.Factory({Name:"PrototypeRancour",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"PrototypeRancour1",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT,d.stat.DEF_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()})]}),aae=Pe.Factory({Name:"LionsRoar",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"LionsRoar1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.PYRO_DMG,d.stat.ELECTRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),lae=Pe.Factory({Name:"TheFlute",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"TheFlute1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_TheFlute",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),cae=Pe.Factory({Name:"RoyalGrimoire",Type:d.weapon.CATALYST,Stars:4,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[iy("RoyalGrimoire1")]}),uae=Pe.Factory({Name:"RoyalSpear",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[iy("RoyalSpear1")]}),dae=Pe.Factory({Name:"RoyalBow",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[iy("RoyalBow1")]}),hae=Pe.Factory({Name:"RoyalLongsword",Stars:4,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[iy("RoyalLongsword1")]}),fae=Pe.Factory({Name:"SkyriderSword",Stars:3,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_38,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"SkyriderSword1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Build()})]}),gae=Pe.Factory({Name:"DarkIronSword",Stars:3,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"DarkIronSword1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),pae=Pe.Factory({Name:"FilletBlade",Stars:3,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"FilletBlade1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_FilletBlade",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[2.4,2.8,3.2,3.6,4]}).Build()})]}),mae=Pe.Factory({Name:"TravelersHandySword",Stars:3,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_40,Substat:d.stat.DEF_PERCENT,Effects:[]}),_ae=Pe.Factory({Name:"HarbingerOfDawn",Stars:3,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"HarbingerOfDawn1",MaxRank:5,OnApply:new k.Builder().Where({target:{hp:{geq:.9}}}).stat.Char(d.stat.CRIT_RATE).Values(.14,.175,.21,.245,.28).Build()})]}),vae=Pe.Factory({Name:"CoolSteel",Stars:3,Type:d.weapon.SWORD,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"CoolSteel1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.CRYO_DMG,d.stat.HYDRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),bae=Pe.Factory({Name:"HuntersPath",Stars:5,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"HuntersPath1",MaxRank:5,Conditions:["HIT_CHARGED"],MaxConditions:1,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().observe.Target(d.stat.ELEMENTAL_MASTERY).Where({effect:{conditions:["HIT_CHARGED"]}}).stat.Char(d.stat.CHARGED_ATTACK_DMG_FLAT).Values(1.6,2,2.4,2.8,3.2).Map((i,e)=>i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Build()})]}),Cae=Pe.Factory({Name:"ThunderingPulse",Stars:5,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"ThunderingPulse1",MaxRank:5,MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().stat.Char(d.stat.NORMAL_ATTACK_DMG).Stacks([0,.12,.24,.4],[0,.15,.3,.5],[0,.18,.36,.6],[0,.21,.42,.7],[0,.24,.48,.8]).Build()})]}),Eae=Pe.Factory({Name:"AquaSimulacra",Stars:5,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"AquaSimulacra1",MaxRank:5,Conditions:["FAR","NEAR"],MaxConditions:1,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["NEAR"]}}).stat.Char(d.stat.ALL_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),Sae=Pe.Factory({Name:"PolarStar",Stars:5,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"PolarStar1",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Stacks([0,.1,.2,.3,.48],[0,.125,.25,.375,.6],[0,.15,.3,.45,.72],[0,.175,.35,.525,.84],[0,.2,.4,.6,.96]).Build()})]}),yae=Pe.Factory({Name:"AmosBow",Stars:5,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"AmosBow1",MaxRank:5,MaxStacks:5,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),Tae=Pe.Factory({Name:"EndOfTheLine",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"EndOfTheLine1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_EndOfTheLine",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.8,1,1.2,1.4,1.6]}).Build()})]}),wae=Pe.Factory({Name:"KingsSquire",Type:d.weapon.BOW,Stars:4,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"KingsSquire1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(60,80,100,120,140).Next().instance.Basic({Name:"HIT_KingsSquire",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1,1.2,1.4,1.6,1.8]}).Build()})]}),Aae=Pe.Factory({Name:"MouunsMoon",Type:d.weapon.BOW,Stars:4,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[n8("MouunsMoon1")]}),xae=Pe.Factory({Name:"Predator",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"Predator1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.1).Stacks().Next().Where({target:{name:"Aloy"}}).stat.Char(d.stat.ATK_FLAT).Values(66).Build()})]}),Lae=Pe.Factory({Name:"Hamayumi",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"Hamayumi1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().Where({target:{energy:{geq:1}}}).stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().Where({target:{energy:{geq:1}}}).stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().Build()})]}),Iae=Pe.Factory({Name:"WindblumeOde",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"WindblumeOde1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()})]}),Nae=Pe.Factory({Name:"MitternachtsWaltz",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"MitternachtsWaltz1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_SKILL"],MaxConditions:2,OnApply:new k.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),Mae=Pe.Factory({Name:"FadingTwilight",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"FadingTwilight1",MaxRank:5,MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Stacks([0,.06,.1,.14],[0,.075,.125,.175],[0,.09,.15,.21],[0,.105,.175,.245],[0,.12,.2,.28]).Build()})]}),Dae=Pe.Factory({Name:"AlleyHunter",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"AlleyHunter1",MaxRank:5,MaxStacks:10,OnApply:new k.Builder().stat.Char(d.stat.ALL_DMG).Values(.02,.025,.03,.035,.04).Stacks().Build()})]}),kae=Pe.Factory({Name:"TheViridescentHunt",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"TheViridescentHunt1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_TheViridescentHunt",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.4,.5,.6,.7,.8]}).Build()})]}),Rae=Pe.Factory({Name:"CompoundBow",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"CompoundBow1",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()})]}),Oae=Pe.Factory({Name:"PrototypeCrescent",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"PrototypeCrescent1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.36,.45,.54,.63,.72).Build()})]}),Pae=Pe.Factory({Name:"Rust",Type:d.weapon.BOW,Stars:4,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"Rust1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.4,.5,.6,.7,.8).Next().stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(-.1).Build()})]}),Fae=Pe.Factory({Name:"SacrificialBow",Type:d.weapon.BOW,Stars:4,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),Bae=Pe.Factory({Name:"TheStringless",Stars:4,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"TheStringless1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG,d.stat.ELEMENTAL_BURST_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),Hae=Pe.Factory({Name:"Messenger",Type:d.weapon.BOW,Stars:3,Scaling:P.WeaponScaling.TYPE_40,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"Messenger1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_Messenger",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),Gae=Pe.Factory({Name:"Slingshot",Stars:3,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_38,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"Slingshot1",MaxRank:5,Conditions:["FAR","NEAR"],MaxConditions:1,OnApply:new k.Builder().Where({effect:{conditions:["FAR"]}}).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.36,.42,.48,.54,.6).Next().Where({effect:{conditions:["NEAR"]}}).stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(-.1).Build()})]}),Vae=Pe.Factory({Name:"RecurveBow",Stars:3,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_38,Substat:d.stat.HP_PERCENT,Effects:[]}),Wae=Pe.Factory({Name:"SharpshootersOath",Stars:3,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"SharpshootersOath1",Conditions:["WEAK_SPOT"],MaxConditions:1,MaxRank:5,OnApply:new k.Builder().Where({effect:{conditions:["WEAK_SPOT"]}}).stat.Char(d.stat.AIMED_SHOT_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),zae=Pe.Factory({Name:"RavenBow",Stars:3,Type:d.weapon.BOW,Scaling:P.WeaponScaling.TYPE_40,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"RavenBow1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.PYRO_DMG,d.stat.ELECTRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),Kae=Pe.Factory({Name:"TulaytullahsRemembrance",Stars:5,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"TulaytullahsRemembrance1",MaxRank:5,MaxStacks:10,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.048,.06,.072,.084,.096).Stacks().Build()})]}),Uae=Pe.Factory({Name:"ThousandFloatingDreams",Type:d.weapon.CATALYST,Stars:5,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"ThousandFloatingDreams1",MaxRank:5,OnApply(i,e,t){const n=i.GetCharacter(),s=t.Modifier(n.CreateModifier(d.stat.ELEMENTAL_MASTERY,0)),r=[t.Modifier(n.CreateModifier(n.Options.Element,0)),t.Modifier(n.CreateModifier(n.Options.Element,0)),t.Modifier(n.CreateModifier(n.Options.Element,0))];function o(){r.forEach(h=>h.SetValue(0));let a=[n];const l=i.GetParty();l&&(a=l.GetMembers().map(h=>h.GetCharacter()));let c=0,u=0;for(const h of a)if(h!==n)if(h.Options.Element===n.Options.Element)c++;else{const p=r[u++];if(!p)continue;p.SetProp(h.Options.Element),p.SetValue(gYe[e.GetRank()-1])}c=Math.min(3,c),s.SetValue(fYe[e.GetRank()-1]*c)}return o(),t.Observer(i.Event.CreateObserver(Nt.CharboxEvent.CHANGE_PARTY,o)),t.Observer(e.Event.CreateObserver(k.EffectEvent.CHANGE_RANK,o)),()=>0}}),k.Factory({Name:"ThousandFloatingDreams2",MaxRank:5,ApplyOther:!0,ApplySelf:!1,StackSelf:!0,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(40,42,44,46,48).Build()})]}),fYe=[32,40,48,56,64],gYe=[.1,.14,.18,.22,.26],Yae=Pe.Factory({Name:"WanderingEvenstar",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"WanderingEvenstar1",StackSelf:!0,ApplyOther:!0,MaxRank:5,OnApply:new k.Builder().observe.Owner(d.stat.ELEMENTAL_MASTERY).stat.Char(d.stat.ATK_FLAT).Values(.24,.3,.36,.42,.48).Map((i,e,t)=>i*t.Owner.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)*(e===t.Owner?1:.3)).Build()})]}),jae=Pe.Factory({Name:"KagurasVerity",Stars:5,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"KagurasVerity1",MaxRank:5,MaxStacks:3,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.12,.15,.18,.21,.24).Stacks().Next().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Stacks([0,0,0,.12],[0,0,0,.15],[0,0,0,.18],[0,0,0,.21],[0,0,0,.24]).Build()})]}),qae=Pe.Factory({Name:"EverlastingMoonglow",Stars:5,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"EverlastingMoonglow1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.HEALING_BONUS).Values(.1,.125,.15,.175,.2).Next().observe.Target(d.stat.HP_PERCENT,d.stat.HP_BASE,d.stat.HP_FLAT).stat.Char(d.stat.NORMAL_ATTACK_DMG_FLAT).Values(.01,.015,.02,.025,.03).Map((i,e)=>i*e.GetCharacter().Get(d.stat.HP)).Build()})]}),$ae=Pe.Factory({Name:"MemoryOfDust",Stars:5,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ATK_PERCENT,Effects:[tM("MemoryOfDust1")]}),Xae=Pe.Factory({Name:"LostPrayer",Stars:5,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"LostPrayer1",MaxRank:5,MaxStacks:4,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),Qae=Pe.Factory({Name:"SkywardAtlas",Stars:5,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"SkywardAtlas1",MaxRank:5,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().instance.Basic({Name:"HIT_SkywardAtlas",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1.6,2,2.4,4.8,3.2]}).Build()})]}),Zae=Pe.Factory({Name:"FruitOfFulfillment",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"FruitOfFulfillment1",MaxRank:5,MaxStacks:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(24,27,30,33,36).Stacks().Next().stat.Char(d.stat.ATK_PERCENT).Values(-.05).Stacks().Build()})]}),Jae=Pe.Factory({Name:"OathswornEye",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"OathswornEye1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ENERGY_RECHARGE).Values(.24,.3,.36,.42,.48).Build()})]}),ele=Pe.Factory({Name:"HakushinRing",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"HakushinRing1",ApplyOther:!0,MaxRank:5,OnApply:new k.Builder().stat.Char().MapStat(i=>[i.GetCharacter().Options.Element]).Values(.1,.125,.15,.175,.2).Build()})]}),tle=Pe.Factory({Name:"DodocoTales",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"DodocoTales1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_CHARGED"],MaxConditions:2,OnApply:new k.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(d.stat.CHARGED_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["HIT_CHARGED"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.08,.1,.12,.14,.16).Next().Build()})]}),ile=Pe.Factory({Name:"Frostbearer",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[r8("Frostbearer1","HIT_Frostbearer")]}),nle=Pe.Factory({Name:"EyeOfPerception",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"EyeOfPerception1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_EyeOfPerception",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[2.4,2.7,3,3.3,3.6]}).Build()})]}),sle=Pe.Factory({Name:"BlackcliffAgate",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_DMG,Effects:[ty("BlackcliffAgate1")]}),rle=Pe.Factory({Name:"MappaMare",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"MappaMare1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),ole=Pe.Factory({Name:"PrototypeAmber",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.HP_PERCENT,Effects:[]}),ale=Pe.Factory({Name:"SolarPearl",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"SolarPearl1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_SKILL"],MaxConditions:2,OnApply:new k.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(d.stat.ELEMENTAL_SKILL_DMG,d.stat.ELEMENTAL_BURST_DMG).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Next().Build()})]}),lle=Pe.Factory({Name:"SacrificialFragments",Type:d.weapon.CATALYST,Stars:4,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[]}),cle=Pe.Factory({Name:"FavoniusCodex",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),ule=Pe.Factory({Name:"AmberBead",Stars:3,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"AmberBead1",MaxRank:5,MaxStacks:2,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),dle=Pe.Factory({Name:"TwinNephrite",Stars:3,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_40,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"TwinNephrite1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.12,.14,.16,.18,.2).Build()})]}),hle=Pe.Factory({Name:"EmeraldOrb",Stars:3,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_40,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"EmeraldOrb1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),fle=Pe.Factory({Name:"OtherworldlyStory",Stars:3,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),gle=Pe.Factory({Name:"ThrillingTalesOfDragonSlayers",Stars:3,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"ThrillingTalesOfDragonSlayers1",MaxRank:5,ApplySelf:!1,ApplyOther:!0,MaxTargets:1,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),ple=Pe.Factory({Name:"MagicGuide",Type:d.weapon.CATALYST,Stars:3,Scaling:P.WeaponScaling.TYPE_38,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"MagicGuide1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.HYDRO_DMG,d.stat.ELECTRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),mle=Pe.Factory({Name:"StaffOfTheScarletSands",Stars:5,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_44b,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"StaffOfTheScarletSands1",MaxRank:5,MaxStacks:3,OnApply:new k.Builder().observe.Target(d.stat.ELEMENTAL_MASTERY).stat.Char(d.stat.ATK_FLAT).Values(.52,.65,.78,.91,1.04).Map((i,e)=>i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Next().observe.Target(d.stat.ELEMENTAL_MASTERY).stat.Char(d.stat.ATK_FLAT).Values(.28,.35,.42,.49,.56).Stacks().Map((i,e)=>i*e.GetCharacter().Get(d.stat.ELEMENTAL_MASTERY)).Next().Build()})]}),_le=Pe.Factory({Name:"CalamityQueller",Stars:5,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_49,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"CalamityQueller1",MaxRank:5,MaxStacks:6,Conditions:["ON_FIELD","OFF_FIELD"],MaxConditions:1,OnApply:new k.Builder().stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char(d.stat.ATK_PERCENT).Values(.032,.04,.048,.056,.064).Stacks().Next().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.032,.04,.048,.056,.064).Stacks().Next().Build()})]}),vle=Pe.Factory({Name:"JadeSpear",Stars:5,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"JadeSpear1",MaxRank:5,MaxStacks:7,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.032,.039,.046,.053,.06).Stacks().Next().stat.Char(d.stat.ALL_DMG).Stacks([0,0,0,0,0,0,0,.12],[0,0,0,0,0,0,0,.15],[0,0,0,0,0,0,0,.18],[0,0,0,0,0,0,0,.21],[0,0,0,0,0,0,0,.24]).Build()})]}),ble=Pe.Factory({Name:"VortexVanquisher",Stars:5,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ATK_PERCENT,Effects:[tM("VortexVanquisher1")]}),Cle=Pe.Factory({Name:"SkywardSpine",Stars:5,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"SkywardSpine1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(.08,.1,.12,.14,.16).Next().instance.Basic({Name:"HIT_SkywardSpine",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.4,.55,.7,.85,1]}).Build()})]}),Ele=Pe.Factory({Name:"MissiveWindspear",Type:d.weapon.POLEARM,Stars:4,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"MissiveWindspear1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(48,60,72,84,96).Build()})]}),Sle=Pe.Factory({Name:"Moonpiercer",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"Moonpiercer1",ApplyOther:!0,MaxTargets:1,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()})]}),yle=Pe.Factory({Name:"EngulfingLightning",Stars:5,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"EngulfingLightning1",MaxRank:5,Conditions:["CAST_BURST","NO_BURST"],MaxConditions:1,OnApply:new k.Builder().observe.Target(d.stat.ENERGY_RECHARGE).stat.Char(d.stat.ATK_PERCENT).Values(.28,.35,.42,.49,.56).Map((i,e,t)=>pYe(i,e.GetCharacter().Get(d.stat.ENERGY_RECHARGE),t.GetRank())).Next().Where({effect:{conditions:["CAST_BURST"]}}).stat.Char(d.stat.ENERGY_RECHARGE).Values(.3,.35,.4,.45,.5).Build()})]});function pYe(i,e,t){return Math.min(i*Math.max(0,e-1),mYe[t-1])}var mYe=[.8,.9,1,1.1,1.2],Tle=Pe.Factory({Name:"WavebreakerFin",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_45,Substat:d.stat.ATK_PERCENT,Effects:[n8("WavebreakerFin1")]}),wle=Pe.Factory({Name:"KitainCrossSpear",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"KitainCrossSpear1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_SKILL_DMG).Values(.06,.075,.09,.105,.12).Build()})]}),Ale=Pe.Factory({Name:"DragonspineSpear",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.PHYSICAL_DMG,Effects:[r8("DragonspineSpear1","HIT_DragonspineSpear")]}),xle=Pe.Factory({Name:"LithicSpear",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ATK_PERCENT,Effects:[Toe("LithicSpear1")]}),Lle=Pe.Factory({Name:"CrescentPike",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.PHYSICAL_DMG,Effects:[k.Factory({Name:"CrescentPike1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_CrescentPike",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.2,.25,.3,.35,.4]}).Build()})]}),Ile=Pe.Factory({Name:"Halberd",Stars:3,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_40,Substat:d.stat.ATK_PERCENT,Effects:[k.Factory({Name:"Halberd1",MaxRank:5,OnApply:new k.Builder().instance.Basic({Name:"HIT_Halberd",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1.6,2,2.4,2.8,3.2]}).Build()})]}),Nle=Pe.Factory({Name:"DragonsBane",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ELEMENTAL_MASTERY,Effects:[k.Factory({Name:"DragonsBane1",MaxRank:5,OnApply:new k.Builder().Where({enemy:{affected:[d.stat.HYDRO_DMG,d.stat.PYRO_DMG]}}).stat.Char(d.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),Mle=Pe.Factory({Name:"SacrificialSword",Type:d.weapon.SWORD,Stars:4,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),Dle=Pe.Factory({Name:"ElegyForTheEnd",Type:d.weapon.BOW,Stars:5,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"ElegyForTheEnd1",ApplySelf:!0,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(60,75,90,105,120).Build()}),s8({Name:"ElegyForTheEnd2",OnApply:new k.Builder().stat.Char(d.stat.ELEMENTAL_MASTERY).Values(100,125,150,175,200).Next().stat.Char(d.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),kle=Pe.Factory({Name:"StaffOfHoma",Type:d.weapon.POLEARM,Stars:5,Scaling:P.WeaponScaling.TYPE_46,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"StaffOfHoma1",ApplySelf:!0,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Next().observe.Target(d.stat.HP_BASE,d.stat.HP_PERCENT,d.stat.HP_FLAT).stat.Char(d.stat.ATK_FLAT).Values(.008,.01,.012,.014,.016).Map((i,e)=>e.GetCharacter().Get(d.stat.HP)*i).Next().observe.Target(d.stat.HP_BASE,d.stat.HP_PERCENT,d.stat.HP_FLAT).stat.Char(d.stat.ATK_FLAT).Where({target:{hp:{leq:.5}}}).Values(.01,.012,.014,.016,.018).Map((i,e)=>e.GetCharacter().Get(d.stat.HP)*i).Build()})]}),Rle=Pe.Factory({Name:"FavoniusLance",Type:d.weapon.POLEARM,Stars:4,Scaling:P.WeaponScaling.TYPE_44,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),Ole=Pe.Factory({Name:"WhiteTassel",Stars:3,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_39,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"WhiteTassel1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),Ple=Pe.Factory({Name:"BlackTassel",Stars:3,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_38,Substat:d.stat.HP_PERCENT,Effects:[k.Factory({Name:"BlackTassel1",MaxRank:5,Conditions:["NO_SLIMES","SLIMES"],MaxConditions:1,OnApply:new k.Builder().Where({effect:{conditions:["SLIMES"]}}).stat.Char(d.stat.ALL_DMG).Values(.4,.5,.6,.7,.8).Build()})]}),Fle=Pe.Factory({Name:"PrototypeStarglitter",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.ENERGY_RECHARGE,Effects:[k.Factory({Name:"PrototypeStarglitter1",MaxStacks:2,MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.NORMAL_ATTACK_DMG,d.stat.CHARGED_ATTACK_DMG).Values(.08,.1,.12,.14,.16).Stacks().Next().Build()})]}),Ble=Pe.Factory({Name:"BlackcliffPole",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_DMG,Effects:[ty("BlackcliffPole1")]}),Hle=Pe.Factory({Name:"Deathmatch",Stars:4,Type:d.weapon.POLEARM,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"Deathmatch1",MaxRank:5,MaxConditions:1,Conditions:["ENEMY_1","ENEMY_2"],OnApply:new k.Builder().Where({effect:{conditions:["ENEMY_2"]}}).stat.Char(d.stat.ATK_PERCENT,d.stat.DEF_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["ENEMY_1"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),Gle=Pe.Factory({Name:"SkywardBlade",Stars:5,Type:d.weapon.SWORD,Substat:d.stat.ENERGY_RECHARGE,Scaling:P.WeaponScaling.TYPE_46,Effects:[k.Factory({Name:"SkywardBlade1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.CRIT_RATE).Values(.04,.05,.06,.07,.08).Next().instance.Basic({Name:"HIT_SkywardBlade",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[.2,.25,.3,.35,.4]}).Build()})]}),Vle=Pe.Factory({Name:"SkywardHarp",Type:d.weapon.BOW,Stars:5,Scaling:P.WeaponScaling.TYPE_48,Substat:d.stat.CRIT_RATE,Effects:[k.Factory({Name:"SkywardHarp1",MaxRank:5,OnApply:new k.Builder().stat.Char(d.stat.CRIT_DMG).Values(.2,.25,.3,.35,.4).Next().instance.Basic({Name:"HIT_SkywardHarp",Element:d.stat.PHYSICAL_DMG,Stat:d.stat.ATK,Values:[1.25]}).Build()})]}),Wle=Pe.Factory({Name:"FavoniusSword",Type:d.weapon.SWORD,Stars:4,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),zle=Pe.Factory({Name:"FavoniusWarbow",Type:d.weapon.BOW,Stars:4,Scaling:P.WeaponScaling.TYPE_41,Substat:d.stat.ENERGY_RECHARGE,Effects:[]}),Kle=Pe.Factory({Name:"TheWidsith",Stars:4,Type:d.weapon.CATALYST,Scaling:P.WeaponScaling.TYPE_42,Substat:d.stat.CRIT_DMG,Effects:[k.Factory({Name:"TheWidsith1",MaxRank:5,Conditions:["RECITATIVE","ARIA","INTERLUDE"],MaxConditions:1,OnApply:new k.Builder().Where({effect:{conditions:["RECITATIVE"]}}).stat.Char(d.stat.ATK_PERCENT).Values(.6,.75,.9,1.05,1.2).Next().Where({effect:{conditions:["ARIA"]}}).stat.Char(...d.Elements.filter(i=>i!==d.stat.PHYSICAL_DMG)).Values(.48,.6,.72,.84,.96).Next().Where({effect:{conditions:["INTERLUDE"]}}).stat.Char(d.stat.ELEMENTAL_MASTERY).Values(240,300,360,420,480).Build()})]}),Ule=Object.values(Vre).sort((i,e)=>i.Type===e.Type?i.Stars===e.Stars?i.Name.localeCompare(e.Name):i.Stars-e.Stars:i.Type-e.Type),$w={};for(const i of Ule)$w[i.Type]||($w[i.Type]=[]),$w[i.Type].push(i);var o8=new ho(i=>i.Name);o8.AddList(Ule);function Yle(){return o8.Get()}function _Ye(i){return o8.Find(i)}function vYe(i){return $w[i]||[]}var iM={};hi(iM,{FindByName:()=>CYe,GetList:()=>bYe});var hm=new ho(i=>i.Name);for(const i of Gre())i.Effects.forEach(e=>hm.Add(e));for(const i of Yle())i.Effects.forEach(e=>hm.Add(e));for(const i of Hse())i.Piece2.forEach(e=>hm.Add(e)),i.Piece4.forEach(e=>hm.Add(e));for(const i of Tne())hm.Add(i);function bYe(){return hm.Get()}function CYe(i){return hm.Find(i)}var ny={};hi(ny,{ArtifactStore:()=>yYe,CopyCharbox:()=>LYe,FilterArtifacts:()=>t3,PartyFrom:()=>EYe});function EYe(i){const e=new Nt.Party;for(const t in i.characters){const n=dm.FindByName(t);if(!n)throw new Error(`Character not found: ${t}`);const s=n();e.Add(s);const r=i.characters[t],o=Object.keys(r.weapon)[0];if(o){const a=ja.FindByName(o);if(!a)throw new Error(`Weapon not found: ${t}`);s.SetWeapon(a)}r.artifacts&&Object.keys(r.artifacts).length>0&&s.SetArtifacts(new Bm.Artbox(s))}return Nt.ImportParty(i,e),e}function t3(i,e,t){const n=e.map(s=>SYe(s));return t&&n.push({filter(s){return!(t.pieces&&!t.pieces.includes(s.piece)||t.only&&t.only==="locked"!==!!s.locked)}}),gie.Filter({values:i,mode:"every",filters:n})}function SYe(i){const e=i.pieces||d.piece.Values(),t=i.subsMode||"some";return{for(n){return e.includes(n.piece)},filter(n){if(i.main&&!i.main.includes(n.mainstat))return!1;if(i.subs){const s=n.substats.map(o=>o.stat);if(!i.subs[t](o=>s.includes(o)))return!1}return!(Number.isFinite(i.stars)&&n.stars<(i.stars||0)||Number.isFinite(i.level)&&n.level<(i.level||0))}}}var yYe=class{constructor(i){this.onChange=i,this.list=[],this.filtered=[]}Update(){this.onChange()}All(){return this.list}Clear(){this.list.splice(0,this.list.length),this.filtered.splice(0,this.filtered.length),this.onChange()}Add(i,e="push"){const t=Zt.Export(i);this.list[e](t),this.filtered=[...this.list],this.onChange()}AddExported(i,e="push"){this.list[e](i),this.filtered=[...this.list],this.onChange()}Filter(i,e){const{values:t}=t3(this.list,i,e);return this.filtered=t,t}Get(){return this.filtered}Replace(i,e){const t=this.list.indexOf(i);return t===-1?!1:(this.list.splice(t,1,e),this.onChange(),!0)}RemoveMultiple(i,e){const{indexes:t}=t3(this.list,i,e),n=[];return this.list.forEach((s,r)=>{t.includes(r)||n.push(s)}),this.list=n,this.onChange(),n.length}Remove(i){const e=this.list.indexOf(i);return e===-1?!1:(this.list.splice(e,1),this.onChange(),!0)}};function TYe(i,e){const t=i.GetArtifacts();let n=e.GetArtifacts();if(!t){e.SetArtifacts(void 0);return}n||(n=new Bm.Artbox(e),e.SetArtifacts(n));const s=n,r=t.GetActiveSets(),o=s.GetActiveSets(),a=(()=>{const l=new Map;return t.GetEffects().forEach(c=>{const u=c.GetTargets().map(h=>h===i?e:h);l.set(c.Options.Name,u)}),l})();s.GetArtifacts().forEach((l,c)=>{const u=t.Get(c);Zt.Import(Zt.Export(u),l)}),r.every(l=>o.includes(l))&&s.GetEffects().forEach(l=>{const c=a.get(l.Options.Name);c&&l.ApplyMultiple(c)})}var wYe=[[d.stat.NORMAL_ATTACK_LEVEL,d.stat.NORMAL_ATTACK_LEVEL_UP],[d.stat.ELEMENTAL_SKILL_LEVEL,d.stat.ELEMENTAL_SKILL_LEVEL_UP],[d.stat.ELEMENTAL_BURST_LEVEL,d.stat.ELEMENTAL_BURST_LEVEL_UP]];function AYe(i,e){const t=i.GetCharacter(),n=e.GetCharacter();for(const[s,r]of wYe){const o=t.Get(s)-t.Get(r),a=n.Get(r);n.Set(s,o+a)}}function xYe(i,e){const t=i.GetWeapon(),n=e.GetWeapon();if(!t){e.SetWeapon(void 0);return}if(!n||n.Options.Name!==t.Options.Name){const r=ja.FindByName(t.Options.Name);if(!r)throw new Error(`Weapon not found: ${t.Options.Name}`);e.SetWeapon(r)}const s=e.GetWeapon();if(!s)throw new Error("Target has no weapon");Pe.Import(Pe.Export(t),s)}function LYe(i,e){e.GetCharacter().SetLevel(i.GetCharacter().GetLevel()),e.GetCharacter().SetAscension(i.GetCharacter().GetAscension()),AYe(i,e),xYe(i,e),TYe(i,e)}var a8=class extends die{constructor(i){super(i),this.functions=new Map;const e=R1.Contexts("math","logic",{functions:{pick:{name:"pick",arguments:[{name:"index",description:"integer index of the item to pick, starting at 1"},"..."],evaluate({values:[n,...s]}){return s[n-1]}},var:{name:"var",arguments:[{name:"name",description:"name of the variable to set",expression:!0},{name:"value",description:"value to set the variable to"}],evaluate:({values:[,n],expressions:[s]})=>{const r=s.token.value;return t.setVar(r,n),n}},add:{name:"add",arguments:[{name:"variable",description:"name of the variable to add to",expression:!0},{name:"value",description:"value to add to the variable"}],evaluate:({values:[,n],expressions:[s],location:r})=>{const o=s.token.value,a=t.getVar(o);if(a===void 0)throw new Error(`Variable ${o} is not defined at ${r}`);const l=a+n;return t.setVar(o,l),l}},multiply:{name:"multiply",arguments:[{name:"variable",description:"name of the variable to multiply",expression:!0},{name:"value",description:"value to multiply the variable by"}],evaluate:({values:[,n],expressions:[s]})=>{const r=s.token.value,o=t.getVar(r);if(o===void 0)throw new Error(`Variable ${r} is not defined`);const a=o*n;return t.setVar(r,a),a}},func:{name:"func",description:"define a function. Example: function(myfunc, (arg1, arg2), (arg1 + arg2))",arguments:[{name:"name",description:"name of the function to define",expression:!0},{name:"arguments",description:"arguments to the function",expression:!0},{name:"body",description:"body of the function",expression:!0}],evaluate:({expressions:[n,s,r],location:o})=>{const a=n.token.value,l=s.children.length?s.children.map(({token:u})=>u.value):s.token.value==="0"?[]:[s.token.value],c=(()=>r.evaluate?[r.evaluate]:r.children.map(u=>u.evaluate||(()=>0)))();if(!c)throw new Error(`Function body is not an expression at ${o}`);return this.functions.set(a,{args:l,expr:c}),0}},call:{name:"call",description:"call a function. Example: call(myfunc, arg1, arg2)",arguments:[{name:"name",description:"name of the function to call",expression:!0},"..."],evaluate:({expressions:[n],values:[,...s],location:r})=>{var o;const a=n.token.value,l=this.functions.get(a);if(!l)throw new Error(`Function ${a} is not defined at ${r}`);if(s.length!==l.args.length)throw new Error(`Function ${a} expects ${l.args.length} arguments, but ${s.length} were provided at ${r}`);for(let c=0;cc()).pop())!=null?o:0}}}});e.ignoreCase=!0;const t=new R1(e);this.exprParser=t}};function Sn(i){if(typeof i=="number")return i;const e=i.endsWith("%");e&&(i=i.slice(0,i.length-1));let t=parseFloat(i);if(!Number.isFinite(t))throw new Error(`Invalid number format: "${i}"`);return e&&(t/=100),t}var IYe=()=>({show:{name:"show",description:"Shows the rolls of the character artifacts",compile(i,{context:e,logger:t}){return function(){const r=e.GetChar().GetArtifacts();if(!r){t.error("Current character has no artifacts");return}t.log(` `+r.GetArtifacts().map(o=>V.ArtifactRolls(o)).join(` `))}}},tier:{name:"tier",arguments:"tier",description:"Sets the rolls tier to equip.`",example:"artifact rolls tier 3",docs:{tier:"a number from 0 to 4, where 0 is the lowest tier and 3 is the highest tier.Also, the number 4 or the word `avg` can be used to set the tier to the average."},compile({values:[i]},{context:e,logger:t}){let n,s;return i==="avg"?(n=4,s="AVERAGE"):(n=Math.max(0,Math.min(4,Math.floor(Sn(i)))),s=n+""),function(){e.Config.substats.tier=n,t.logf("Rolls tier set to %s",s)}}},equip:{name:"equip",arguments:"stat rolls more...",description:"Equips the given rolls to the artifacts.Arguments in the form `[stat] [rolls] [stat] [rolls] ...`.",example:"artifact rolls equip crit_rate 10 crit_dmg 12 elemental_mastery 3",compile({values:i},{context:e,logger:t}){const n=[];for(let s=0;s({list:{name:"list",description:"Lists the registered artifact sets",compile(i,{logger:e}){const t=new V.Table(V.labels.SET,V.labels.STARS),n=Ha.GetList();return n.forEach(s=>t.AddRow(s.Name,s.Stars)),function(){e.logf("Total artifact sets: %d",n.length),e.log(` `+t.String())}}},add:{name:"add",description:"Adds a build of 5 artifacts to the current character",compile(i,{context:e,logger:t}){return function(){const s=e.GetChar();s.GetArtifacts()?t.warn("Artifacts not created. Character already has artifacts"):(s.SetArtifacts(new Bm.Artbox(s)),t.log("Artifacts created"))}}},fill:{name:"fill",description:"Adds 4 empty substats to all artifacts in the current character",compile(i,{context:e,logger:t}){return function(){const r=e.GetChar().GetArtifacts();r?(r.GetArtifacts().forEach(o=>o.FillSubstats()),t.log("All artifacts filled")):t.error("Character has no artifacts")}}},main:{name:"main",description:"Sets the mainstats of the character artifacts.",arguments:"sands goblet circlet",example:"artifact main atk_percent pyro_dmg crit_rate",compile({values:[i,e,t]},{context:n,logger:s}){const r=d.stat.Get(i.toUpperCase()),o=d.stat.Get(e.toUpperCase()),a=d.stat.Get(t.toUpperCase());return function(){const u=n.GetChar().GetArtifacts();if(!u){s.error("Current character has no artifacts");return}u.Get(2).SetMainstat(r),u.Get(3).SetMainstat(o),u.Get(4).SetMainstat(a);const h=u.GetArtifacts().map(p=>d.stat.Name(p.GetMainstat()));s.logf("Artifact mainstats set to %s",h.join(", "))}}},level:{name:"level",description:"Sets the level of all the artifacts of the current character.",example:"artifact level 20",arguments:"level",compile({values:[i]},{context:e,logger:t}){const n=Sn(i);return function(){const o=e.GetChar().GetArtifacts();if(!o){t.error("Current character has no artifacts");return}o.GetArtifacts().forEach(l=>l.SetLevel(n));const a=o.GetArtifacts().map(l=>l.GetLevel());t.logf("Artifact levels set to %s",a.join(", "))}}},stars:{name:"stars",description:"Sets the stars of all the artifacts of the current character.",example:"artifact stars 5",arguments:"stars",compile({values:[i]},{context:e,logger:t}){const n=Sn(i);return function(){const o=e.GetChar().GetArtifacts();if(!o){t.error("Current character has no artifacts");return}o.GetArtifacts().forEach(l=>l.SetStars(n));const a=o.GetArtifacts().map(l=>l.GetStars());t.logf("Artifact stars set to %s",a.join(", "))}}},remove:{name:"remove",description:"Removes all artifacts from the current character",compile(i,{context:e,logger:t}){return function(){e.GetChar().SetArtifacts(void 0),t.log("Artifacts removed")}}},show:{name:"show",description:"Shows the artifacts of the current character",compile(i,{context:e,logger:t}){return function(){const r=e.GetChar().GetArtifacts();if(!r){t.error("Current character has no artifacts");return}t.log(` @@ -1463,7 +1463,7 @@ resource mora 371480 # have a cost associated with them. # The cost will be calculated based on the resources # configured here. -`,kce={};hi(kce,{enka:()=>Rce,good:()=>Oce});var Rce={};hi(Rce,{Characters:()=>ece,FetchEnka:()=>jle,GetEnka:()=>ice,GetEnkaUrl:()=>qle,ParseEnka:()=>tce,Pieces:()=>Qle,PropMapStat:()=>Xle,Props:()=>i3,Sets:()=>Jle,Weapons:()=>Zle});var Oce={};hi(Oce,{MapPieces:()=>Pce,MapStats:()=>o3,Parse:()=>zje,ParseArtifact:()=>Fce});var Pce={flower:d.piece.FLOWER,plume:d.piece.PLUME,sands:d.piece.SANDS,goblet:d.piece.GOBLET,circlet:d.piece.CIRCLET},o3={hp:d.stat.HP_FLAT,hp_:d.stat.HP_PERCENT,atk:d.stat.ATK_FLAT,atk_:d.stat.ATK_PERCENT,def:d.stat.DEF_FLAT,def_:d.stat.DEF_PERCENT,eleMas:d.stat.ELEMENTAL_MASTERY,enerRech_:d.stat.ENERGY_RECHARGE,heal_:d.stat.HEALING_BONUS,critRate_:d.stat.CRIT_RATE,critDMG_:d.stat.CRIT_DMG,physical_dmg_:d.stat.PHYSICAL_DMG,anemo_dmg_:d.stat.ANEMO_DMG,geo_dmg_:d.stat.GEO_DMG,electro_dmg_:d.stat.ELECTRO_DMG,hydro_dmg_:d.stat.HYDRO_DMG,pyro_dmg_:d.stat.PYRO_DMG,cryo_dmg_:d.stat.CRYO_DMG,dendro_dmg_:d.stat.DENDRO_DMG};function Fce(i){const e=Pce[i.slotKey];d.piece.Name(e);const t=new Zt.Artifact(e),n=Ha.FindByName(i.setKey);n?t.SetSet(n.Name):(console.warn(`Could not find artifacts set "${i.setKey}"`),t.SetSet(i.setKey)),t.SetStars(i.rarity),t.SetLevel(i.level);const s=o3[i.mainStatKey];d.stat.Name(s),t.SetMainstat(s);for(const{key:r,value:o}of i.substats){const a=o3[r];d.stat.Name(a);let l=o;if(d.FlatStats.includes(a)||(l/=100),!Number.isFinite(l)||l<0)throw new Error(`Invalid substat value: ${l}`);t.AddSubstat(a,l)}return t}function zje(i){return(i.artifacts||[]).map(t=>Fce(t))}function Kje(){return new Worker("/genshin-damage-calc/v4/assets/worker.be5470e5.js")}ve.worker.SetGenerator(()=>{const i=new Kje,e=new ve.worker.VirtualWorker((t,n,s)=>i.postMessage({path:t,id:n,data:s}));return e.SetKiller(()=>{i.terminate(),e.Error("Worker terminated")}),i.addEventListener("message",({data:t})=>{if(t.error){e.Error(t.error);return}e.Recieve(t.path,t.id,t.data)}),e});const Uje=ve.characters.GetList().map(i=>i.Name),Yje=ve.weapons.GetList().map(i=>i.Name),jje=ve.sets.GetList().map(i=>i.Name),qje=ve.effects.GetList().map(i=>i.Name),$je=ve.foods.GetList().map(i=>i.Name),Xje=ve.stats.stat.Values().map(i=>ve.stats.stat.Name(i)).filter(i=>i!=="LEVEL"),Qje=ve.stats.aura.Values().map(i=>ve.stats.aura.Name(i)).filter(i=>i!=="LEVEL");function h8(i){const e=Object.keys(i.commands),t={characters:Uje,stats:Xje,effects:qje,commands:e,weapons:Yje,sets:jje,auras:Qje,foods:$je},n=Object.values(t).reduce((r,o)=>(o.forEach(a=>r.push(a)),r),[]);function s(r){r=r.toLowerCase().trim();for(const o in t)for(let a of t[o])if(a=a.toLowerCase().trim(),a===r)return o}return{groups:t,suggestions:n,findGroup:s}}const Zje={characters:"LABEL.CHARACTER",stats:"LABEL.STAT",effects:"LABEL.EFFECT",commands:"LABEL.COMMAND",weapons:"LABEL.WEAPON",sets:"LABEL.SET",auras:"LABEL.AURA",foods:"LABEL.EFFECTS_FOOD"};function Jje(i,e){const{suggestions:t}=h8(e);Vf.registerCompletionItemProvider(i,{provideCompletionItems(n,s){const r=n.getWordUntilPosition(s),o={startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:r.startColumn,endColumn:r.endColumn};return{suggestions:t.map(a=>({label:a,insertText:a,kind:Vf.CompletionItemKind.Value,range:o}))}}})}var eqe={"ACTION.ACCEPT":"Accept","ACTION.ADD":"Add","ACTION.ARTIFACTS_ADD":"Add artifacts","ACTION.ARTIFACT_ADD":"Add artifact","ACTION.ARTIFACT_ROLLS_SUMMARY":"Rolls summary","ACTION.ARTIFACT_ROLLS_SUMMARY_VIEW":"View rolls summary","ACTION.ARTIFACT_ROLLS_VIEW":"View rolls","ACTION.CANCEL":"Cancel","ACTION.CHANGE_PAGE_SIZE":"Change page size","ACTION.CHARACTER_ADD":"Add character","ACTION.CHARACTER_REMOVE":"Remove character","ACTION.CLEAR":"Clear","ACTION.CLOSE":"Close","ACTION.CONSOLE_TOGGLE":"Toggle console","ACTION.COPY":"Copy","ACTION.EDIT":"Edit","ACTION.EDITOR_CLOSE":"Close editor","ACTION.EDITOR_GO":"Go to the Editor","ACTION.EDITOR_OPEN":"Open editor","ACTION.ENKA_IMPORT":"Import from Enka.Network","ACTION.EXPORT":"Export","ACTION.EXPORT.CSV":"Export CSV","ACTION.EXPORT.IMAGE":"Export image","ACTION.FILTER_ADD":"Add filter","ACTION.GOOD_IMPORT":"Import from GOOD format","ACTION.GOTO_PAGE":"Go to page","ACTION.IMPORT":"Import","ACTION.LOAD":"Load","ACTION.LOAD_TO_EDITOR":"Load to the editor","ACTION.LOCK":"Lock","ACTION.OPTIMIZE":"Optimize","ACTION.OPTIMIZER_USE_OPTIMAL_SUBSTATS":"Use optimal substats for each combination","ACTION.PROJECT_NEW":"New project","ACTION.REMOVE":"Remove","ACTION.RESULTS_CLEAR":"Clear results","ACTION.RESULTS_SHOW":"Show results","ACTION.ROTATION_DETAIL_SHOW":"Show hit-by-hit details","ACTION.RUN":"Run","ACTION.SAVE":"Save","ACTION.UNLOCK":"Unlock","ARTIFACT.CIRCLET":"Circlet","ARTIFACT.FLOWER":"Flower","ARTIFACT.GOBLET":"Goblet","ARTIFACT.PLUME":"Plume","ARTIFACT.SANDS":"Sands","AURA.CRYO":"Cryo","AURA.DENDRO":"Dendro","AURA.ELECTRO":"Electro","AURA.FROZEN":"Frozen","AURA.HYDRO":"Hydro","AURA.NONE":"No auras","AURA.PYRO":"Pyro","AURA.QUICKEN":"Quicken","CONDITION.AGGRAVATE":"Aggravate","CONDITION.ARIA":"Aria (DMG%)","CONDITION.ARKHE_OUSIA":"Arkhe Ousia","CONDITION.ARKHE_PNEUMA":"Arkhe Pneuma","CONDITION.AVERAGE":"Average","CONDITION.BLOOM":"Bloom","CONDITION.BURGEON":"Burgeon","CONDITION.BURNING":"Burning","CONDITION.CAST_BURST":"Cast burst","CONDITION.CAST_SKILL":"Cast E","CONDITION.CRYSTALLIZE":"Crystallize","CONDITION.DMG_TAKEN":"Damage taken","CONDITION.ENEMY_1":"1 Enemy","CONDITION.ENEMY_2":"2+ Enemies","CONDITION.FAR":"Far","CONDITION.HEALED":"Healed","CONDITION.HIT_CHARGED":"Charged Hits","CONDITION.HIT_NORMAL":"Normal Hits","CONDITION.HIT_SKILL":"Skill hits","CONDITION.HOLD":{title:"Hold"},"CONDITION.HYPERBLOOM":"Hyperbloom","CONDITION.INTERLUDE":"Interlude (EM)","CONDITION.MAXIMUM":"Maximum","CONDITION.MECHA":"Mechanoid","CONDITION.NEAR":"Near","CONDITION.NO_BURST":"No burst","CONDITION.NO_SLIMES":"No slimes","CONDITION.OFF_FIELD":"Off Field","CONDITION.ON_FIELD":"On-Field","CONDITION.PRESS":{title:"Press"},"CONDITION.QUICKEN":"Quicken","CONDITION.RECITATIVE":"Recitative (ATK%)","CONDITION.SLIMES":"Slimes","CONDITION.SNAPSHOT":"Snapshot","CONDITION.SPREAD":"Spread","CONDITION.WEAK_SPOT":"Weak Spot",FOOD_RANK_1:"Suspicious",FOOD_RANK_2:"Normal",FOOD_RANK_3:"Delicious",FOOD_TYPE_0:"Offensive",FOOD_TYPE_1:"Defensive",FOOD_TYPE_3:"Elemental",HIT_AGGRAVATE:"Aggravate",HIT_AIMED_CHARGED:"Fully-Charged Aimed Shot",HIT_AIMED_NORMAL:"Aimed Shot",HIT_BLOOM:"Bloom",HIT_BURGEON:"Burgeon",HIT_BURNING:"Burning",HIT_CHARGED:"Charged Attack",HIT_CHARGED_1:"Charged Attack (x1)",HIT_CHARGED_1_E:"Charged Attack (x1)",HIT_CHARGED_1_Q:"Charged Attack (x1)",HIT_CHARGED_2:"Charged Attack (x2)",HIT_CHARGED_2_E:"Charged Attack (x2)",HIT_CHARGED_2_Q:"Charged Attack (x2)",HIT_CHARGED_3:"Charged Attack (x3)",HIT_CHARGED_4:"Charged Attack (x4)",HIT_CHARGED_FINAL:"Charged Attack (final)",HIT_CHARGED_Q:"Charged Attack",HIT_CHARGED_SPIN:"Charged Attack (spin)",HIT_E:"Elemental Skill",HIT_ELECTROCHARGE:"Electrochage",HIT_E_1:"Elemental Skill (x1)",HIT_E_2:"Elemental Skill (x2)",HIT_E_3:"Elemental Skill (x3)",HIT_E_4:"Elemental Skill (x4)",HIT_E_DOT:"Elemental Skill (DoT)",HIT_E_EXPLOSION:"Elemental Skill (Explosion)",HIT_E_HOLD:"Elemental Skill (Hold)",HIT_E_PRESS:"Elemental Skill (Press)",HIT_HYPERBLOOM:"Hyperbloom",HIT_N1:"Hit 1",HIT_N1_1:"Hit 1 (x1)",HIT_N1_2:"Hit 1 (x2)",HIT_N1_3:"Hit 1 (x3)",HIT_N1_4:"Hit 1 (x4)",HIT_N1_E:"Hit 1",HIT_N1_Q:"Hit 1",HIT_N2:"Hit 2",HIT_N2_1:"Hit 2 (x1)",HIT_N2_2:"Hit 2 (x2)",HIT_N2_3:"Hit 2 (x3)",HIT_N2_4:"Hit 2 (x4)",HIT_N2_E:"Hit 2",HIT_N2_Q:"Hit 2",HIT_N3:"Hit 3",HIT_N3_1:"Hit 3 (x1)",HIT_N3_2:"Hit 3 (x2)",HIT_N3_3:"Hit 3 (x3)",HIT_N3_4:"Hit 3 (x4)",HIT_N3_E:"Hit 3",HIT_N3_Q:"Hit 3",HIT_N4:"Hit 4",HIT_N4_1:"Hit 4 (x1)",HIT_N4_2:"Hit 4 (x2)",HIT_N4_3:"Hit 4 (x3)",HIT_N4_4:"Hit 4 (x4)",HIT_N4_E:"Hit 4",HIT_N4_Q:"Hit 4",HIT_N5:"Hit 5",HIT_N5_1:"Hit 5 (x1)",HIT_N5_2:"Hit 5 (x2)",HIT_N5_3:"Hit 5 (x3)",HIT_N5_4:"Hit 5 (x4)",HIT_N5_E:"Hit 5",HIT_N5_Q:"Hit 5",HIT_N6:"Hit 6",HIT_N6_1:"Hit 6 (x1)",HIT_N6_1_E:"Hit 6 (x1)",HIT_N6_2:"Hit 6 (x2)",HIT_N6_2_E:"Hit 6 (x2)",HIT_N6_3:"Hit 6 (x3)",HIT_N6_4:"Hit 6 (x4)",HIT_N6_E:"Hit 6",HIT_N6_Q:"Hit 6",HIT_OVERLOAD:"Overload",HIT_PLUNGE:"Plunge",HIT_PLUNGE_HIGH:"High plunge",HIT_PLUNGE_HIGH_Q:"High plunge",HIT_PLUNGE_LOW:"Low plunge",HIT_PLUNGE_LOW_Q:"Low plunge",HIT_PLUNGE_Q:"Plunge",HIT_Q:"Elemental Burst",HIT_Q_1:"Elemental Burst (x1)",HIT_Q_2:"Elemental Burst (x2)",HIT_Q_3:"Elemental Burst (x3)",HIT_Q_4:"Elemental Burst (x4)",HIT_Q_ADDITIONAL:"Elemental Burst (Additional)",HIT_Q_DOT:"Elemental Burst (DoT)",HIT_Q_EXPLOSION:"Elemental Burst (Explosion)",HIT_SHATTER:"Shatter",HIT_SPREAD:"Spread",HIT_SUPERCONDUCT:"Superconduct",HIT_SWIRL:"Swirl",HIT_SWIRL_CRYO:"Cryo Swirl",HIT_SWIRL_ELECTRO:"Electro Swirl",HIT_SWIRL_HYDRO:"Hydro Swirl",HIT_SWIRL_PYRO:"Pyro Swirl","ITEM.Akuoumaru":{title:"Akuoumaru"},"ITEM.Akuoumaru1":{description:["For every point of the entire party's combined maximum ","Energy, the Elemental Burst DMG of the character ","equipping this weapon is increased by ","**#rank{0.12|0.15|0.18|0.21|0.24}%**. A maximum of ","**#rank{40|50|60|70|80}%** increased Elemental ","Burst DMG can be achieved this way. "],title:"Akuoumaru (1)"},"ITEM.Albedo":"Albedo","ITEM.Albedo.HIT_E_DOT":"Transient Blossom DMG","ITEM.Albedo.HIT_Q_DOT":"Fatal Blossom DMG","ITEM.AlbedoA1":{description:["Transient Blossoms generated by **Abiogenesis: Solar ","Isotoma** deal 25% more DMG to opponents whose HP is below ","50%. "],title:"Calcite Might"},"ITEM.AlbedoA4":{description:["Using Rite of Progeniture: Tectonic Tide increases the ","Elemental Mastery of nearby party members by 125 for 10s. "],title:"Homuncular Nature"},"ITEM.AlbedoC2":{description:["Transient Blossoms generated by **Abiogenesis: Solar ","Isotoma** grant Albedo Fatal Reckoning for 30s: ","Unleashing **Rite of Progeniture: Tectonic Tide** ","consumes all stacks of Fatal Reckoning. Each stack of ","Fatal Reckoning consumed increases the DMG dealt by ","Fatal Blossoms and **Rite of Progeniture: Tectonic ","Tide**'s burst DMG by 30% of Albedo's DEF. self effect ","stacks up to 4 times. "],title:"Opening of Phanerozoic"},"ITEM.AlbedoC3":{description:["Increases the Level of **Abiogenesis: Solar Isotoma** ","by 3. Maximum upgrade level is 15. "],title:"Grace of Helios"},"ITEM.AlbedoC4":{description:["Active party members within the Solar Isotoma field have ","their Plunging Attack DMG increased by 30%. "],title:"Descent of Divinity"},"ITEM.AlbedoC5":{description:["Increases the Level of **Rite of Progeniture: Tectonic ","Tide** by 3. Maximum upgrade level is 15. "],title:"Tide of Hadean"},"ITEM.AlbedoC6":{description:["Active party members within the Solar Isotoma field who ","are protected by a shield created by Crystallize have ","their DMG increased by 17%. "],title:"Dust of Purification"},"ITEM.Alhaitham":"Alhaitham","ITEM.Alhaitham.HIT_E_DOT_1":"1-Mirror Projection Attack DMG","ITEM.Alhaitham.HIT_E_DOT_2":"2-Mirror Projection Attack DMG","ITEM.Alhaitham.HIT_E_DOT_3":"3-Mirror Projection Attack DMG","ITEM.AlhaithamA4":{description:["Each point of Alhaitham\u2019s Elemental Mastery will increase the DMG dealt","by Projection Attacks and Particular Field: Fetters of Phenomena by 0.1%.","The DMG of both aforementioned abilities can be increased by a maximum of 100% this way."],title:"Mysteries Laid Bare"},"ITEM.AlhaithamC2":{description:["When Alhaitham generates a Chisel-Light Mirror, his Elemental Mastery","will be increased by 50 for 8 seconds, max 4 stacks. Each stack\u2019s duration","is counted independently. This effect can be triggered even when the maximum","number of Chisel-Light Mirrors has been reached."],title:"Debate"},"ITEM.AlhaithamC3":{description:["Increases the Level of Universality: An Elaboration on Form by 3.","Maximum upgrade level is 15."],title:"Negation"},"ITEM.AlhaithamC4":{description:["When Particular Field: Fetters of Phenomena is unleashed, the following effects","will become active based on the number of Chisel-Light Mirrors consumed and",`created this time around: +`,kce={};hi(kce,{enka:()=>Rce,good:()=>Oce});var Rce={};hi(Rce,{Characters:()=>ece,FetchEnka:()=>jle,GetEnka:()=>ice,GetEnkaUrl:()=>qle,ParseEnka:()=>tce,Pieces:()=>Qle,PropMapStat:()=>Xle,Props:()=>i3,Sets:()=>Jle,Weapons:()=>Zle});var Oce={};hi(Oce,{MapPieces:()=>Pce,MapStats:()=>o3,Parse:()=>zje,ParseArtifact:()=>Fce});var Pce={flower:d.piece.FLOWER,plume:d.piece.PLUME,sands:d.piece.SANDS,goblet:d.piece.GOBLET,circlet:d.piece.CIRCLET},o3={hp:d.stat.HP_FLAT,hp_:d.stat.HP_PERCENT,atk:d.stat.ATK_FLAT,atk_:d.stat.ATK_PERCENT,def:d.stat.DEF_FLAT,def_:d.stat.DEF_PERCENT,eleMas:d.stat.ELEMENTAL_MASTERY,enerRech_:d.stat.ENERGY_RECHARGE,heal_:d.stat.HEALING_BONUS,critRate_:d.stat.CRIT_RATE,critDMG_:d.stat.CRIT_DMG,physical_dmg_:d.stat.PHYSICAL_DMG,anemo_dmg_:d.stat.ANEMO_DMG,geo_dmg_:d.stat.GEO_DMG,electro_dmg_:d.stat.ELECTRO_DMG,hydro_dmg_:d.stat.HYDRO_DMG,pyro_dmg_:d.stat.PYRO_DMG,cryo_dmg_:d.stat.CRYO_DMG,dendro_dmg_:d.stat.DENDRO_DMG};function Fce(i){const e=Pce[i.slotKey];d.piece.Name(e);const t=new Zt.Artifact(e),n=Ha.FindByName(i.setKey);n?t.SetSet(n.Name):(console.warn(`Could not find artifacts set "${i.setKey}"`),t.SetSet(i.setKey)),t.SetStars(i.rarity),t.SetLevel(i.level);const s=o3[i.mainStatKey];d.stat.Name(s),t.SetMainstat(s);for(const{key:r,value:o}of i.substats){const a=o3[r];d.stat.Name(a);let l=o;if(d.FlatStats.includes(a)||(l/=100),!Number.isFinite(l)||l<0)throw new Error(`Invalid substat value: ${l}`);t.AddSubstat(a,l)}return t}function zje(i){return(i.artifacts||[]).map(t=>Fce(t))}function Kje(){return new Worker("/genshin-damage-calc/v4/assets/worker.091c849b.js")}ve.worker.SetGenerator(()=>{const i=new Kje,e=new ve.worker.VirtualWorker((t,n,s)=>i.postMessage({path:t,id:n,data:s}));return e.SetKiller(()=>{i.terminate(),e.Error("Worker terminated")}),i.addEventListener("message",({data:t})=>{if(t.error){e.Error(t.error);return}e.Recieve(t.path,t.id,t.data)}),e});const Uje=ve.characters.GetList().map(i=>i.Name),Yje=ve.weapons.GetList().map(i=>i.Name),jje=ve.sets.GetList().map(i=>i.Name),qje=ve.effects.GetList().map(i=>i.Name),$je=ve.foods.GetList().map(i=>i.Name),Xje=ve.stats.stat.Values().map(i=>ve.stats.stat.Name(i)).filter(i=>i!=="LEVEL"),Qje=ve.stats.aura.Values().map(i=>ve.stats.aura.Name(i)).filter(i=>i!=="LEVEL");function h8(i){const e=Object.keys(i.commands),t={characters:Uje,stats:Xje,effects:qje,commands:e,weapons:Yje,sets:jje,auras:Qje,foods:$je},n=Object.values(t).reduce((r,o)=>(o.forEach(a=>r.push(a)),r),[]);function s(r){r=r.toLowerCase().trim();for(const o in t)for(let a of t[o])if(a=a.toLowerCase().trim(),a===r)return o}return{groups:t,suggestions:n,findGroup:s}}const Zje={characters:"LABEL.CHARACTER",stats:"LABEL.STAT",effects:"LABEL.EFFECT",commands:"LABEL.COMMAND",weapons:"LABEL.WEAPON",sets:"LABEL.SET",auras:"LABEL.AURA",foods:"LABEL.EFFECTS_FOOD"};function Jje(i,e){const{suggestions:t}=h8(e);Vf.registerCompletionItemProvider(i,{provideCompletionItems(n,s){const r=n.getWordUntilPosition(s),o={startLineNumber:s.lineNumber,endLineNumber:s.lineNumber,startColumn:r.startColumn,endColumn:r.endColumn};return{suggestions:t.map(a=>({label:a,insertText:a,kind:Vf.CompletionItemKind.Value,range:o}))}}})}var eqe={"ACTION.ACCEPT":"Accept","ACTION.ADD":"Add","ACTION.ARTIFACTS_ADD":"Add artifacts","ACTION.ARTIFACT_ADD":"Add artifact","ACTION.ARTIFACT_ROLLS_SUMMARY":"Rolls summary","ACTION.ARTIFACT_ROLLS_SUMMARY_VIEW":"View rolls summary","ACTION.ARTIFACT_ROLLS_VIEW":"View rolls","ACTION.CANCEL":"Cancel","ACTION.CHANGE_PAGE_SIZE":"Change page size","ACTION.CHARACTER_ADD":"Add character","ACTION.CHARACTER_REMOVE":"Remove character","ACTION.CLEAR":"Clear","ACTION.CLOSE":"Close","ACTION.CONSOLE_TOGGLE":"Toggle console","ACTION.COPY":"Copy","ACTION.EDIT":"Edit","ACTION.EDITOR_CLOSE":"Close editor","ACTION.EDITOR_GO":"Go to the Editor","ACTION.EDITOR_OPEN":"Open editor","ACTION.ENKA_IMPORT":"Import from Enka.Network","ACTION.EXPORT":"Export","ACTION.EXPORT.CSV":"Export CSV","ACTION.EXPORT.IMAGE":"Export image","ACTION.FILTER_ADD":"Add filter","ACTION.GOOD_IMPORT":"Import from GOOD format","ACTION.GOTO_PAGE":"Go to page","ACTION.IMPORT":"Import","ACTION.LOAD":"Load","ACTION.LOAD_TO_EDITOR":"Load to the editor","ACTION.LOCK":"Lock","ACTION.OPTIMIZE":"Optimize","ACTION.OPTIMIZER_USE_OPTIMAL_SUBSTATS":"Use optimal substats for each combination","ACTION.PROJECT_NEW":"New project","ACTION.REMOVE":"Remove","ACTION.RESULTS_CLEAR":"Clear results","ACTION.RESULTS_SHOW":"Show results","ACTION.ROTATION_DETAIL_SHOW":"Show hit-by-hit details","ACTION.RUN":"Run","ACTION.SAVE":"Save","ACTION.UNLOCK":"Unlock","ARTIFACT.CIRCLET":"Circlet","ARTIFACT.FLOWER":"Flower","ARTIFACT.GOBLET":"Goblet","ARTIFACT.PLUME":"Plume","ARTIFACT.SANDS":"Sands","AURA.CRYO":"Cryo","AURA.DENDRO":"Dendro","AURA.ELECTRO":"Electro","AURA.FROZEN":"Frozen","AURA.HYDRO":"Hydro","AURA.NONE":"No auras","AURA.PYRO":"Pyro","AURA.QUICKEN":"Quicken","CONDITION.AGGRAVATE":"Aggravate","CONDITION.ARIA":"Aria (DMG%)","CONDITION.ARKHE_OUSIA":"Arkhe Ousia","CONDITION.ARKHE_PNEUMA":"Arkhe Pneuma","CONDITION.AVERAGE":"Average","CONDITION.BLOOM":"Bloom","CONDITION.BURGEON":"Burgeon","CONDITION.BURNING":"Burning","CONDITION.CAST_BURST":"Cast burst","CONDITION.CAST_SKILL":"Cast E","CONDITION.CRYSTALLIZE":"Crystallize","CONDITION.DMG_TAKEN":"Damage taken","CONDITION.ENEMY_1":"1 Enemy","CONDITION.ENEMY_2":"2+ Enemies","CONDITION.FAR":"Far","CONDITION.HEALED":"Healed","CONDITION.HIT_CHARGED":"Charged Hits","CONDITION.HIT_NORMAL":"Normal Hits","CONDITION.HIT_SKILL":"Skill hits","CONDITION.HOLD":{title:"Hold"},"CONDITION.HYPERBLOOM":"Hyperbloom","CONDITION.INTERLUDE":"Interlude (EM)","CONDITION.MAXIMUM":"Maximum","CONDITION.MECHA":"Mechanoid","CONDITION.NEAR":"Near","CONDITION.NO_BURST":"No burst","CONDITION.NO_SLIMES":"No slimes","CONDITION.OFF_FIELD":"Off Field","CONDITION.ON_FIELD":"On-Field","CONDITION.PRESS":{title:"Press"},"CONDITION.QUICKEN":"Quicken","CONDITION.RECITATIVE":"Recitative (ATK%)","CONDITION.SLIMES":"Slimes","CONDITION.SNAPSHOT":"Snapshot","CONDITION.SPREAD":"Spread","CONDITION.WEAK_SPOT":"Weak Spot",FOOD_RANK_1:"Suspicious",FOOD_RANK_2:"Normal",FOOD_RANK_3:"Delicious",FOOD_TYPE_0:"Offensive",FOOD_TYPE_1:"Defensive",FOOD_TYPE_3:"Elemental",HIT_AGGRAVATE:"Aggravate",HIT_AIMED_CHARGED:"Fully-Charged Aimed Shot",HIT_AIMED_NORMAL:"Aimed Shot",HIT_BLOOM:"Bloom",HIT_BURGEON:"Burgeon",HIT_BURNING:"Burning",HIT_CHARGED:"Charged Attack",HIT_CHARGED_1:"Charged Attack (x1)",HIT_CHARGED_1_E:"Charged Attack (x1)",HIT_CHARGED_1_Q:"Charged Attack (x1)",HIT_CHARGED_2:"Charged Attack (x2)",HIT_CHARGED_2_E:"Charged Attack (x2)",HIT_CHARGED_2_Q:"Charged Attack (x2)",HIT_CHARGED_3:"Charged Attack (x3)",HIT_CHARGED_4:"Charged Attack (x4)",HIT_CHARGED_FINAL:"Charged Attack (final)",HIT_CHARGED_Q:"Charged Attack",HIT_CHARGED_SPIN:"Charged Attack (spin)",HIT_E:"Elemental Skill",HIT_ELECTROCHARGE:"Electrochage",HIT_E_1:"Elemental Skill (x1)",HIT_E_2:"Elemental Skill (x2)",HIT_E_3:"Elemental Skill (x3)",HIT_E_4:"Elemental Skill (x4)",HIT_E_DOT:"Elemental Skill (DoT)",HIT_E_EXPLOSION:"Elemental Skill (Explosion)",HIT_E_HOLD:"Elemental Skill (Hold)",HIT_E_PRESS:"Elemental Skill (Press)",HIT_HYPERBLOOM:"Hyperbloom",HIT_N1:"Hit 1",HIT_N1_1:"Hit 1 (x1)",HIT_N1_2:"Hit 1 (x2)",HIT_N1_3:"Hit 1 (x3)",HIT_N1_4:"Hit 1 (x4)",HIT_N1_E:"Hit 1",HIT_N1_Q:"Hit 1",HIT_N2:"Hit 2",HIT_N2_1:"Hit 2 (x1)",HIT_N2_2:"Hit 2 (x2)",HIT_N2_3:"Hit 2 (x3)",HIT_N2_4:"Hit 2 (x4)",HIT_N2_E:"Hit 2",HIT_N2_Q:"Hit 2",HIT_N3:"Hit 3",HIT_N3_1:"Hit 3 (x1)",HIT_N3_2:"Hit 3 (x2)",HIT_N3_3:"Hit 3 (x3)",HIT_N3_4:"Hit 3 (x4)",HIT_N3_E:"Hit 3",HIT_N3_Q:"Hit 3",HIT_N4:"Hit 4",HIT_N4_1:"Hit 4 (x1)",HIT_N4_2:"Hit 4 (x2)",HIT_N4_3:"Hit 4 (x3)",HIT_N4_4:"Hit 4 (x4)",HIT_N4_E:"Hit 4",HIT_N4_Q:"Hit 4",HIT_N5:"Hit 5",HIT_N5_1:"Hit 5 (x1)",HIT_N5_2:"Hit 5 (x2)",HIT_N5_3:"Hit 5 (x3)",HIT_N5_4:"Hit 5 (x4)",HIT_N5_E:"Hit 5",HIT_N5_Q:"Hit 5",HIT_N6:"Hit 6",HIT_N6_1:"Hit 6 (x1)",HIT_N6_1_E:"Hit 6 (x1)",HIT_N6_2:"Hit 6 (x2)",HIT_N6_2_E:"Hit 6 (x2)",HIT_N6_3:"Hit 6 (x3)",HIT_N6_4:"Hit 6 (x4)",HIT_N6_E:"Hit 6",HIT_N6_Q:"Hit 6",HIT_OVERLOAD:"Overload",HIT_PLUNGE:"Plunge",HIT_PLUNGE_HIGH:"High plunge",HIT_PLUNGE_HIGH_Q:"High plunge",HIT_PLUNGE_LOW:"Low plunge",HIT_PLUNGE_LOW_Q:"Low plunge",HIT_PLUNGE_Q:"Plunge",HIT_Q:"Elemental Burst",HIT_Q_1:"Elemental Burst (x1)",HIT_Q_2:"Elemental Burst (x2)",HIT_Q_3:"Elemental Burst (x3)",HIT_Q_4:"Elemental Burst (x4)",HIT_Q_ADDITIONAL:"Elemental Burst (Additional)",HIT_Q_DOT:"Elemental Burst (DoT)",HIT_Q_EXPLOSION:"Elemental Burst (Explosion)",HIT_SHATTER:"Shatter",HIT_SPREAD:"Spread",HIT_SUPERCONDUCT:"Superconduct",HIT_SWIRL:"Swirl",HIT_SWIRL_CRYO:"Cryo Swirl",HIT_SWIRL_ELECTRO:"Electro Swirl",HIT_SWIRL_HYDRO:"Hydro Swirl",HIT_SWIRL_PYRO:"Pyro Swirl","ITEM.Akuoumaru":{title:"Akuoumaru"},"ITEM.Akuoumaru1":{description:["For every point of the entire party's combined maximum ","Energy, the Elemental Burst DMG of the character ","equipping this weapon is increased by ","**#rank{0.12|0.15|0.18|0.21|0.24}%**. A maximum of ","**#rank{40|50|60|70|80}%** increased Elemental ","Burst DMG can be achieved this way. "],title:"Akuoumaru (1)"},"ITEM.Albedo":"Albedo","ITEM.Albedo.HIT_E_DOT":"Transient Blossom DMG","ITEM.Albedo.HIT_Q_DOT":"Fatal Blossom DMG","ITEM.AlbedoA1":{description:["Transient Blossoms generated by **Abiogenesis: Solar ","Isotoma** deal 25% more DMG to opponents whose HP is below ","50%. "],title:"Calcite Might"},"ITEM.AlbedoA4":{description:["Using Rite of Progeniture: Tectonic Tide increases the ","Elemental Mastery of nearby party members by 125 for 10s. "],title:"Homuncular Nature"},"ITEM.AlbedoC2":{description:["Transient Blossoms generated by **Abiogenesis: Solar ","Isotoma** grant Albedo Fatal Reckoning for 30s: ","Unleashing **Rite of Progeniture: Tectonic Tide** ","consumes all stacks of Fatal Reckoning. Each stack of ","Fatal Reckoning consumed increases the DMG dealt by ","Fatal Blossoms and **Rite of Progeniture: Tectonic ","Tide**'s burst DMG by 30% of Albedo's DEF. self effect ","stacks up to 4 times. "],title:"Opening of Phanerozoic"},"ITEM.AlbedoC3":{description:["Increases the Level of **Abiogenesis: Solar Isotoma** ","by 3. Maximum upgrade level is 15. "],title:"Grace of Helios"},"ITEM.AlbedoC4":{description:["Active party members within the Solar Isotoma field have ","their Plunging Attack DMG increased by 30%. "],title:"Descent of Divinity"},"ITEM.AlbedoC5":{description:["Increases the Level of **Rite of Progeniture: Tectonic ","Tide** by 3. Maximum upgrade level is 15. "],title:"Tide of Hadean"},"ITEM.AlbedoC6":{description:["Active party members within the Solar Isotoma field who ","are protected by a shield created by Crystallize have ","their DMG increased by 17%. "],title:"Dust of Purification"},"ITEM.Alhaitham":"Alhaitham","ITEM.Alhaitham.HIT_E_DOT_1":"1-Mirror Projection Attack DMG","ITEM.Alhaitham.HIT_E_DOT_2":"2-Mirror Projection Attack DMG","ITEM.Alhaitham.HIT_E_DOT_3":"3-Mirror Projection Attack DMG","ITEM.AlhaithamA4":{description:["Each point of Alhaitham\u2019s Elemental Mastery will increase the DMG dealt","by Projection Attacks and Particular Field: Fetters of Phenomena by 0.1%.","The DMG of both aforementioned abilities can be increased by a maximum of 100% this way."],title:"Mysteries Laid Bare"},"ITEM.AlhaithamC2":{description:["When Alhaitham generates a Chisel-Light Mirror, his Elemental Mastery","will be increased by 50 for 8 seconds, max 4 stacks. Each stack\u2019s duration","is counted independently. This effect can be triggered even when the maximum","number of Chisel-Light Mirrors has been reached."],title:"Debate"},"ITEM.AlhaithamC3":{description:["Increases the Level of Universality: An Elaboration on Form by 3.","Maximum upgrade level is 15."],title:"Negation"},"ITEM.AlhaithamC4":{description:["When Particular Field: Fetters of Phenomena is unleashed, the following effects","will become active based on the number of Chisel-Light Mirrors consumed and",`created this time around: `,"\xB7Each Mirror consumed will increase the Elemental Mastery of all other nearby",`party members by 30 for 15s. `,`\xB7Each Mirror generated will grant Alhaitham a 10% Dendro DMG Bonus for 15s. `,"The pre-existing duration of the aforementioned effects will be cleared if","you use Particular Field: Fetters of Phenomena again while they are in effect."],title:"Elucidation"},"ITEM.AlhaithamC5":{description:["Increases the Level of Particular Field: Fetters of Phenomena by 3.","Maximum upgrade level is 15."],title:"Sagacity"},"ITEM.AlhaithamC6":{description:[`Alhaitham gains the following effects: diff --git a/v4/assets/javascript.50b8dc07.js b/v4/assets/javascript.e6119943.js similarity index 89% rename from v4/assets/javascript.50b8dc07.js rename to v4/assets/javascript.e6119943.js index f9bfc13..ccd6beb 100644 --- a/v4/assets/javascript.50b8dc07.js +++ b/v4/assets/javascript.e6119943.js @@ -1,4 +1,4 @@ -import{conf as t,language as e}from"./typescript.6524f873.js";import"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +import{conf as t,language as e}from"./typescript.7c0e45bf.js";import"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/jsonMode.27ac452c.js b/v4/assets/jsonMode.c03a6266.js similarity index 99% rename from v4/assets/jsonMode.27ac452c.js rename to v4/assets/jsonMode.c03a6266.js index 6d188fc..958952c 100644 --- a/v4/assets/jsonMode.27ac452c.js +++ b/v4/assets/jsonMode.c03a6266.js @@ -1,4 +1,4 @@ -var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +var Ge=Object.defineProperty;var Qe=(e,n,i)=>n in e?Ge(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var A=(e,n,i)=>(Qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ze}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/liquid.f04ee005.js b/v4/assets/liquid.b49b787e.js similarity index 98% rename from v4/assets/liquid.f04ee005.js rename to v4/assets/liquid.b49b787e.js index 6bdabda..c0e6dd9 100644 --- a/v4/assets/liquid.f04ee005.js +++ b/v4/assets/liquid.b49b787e.js @@ -1,4 +1,4 @@ -import{m as d}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +import{m as d}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/python.65255c96.js b/v4/assets/python.5d2d1046.js similarity index 98% rename from v4/assets/python.65255c96.js rename to v4/assets/python.5d2d1046.js index 408cd08..029abbe 100644 --- a/v4/assets/python.65255c96.js +++ b/v4/assets/python.5d2d1046.js @@ -1,4 +1,4 @@ -import{m as a}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +import{m as a}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/razor.53257c6a.js b/v4/assets/razor.772ded4e.js similarity index 99% rename from v4/assets/razor.53257c6a.js rename to v4/assets/razor.772ded4e.js index 866d30c..7c7408c 100644 --- a/v4/assets/razor.53257c6a.js +++ b/v4/assets/razor.772ded4e.js @@ -1,4 +1,4 @@ -import{m as s}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/tsMode.7c747e15.js b/v4/assets/tsMode.62ad3313.js similarity index 99% rename from v4/assets/tsMode.7c747e15.js rename to v4/assets/tsMode.62ad3313.js index d4a374f..e5c06e4 100644 --- a/v4/assets/tsMode.7c747e15.js +++ b/v4/assets/tsMode.62ad3313.js @@ -1,4 +1,4 @@ -var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{t as R,m as E}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +var M=Object.defineProperty;var K=(e,t,r)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(K(e,typeof t!="symbol"?t+"":t,r),r);import{t as R,m as E}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/typescript.6524f873.js b/v4/assets/typescript.7c0e45bf.js similarity index 98% rename from v4/assets/typescript.6524f873.js rename to v4/assets/typescript.7c0e45bf.js index 700c90b..bcb5d31 100644 --- a/v4/assets/typescript.6524f873.js +++ b/v4/assets/typescript.7c0e45bf.js @@ -1,4 +1,4 @@ -import{m as c}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +import{m as c}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/worker.be5470e5.js b/v4/assets/worker.091c849b.js similarity index 99% rename from v4/assets/worker.be5470e5.js rename to v4/assets/worker.091c849b.js index 075e0a5..0a2f34c 100644 --- a/v4/assets/worker.be5470e5.js +++ b/v4/assets/worker.091c849b.js @@ -80,7 +80,7 @@ maximize z: `+this.strExpr(a.c)+`; ${v.DPS}: ${e.dps.toFixed(2)} -`+At(...n)}function Pu(e,a){const n=new Y(v.NAME,v.DAMAGE,v.RELATIVE);n.AddRow(e,a.damage,oe(a.relative));for(const s in a.elements){const r=parseInt(s);n.AddRow(t.stat.Name(r),a.elements[s].damage,oe(a.elements[s].relative))}for(const s in a.talents){const r=parseInt(s);n.AddRow(t.stat.Name(r),a.talents[s].damage,oe(a.talents[s].relative))}for(const s in a.instances)n.AddRow(s,a.instances[s].damage,oe(a.instances[s].relative));return n.toString()}var oe=e=>e*100;function Hu(...e){const a=new Y("NAME","STARS","TYPE","EFFECTS");for(const n of e){const s=(()=>{if(n instanceof Ot.Food){const r=n.GetRank();return n.Options.Effects.map(([i,c,_])=>{const u=c+(_-c)*(r-1)/2;return`${t.stat.Name(i)}: ${u}`}).join(", ")}else return n.Effects.map(([r,i,c])=>`${t.stat.Name(r)}: ${i}-${c}`).join(", ")})();a.AddRow(n.Name,n.Stars,n.Type,s)}return a.String()}var wu=[{Name:T.hits.HIT_Q_1,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.6816000000000004}]},{Name:T.hits.HIT_Q_2,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.49090000000000006}]}],Bu=l.Factory({Name:"ChevreuseC2",OnApply:new l.Builder().instance.Options({Name:"HIT_C2",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:1.2,Talent:t.stat.NONE}]}).Build()}),bu=l.Factory({Name:"ChevreuseC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Ku=l.Factory({Name:"ChevreuseC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Yu=l.Factory({Name:"ChevreuseC6",ApplyOther:!0,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG,t.stat.ELECTRO_DMG).Values(.2).Stacks().Build()}),Fu=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5313}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.49310000000000004}]},{Name:T.hits.HIT_N3_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2764}]},{Name:T.hits.HIT_N3_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3245}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7726000000000001}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2168999999999999}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],ku=l.Factory({Name:"ChevreuseA1",Conditions:["HIT_OVERLOAD"],ApplyOther:!0,MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:1},effect:{conditions:["HIT_OVERLOAD"]}}).stat.Enemy(t.stat.PYRO_RES,t.stat.ELECTRO_RES).Values(-.4).Build()}),Vu=l.Factory({Name:"ChevreuseA4",ApplyOther:!0,MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:4},target:{element:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).observe.Owner(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Enemy(t.stat.ATK_PERCENT).Values(1/100).Map((e,a,n)=>{const r=n.Owner.GetCharacter().Get(t.stat.HP);return Math.min(e*r/1e3,.4)}).Build()}),xu=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1520000000000001}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.7280000000000002}]},{Name:T.hits.HIT_E_HOLD+"_2",Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.824}]},{Name:T.hits.HIT_E+"_OUSIA",Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.28800000000000003}]}],Vr=G.Factory({Name:"Chevreuse",Stars:4,Weapon:t.weapon.POLEARM,Element:t.stat.PYRO_DMG,StatBonus:t.stat.HP_PERCENT,BurstCost:60,Region:t.region.FONTAINE,HpBase:[1002.9700927734,3588.6091308594],AtkBase:[16.205280303955,57.983562469482],DefBase:[50.701351165771,181.40849304199],Normals:Fu,Skills:xu,Bursts:wu,Extra:[],Effects:[ku,Vu,Bu,bu,Ku,Yu]}),Uu=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.752}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4315}]}],Wu=new l.Builder().stat.Char(t.stat.CRIT_RATE).Instance("HIT_E").Values(.12).Map((e,a)=>{const n=a.FindEffect("NaviaE");if(!n)throw new Error("NaviaE not found");const s=Math.min(n.GetStacks(),3);return e*s}).Build(),ju=l.Factory({Name:"NaviaC2",OnApply(e,a,n){const s=Wu(e,a,n),r=e.FindEffect("NaviaE");if(!r)throw new Error("NaviaE not found");return n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_STACKS,s)),s}}),zu=l.Factory({Name:"NaviaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),qu=l.Factory({Name:"NaviaC4",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.GEO_RES).Values(-.2).Build()}),$u=l.Factory({Name:"NaviaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Qu=new l.Builder().stat.Char(t.stat.CRIT_DMG).Instance("HIT_E").Values(.45).Map((e,a)=>{const n=a.FindEffect("NaviaE");if(!n)throw new Error("NaviaE not found");const s=Math.max(0,Math.min(n.GetStacks()-3,3));return e*s}).Build(),Xu=l.Factory({Name:"NaviaC6",OnApply(e,a,n){const s=Qu(e,a,n),r=e.FindEffect("NaviaE");if(!r)throw new Error("NaviaE not found");return n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_STACKS,s)),s}}),Ju=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9352}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8651}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3489}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.3343}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6252}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1309}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],Zu=l.Factory({Name:"NaviaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).infusion.Set(t.stat.GEO_DMG,!0).Next().Where({target:{ascension:1}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(.4).Build()}),tA=l.Factory({Name:"NaviaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Party(!0).stat.Char(t.stat.ATK_PERCENT).Values(.2).Map((e,a)=>{var n;const s=((n=a.GetParty())==null?void 0:n.GetMembers())||[a];let r=0;for(const i of s){const c=i.GetCharacter().Options.Element;t.Swirlable.includes(t.DmgToAura(c))&&r++}return r>2&&(r=2),e*r}).Build()}),eA=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.948}]},{Name:T.hits.HIT_E+"_OUSIA",Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.36}]}],aA=l.Factory({Name:"NaviaE2",MaxStacks:6,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance(T.hits.HIT_E).Values(.15).Map((e,a,n)=>e*Math.max(0,n.GetStacks()-3)).Next().Where({effect:{conditions:["ALL_STRIKE"]}}).mv.Multiplier(2,T.hits.HIT_E).Build()}),nA=l.Factory({Name:"NaviaE",MaxStacks:11,OnApply:new l.Builder().mv.Multiplier(1,T.hits.HIT_E).Map((e,a,n)=>e*n.GetStacks()/11+1).Build()}),xr=G.Factory({Name:"Navia",Element:t.stat.GEO_DMG,Stars:5,Weapon:t.weapon.CLAYMORE,StatBonus:t.stat.CRIT_DMG,BurstCost:60,Region:t.region.FONTAINE,HpBase:[984.78,4044.0373535156],AtkBase:[27.3714,112.3935546875],DefBase:[61.74456,253.56239318848],Normals:Ju,Skills:eA,Bursts:Uu,Extra:[],Effects:[nA,aA,Zu,tA,ju,zu,qu,$u,Xu]}),sA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4839}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4373}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5512}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.733}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7422}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]},{Name:"HIT_ARKHE",Element:t.stat.HYDRO_DMG,Talent:t.stat.NONE,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.0946}]}],rA=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0786}]},{Name:T.hits.HIT_E_1,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0596}]},{Name:T.hits.HIT_E_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0323}]},{Name:T.hits.HIT_E_3,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0829}]}],iA=l.Factory({Name:"FurinaE",OnApply(e,a,n){const s=lA(e,a,n),r=[],i=()=>{for(const u of r)n.RemoveObserver(u);let c=[];const _=e.GetParty();_&&(c=_.GetMembers());for(const u of c){if(u===e)continue;const A=n.Observer(u.GetCharacter().CreateObserver(t.stat.HP_CURRENT,s));r.push(A)}};return n.Observer(e.Event.CreateObserver(ut.CHANGE_PARTY,i)),i(),()=>0}}),lA=new l.Builder().observe.Party(!0).observe.Target(t.stat.HP_CURRENT).mv.Multiplier(1,/E_\d/).Map((e,a)=>{let n=[];const s=a.GetParty();s?n=s.GetMembers():n=[a];let r=0;for(const i of n)i.GetCharacter().Get(t.stat.HP_CURRENT)>.5&&r++;return r=Math.min(r,4),1+r/10}).Build(),oA=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1141}]}],cA=l.Factory({Name:"FurinaQ",MaxStacks:400,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ALL_DMG).Values(1).Stacks().Map((e,a,n)=>{let r=.05+.02*n.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL);return r=r*e/100,r}).Build()}),EA=l.Factory({Name:"FurinaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.HP,t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ALL_DMG).Instance(/E_\d/).Values(.7/100).Map((e,a)=>Math.min(.28,e*a.GetCharacter().Get(t.stat.HP)/1e3)).Build()}),TA=l.Factory({Name:"FurinaC1",OnApply(e,a,n){const s=e.FindEffect("FurinaQ");if(!s)throw new Error("FurinaC1: could not find FurinaQ");let r=0,i=a.Enabled();const c=()=>{const _=s.GetStacks();a.Enabled()?!i&&_300&&(r=_,s.SetStacks(300)),i=a.Enabled()};return c(),n.Observer(a.CreateObserver(U.ENABLE,c)),n.Observer(a.CreateObserver(U.DISABLE,c)),s.CreateObserver(U.CHANGE_STACKS,c),()=>0}}),_A=l.Factory({Name:"FurinaC2",MaxStacks:400,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.35/100).Stacks().Build()}),uA=l.Factory({Name:"FurinaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),AA=l.Factory({Name:"FurinaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),SA=l.Factory({Name:"FurinaC6",Conditions:["ARKHE_PNEUMA"],MaxConditions:1,OnApply:new l.Builder().infusion.Set(t.stat.HYDRO_DMG,!0).Next().mv.Mv(t.stat.HP,.18,/N\d|Charged|Plunge/i).Next().Where({effect:{conditions:["ARKHE_PNEUMA"]}}).mv.Mv(t.stat.HP,.25,/N\d|Charged|Plunge/i).Build()}),Ur=G.Factory({Name:"Furina",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.SWORD,StatBonus:t.stat.CRIT_RATE,BurstCost:60,Region:t.region.FONTAINE,Normals:sA,Skills:rA,Bursts:oA,Extra:[],Effects:[iA,cA,EA,TA,_A,uA,AA,SA],HpBase:[1191.65,4893.5590820312],AtkBase:[18.9924,77.987365722656],DefBase:[54.146148681641,222.35850524902]}),hA=[{Name:T.hits.HIT_N1,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5458}]},{Name:T.hits.HIT_N2,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4625}]},{Name:T.hits.HIT_N3,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.7234}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.368}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.HP,Scaling:o.TalentScaling.PHYSICAL_1,Initial:.0732}]},{Name:T.hits.HIT_CHARGED+"_C6",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.HP,Scaling:o.TalentScaling.NONE,Initial:.1}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],mA=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1286}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.208}]}],fA=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.2226}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0911}]}],LA=l.Factory({Name:"NeuvilletteA1",MaxStacks:3,OnApply:new l.Builder().Where({target:{ascension:1}}).mv.Multiplier(1,"HIT_CHARGED_2","HIT_CHARGED_C6").Map((e,a,n)=>[0,1.1,1.25,1.6][n.GetStacks()]).Build()}),pA=l.Factory({Name:"NeuvilletteA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.HP_CURRENT).stat.Char(t.stat.HYDRO_DMG).Values(1).Map((e,a)=>Math.min(.3,.6*Math.max(0,a.GetCharacter().Get(t.stat.HP_CURRENT)-.3))).Build()}),NA=l.Factory({Name:"NeuvilletteC2",OnApply(e,a,n){const s=e.FindEffect("NeuvilletteA1");if(!s)throw new Error("NeuvilletteC2: Could not find NeuvilletteA1");const r=e.FindInstance("HIT_CHARGED_2"),i=e.FindInstance("HIT_CHARGED_C6");if(!r)throw new Error("NeuvilletteC2: Could not find HIT_CHARGED_2");if(!i)throw new Error("NeuvilletteC2: Could not find HIT_CHARGED_C6");const c=n.Modifier(r.Subject.CreateModifier(t.stat.CRIT_DMG,0)),_=n.Modifier(i.Subject.CreateModifier(t.stat.CRIT_DMG,0)),u=()=>{if(e.GetCharacter().GetAscension()<1){c.SetValue(0),_.SetValue(0);return}const A=s.GetStacks();c.SetValue(.14*A),_.SetValue(.14*A)};return u(),n.Observer(s.CreateObserver(l.EffectEvent.CHANGE_STACKS,u)),n.Observer(e.GetCharacter().CreateObserver(t.stat.LEVEL,u)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ASCENSION,u)),()=>0}}),dA=l.Factory({Name:"NeuvilletteC3",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_LEVEL_UP).Values(3).Build()}),CA=l.Factory({Name:"NeuvilletteC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Wr=G.Factory({Name:"Neuvillette",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.CATALYST,StatBonus:t.stat.CRIT_DMG,BurstCost:70,Region:t.region.FONTAINE,HpBase:[1143.984,4697.8169],AtkBase:[16.218,66.595],DefBase:[44.8725,184.275],Normals:hA,Skills:mA,Bursts:fA,Extra:[],Effects:[LA,pA,NA,dA,CA]}),MA=l.Factory({Name:"MikaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),gA=l.Factory({Name:"MikaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),GA=l.Factory({Name:"MikaC6",ApplyOther:!0,MaxTargets:1,OnApply:new l.Builder().stat.Char(t.stat.PHYSICAL_CRIT_DMG).Values(.6).Build()}),RA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4326}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.415}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.545}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2761}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7087}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1275}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],IA=l.Factory({Name:"MikaA1",MaxStacks:4,ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.PHYSICAL_DMG).Values(.1).Stacks().Build()}),OA=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.84}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.252}]}],jr=G.Factory({Name:"Mika",Element:t.stat.CRYO_DMG,Stars:4,Weapon:t.weapon.POLEARM,StatBonus:t.stat.HP_PERCENT,BurstCost:70,Region:t.region.MONDSTADT,HpBase:[1048.5597,3751.7275],AtkBase:[18.6984,66.90411],DefBase:[59.800125,213.96375],Normals:RA,Skills:OA,Bursts:[],Extra:[],Effects:[IA,MA,gA,GA]}),DA=[{Name:T.hits.HIT_N1+"_Q",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.987},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0169}]},{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.393},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.0239}]}],vA=l.Factory({Name:"DehyaC1",OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2).Next().mv.Mv(t.stat.HP,.036,e=>e.Options.Talent===t.stat.ELEMENTAL_SKILL_DMG).Next().mv.Mv(t.stat.HP,.06,e=>e.Options.Talent===t.stat.ELEMENTAL_BURST_DMG).Build()}),yA=l.Factory({Name:"DehyaC2",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance("HIT_E_DOT").Values(.5).Build()}),PA=l.Factory({Name:"DehyaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),HA=l.Factory({Name:"DehyaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wA=l.Factory({Name:"DehyaC6",MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.1).Next().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_DMG).Values(.15).Stacks().Build()}),BA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6212}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6171}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7663}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9529}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5633}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0182}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],bA=[{Name:T.hits.HIT_E_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1288}]},{Name:T.hits.HIT_E_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.328}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.602},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0103}]}],zr=G.Factory({Name:"Dehya",Stars:5,Element:t.stat.PYRO_DMG,Weapon:t.weapon.CLAYMORE,StatBonus:t.stat.HP_PERCENT,Region:t.region.SUMERU,BurstCost:70,HpBase:[1220.2496,5011.0044],AtkBase:[20.6682,84.8686],DefBase:[48.88111,200.7369],Normals:BA,Skills:bA,Bursts:DA,Extra:[],Effects:[vA,yA,PA,HA,wA]}),KA=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.776}]}],YA=l.Factory({Name:"FaruzanQ",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.ANEMO_RES).Values(-.3).Next().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ANEMO_DMG).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map(e=>e*.18).Build()}),FA=l.Factory({Name:"FaruzanC3",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),kA=l.Factory({Name:"FaruzanC5",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),VA=l.Factory({Name:"FaruzanC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ANEMO_CRIT_DMG).Values(.4).Build()}),xA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4473}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4219}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5316}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7062}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],UA=l.Factory({Name:"FaruzanA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).observe.Owner(t.stat.ATK_BASE).stat.Char(t.stat.ANEMO_DMG_FLAT).Values(.32).Map((e,a,n)=>n.Owner.GetCharacter().Get(t.stat.ATK_BASE)*e).Build()}),WA=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.488}]},{Name:T.hits.HIT_E_2,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.08}]}],qr=G.Factory({Name:"Faruzan",Stars:4,Element:t.stat.ANEMO_DMG,Weapon:t.weapon.BOW,StatBonus:t.stat.ATK_PERCENT,BurstCost:80,Region:t.region.SUMERU,HpBase:[802.3761,2870.8872],AtkBase:[16.4724,58.939335],DefBase:[52.647,188.37],Normals:xA,Skills:WA,Bursts:KA,Extra:[],Effects:[YA,UA,FA,kA,VA]}),jA=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1843}]},{Name:T.hits.HIT_Q_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.2253}]}],zA=l.Factory({Name:"NilouC1",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance("HIT_E_3_1").Values(.65).Build()}),qA=l.Factory({Name:"NilouC2",ApplyOther:!0,Conditions:["BLOOM"],MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Enemy(t.stat.HYDRO_RES).Values(-.35).Next().Where({owner:{ascension:1},effect:{conditions:["BLOOM"]}}).stat.Enemy(t.stat.DENDRO_RES).Values(-.35).Build()}),$A=l.Factory({Name:"NilouC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),QA=l.Factory({Name:"NilouC4",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.5).Build()}),XA=l.Factory({Name:"NilouC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),JA=l.Factory({Name:"NilouC6",OnApply:new l.Builder().observe.Target(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.Char(t.stat.CRIT_RATE).Values(.6/100).Map((e,a)=>Math.max(0,Math.min(.3,e*a.GetCharacter().Get(t.stat.HP)/1e3))).Next().observe.Target(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.Char(t.stat.CRIT_DMG).Values(1.2/100).Map((e,a)=>Math.max(0,Math.min(.6,e*a.GetCharacter().Get(t.stat.HP)/1e3))).Build()}),ZA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5031}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4544}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7035}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5022}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5444}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}];function $r(e){const a=e.GetParty();if(!a)return!1;let n=!1,s=!1;for(const r of a.GetMembers()){const i=r.GetCharacter().Options.Element;if(i===t.stat.DENDRO_DMG)n=!0;else if(i===t.stat.HYDRO_DMG)s=!0;else return!1}return n&&s}var tS=l.Factory({Name:"NilouA1",ApplyOther:!0,OnApply:new l.Builder().Where((e,a)=>a.GetCharacter().GetAscension()<1?!1:$r(e)).observe.Party(!0).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(100).Build()}),eS=l.Factory({Name:"NilouA4",ApplyOther:!0,OnApply:new l.Builder().Where((e,a)=>a.GetCharacter().GetAscension()<4?!1:$r(e)).observe.Party(!0).observe.Owner(t.stat.HP_FLAT,t.stat.HP_BASE,t.stat.HP_PERCENT).stat.Char(t.stat.BLOOM_DMG).Values(.09).Map((e,a,n)=>Math.max(0,Math.min(4,(n.Owner.GetCharacter().Get(t.stat.HP)-3e4)*e/1e3))).Build()}),aS=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0334}]},{Name:T.hits.HIT_E_1+"_1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0455}]},{Name:T.hits.HIT_E_1+"_2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0326}]},{Name:T.hits.HIT_E_2+"_1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0514}]},{Name:T.hits.HIT_E_2+"_2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0396}]},{Name:T.hits.HIT_E_3+"_1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0717}]},{Name:T.hits.HIT_E_3+"_2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0506}]}],Qr=G.Factory({Name:"Nilou",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.SWORD,StatBonus:t.stat.HP_PERCENT,Region:t.region.SUMERU,BurstCost:70,HpBase:[1182.1168,4854.4106],AtkBase:[17.8752,73.39987],DefBase:[56.71884,232.9236],Normals:ZA,Skills:aS,Bursts:jA,Extra:[],Effects:[tS,eS,zA,qA,$A,QA,XA,JA]}),Je=new Set,Ze=[.025,.05,.075,.115];function nS(e){const a=e.FindEffect("YunjinA4");if(!a||!a.Enabled()||e.GetCharacter().GetAscension()<4)return 0;const n=e.GetParty();if(!n)return Ze[0];Je.clear();for(const r of n.GetMembers()){const i=r.GetCharacter().Options.Element;Je.add(i)}const s=Math.max(1,Math.min(Ze.length,Je.size));return Ze[s-1]}var sS=l.Factory({Name:"YunjinA4",OnApply(e,a,n){const s=e.FindEffect("YunjinQ");if(!s)throw new Error("Yunjin Burst effect not found");const r=s;function i(){r.Enabled()&&(r.Disable(),r.Enable())}return i(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_TARGET,i)),()=>0}}),rS=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.44}]}],iS=l.Factory({Name:"YunjinQ",ApplyOther:!0,OnApply:new l.Builder().observe.Party(!0).observe.Owner(t.stat.DEF_PERCENT,t.stat.DEF_BASE,t.stat.DEF_FLAT,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a,n)=>(.3216*e+nS(n.Owner))*n.Owner.GetCharacter().Get(t.stat.DEF)).Build()}),lS=l.Factory({Name:"YunjinC2",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.15).Build()}),oS=l.Factory({Name:"YunjinC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),cS=l.Factory({Name:"YunjinC4",OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT).Values(.2).Build()}),ES=l.Factory({Name:"YunjinC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),TS=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4051}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4025}]},{Name:T.hits.HIT_N3_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2296}]},{Name:T.hits.HIT_N3_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2752}]},{Name:T.hits.HIT_N4_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2399}]},{Name:T.hits.HIT_N4_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2881}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6734}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2169}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],_S=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.4912}]},{Name:T.hits.HIT_E_1,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.6096}]},{Name:T.hits.HIT_E_2,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.728}]}],Xr=G.Factory({Name:"Yunjin",Stars:4,Weapon:t.weapon.POLEARM,Element:t.stat.GEO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,Region:t.region.LIYUE,BurstCost:60,HpBase:[893.5552,3197.1245],AtkBase:[16.0272,57.34638],DefBase:[61.5741,220.311],Normals:TS,Skills:_S,Bursts:rS,Extra:[],Effects:[iS,sS,lS,oS,cS,ES]}),uS=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.272}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.22}]}],AS=l.Factory({Name:"YoimiyaC1",OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2).Build()}),SS=l.Factory({Name:"YoimiyaC2",OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Values(.25).Build()}),hS=l.Factory({Name:"YoimiyaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),mS=l.Factory({Name:"YoimiyaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),fS=l.Factory({Name:"YoimiyaC6",OnApply:new l.Builder().instance.Location("Normal").Options({Name:"HIT_C6",Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Talent:t.stat.NORMAL_ATTACK_LEVEL,Initial:.164*.6}]}).Build()}),LS=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3564}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6838}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8889}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4642}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0586}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_KindlingArrow",Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.164}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],pS=l.Factory({Name:"YoimiyaA1",MaxStacks:10,OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.PYRO_DMG).Values(.02).Stacks().Build()}),NS=l.Factory({Name:"YoimiyaA4",ApplyOther:!0,ApplySelf:!1,OnApply(e,a,n){const s=e.GetCharacter(),r=a.Owner.GetCharacter(),i=a.Owner.FindEffect("YoimiyaA1");if(!i)throw new Error("Cannot find Yoimiya A1");const c=n.Modifier(s.CreateModifier(t.stat.ATK_PERCENT,0)),_=()=>{if(r.GetAscension()<4){c.SetValue(0);return}c.SetValue(.1+.01*i.GetStacks())};return _(),n.Observer(r.CreateObserver(t.stat.LEVEL,_)),n.Observer(r.CreateObserver(t.stat.ASCENSION,_)),n.Observer(i.CreateObserver(l.EffectEvent.CHANGE_STACKS,_)),()=>0}}),dS=l.Factory({Name:"YoimiyaE",OnApply:new l.Builder().infusion.Set(t.stat.PYRO_DMG,!0).Next().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.3791,/hit_n\d/i).Map((e,a)=>1+e*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),Jr=G.Factory({Name:"Yoimiya",Stars:5,Weapon:t.weapon.BOW,Element:t.stat.PYRO_DMG,StatBonus:t.stat.CRIT_RATE,Region:t.region.INAZUMA,BurstCost:60,HpBase:[791.2556,3249.3232],AtkBase:[25.137,103.21857],DefBase:[47.864,196.56],Normals:LS,Skills:[],Bursts:uS,Extra:[],Effects:[dS,pS,NS,AS,SS,hS,mS,fS]}),CS=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.824}]}],MS=l.Factory({Name:"YanfeiQ",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(...o.TalentScaling.ELEMENTAL_2).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map(e=>.334*e).Build()}),gS=l.Factory({Name:"YanfeiC2",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_CRIT_RATE).Values(.2).Build()}),GS=l.Factory({Name:"YanfeiC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),RS=l.Factory({Name:"YanfeiC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),IS=[{Name:T.hits.HIT_N1,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5834}]},{Name:T.hits.HIT_N2,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5213}]},{Name:T.hits.HIT_N3,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.7601}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_2,Initial:.9823}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],OS=l.Factory({Name:"YanfeiA1",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindEffect("YanfeiSeal");if(!r)throw new Error("Cannot find Yanfei Scarlet Seals");const i=n.Modifier(s.CreateModifier(t.stat.PYRO_DMG,0)),c=()=>{if(s.GetAscension()<1){i.SetValue(0);return}i.SetValue(r.GetStacks()*.05)};return c(),n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_STACKS,c)),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),DS=l.Factory({Name:"YanfeiA4",OnApply:new l.Builder().Where({target:{ascension:4}}).instance.Location("Normal").Options({Name:"HIT_A4",Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Initial:.8,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),vS=l.Factory({Name:"YanfeiSeal",MaxStacks:4,OnApply:new l.Builder().observe.Target(t.stat.NORMAL_ATTACK_LEVEL,t.stat.NORMAL_ATTACK_LEVEL_UP).mv.Mv(t.stat.ATK,.1733,"HIT_CHARGED").Map((e,a,n)=>e*n.GetStacks()*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.NORMAL_ATTACK_LEVEL)-1]).Build()}),yS=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.696}]}],Zr=G.Factory({Name:"Yanfei",Stars:4,Element:t.stat.PYRO_DMG,StatBonus:t.stat.PYRO_DMG,Weapon:t.weapon.CATALYST,Region:t.region.LIYUE,BurstCost:80,HpBase:[784.14026,2805.64],AtkBase:[20.12304,72.001564],DefBase:[49.2135,176.085],Normals:IS,Skills:yS,Bursts:CS,Extra:[],Effects:[vS,MS,OS,DS,gS,GS,RS]}),PS=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.6}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.3382}]}],HS=l.Factory({Name:"YaeC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wS=l.Factory({Name:"YaeC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_DMG).Values(.2).Build()}),BS=l.Factory({Name:"YaeC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),bS=l.Factory({Name:"YaeC6",OnApply:new l.Builder().stat.Char(t.stat.DEFIGNORED).Instance(/HIT_E_\d/i).Values(.6).Build()}),KS=[{Name:T.hits.HIT_N1,Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3966}]},{Name:T.hits.HIT_N2,Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3852}]},{Name:T.hits.HIT_N3,Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5689}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4289}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],YS=l.Factory({Name:"YaeA4",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_MASTERY).Where({target:{ascension:4}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.15/100).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()}),FS=[{Name:T.hits.HIT_E_1,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6067}]},{Name:T.hits.HIT_E_2,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7584}]},{Name:T.hits.HIT_E_3,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.948}]},{Name:T.hits.HIT_E_4,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.185}]}],ti=G.Factory({Name:"Yae",Stars:5,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.CRIT_RATE,Weapon:t.weapon.CATALYST,Region:t.region.INAZUMA,BurstCost:90,HpBase:[807.46204,3315.8757],AtkBase:[26.4404,108.57064],DefBase:[44.2742,181.818],Normals:KS,Skills:FS,Bursts:PS,Extra:[],Effects:[YS,HS,wS,BS,bS]}),kS=l.Factory({Name:"XiaoQ",OnApply:new l.Builder().infusion.Set(t.stat.ANEMO_DMG,!0).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(...o.TalentScaling.ELEMENTAL_2).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map(e=>.5845*e).Build()}),VS=l.Factory({Name:"XiaoC2",OnApply:new l.Builder().stat.Char(t.stat.ENERGY_RECHARGE).Values(.25).Build()}),xS=l.Factory({Name:"XiaoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),US=l.Factory({Name:"XiaoC4",OnApply:new l.Builder().Where({target:{hp:{leq:.5}}}).stat.Char(t.stat.DEF_PERCENT).Values(1).Build()}),WS=l.Factory({Name:"XiaoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),jS=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.2754}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.5694}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6855}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.3766}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.7154}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.9583}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.2109}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439}]}],zS=l.Factory({Name:"XiaoA1",MaxStacks:5,OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.ALL_DMG).Values(.05).Stacks().Build()}),qS=l.Factory({Name:"XiaoA4",MaxStacks:3,OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.15).Stacks().Build()}),$S=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.528}]}],ei=G.Factory({Name:"Xiao",Stars:5,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.CRIT_RATE,Weapon:t.weapon.POLEARM,Region:t.region.LIYUE,BurstCost:70,HpBase:[991.4528,4071.4412],AtkBase:[27.1852,111.628975],DefBase:[62.2232,255.528],Normals:jS,Skills:$S,Bursts:[],Extra:[],Effects:[kS,zS,qS,VS,xS,US,WS]}),QS=[{Name:T.hits.HIT_Q_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.72}]},{Name:T.hits.HIT_Q_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.88}]},{Name:T.hits.HIT_Q_3,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.096}]},{Name:"HIT_PYRONADO",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.12}]}],XS=l.Factory({Name:"XianglingC1",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.PYRO_RES).Values(-.15).Build()}),JS=l.Factory({Name:"XianglingC2",OnApply:new l.Builder().instance.Options({Name:"HIT_C2",Element:t.stat.PYRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.75,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),ZS=l.Factory({Name:"XianglingC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),t0=l.Factory({Name:"XianglingC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),e0=l.Factory({Name:"XianglingC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Values(.15).Build()}),a0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4205}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4214}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2606}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.141}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7104}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.2169}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],n0=l.Factory({Name:"XianglingA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.ATK_PERCENT).Values(.1).Build()}),s0=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1128}]}],ai=G.Factory({Name:"Xiangling",Stars:4,Element:t.stat.PYRO_DMG,StatBonus:t.stat.ELEMENTAL_MASTERY,Weapon:t.weapon.POLEARM,Region:t.region.LIYUE,BurstCost:80,HpBase:[911.791,3262.3718],AtkBase:[18.87648,67.54129],DefBase:[56.0805,200.655],Normals:a0,Skills:s0,Bursts:QS,Extra:[],Effects:[n0,XS,JS,ZS,t0,e0]}),r0=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.472}]}],i0=l.Factory({Name:"WandererC1",OnApply(e,a,n){if(!e.FindEffect("WandererA4"))throw new Error("Cannot find Wanderer A4");let r;const i=()=>{const c=e.FindInstance("HIT_A4");!c||r||(r=n.Mv({Stat:t.stat.ATK,Value:.25,Enabled:!0},c))};return i(),n.Observer(e.GetCharacter().CreateObserver(t.stat.LEVEL,i)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ASCENSION,i)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),()=>0}}),l0=l.Factory({Name:"WandererC2",MaxStacks:120,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.04).Stacks().Map(e=>Math.min(2,e)).Build()}),o0=l.Factory({Name:"WandererC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),c0=l.Factory({Name:"WandererC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),E0=[{Name:T.hits.HIT_N1,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6871}]},{Name:T.hits.HIT_N2,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6502}]},{Name:T.hits.HIT_N3,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4764}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.3208}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]},{Name:T.hits.HIT_N1+"_C6",Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6871*.4}]},{Name:T.hits.HIT_N2+"_C6",Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6502*.4}]},{Name:T.hits.HIT_N3+"_C6",Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4764*.4}]}],T0=l.Factory({Name:"WandererA1",MaxAuras:1,ValidAuras:t.Swirlable,OnApply:new l.Builder().Where({target:{ascension:1},effect:{affected:[t.stat.PYRO_DMG]}}).stat.Char(t.stat.ATK_PERCENT).Values(.3).Next().Where({target:{ascension:1},effect:{affected:[t.stat.CRYO_DMG]}}).stat.Char(t.stat.CRIT_RATE).Values(.2).Build()}),_0=l.Factory({Name:"WandererA4",OnApply:new l.Builder().Where({target:{ascension:4}}).instance.Options({Name:"HIT_A4",Element:t.stat.ANEMO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.35,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),u0=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.952}]}],A0=l.Factory({Name:"WandererE",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.3298,/hit_n\d/i).Map((e,a)=>1+e*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Next().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.2639,/hit_charged/i).Map((e,a)=>1+e*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),ni=G.Factory({Name:"Wanderer",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.CRIT_RATE,Region:t.region.SUMERU,BurstCost:60,HpBase:[791.2556,3249.3232],AtkBase:[25.5094,104.747734],DefBase:[47.2657,194.103],Normals:E0,Skills:u0,Bursts:r0,Extra:[],Effects:[A0,T0,_0,i0,l0,o0,c0]}),S0=[{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.376}]}],h0=l.Factory({Name:"VentiQ",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){m0(e,a,n);function s(){const r=e.FindBurst(T.hits.HIT_Q+"_ADDITIONAL");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),m0=new l.Builder().instance.Location("Burst").Options({Name:T.hits.HIT_Q+"_ADDITIONAL",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.188,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),f0=l.Factory({Name:"VentiC1",OnApply:new l.Builder().instance.Location("Normal").Options({Name:"HIT_C1",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Talent:t.stat.NORMAL_ATTACK_LEVEL,Stat:t.stat.ATK,Initial:.4386*.33}]}).Next().instance.Location("Normal").Options({Name:"HIT_CHARGED_C1",Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Talent:t.stat.NORMAL_ATTACK_LEVEL,Stat:t.stat.ATK,Initial:1.24*.33}]}).Next().Build()}),L0=l.Factory({Name:"VentiC2",ApplyOther:!0,Conditions:["AIRBORNE","NO_AIRBORNE"],MaxConditions:1,OnApply:new l.Builder().stat.Enemy(t.stat.ANEMO_RES,t.stat.PHYSICAL_RES).Values(-.12).Next().Where({effect:{conditions:["AIRBORNE"]}}).stat.Enemy(t.stat.ANEMO_RES,t.stat.PHYSICAL_RES).Values(-.12).Build()}),p0=l.Factory({Name:"VentiC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),N0=l.Factory({Name:"VentiC4",OnApply:new l.Builder().stat.Char(t.stat.ANEMO_DMG).Values(.25).Build()}),d0=l.Factory({Name:"VentiC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),C0=l.Factory({Name:"VentiC6",ApplyOther:!0,OnApply(e,a,n){const s=e.GetCharacter().GetEnemy(),r=a.Owner.FindEffect("VentiQ");if(!r)throw new Error("Venti Q not found");n.Modifier(s.Subject.CreateModifier(t.stat.ANEMO_RES,-.2));const i=n.Modifier(s.Subject.CreateModifier(t.stat.ANEMO_RES,0)),c=()=>{const _=r.GetAuras();if(!_.length||_[0]===t.aura.NONE)i.SetValue(0);else{const u=t.DmgToRes(t.AuraToDmg(_[0]));i.SetValue(-.2),i.SetProp(u)}};return c(),n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_AURAS,c)),()=>0}}),M0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2038}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4438}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5237}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2606}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5065}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7095}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],g0=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.76}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.8}]}],si=G.Factory({Name:"Venti",Stars:5,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,Weapon:t.weapon.BOW,Region:t.region.MONDSTADT,BurstCost:60,HpBase:[819.8552,3366.7688],AtkBase:[20.482,84.10402],DefBase:[52.0521,213.759],Normals:M0,Skills:g0,Bursts:S0,Extra:[],Effects:[h0,f0,L0,p0,N0,d0,C0]}),G0=[{Name:T.hits.HIT_Q+"_MELEE",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.64}]},{Name:T.hits.HIT_Q+"_RANGED",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.784}]},{Name:"HIT_RiptideBlast",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2}]}],R0=l.Factory({Name:"TartagliaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),I0=l.Factory({Name:"TartagliaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),O0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4128}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4627}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5538}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5702}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6089}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7276}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_RiptideFlash",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.124}]},{Name:"HIT_RiptideBurst",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.62}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],D0=l.Factory({Name:"TartagliaA0",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_LEVEL_UP).Values(1).Build()}),v0=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.72}]},{Name:T.hits.HIT_N1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3887}]},{Name:T.hits.HIT_N2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4162}]},{Name:T.hits.HIT_N3+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5633}]},{Name:T.hits.HIT_N4+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5994}]},{Name:T.hits.HIT_N5+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.553}]},{Name:T.hits.HIT_N6_1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3543}]},{Name:T.hits.HIT_N6_2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3767}]},{Name:T.hits.HIT_CHARGED_1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.602}]},{Name:T.hits.HIT_CHARGED_2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7198}]},{Name:"HIT_RiptideSlash",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.602}]}],ri=G.Factory({Name:"Tartaglia",Stars:5,Weapon:t.weapon.BOW,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.HYDRO_DMG,Region:t.region.SNEZHNAYA,BurstCost:60,HpBase:[1020.0524,4188.8867],AtkBase:[23.4612,96.33733],DefBase:[63.4198,260.442],Normals:O0,Skills:v0,Bursts:G0,Extra:[],Effects:[D0,R0,I0]}),y0=[{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.48}]}],P0=l.Factory({Name:"SucroseQ",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){H0(e,a,n);function s(){const r=e.FindBurst(T.hits.HIT_Q+"_ADDITIONAL");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),H0=new l.Builder().instance.Location("Burst").Options({Name:T.hits.HIT_Q+"_ADDITIONAL",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.44,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),w0=l.Factory({Name:"SucroseC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),B0=l.Factory({Name:"SucroseC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),b0=l.Factory({Name:"SucroseC6",ApplyOther:!0,OnApply(e,a,n){const s=a.Owner.FindEffect("SucroseQ"),r=e.GetCharacter();if(!s)throw new Error("Cannot find Sucrose Q");const i=n.Modifier(r.CreateModifier(t.stat.PYRO_DMG,0)),c=()=>{const _=s.GetAuras();(!_.length||_[0]===t.aura.NONE)&&i.SetValue(0);const u=t.AuraToDmg(_[0]);i.SetProp(u),i.SetValue(.2)};return c(),n.Observer(s.CreateObserver(l.EffectEvent.CHANGE_AURAS,c)),()=>0}}),K0=[{Name:T.hits.HIT_N1,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3346}]},{Name:T.hits.HIT_N2,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3062}]},{Name:T.hits.HIT_N3,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3845}]},{Name:T.hits.HIT_N4,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4792}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.2016}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],Y0=l.Factory({Name:"SucroseA1",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(50).Build()}),F0=l.Factory({Name:"SucroseA4",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_MASTERY).Where({owner:{ascension:1}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(.2).Map((e,a,n)=>e*n.Owner.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()}),k0=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.112}]}],ii=G.Factory({Name:"Sucrose",Stars:4,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.ANEMO_DMG,Weapon:t.weapon.CATALYST,Region:t.region.MONDSTADT,BurstCost:80,HpBase:[775.02234,2773.016],AtkBase:[14.2464,50.97456],DefBase:[58.94175,210.8925],Normals:K0,Skills:k0,Bursts:y0,Extra:[],Effects:[P0,Y0,F0,w0,B0,b0]}),V0=l.Factory({Name:"ShenheA1",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.CRYO_DMG).Values(.15).Build()}),x0=l.Factory({Name:"ShenheA4",ApplyOther:!0,Conditions:["PRESS","HOLD"],MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:4},effect:{conditions:["PRESS"]}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.15).Next().Where({owner:{ascension:4},effect:{conditions:["HOLD"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(.15).Build()}),U0=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.008}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.3312}]}],W0=l.Factory({Name:"ShenheQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Enemy(t.stat.CRYO_RES,t.stat.PHYSICAL_RES).Values(-.06,-.07,-.08,-.09,-.1,-.11,-.12,-.13,-.14,-.15).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Build()}),j0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4326}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4025}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5332}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2632}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6562}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1067}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],z0=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.392}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.888}]}],q0=l.Factory({Name:"ShenheE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP,t.stat.ATK_PERCENT,t.stat.ATK_BASE,t.stat.ATK_FLAT).stat.Char(t.stat.CRYO_DMG_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a,n)=>.4566*e*n.Owner.GetCharacter().Get(t.stat.ATK)).Build()}),$0=l.Factory({Name:"ShenheC2",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRYO_CRIT_DMG).Values(.15).Build()}),Q0=l.Factory({Name:"ShenheC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),X0=l.Factory({Name:"ShenheC4",MaxStacks:50,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.05).Stacks().Build()}),J0=l.Factory({Name:"ShenheC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),li=G.Factory({Name:"Shenhe",Stars:5,Element:t.stat.CRYO_DMG,Weapon:t.weapon.POLEARM,StatBonus:t.stat.ATK_PERCENT,Region:t.region.LIYUE,BurstCost:80,HpBase:[1011.47253,4153.653],AtkBase:[23.6474,97.10191],DefBase:[64.6164,265.356],Normals:j0,Skills:z0,Bursts:U0,Extra:[],Effects:[q0,W0,V0,x0,$0,Q0,X0,J0]}),Z0=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1042}]}],th=l.Factory({Name:"KokomiQ",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.HP,.0484,/HIT_N\d/i).Map((e,a)=>e*o.TalentScaling.ELEMENTAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1]).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.HP,.0678,/charged/i).Map((e,a)=>e*o.TalentScaling.ELEMENTAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1]).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.HP,.071,/HIT_E$/i).Map((e,a)=>e*o.TalentScaling.ELEMENTAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1]).Build()}),eh=l.Factory({Name:"KokomiC1",OnApply:new l.Builder().instance.Options({Name:"HIT_C1",Element:t.stat.HYDRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.HP,Initial:.3,Talent:t.stat.NONE,Scaling:o.TalentScaling.NONE}]}).Build()}),ah=l.Factory({Name:"KokomiC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nh=l.Factory({Name:"KokomiC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),sh=l.Factory({Name:"KokomiC6",OnApply:new l.Builder().stat.Char(t.stat.HYDRO_DMG).Values(.4).Build()}),rh=[{Name:T.hits.HIT_N1,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6838}]},{Name:T.hits.HIT_N2,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6154}]},{Name:T.hits.HIT_N3,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.9431}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4832}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],ih=l.Factory({Name:"KokomiA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.HEALING_BONUS).Values(.25).Next().Where({target:{ascension:1}}).stat.Char(t.stat.CRIT_RATE).Values(-1).Next().Build()}),lh=l.Factory({Name:"KokomiA4",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindEffect("KokomiQ");if(!r)throw new Error("Kokomi Q effect not found");const i=se(e.GetNormals(),[/HIT_N\d/i]),c=se(e.GetNormals(),[/charged/i]),_=n.Mv({Stat:t.stat.HP,Value:0,Enabled:!0},...i),u=n.Mv({Stat:t.stat.HP,Value:0,Enabled:!0},...c),A=()=>{(!r.Enabled()||s.GetAscension()<4)&&(_.Value=0,u.Value=0);const S=s.Get(t.stat.HEALING_BONUS);_.Value=u.Value=.15*S};return A(),n.Observer(s.CreateObserver(t.stat.HEALING_BONUS,A)),n.Observer(r.CreateObserver(l.EffectEvent.ENABLE,A)),n.Observer(r.CreateObserver(l.EffectEvent.DISABLE,A)),()=>0}}),oh=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.0919}]}],oi=G.Factory({Name:"Kokomi",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.HYDRO_DMG,Region:t.region.INAZUMA,BurstCost:70,HpBase:[1048.652,4306.332],AtkBase:[18.2476,74.92904],DefBase:[51.15465,210.0735],Normals:rh,Skills:oh,Bursts:Z0,Extra:[],Effects:[th,ih,lh,eh,ah,nh,sh]}),ch=[{Name:T.hits.HIT_Q_1,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.04}]},{Name:T.hits.HIT_Q_2,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.52}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.32}]}],Eh=l.Factory({Name:"RosariaC1",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.1).Build()}),Th=l.Factory({Name:"RosariaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),_h=l.Factory({Name:"RosariaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),uh=l.Factory({Name:"RosariaC6",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.PHYSICAL_RES).Values(-.2).Build()}),Ah=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5246}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.516}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3182}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6966}]},{Name:T.hits.HIT_N5_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4162}]},{Name:T.hits.HIT_N5_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.43}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.3674}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Sh=l.Factory({Name:"RosariaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.CRIT_RATE).Values(.12).Build()}),hh=l.Factory({Name:"RosariaA4",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.CRIT_RATE).Where({owner:{ascension:4}}).stat.Char(t.stat.CRIT_RATE).Values(.15).Map((e,a,n)=>Math.max(0,Math.min(1,e*n.Owner.GetCharacter().Get(t.stat.CRIT_RATE)))).Build()}),mh=[{Name:T.hits.HIT_E_1,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.584}]},{Name:T.hits.HIT_E_2,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.36}]}],ci=G.Factory({Name:"Rosaria",Stars:4,Weapon:t.weapon.POLEARM,Element:t.stat.CRYO_DMG,Region:t.region.MONDSTADT,StatBonus:t.stat.ATK_PERCENT,BurstCost:60,HpBase:[1030.3239,3686.4802],AtkBase:[20.12304,72.001564],DefBase:[59.514,212.94],Normals:Ah,Skills:mh,Bursts:ch,Extra:[],Effects:[Sh,hh,Eh,Th,_h,uh]}),fh=[{Name:T.hits.HIT_Q_1,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672}]},{Name:T.hits.HIT_Q_2,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.928}]}],Lh=l.Factory({Name:"NoelleQ",OnApply:new l.Builder().infusion.Set(t.stat.GEO_DMG,!0).Next().observe.Target(t.stat.DEF_FLAT,t.stat.DEF_PERCENT,t.stat.DEF_FLAT,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(.4,.43,.46,.5,.53,.56,.6,.64,.68,.72,.76,.8,.85,.9,.95).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a)=>e*a.GetCharacter().Get(t.stat.DEF)).Build()}),ph=l.Factory({Name:"NoelleC2",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.15).Build()}),Nh=l.Factory({Name:"NoelleC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),dh=l.Factory({Name:"NoelleC4",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C4",Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Stat:t.stat.ATK,Initial:4}]}).Build()}),Ch=l.Factory({Name:"NoelleC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Mh=l.Factory({Name:"NoelleC6",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindEffect("NoelleQ");if(!r)throw new Error("Noelle Q effect not found");const i=n.Modifier(s.CreateModifier(t.stat.ATK_FLAT,0)),c=()=>{r.Enabled()?i.SetValue(.5*s.Get(t.stat.DEF)):i.SetValue(0)};return c(),n.Observer(s.CreateObserver(t.stat.DEF_FLAT,c)),n.Observer(s.CreateObserver(t.stat.DEF_PERCENT,c)),n.Observer(s.CreateObserver(t.stat.DEF_BASE,c)),n.Observer(r.CreateObserver(l.EffectEvent.ENABLE,c)),n.Observer(r.CreateObserver(l.EffectEvent.DISABLE,c)),()=>0}}),gh=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7912}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7336}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8626}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1343}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5074}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9047}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],Gh=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:1.2}]}],Ei=G.Factory({Name:"Noelle",Stars:4,Element:t.stat.GEO_DMG,StatBonus:t.stat.DEF_PERCENT,BurstCost:60,Region:t.region.MONDSTADT,Weapon:t.weapon.CLAYMORE,HpBase:[1012.088,3621.2327],AtkBase:[16.0272,57.34638],DefBase:[66.95325,239.5575],Normals:gh,Skills:Gh,Bursts:fh,Extra:[],Effects:[Lh,ph,Nh,dh,Ch,Mh]}),Rh=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.8696}]}],Ih=l.Factory({Name:"NingguangC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Oh=l.Factory({Name:"NingguangC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Dh=[{Name:T.hits.HIT_N1,Element:t.stat.GEO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.28}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.GEO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.7408}]},{Name:"HIT_Jade",Element:t.stat.GEO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.496}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.GEO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.GEO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.GEO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],vh=l.Factory({Name:"NingguangA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.GEO_DMG).Values(.12).Build()}),yh=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.304}]}],Ti=G.Factory({Name:"Ningguang",Stars:4,Element:t.stat.GEO_DMG,StatBonus:t.stat.GEO_DMG,Weapon:t.weapon.CATALYST,Region:t.region.LIYUE,BurstCost:40,HpBase:[820.6119,2936.1348],AtkBase:[17.808,63.7182],DefBase:[48.069,171.99],Normals:Dh,Skills:yh,Bursts:Rh,Extra:[],Effects:[vh,Ih,Oh]}),Ph=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.424}]}],Hh=l.Factory({Name:"MonaQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ALL_DMG).Values(.4,.42,.44,.46,.48,.5,.52,.54,.56,.58,.6).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Build()}),wh=l.Factory({Name:"MonaC1",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELECTROCHARGE_DMG,t.stat.VAPORIZE_DMG).Values(.15).Next().stat.Char(t.stat.ALL_DMG).Instance("HIT_SWIRL_HYDRO").Values(.15).Build()}),Bh=l.Factory({Name:"MonaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),bh=l.Factory({Name:"MonaC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.15).Build()}),Kh=l.Factory({Name:"MonaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Yh=l.Factory({Name:"MonaC6",MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.6).Stacks().Build()}),Fh=[{Name:T.hits.HIT_N1,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.376}]},{Name:T.hits.HIT_N2,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.36}]},{Name:T.hits.HIT_N3,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.448}]},{Name:T.hits.HIT_N4,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5616}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.4972}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],kh=l.Factory({Name:"MonaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.ELEMENTAL_SKILL_LEVEL,Stat:t.stat.ATK,Initial:1.328*.5}]}).Build()}),Vh=l.Factory({Name:"MonaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ENERGY_RECHARGE).stat.Char(t.stat.HYDRO_DMG).Values(.2).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ENERGY_RECHARGE)).Build()}),xh=[{Name:T.hits.HIT_E_DOT,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.32}]},{Name:T.hits.HIT_E_EXPLOSION,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.328}]}],_i=G.Factory({Name:"Mona",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,Region:t.region.MONDSTADT,BurstCost:60,HpBase:[810.322,3327.62],AtkBase:[22.344,91.74984],DefBase:[50.8555,208.845],Normals:Fh,Skills:xh,Bursts:Ph,Extra:[],Effects:[Hh,kh,Vh,wh,Bh,bh,Kh,Yh]}),Uh=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4264}]}],Wh=l.Factory({Name:"KleeC1",OnApply:new l.Builder().instance.Location("Burst").Options({Name:"HIT_C1",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.ELEMENTAL_BURST_LEVEL,Stat:t.stat.ATK,Initial:.4264*1.2}]}).Build()}),jh=l.Factory({Name:"KleeC2",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.DEFREDUCTION).Values(.23).Build()}),zh=l.Factory({Name:"KleeC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),qh=l.Factory({Name:"KleeC4",OnApply:new l.Builder().instance.Location("Burst").Options({Name:"HIT_C4",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Stat:t.stat.ATK,Initial:5.55}]}).Build()}),$h=l.Factory({Name:"KleeC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Qh=l.Factory({Name:"KleeC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Build()}),Xh=[{Name:T.hits.HIT_N1,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.7216}]},{Name:T.hits.HIT_N2,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.624}]},{Name:T.hits.HIT_N3,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.8992}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.5736}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],Jh=l.Factory({Name:"KleeA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.5).Build()}),Zh=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.952}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.328}]}],ui=G.Factory({Name:"Klee",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.PYRO_DMG,StatBonus:t.stat.PYRO_DMG,Region:t.region.MONDSTADT,BurstCost:60,HpBase:[800.7888,3288.4717],AtkBase:[24.206,99.39566],DefBase:[47.864,196.56],Normals:Xh,Skills:Zh,Bursts:Uh,Extra:[],Effects:[Jh,Wh,jh,zh,qh,$h,Qh]}),tm=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.88}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.24}]},{Name:T.hits.HIT_Q_EXPLOSION,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.888}]}],em=l.Factory({Name:"KeqingC1",OnApply:new l.Builder().instance.Options({Name:"HIT_C1",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.5,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),am=l.Factory({Name:"KeqingC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nm=l.Factory({Name:"KeqingC4",OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.25).Build()}),sm=l.Factory({Name:"KeqingC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),rm=l.Factory({Name:"KeqingC6",OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_DMG).Values(.06).Build()}),im=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4102}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4102}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5444}]},{Name:T.hits.HIT_N4_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3148}]},{Name:T.hits.HIT_N4_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.344}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6699}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.768}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.86}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],lm=l.Factory({Name:"KeqingA1",OnApply:new l.Builder().Where({target:{ascension:1}}).infusion.Set(t.stat.ELECTRO_DMG,!1).Build()}),om=l.Factory({Name:"KeqingA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.CRIT_RATE,t.stat.ENERGY_RECHARGE).Values(.15).Build()}),cm=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.504}]},{Name:T.hits.HIT_E+"_SLASH",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.68}]},{Name:T.hits.HIT_E+"_SLASH_2",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.84}]}],Ai=G.Factory({Name:"Keqing",Stars:5,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.CRIT_DMG,Weapon:t.weapon.SWORD,Region:t.region.LIYUE,BurstCost:40,HpBase:[1020.0524,4188.8867],AtkBase:[25.137,103.21857],DefBase:[62.2232,255.528],Normals:im,Skills:cm,Bursts:tm,Extra:[],Effects:[lm,om,em,am,nm,sm,rm]}),Em=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6646}]}],Tm=l.Factory({Name:"AyatoQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.11,.12,.13,.14,.15,.16,.17,.18,.19,.2).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Build()}),_m=l.Factory({Name:"AyatoC1",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance(/HIT_N\d_E/i).Values(.4).Build()}),um=l.Factory({Name:"AyatoC2",OnApply(e,a,n){const s=e.FindEffect("AyatoE");if(!s)throw new Error("Cannot find Ayato Skill");const r=n.Modifier(e.GetCharacter().CreateModifier(t.stat.HP_PERCENT,0)),i=function(){s.GetStacks()>=3?r.SetValue(.5):r.SetValue(0)};return i(),n.Observer(s.CreateObserver(l.EffectEvent.CHANGE_STACKS,i)),()=>0}}),Am=l.Factory({Name:"AyatoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Sm=l.Factory({Name:"AyatoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),hm=l.Factory({Name:"AyatoC6",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Stat:t.stat.ATK,Initial:4.5}]}).Build()}),mm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4496}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4716}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5861}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2945}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.756}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2953}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],fm=[{Name:T.hits.HIT_N1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5289}]},{Name:T.hits.HIT_N2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5891}]},{Name:T.hits.HIT_N3+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6493}]},{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0148}]}],Lm=l.Factory({Name:"AyatoE",MaxStacks:5,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Mv(t.stat.HP,.56/100,/HIT_N\d_E/i).Map((e,a,n)=>e*n.GetStacks()*o.TalentScaling.PHYSICAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),Si=G.Factory({Name:"Ayato",Stars:5,Weapon:t.weapon.SWORD,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.CRIT_DMG,Region:t.region.INAZUMA,BurstCost:80,HpBase:[1067.7184,4384.629],AtkBase:[23.275,95.57275],DefBase:[59.83,245.7],Normals:mm,Skills:fm,Bursts:Em,Extra:[],Effects:[Lm,Tm,_m,um,Am,Sm,hm]}),pm=[{Name:T.hits.HIT_Q_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.123}]},{Name:T.hits.HIT_Q_EXPLOSION,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.6845}]}],Nm=l.Factory({Name:"AyakaC2",OnApply:new l.Builder().instance.Location("Burst").Options({Name:"HIT_C2",Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.ELEMENTAL_BURST_LEVEL,Stat:t.stat.ATK,Initial:1.123}]}).Build()}),dm=l.Factory({Name:"AyakaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Cm=l.Factory({Name:"AyakaC4",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.DEFREDUCTION).Values(.3).Build()}),Mm=l.Factory({Name:"AyakaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),gm=l.Factory({Name:"AyakaC6",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(2.98).Build()}),Gm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4573}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4868}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6262}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2265}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7818}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5513}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Rm=l.Factory({Name:"AyakaSprint",OnApply:new l.Builder().infusion.Set(t.stat.CRYO_DMG,!1).Build()}),Im=l.Factory({Name:"AyakaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.3).Build()}),Om=l.Factory({Name:"AyakaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.CRYO_DMG).Values(.18).Build()}),Dm=[{Name:T.hits.HIT_E,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.392}]}],hi=G.Factory({Name:"Ayaka",Stars:5,Element:t.stat.CRYO_DMG,StatBonus:t.stat.CRIT_DMG,Weapon:t.weapon.SWORD,Region:t.region.INAZUMA,BurstCost:80,HpBase:[1000.986,4110.59],AtkBase:[26.6266,109.33523],DefBase:[61.0266,250.614],Normals:Gm,Skills:Dm,Bursts:pm,Extra:[],Effects:[Rm,Im,Om,Nm,dm,Cm,Mm,gm]}),vm=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.248}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.784}]}],ym=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4833}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4558}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6029}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6588}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7921}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.6202}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Pm=l.Factory({Name:"JeanC1",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.4).Build()}),Hm=l.Factory({Name:"JeanC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),wm=l.Factory({Name:"JeanC4",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.ANEMO_RES).Values(-.4).Build()}),Bm=l.Factory({Name:"JeanC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),bm=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.92}]}],mi=G.Factory({Name:"Jean",Stars:5,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.HEALING_BONUS,Weapon:t.weapon.SWORD,Region:t.region.MONDSTADT,BurstCost:80,HpBase:[1143.984,4697.817],AtkBase:[18.62,76.4582],DefBase:[59.83,245.7],Normals:ym,Skills:bm,Bursts:vm,Extra:[],Effects:[Pm,Hm,wm,Bm]}),Km=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:.9822}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:.613}]}];function ta(e){const a=e.GetParty();if(!a)return e.GetCharacter().Options.Element===t.stat.GEO_DMG?1:0;let n=0;for(const s of a.GetMembers())s.GetCharacter().Options.Element===t.stat.GEO_DMG&&n++;return n}var Ym=l.Factory({Name:"GorouC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Fm=l.Factory({Name:"GorouC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),km=l.Factory({Name:"GorouC6",ApplyOther:!0,OnApply:new l.Builder().observe.Party(!0).stat.Char(t.stat.GEO_CRIT_DMG).Values(.1,.2,.4).Rank(e=>ta(e)).Build()}),Vm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3775}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3715}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4945}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.59}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.GEO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],xm=l.Factory({Name:"GorouA1",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.DEF_PERCENT).Values(.25).Build()}),Um=l.Factory({Name:"GorouA4",OnApply:new l.Builder().Where({target:{ascension:4}}).mv.Mv(t.stat.DEF,1.56,"HIT_E").Next().Where({target:{ascension:4}}).mv.Mv(t.stat.DEF,.156,"HIT_Q","HIT_Q_DOT").Next().Build()}),Wm=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.072}]}],jm=l.Factory({Name:"GorouE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).observe.Party(!0).stat.Char(t.stat.DEF_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a)=>206.16*e*(ta(a)>=1?1:0)).Next().observe.Party(!0).stat.Char(t.stat.GEO_DMG).Values(.15).Map((e,a)=>e*(ta(a)>=3?1:0)).Build()}),fi=G.Factory({Name:"Gorou",Stars:4,Weapon:t.weapon.BOW,Element:t.stat.GEO_DMG,StatBonus:t.stat.GEO_DMG,BurstCost:80,Region:t.region.INAZUMA,HpBase:[802.3761,2870.8872],AtkBase:[15.31488,54.797653],DefBase:[54.36375,194.5125],Normals:Vm,Skills:Wm,Bursts:Km,Extra:[],Effects:[jm,xm,Um,Ym,Fm,km]}),zm=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7027}]}],qm=l.Factory({Name:"GanyuC1",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.CRYO_RES).Values(-.15).Build()}),$m=l.Factory({Name:"GanyuC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Qm=l.Factory({Name:"GanyuC4",ApplyOther:!0,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.05).Stacks().Build()}),Xm=l.Factory({Name:"GanyuC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Jm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3173}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.356}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4549}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4549}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4825}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5762}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.CRYO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_Frostflake",Element:t.stat.CRYO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.28}]},{Name:"HIT_FrostflakeBloom",Element:t.stat.CRYO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.176}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],Zm=l.Factory({Name:"GanyuA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.CRIT_RATE).Instance(/Frostflake/i).Values(.2).Build()}),tf=l.Factory({Name:"GanyuA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.CRYO_DMG).Values(.2).Build()}),ef=[{Name:T.hits.HIT_E,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.32}]}],Li=G.Factory({Name:"Ganyu",Stars:5,Weapon:t.weapon.BOW,Region:t.region.LIYUE,Element:t.stat.CRYO_DMG,StatBonus:t.stat.CRIT_DMG,BurstCost:60,HpBase:[762.656,3131.878],AtkBase:[26.068,107.04148],DefBase:[49.0606,201.474],Normals:Jm,Skills:ef,Bursts:zm,Extra:[],Effects:[Zm,tf,qm,$m,Qm,Xm]}),af=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.456}]},{Name:"HIT_LightfallSword",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:3.6705}]}],nf=l.Factory({Name:"EulaQ",MaxStacks:30,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.ATK,.7499,"HIT_LightfallSword").Map((e,a,n)=>{const s=Math.max(1,Math.min(15,a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)));return n.GetStacks()*e*o.TalentScaling.PHYSICAL_1A[s-1]}).Build()}),sf=l.Factory({Name:"EulaC1",OnApply:new l.Builder().stat.Char(t.stat.PHYSICAL_DMG).Values(.3).Build()}),rf=l.Factory({Name:"EulaC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),lf=l.Factory({Name:"EulaC4",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.25).Build()}),of=l.Factory({Name:"EulaC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),cf=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8973}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.9355}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.568}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.1264}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7183}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.688}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.244}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.8629}]}],Ef=l.Factory({Name:"EulaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Burst").Options({Name:"HIT_A1",Talent:t.stat.ELEMENTAL_BURST_DMG,Element:t.stat.PHYSICAL_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Talent:t.stat.ELEMENTAL_BURST_LEVEL,Stat:t.stat.ATK,Initial:3.6705*.5}]}).Build()}),Tf=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.464}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.456}]},{Name:"HIT_Icewhirl",Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.96}]}],_f=l.Factory({Name:"EulaE_1",MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT).Values(.3).Stacks().Build()}),uf=l.Factory({Name:"EulaE_2",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Enemy(t.stat.CRYO_RES,t.stat.PHYSICAL_RES).Values(-.16,-.17,-.18,-.19,-.2,-.21,-.22,-.23,-.24,-.25).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Build()}),pi=G.Factory({Name:"Eula",Stars:5,Weapon:t.weapon.CLAYMORE,Element:t.stat.CRYO_DMG,StatBonus:t.stat.CRIT_DMG,BurstCost:80,Region:t.region.MONDSTADT,HpBase:[1029.5856,4228.035],AtkBase:[26.6266,109.33523],DefBase:[58.45391,240.0489],Normals:cf,Skills:Tf,Bursts:af,Extra:[],Effects:[_f,uf,nf,Ef,sf,rf,lf,of]}),Af=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.04}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6}]},{Name:T.hits.HIT_Q_EXPLOSION,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.04}]}],Sf=l.Factory({Name:"DilucQ",OnApply:new l.Builder().infusion.Set(t.stat.PYRO_DMG,!1).Build()}),hf=l.Factory({Name:"DilucC1",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.15).Build()}),mf=l.Factory({Name:"DilucC2",MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.1).Stacks().Build()}),ff=l.Factory({Name:"DilucC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Lf=l.Factory({Name:"DilucC4",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.4).Build()}),pf=l.Factory({Name:"DilucC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Nf=l.Factory({Name:"DilucC6",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.3).Build()}),df=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.897}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8763}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.9881}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.3399}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.688}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.247}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8951}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.7897}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.2355}]}],Cf=l.Factory({Name:"DilucA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.PYRO_DMG).Values(.2).Build()}),Mf=[{Name:T.hits.HIT_E_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.944}]},{Name:T.hits.HIT_E_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.976}]},{Name:T.hits.HIT_E_3,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.288}]}],Ni=G.Factory({Name:"Diluc",Stars:5,Weapon:t.weapon.CLAYMORE,Element:t.stat.PYRO_DMG,StatBonus:t.stat.CRIT_RATE,BurstCost:40,Region:t.region.MONDSTADT,HpBase:[1010.5192,4149.7383],AtkBase:[26.068,107.04148],DefBase:[61.0266,250.614],Normals:df,Skills:Mf,Bursts:Af,Extra:[],Effects:[Sf,Cf,hf,mf,ff,Lf,pf,Nf]}),gf=[{Name:T.hits.HIT_N1+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7828}]},{Name:T.hits.HIT_N2+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8247}]},{Name:T.hits.HIT_N3+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0463}]},{Name:T.hits.HIT_N4+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5169}]},{Name:T.hits.HIT_N5+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.3084}]},{Name:T.hits.HIT_CHARGED+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0105}]},{Name:T.hits.HIT_PLUNGE+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Gf=l.Factory({Name:"CynoQ",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(100).Build()}),Rf=l.Factory({Name:"CynoC2",MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_DMG).Values(.1).Stacks().Build()}),If=l.Factory({Name:"CynoC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Of=l.Factory({Name:"CynoC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Df=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4926}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4792}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2931}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7589}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2238}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],vf=l.Factory({Name:"CynoA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:t.stat.ATK,Initial:.35,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Next().Where({target:{ascension:1}}).stat.Char(t.stat.ALL_DMG).Instance("HIT_E","HIT_E_2").Values(.35).Build()}),yf=new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.DMG_FLAT).Instance(/N\d_Q$/i).Values(1.5).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build(),Pf=l.Factory({Name:"CynoA4",OnApply(e,a,n){yf(e,a,n);const s=e.GetCharacter(),r=e.FindEffect("CynoA1");let i;if(!r)throw new Error("Cannot find Cyno A1");function c(){if(!i){const _=e.FindInstance("HIT_A1");if(!_)return;i=n.Modifier(_.Subject.CreateModifier(t.stat.DMG_FLAT,0))}!i||(s.GetAscension()>=4?i.SetValue(2.5*s.Get(t.stat.ELEMENTAL_MASTERY)):i.SetValue(0))}c();for(const _ of l.EffectEvent.Values())n.Observer(r.CreateObserver(_,c));return n.Observer(s.CreateObserver(t.stat.ELEMENTAL_MASTERY,c)),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),Hf=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.304}]},{Name:T.hits.HIT_E_2,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.568}]}],di=G.Factory({Name:"Cyno",Stars:5,Weapon:t.weapon.POLEARM,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.CRIT_DMG,BurstCost:80,Region:t.region.SUMERU,HpBase:[972.3864,3993.1443],AtkBase:[24.7646,101.68941],DefBase:[66.88994,274.6926],Normals:Df,Skills:Hf,Bursts:gf,Extra:[],Effects:[Gf,vf,Pf,Rf,If,Of]}),wf=[{Name:T.hits.HIT_Q,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.0182}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4325}]}],Bf=l.Factory({Name:"ColleiC1",OnApply:new l.Builder().stat.Char(t.stat.ENERGY_RECHARGE).Values(.2).Build()}),bf=l.Factory({Name:"ColleiC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Kf=l.Factory({Name:"ColleiC4",ApplyOther:!0,ApplySelf:!1,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60).Build()}),Yf=l.Factory({Name:"ColleiC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Ff=l.Factory({Name:"ColleiC6",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Initial:2}]}).Build()}),kf=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.436}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4266}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5409}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6803}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.DENDRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],Vf=l.Factory({Name:"ColleiA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Initial:.4}]}).Build()}),xf=[{Name:T.hits.HIT_E,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.512}]}],Ci=G.Factory({Name:"Collei",Stars:4,Weapon:t.weapon.BOW,Element:t.stat.DENDRO_DMG,StatBonus:t.stat.ATK_PERCENT,BurstCost:60,Region:t.region.SUMERU,HpBase:[820.6119,2936.1348],AtkBase:[16.73952,59.895107],DefBase:[50.358,180.18],Normals:kf,Skills:xf,Bursts:wf,Extra:[],Effects:[Vf,Bf,bf,Kf,Yf,Ff]}),Uf=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.424}]}],Wf=l.Factory({Name:"ChongyunC1",OnApply:new l.Builder().instance.Basic({Name:"HIT_C1",Element:t.stat.CRYO_DMG,Stat:t.stat.ATK,Values:[.5]}).Build()}),jf=l.Factory({Name:"ChongyunC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),zf=l.Factory({Name:"ChongyunC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),qf=l.Factory({Name:"ChongyunC6",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.15).Build()}),$f=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6312}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8032}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0122}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5629}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0178}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],Qf=l.Factory({Name:"ChongyunA4",ApplyOther:!0,OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Enemy(t.stat.CRYO_RES).Values(-.1).Build()}),Xf=[{Name:T.hits.HIT_E,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.7204}]}],Jf=l.Factory({Name:"ChongyunE",ApplyOther:!0,OnApply:new l.Builder().infusion.Set(t.stat.CRYO_DMG,!1).Build()}),Mi=G.Factory({Name:"Chongyun",Stars:4,Element:t.stat.CRYO_DMG,Weapon:t.weapon.CLAYMORE,StatBonus:t.stat.ATK_PERCENT,BurstCost:40,Region:t.region.LIYUE,HpBase:[920.90894,3294.9956],AtkBase:[18.6984,66.90411],DefBase:[54.36375,194.5125],Normals:$f,Skills:Xf,Bursts:Uf,Extra:[],Effects:[Jf,Qf,Wf,jf,zf,qf]}),Zf=l.Factory({Name:"IttoQ",OnApply:new l.Builder().observe.Target(t.stat.DEF_FLAT,t.stat.DEF_BASE,t.stat.DEF_PERCENT,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a)=>.576*e*a.GetCharacter().Get(t.stat.DEF)).Next().infusion.Set(t.stat.GEO_DMG,!0).Build()}),tL=l.Factory({Name:"IttoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),eL=l.Factory({Name:"IttoC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT,t.stat.ATK_PERCENT).Values(.2).Build()}),aL=l.Factory({Name:"IttoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nL=l.Factory({Name:"IttoC6",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_CRIT_DMG).Values(.7).Build()}),sL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7923}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7637}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9164}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1722}]},{Name:"HIT_KesagiriSlash",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9116}]},{Name:"HIT_KesagiriFinal",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.9092}]},{Name:"HIT_SaichimonjiSlash",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9047}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439}]}],rL=l.Factory({Name:"IttoA4",OnApply:new l.Builder().Where({target:{ascension:4}}).mv.Mv(t.stat.DEF,.35,/Kesagiri/i).Build()}),iL=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.072}]}],gi=G.Factory({Name:"Itto",Stars:5,Weapon:t.weapon.CLAYMORE,Element:t.stat.GEO_DMG,StatBonus:t.stat.CRIT_RATE,Region:t.region.INAZUMA,BurstCost:70,HpBase:[1000.986,4110.59],AtkBase:[17.689,72.63529],DefBase:[74.66784,306.6336],Normals:sL,Skills:iL,Bursts:[],Extra:[],Effects:[Zf,rL,tL,eL,aL,nL]}),lL=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.2808}]}],oL=l.Factory({Name:"AmberC1",OnApply:new l.Builder().instance.Location("Normal").Options({Name:"HIT_C1",Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.NORMAL_ATTACK_LEVEL,Stat:t.stat.ATK,Initial:1.24*.2}]}).Build()}),cL=l.Factory({Name:"AmberC2",OnApply:new l.Builder().mv.Mv(t.stat.ATK,2,/hit_e/i).Build()}),EL=l.Factory({Name:"AmberC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),TL=l.Factory({Name:"AmberC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),_L=l.Factory({Name:"AmberC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.15).Build()}),uL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3612}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3612}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4644}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.473}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5934}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],AL=l.Factory({Name:"AmberA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.1).Build()}),SL=l.Factory({Name:"AmberA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.ATK_PERCENT).Values(.15).Build()}),hL=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.232}]}],Gi=G.Factory({Name:"Amber",Stars:4,Weapon:t.weapon.BOW,Element:t.stat.PYRO_DMG,StatBonus:t.stat.ATK_PERCENT,BurstCost:40,Region:t.region.MONDSTADT,HpBase:[793.2582,2838.2634],AtkBase:[18.6984,66.90411],DefBase:[50.358,180.18],Normals:uL,Skills:hL,Bursts:lL,Extra:[],Effects:[AL,SL,oL,cL,EL,TL,_L]}),mL=l.Factory({Name:"AlhaithamA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.1/100).Map((e,a)=>Math.min(1,e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY))).Build()}),fL=[{Name:T.hits.HIT_Q,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.216},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:.9728}]}],LL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4953}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5075}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3418}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6677}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8385}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5526}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],pL=[{Name:T.hits.HIT_E,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.936},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.5488}]},{Name:T.hits.HIT_E_DOT+"_1",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.344}]},{Name:T.hits.HIT_E_DOT+"_2",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672*2},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.344*2}]},{Name:T.hits.HIT_E_DOT+"_3",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672*3},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.344*3}]}],NL=l.Factory({Name:"AlhaithamE",OnApply:new l.Builder().infusion.Set(t.stat.DENDRO_DMG,!0).Build()}),dL=l.Factory({Name:"AlhaithamC2",MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(50).Stacks().Build()}),CL=l.Factory({Name:"AlhaithamC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),ML=l.Factory({Name:"AlhaithamC4",MaxStacks:3,ApplyOther:!0,OnApply:new l.Builder().Where({target:{isOwner:!0}}).stat.Char(t.stat.DENDRO_DMG).Values(.1).Stacks().Next().Where({target:{isOwner:!1}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(30).Stacks().Build()}),gL=l.Factory({Name:"AlhaithamC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),GL=l.Factory({Name:"AlhaithamC6",OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.1).Next().stat.Char(t.stat.CRIT_DMG).Values(.7).Build()}),Ri=G.Factory({Name:"Alhaitham",Stars:5,Weapon:t.weapon.SWORD,Element:t.stat.DENDRO_DMG,StatBonus:t.stat.DENDRO_DMG,Region:t.region.SUMERU,BurstCost:70,AtkBase:[24.3922,100.16024],DefBase:[60.84711,249.8769],HpBase:[1039.1188,4267.1836],Normals:LL,Skills:pL,Bursts:fL,Extra:[],Effects:[NL,mL,dL,CL,ML,gL,GL]}),RL=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.672}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.72}]}],IL=l.Factory({Name:"AlbedoC2",MaxStacks:4,OnApply:new l.Builder().mv.Mv(t.stat.DEF,.3,/HIT_Q/i).Map((e,a,n)=>e*n.GetStacks()).Build()}),OL=l.Factory({Name:"AlbedoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),DL=l.Factory({Name:"AlbedoC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PLUNGE_ATTACK_DMG).Values(.3).Build()}),vL=l.Factory({Name:"AlbedoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),yL=l.Factory({Name:"AlbedoC6",ApplyOther:!0,OnApply:new l.Builder().Where({target:{shielded:!0}}).stat.Char(t.stat.ALL_DMG).Values(.17).Build()}),PL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3674}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3674}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4745}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4975}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6207}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.473}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.602}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],HL=l.Factory({Name:"AlbedoA1",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindSkill(T.hits.HIT_E_DOT);if(!r)throw new Error("Cannot find Albedo Skill");const i=n.Modifier(r.Subject.CreateModifier(t.stat.ALL_DMG,0));function c(){s.GetAscension()>=1?i.SetValue(.25):i.SetValue(0)}return c(),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),wL=l.Factory({Name:"AlbedoA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(125).Build()}),BL=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.304}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:1.336}]}],Ii=G.Factory({Name:"Albedo",Element:t.stat.GEO_DMG,Stars:5,Weapon:t.weapon.SWORD,StatBonus:t.stat.GEO_DMG,Region:t.region.MONDSTADT,AtkBase:[19.551,80.28111],DefBase:[68.2062,280.098],HpBase:[1029.5856,4228.035],BurstCost:40,Normals:PL,Skills:BL,Bursts:RL,Extra:[],Effects:[HL,wL,IL,OL,DL,vL,yL]}),bL=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.216}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.96}]}],KL=l.Factory({Name:"BeidouC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),YL=l.Factory({Name:"BeidouC4",ApplySelf:!0,OnApply:new l.Builder().instance.Options({Name:"HIT_C4",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.2,Talent:t.stat.NONE,Scaling:o.TalentScaling.NONE}]}).Build()}),FL=l.Factory({Name:"BeidouC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),kL=l.Factory({Name:"BeidouC6",ApplySelf:!0,ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.ELECTRO_RES).Values(-.15).Build()}),VL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7112}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7086}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8832}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8652}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.1214}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5624}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.0182}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],xL=l.Factory({Name:"BeidouA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.15).Build()}),UL=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.216}]}],WL=l.Factory({Name:"BeidouE",MaxStacks:2,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Mv(t.stat.ATK,.96,T.hits.HIT_E).Map((e,a,n)=>{const s=n.GetStacks(),r=a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1,i=o.TalentScaling.ELEMENTAL_1[r];return e*i*s}).Build()}),Oi=G.Factory({Name:"Beidou",Stars:4,Weapon:t.weapon.CLAYMORE,Element:t.stat.ELECTRO_DMG,Region:t.region.LIYUE,StatBonus:t.stat.ELECTRO_DMG,AtkBase:[18.87648,67.54129],DefBase:[54.36375,194.5125],HpBase:[1094.1492,3914.8462],BurstCost:80,Normals:VL,Skills:UL,Bursts:bL,Extra:[],Effects:[WL,xL,KL,YL,FL,kL]}),jL=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.5427}]}],zL=l.Factory({Name:"XingqiuC2",ApplySelf:!0,ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.HYDRO_RES).Values(-.15).Build()}),qL=l.Factory({Name:"XingqiuC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),$L=l.Factory({Name:"XingqiuC4",ApplySelf:!0,OnApply:new l.Builder().mv.Multiplier(1.5,/^HIT_E_/i).Build()}),QL=l.Factory({Name:"XingqiuC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),XL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4661}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4764}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2855}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5599}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3586}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.473}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5616}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],JL=l.Factory({Name:"XingqiuA4",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.HYDRO_DMG).Where({owner:{ascension:4}}).Values(.2).Build()}),ZL=[{Name:T.hits.HIT_E_1,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.68}]},{Name:T.hits.HIT_E_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.912}]}],Di=G.Factory({Name:"Xingqiu",Stars:4,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.SWORD,Region:t.region.LIYUE,HpBase:[857.08356,3066.6296],AtkBase:[16.9176,60.53229],DefBase:[63.51975,227.2725],StatBonus:t.stat.ATK_PERCENT,Normals:XL,Skills:ZL,Bursts:jL,Extra:[],Effects:[JL,zL,qL,$L,QL],BurstCost:80}),tp=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_2,Stat:t.stat.ATK,Initial:3.0327}]}],ep=l.Factory({Name:"HuTaoQ",OnApply:new l.Builder().mv.Where({target:{hp:{leq:.5}}}).Multiplier(3.7909/3.0327,"HIT_Q").Build()}),ap=l.Factory({Name:"HuTaoC2",ApplySelf:!0,OnApply:new l.Builder().mv.Mv(t.stat.HP,.1,"HIT_E").Build()}),np=l.Factory({Name:"HuTaoC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),sp=l.Factory({Name:"HuTaoC4",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.12).Build()}),rp=l.Factory({Name:"HuTaoC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),ip=l.Factory({Name:"HuTaoC6",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(1).Build()}),lp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.4689}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.4825}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6105}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6564}]},{Name:T.hits.HIT_N5_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.3327}]},{Name:T.hits.HIT_N5_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.352}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.8596}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.3596}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6542}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.3081}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.6339}]}],op=l.Factory({Name:"HuTaoA1",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Where({owner:{ascension:1}}).Values(.12).Build()}),cp=l.Factory({Name:"HuTaoA4",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Where({owner:{ascension:4,hp:{leq:.5}}}).Values(.33).Build()}),Ep=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.64}]}],Tp=l.Factory({Name:"HuTaoE",ApplySelf:!0,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP,t.stat.ATK_BASE,t.stat.HP_BASE,t.stat.HP_FLAT,t.stat.HP_PERCENT).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_2).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a)=>{const n=a.GetCharacter(),s=.0384*e*n.Get(t.stat.HP),r=n.Get(t.stat.ATK_BASE)*4;return Math.max(0,Math.min(r,s))}).Next().infusion.Set(t.stat.PYRO_DMG,!0).Build()}),vi=G.Factory({Name:"HuTao",Element:t.stat.PYRO_DMG,Region:t.region.LIYUE,Stars:5,Weapon:t.weapon.POLEARM,HpBase:[1210.7164,4971.856],AtkBase:[8.2859,34.0239],DefBase:[68.2062,280.098],StatBonus:t.stat.CRIT_DMG,Normals:lp,Skills:Ep,Bursts:tp,Extra:[],Effects:[Tp,ep,op,cp,ap,np,sp,rp,ip],BurstCost:60}),_p=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0731}]},{Name:T.hits.HIT_Q+"_THROW",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0487}]}],up=l.Factory({Name:"YelanC2",OnApply:new l.Builder().instance.Options({Name:"HIT_C2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.14,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build()}),Ap=l.Factory({Name:"YelanC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Sp=l.Factory({Name:"YelanC4",MaxStacks:4,ApplySelf:!0,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.1).Stacks().Build()}),hp=l.Factory({Name:"YelanC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),mp=l.Factory({Name:"YelanC6",OnApply:new l.Builder().instance.Options({Name:"HIT_C6",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:1.56*.1158,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),fp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4068}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3904}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.516}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3251}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_BREAKTHROUGH_BARB",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1158}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],Lp=l.Factory({Name:"YelanA1",ApplySelf:!0,OnApply:new l.Builder().observe.Party(!0).stat.Char(t.stat.HP_PERCENT).Where({owner:{ascension:1}}).Values(.06,.12,.18,.3).Rank(e=>{const a=e.GetParty();if(!a)return 1;const n=a.GetMembers(),s=new Map;for(const i of n)s.set(i.GetCharacter().Options.Element,!0);let r=0;for(const i of s.values())i&&r++;return r}).Build()}),pp=l.Factory({Name:"YelanA4",ApplySelf:!0,ApplyOther:!0,MaxTargets:1,MaxStacks:15,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Where({owner:{ascension:4}}).Values(.01).Next().stat.Char(t.stat.ALL_DMG).Where({owner:{ascension:4}}).Values(.035).Stacks().Map(e=>Math.min(.5,e)).Build()}),Np=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.2261}]}],yi=G.Factory({Name:"Yelan",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.BOW,Region:t.region.LIYUE,BurstCost:70,HpBase:[1124.9176,4619.52],AtkBase:[18.9924,77.987366],DefBase:[42.65879,175.1841],StatBonus:t.stat.CRIT_RATE,Normals:fp,Skills:Np,Bursts:_p,Extra:[],Effects:[Lp,pp,up,Ap,Sp,hp,mp]}),dp=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:[1,1.108,1.216,1.351,1.473,1.595,1.757,1.919,2.081,2.243,2.405,2.568,2.703,2.838,2.973],Stat:t.stat.ATK,Initial:4.0108}]}],Cp=l.Factory({Name:"ZhongliC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Mp=l.Factory({Name:"ZhongliC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),gp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3077}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3115}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3858}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4294}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.1075}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.545}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.1103}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Gp=l.Factory({Name:"ZhongliA4",ApplySelf:!0,OnApply:new l.Builder().Where({target:{ascension:4}}).mv.Mv(t.stat.HP,.0139,/HIT_(N(\d)|CHARGED|PLUNGE)/).Next().Where({target:{ascension:4}}).mv.Mv(t.stat.HP,.019,/HIT_E/).Next().Where({target:{ascension:4}}).mv.Mv(t.stat.HP,.33,/HIT_Q/).Build()}),Rp=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.16}]},{Name:T.hits.HIT_E+"_RESONANCE",Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.32}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.8}]}],Ip=l.Factory({Name:"ZhongliE",ApplySelf:!0,ApplyOther:!0,OnApply:(e,a,n)=>{const s=t.Elements;for(const r of s){const i=t.DmgToRes(r);n.Modifier(e.GetCharacter().GetEnemy().Subject.CreateModifier(i,-.2))}return()=>0}}),Pi=G.Factory({Name:"Zhongli",Stars:5,Element:t.stat.GEO_DMG,Weapon:t.weapon.POLEARM,Region:t.region.LIYUE,HpBase:[1143.984,4697.817],AtkBase:[19.551,80.2811],DefBase:[57.4368,235.872],StatBonus:t.stat.GEO_DMG,BurstCost:40,Normals:gp,Skills:Rp,Bursts:dp,Extra:[],Effects:[Ip,Gp,Cp,Mp]}),Op=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.008}]},{Name:T.hits.HIT_N1+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4447}]},{Name:T.hits.HIT_N2+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4396}]},{Name:T.hits.HIT_N3+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.5382}]},{Name:T.hits.HIT_N4+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.3089}]},{Name:T.hits.HIT_N5+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7394}]},{Name:T.hits.HIT_CHARGED_1+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.616}]},{Name:T.hits.HIT_CHARGED_2+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7436}]},{Name:T.hits.HIT_PLUNGE+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Dp=l.Factory({Name:"RaidenQ",MaxStacks:60,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.ATK,.0389,T.hits.HIT_Q).Map((e,a,n)=>n.GetStacks()*e*o.TalentScaling.ELEMENTAL_1[Math.max(0,Math.min(o.TalentScaling.ELEMENTAL_1.length-1,a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1))]).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.ATK,.0073,/_.+_Q$/).Map((e,a,n)=>n.GetStacks()*e*o.TalentScaling.ELEMENTAL_1[Math.max(0,Math.min(o.TalentScaling.ELEMENTAL_1.length-1,a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1))]).Build()}),vp=l.Factory({Name:"RaidenC2",OnApply:new l.Builder().stat.Char(t.stat.DEFIGNORED).Values(.6).Build()}),yp=l.Factory({Name:"RaidenC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Pp=l.Factory({Name:"RaidenC4",ApplyOther:!0,ApplySelf:!1,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.3).Build()}),Hp=l.Factory({Name:"RaidenC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3965}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3973}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4988}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2898}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6545}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9959}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Bp=l.Factory({Name:"RaidenA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ENERGY_RECHARGE).stat.Char(t.stat.ELECTRO_DMG).Values(.4).Map((e,a)=>e*Math.max(0,a.GetCharacter().Get(t.stat.ENERGY_RECHARGE)-1)).Build()}),bp=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.172}]},{Name:T.hits.HIT_E+"_COORDINATED",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.42}]}],Kp=l.Factory({Name:"RaidenE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.0022,.0023,.0024,.0025,.0026,.0027,.0028,.0029,.003).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a)=>e*a.GetCharacter().Options.BurstCost).Build()}),Hi=G.Factory({Name:"Raiden",Stars:5,Weapon:t.weapon.POLEARM,Region:t.region.INAZUMA,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,BurstCost:90,AtkBase:[26.2542,107.80606],DefBase:[61.44541,252.3339],HpBase:[1004.79926,4126.249],Normals:wp,Skills:bp,Bursts:Op,Extra:[],Effects:[Kp,Dp,Bp,vp,yp,Pp,Hp]}),Yp=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.328}]}],Fp=l.Factory({Name:"BennettQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ATK_BASE,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a,n)=>{const s=n.Owner.FindEffect("BennettC1");return(.56*e+(s&&s.Enabled()?.2:0))*n.Owner.GetCharacter().Get(t.stat.ATK_BASE)}).Build()}),kp=l.Factory({Name:"BennettC1",OnApply(e,a,n){const s=e.FindEffect("BennettQ");if(!s)throw new Error("Bennett Burst effect not found");const r=s;function i(){r.Enabled()&&(r.Disable(),r.Enable())}return i(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_TARGET,i)),()=>0}}),Vp=l.Factory({Name:"BennettC2",OnApply:new l.Builder().Where({target:{hp:{leq:.7}}}).stat.Char(t.stat.ENERGY_RECHARGE).Values(.3).Build()}),xp=l.Factory({Name:"BennettC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Up=l.Factory({Name:"BennettC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Wp=l.Factory({Name:"BennettC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Values(.15).Next().Where({target:{weapon:[t.weapon.CLAYMORE,t.weapon.SWORD,t.weapon.POLEARM]}}).infusion.Set(t.stat.PYRO_DMG,!1).Build()}),jp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4455}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4274}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5461}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5968}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.719}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.559}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6072}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],zp=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.376}]},{Name:T.hits.HIT_E_1_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.84}]},{Name:T.hits.HIT_E_1_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.92}]},{Name:T.hits.HIT_E_2_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.88}]},{Name:T.hits.HIT_E_2_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.96}]},{Name:T.hits.HIT_E_EXPLOSION,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.32}]},{Name:"HIT_C4",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.92*1.35}]}],wi=G.Factory({Name:"Bennett",Stars:4,Weapon:t.weapon.SWORD,Element:t.stat.PYRO_DMG,Region:t.region.MONDSTADT,StatBonus:t.stat.ENERGY_RECHARGE,BurstCost:60,HpBase:[1039.4418,3719.104],AtkBase:[16.0272,57.34638],DefBase:[64.66425,231.3675],Normals:jp,Skills:zp,Bursts:Yp,Effects:[Fp,kp,Vp,xp,Up,Wp],Extra:[]}),qp=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.08}]}],$p=l.Factory({Name:"FischlC1",OnApply:new l.Builder().instance.Options({Name:"HIT_C1",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:.22,Talent:t.stat.NONE}]}).Build()}),Qp=l.Factory({Name:"FischlC2",OnApply:new l.Builder().mv.Mv(t.stat.ATK,2,/HIT_E$/).Build()}),Xp=l.Factory({Name:"FischlC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Jp=l.Factory({Name:"FischlC4",OnApply:new l.Builder().instance.Options({Name:"HIT_C4",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:2.22,Talent:t.stat.NONE}]}).Build()}),Zp=l.Factory({Name:"FischlC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),t1=l.Factory({Name:"FischlC6",OnApply:new l.Builder().instance.Options({Name:"HIT_C6",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:.3,Talent:t.stat.NONE}]}).Build()}),e1=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4412}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4678}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5814}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5771}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7207}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],a1=l.Factory({Name:"FischlA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Options({Name:"HIT_A1",Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24*1.527,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),n1=l.Factory({Name:"FischlA4",OnApply:new l.Builder().Where({target:{ascension:4}}).instance.Options({Name:"HIT_A4",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:.8,Talent:t.stat.NONE}]}).Build()}),s1=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1544}]},{Name:"HIT_OZ",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.888}]}],Bi=G.Factory({Name:"Fischl",Stars:4,Element:t.stat.ELECTRO_DMG,Region:t.region.MONDSTADT,Weapon:t.weapon.BOW,StatBonus:t.stat.ATK_PERCENT,AtkBase:[20.4792,73.27593],HpBase:[770.4634,2756.704],DefBase:[49.78575,178.1325],BurstCost:60,Normals:e1,Skills:s1,Bursts:qp,Extra:[],Effects:[a1,n1,$p,Qp,Xp,Jp,Zp,t1]}),r1=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.624}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2}]}],i1=l.Factory({Name:"KazuhaQ",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){l1(e,a,n);function s(){const r=e.FindBurst(T.hits.HIT_Q+"_ADDITIONAL");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),l1=new l.Builder().instance.Location("Burst").Options({Name:T.hits.HIT_Q+"_ADDITIONAL",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.36,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),o1=l.Factory({Name:"KazuhaC2",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(200).Build()}),c1=l.Factory({Name:"KazuhaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),E1=l.Factory({Name:"KazuhaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),T1=l.Factory({Name:"KazuhaC6",OnApply:new l.Builder().infusion.Set(t.stat.ANEMO_DMG,!1).Build()}),_1=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4498}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4524}]},{Name:T.hits.HIT_N3_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.258}]},{Name:T.hits.HIT_N3_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3096}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6072}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2537}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.43}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7465}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439}]}],u1=l.Factory({Name:"KazuhaA1",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){A1(e,a,n);function s(){const r=e.FindNormal("HIT_A1");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),A1=new l.Builder().Where({target:{ascension:1}}).instance.Location("Normal").Options({Name:"HIT_A1",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:2,Talent:t.stat.NONE}]}).Build(),S1=l.Factory({Name:"KazuhaA4",ApplyOther:!0,MaxAuras:1/0,ValidAuras:t.Swirlable,OnApply(e,a,n){const s=a.Owner.GetCharacter(),r=e.GetCharacter(),i=t.Elements.filter(_=>_!==t.stat.PHYSICAL_DMG).map(_=>n.Modifier(r.CreateModifier(_,0)));function c(){const _=a.GetAuras().map(u=>t.AuraToDmg(u));for(const u of i)_.includes(u.GetProp())&&s.GetAscension()>=4?u.SetValue(.04/100*s.Get(t.stat.ELEMENTAL_MASTERY)):u.SetValue(0)}return c(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,c)),n.Observer(s.CreateObserver(t.stat.ELEMENTAL_MASTERY,c)),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),h1=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.92}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.608}]}],m1=l.Factory({Name:"KazuhaE",OnApply:new l.Builder().instance.Location("Normal").Options({Name:T.hits.HIT_PLUNGE+"_E",Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Next().instance.Location("Normal").Options({Name:T.hits.HIT_PLUNGE_LOW+"_E",Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Next().instance.Location("Normal").Options({Name:T.hits.HIT_PLUNGE_HIGH+"_E",Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),bi=G.Factory({Name:"Kazuha",Stars:5,Weapon:t.weapon.SWORD,Region:t.region.INAZUMA,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.ELEMENTAL_MASTERY,BurstCost:60,HpBase:[1039.1188,4267.1836],AtkBase:[23.0888,94.80817],DefBase:[62.8215,257.985],Normals:_1,Skills:h1,Bursts:r1,Extra:[],Effects:[m1,i1,u1,S1,o1,c1,E1,T1]}),f1=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.096}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.3412}]}],L1=l.Factory({Name:"SaraC2",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C2",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2576*.3,Talent:t.stat.ELEMENTAL_SKILL_LEVEL}]}).Build()}),p1=l.Factory({Name:"SaraC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),N1=l.Factory({Name:"SaraC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),d1=l.Factory({Name:"SaraC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_CRIT_DMG).Values(.6).Build()}),C1=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3689}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.387}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.485}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.504}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.585}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],M1=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2576}]}],g1=l.Factory({Name:"SaraE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ATK_BASE,t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a,n)=>.4296*e*n.Owner.GetCharacter().Get(t.stat.ATK_BASE)).Build()}),Ki=G.Factory({Name:"Sara",Stars:4,Weapon:t.weapon.BOW,Region:t.region.INAZUMA,Element:t.stat.ELECTRO_DMG,BurstCost:80,HpBase:[802.3761,2870.8872],AtkBase:[16.38336,58.620743],DefBase:[52.647,188.37],StatBonus:t.stat.ATK_PERCENT,Normals:C1,Skills:M1,Bursts:f1,Extra:[],Effects:[g1,L1,p1,N1,d1]}),G1=[{Name:T.hits.HIT_N1,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.403}]},{Name:T.hits.HIT_N2,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3697}]},{Name:T.hits.HIT_N3,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4587}]},{Name:T.hits.HIT_N4,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5841}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.DENDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.32}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.DENDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.DENDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.DENDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],R1=l.Factory({Name:"NahidaA1",ApplyOther:!0,MaxTargets:1,OnApply(e,a,n){const s=e.GetCharacter(),r=a.Owner.GetCharacter(),i=n.Modifier(s.CreateModifier(t.stat.ELEMENTAL_MASTERY,0));let c=[];const _=[];function u(S){if(S===i)return;if(r.Get(t.stat.ASCENSION)<1){i.SetValue(0);return}let h=0,m=s;for(const N of c){const L=N.Get(t.stat.ELEMENTAL_MASTERY);L>h&&(h=L,m=N)}m===s&&(h-=i.GetValue());const f=Math.min(250,Math.max(0,.25*h));i.SetValue(f)}function A(){_.forEach(h=>h.Remove());const S=e.GetParty();if(!S)c=[s];else{c=[];for(const h of S.GetMembers())c.push(h.GetCharacter())}for(const h of c)_.push(n.Observer(h.CreateObserver(t.stat.ELEMENTAL_MASTERY,u)));u()}return A(),n.Observer(e.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,A)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,A)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,A)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_CONDITIONS,A)),n.Observer(r.CreateObserver(t.stat.LEVEL,u)),n.Observer(r.CreateObserver(t.stat.ASCENSION,u)),()=>0}}),I1=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.984}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.304}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.032},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:2.064}]}],O1=l.Factory({Name:"NahidaA4",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindSkill(T.hits.HIT_E_DOT);if(!r)throw new Error("Cannot find Nahida Skill");const i=n.Modifier(r.Subject.CreateModifier(t.stat.ALL_DMG,0)),c=n.Modifier(r.Subject.CreateModifier(t.stat.CRIT_RATE,0));let _,u;function A(){if(s.GetAscension()<4){i.SetValue(0),c.SetValue(0),_&&_.SetValue(0),u&&u.SetValue(0);return}const S=e.FindSkill("HIT_C6");S&&(_||(_=n.Modifier(S.Subject.CreateModifier(t.stat.ALL_DMG,0))),u||(u=n.Modifier(S.Subject.CreateModifier(t.stat.CRIT_RATE,0))));const h=Math.max(0,s.Get(t.stat.ELEMENTAL_MASTERY)-200),m=Math.min(.24,h*.03/100),f=Math.min(.8,h*.1/100);i.SetValue(f),c.SetValue(m),_&&_.SetValue(f),u&&u.SetValue(m)}return A(),n.Observer(s.CreateObserver(t.stat.ELEMENTAL_MASTERY,A)),n.Observer(s.CreateObserver(t.stat.LEVEL,A)),n.Observer(s.CreateObserver(t.stat.ASCENSION,A)),()=>0}}),D1=l.Factory({Name:"NahidaQ",OnApply(e,a,n){const s=e.FindSkill(T.hits.HIT_E_DOT);if(!s)throw new Error("Cannot find Nahida Skill");const r=n.Modifier(s.Subject.CreateModifier(t.stat.ALL_DMG,0));let i;function c(){const _=e.GetParty();if(!_){r.SetValue(0),i&&i.SetValue(0);return}const u=e.FindSkill("HIT_C6");u&&!i&&(i=n.Modifier(u.Subject.CreateModifier(t.stat.ALL_DMG,0)));const A=e.FindEffect("NahidaC1");let h=A&&A.Enabled()&&A.GetTargets().includes(e)?1:0;for(const N of _.GetMembers())N.GetCharacter().Options.Element===t.stat.PYRO_DMG&&h++;let m=0;h>=1&&(m=.1488),h>=2&&(m=.2232);const f=m*o.TalentScaling.ELEMENTAL_1[e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1];r.SetValue(f),i&&i.SetValue(f)}return c(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,c)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,c)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ELEMENTAL_BURST_LEVEL,c)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ELEMENTAL_BURST_LEVEL_UP,c)),n.Observer(e.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,c)),()=>0}}),v1=l.Factory({Name:"NahidaC1",OnApply(e,a,n){const s=e.FindEffect("NahidaQ");if(!s)throw new Error("Nahida Burst effect not found");const r=s;function i(){r.Enabled()&&(r.Disable(),r.Enable())}return i(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_TARGET,i)),()=>0}}),y1=l.Factory({Name:"NahidaC2",ApplyOther:!0,MaxAuras:1,ValidAuras:[t.aura.QUICKEN],OnApply(e,a,n){P1(e,a,n);const r=["BURGEON","BLOOM","HYPERBLOOM","BURNING"].map(i=>e.FindTr("HIT_"+i));for(const i of r)!i||(n.Modifier(i.Subject.CreateModifier(t.stat.CRIT_RATE,.2)),n.Modifier(i.Subject.CreateModifier(t.stat.CRIT_DMG,1)));return()=>0}}),P1=new l.Builder().Where({effect:{aura:[t.aura.QUICKEN]}}).stat.Enemy(t.stat.DEFREDUCTION).Values(.3).Build(),H1=l.Factory({Name:"NahidaC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),w1=l.Factory({Name:"NahidaC4",MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Stacks([0,100,120,140,160]).Build()}),B1=l.Factory({Name:"NahidaC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),b1=l.Factory({Name:"NahidaC6",OnApply(e,a,n){K1(e,a,n);function s(){const r=e.FindEffect("NahidaQ"),i=e.FindEffect("NahidaA4");r&&r.Enabled()&&(r.Disable(),r.Enable()),i&&i.Enabled()&&(i.Disable(),i.Enable())}return s(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,s)),()=>0}}),K1=new l.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Talent:t.stat.NONE,Initial:2},{Scaling:o.TalentScaling.NONE,Stat:t.stat.ELEMENTAL_MASTERY,Talent:t.stat.NONE,Initial:4}]}).Build(),Yi=G.Factory({Name:"Nahida",Stars:5,Element:t.stat.DENDRO_DMG,Region:t.region.SUMERU,Weapon:t.weapon.CATALYST,StatBonus:t.stat.ELEMENTAL_MASTERY,BurstCost:50,HpBase:[806.5087,3311.961],AtkBase:[23.275,95.57275],DefBase:[49.0606,201.474],Normals:G1,Skills:I1,Bursts:[],Extra:[],Effects:[D1,R1,O1,v1,y1,H1,w1,B1,b1]}),ea=new Q(e=>e.Name);ea.AddList(Object.values(Fr).sort((e,a)=>e.Name.localeCompare(a.Name)));function Fi(){return ea.Get()}function Y1(e){return ea.Find(e)}var et={};D(et,{Akuoumaru:()=>Tl,AlleyHunter:()=>Po,AmberBead:()=>Tc,AmenomaKageuchi:()=>to,AmosBow:()=>Mo,AquaSimulacra:()=>No,AquilaFavonia:()=>ql,BalladOfTheFjords:()=>al,BeaconOfTheReedSea:()=>ol,BlackTassel:()=>bc,BlackcliffAgate:()=>rc,BlackcliffLongsword:()=>so,BlackcliffPole:()=>Yc,BlackcliffSlasher:()=>Sl,BlackcliffWarbow:()=>sl,BloodtaintedGreatsword:()=>hl,CalamityQueller:()=>fc,CinnabarSpindle:()=>Zl,CompoundBow:()=>wo,CoolSteel:()=>fo,CrescentPike:()=>Oc,DarkIronSword:()=>Ao,Deathmatch:()=>Fc,DebateClub:()=>ml,DodocoTales:()=>ac,DragonsBane:()=>vc,DragonspineSpear:()=>Rc,ElegyForTheEnd:()=>Pc,EmeraldOrb:()=>uc,EndOfTheLine:()=>go,EngulfingLightning:()=>Mc,EverlastingMoonglow:()=>$o,EyeOfPerception:()=>sc,FadingTwilight:()=>yo,FavoniusCodex:()=>Ec,FavoniusGreatsword:()=>fl,FavoniusLance:()=>wc,FavoniusSword:()=>xc,FavoniusWarbow:()=>Uc,FerrousShadow:()=>Ll,FesteringDesire:()=>eo,FilletBlade:()=>So,FinaleOfTheDeep:()=>$i,FindByName:()=>Q1,FleuveCendreFerryman:()=>Qi,FlowingPurity:()=>qi,ForestRegalia:()=>dl,FreedomSworn:()=>kl,Frostbearer:()=>nc,FruitOfFulfillment:()=>Zo,GetByType:()=>X1,GetList:()=>zc,HakushinRing:()=>ec,Halberd:()=>Dc,Hamayumi:()=>Oo,HaranGeppakuFutsu:()=>Ul,HarbingerOfDawn:()=>mo,HuntersPath:()=>Lo,IbisPiercer:()=>rl,IronSting:()=>ro,JadeCutter:()=>jl,JadeSpear:()=>Lc,JadefallSplendor:()=>il,KagotsurubeIsshin:()=>Jl,KagurasVerity:()=>qo,KatsuragikiriNagamasa:()=>Cl,KeyOfKhajNisut:()=>xl,KingsSquire:()=>Go,KitainCrossSpear:()=>Gc,LightOfFoliarIncision:()=>Vl,LionsRoar:()=>lo,LithicBlade:()=>gl,LithicSpear:()=>Ic,LostPrayer:()=>Xo,LuxuriousSeaLord:()=>pl,MagicGuide:()=>hc,MailedFlower:()=>ll,MakhairaAquamarine:()=>Al,MappaMare:()=>ic,MemoryOfDust:()=>Qo,Messenger:()=>Fo,MissiveWindspear:()=>dc,MistsplitterReforged:()=>Wl,MitternachtsWaltz:()=>vo,Moonpiercer:()=>Cc,MouunsMoon:()=>Ro,OathswornEye:()=>tc,OtherworldlyStory:()=>Ac,PolarStar:()=>Co,Predator:()=>Io,PrototypeAmber:()=>lc,PrototypeArchaic:()=>Rl,PrototypeCrescent:()=>Bo,PrototypeRancour:()=>io,PrototypeStarglitter:()=>Kc,Rainslasher:()=>Il,RavenBow:()=>Uo,RecurveBow:()=>Vo,RedhornStonethresher:()=>Ol,RightfulReward:()=>ji,RoyalBow:()=>To,RoyalGreatsword:()=>Dl,RoyalGrimoire:()=>co,RoyalLongsword:()=>_o,RoyalSpear:()=>Eo,Rust:()=>bo,SacrificialBow:()=>Ko,SacrificialFragments:()=>cc,SacrificialGreatsword:()=>vl,SacrificialJade:()=>Zi,SacrificialSword:()=>yc,SapwoodBlade:()=>Xl,ScionOfTheBlazingSun:()=>tl,SerpentSpine:()=>Fl,SharpshootersOath:()=>xo,SkyriderGreatsword:()=>yl,SkyriderSword:()=>uo,SkywardAtlas:()=>Jo,SkywardBlade:()=>kc,SkywardHarp:()=>Vc,SkywardPride:()=>Pl,SkywardSpine:()=>Nc,Slingshot:()=>ko,SnowTombedStarsilver:()=>Hl,SolarPearl:()=>oc,SongOfBrokenPines:()=>Gl,SongOfStillness:()=>zi,SplendorOfTranquilWaters:()=>Ui,StaffOfHoma:()=>Hc,StaffOfTheScarletSands:()=>mc,SummitShaper:()=>zl,SwordOfDescension:()=>ao,TalkingStick:()=>el,TheAlleyFlash:()=>no,TheBell:()=>wl,TheBlackSword:()=>cl,TheCatch:()=>El,TheFirstGreatMagic:()=>nl,TheFlute:()=>oo,TheStringless:()=>Yo,TheUnforged:()=>Bl,TheViridescentHunt:()=>Ho,TheWidsith:()=>Wc,ThousandFloatingDreams:()=>jo,ThrillingTalesOfDragonSlayers:()=>Sc,ThunderingPulse:()=>po,TidalShadow:()=>Xi,TomeOfTheEternalFlow:()=>Wi,ToukabouShigure:()=>$l,TravelersHandySword:()=>ho,TulaytullahsRemembrance:()=>Wo,TwinNephrite:()=>_c,UltimateOverlordsMegaMagicSword:()=>Vi,Veredict:()=>xi,VortexVanquisher:()=>pc,WanderingEvenstar:()=>zo,WavebreakerFin:()=>gc,WhiteIronGreatsword:()=>Kl,WhiteTassel:()=>Bc,Whiteblind:()=>bl,WindblumeOde:()=>Do,WineAndSong:()=>_l,WolfFang:()=>Ji,WolfsGravestone:()=>Yl,XiphosMoonlight:()=>Ql});var ki={};D(ki,{Akuoumaru:()=>Tl,AlleyHunter:()=>Po,AmberBead:()=>Tc,AmenomaKageuchi:()=>to,AmosBow:()=>Mo,AquaSimulacra:()=>No,AquilaFavonia:()=>ql,BalladOfTheFjords:()=>al,BeaconOfTheReedSea:()=>ol,BlackTassel:()=>bc,BlackcliffAgate:()=>rc,BlackcliffLongsword:()=>so,BlackcliffPole:()=>Yc,BlackcliffSlasher:()=>Sl,BlackcliffWarbow:()=>sl,BloodtaintedGreatsword:()=>hl,CalamityQueller:()=>fc,CinnabarSpindle:()=>Zl,CompoundBow:()=>wo,CoolSteel:()=>fo,CrescentPike:()=>Oc,DarkIronSword:()=>Ao,Deathmatch:()=>Fc,DebateClub:()=>ml,DodocoTales:()=>ac,DragonsBane:()=>vc,DragonspineSpear:()=>Rc,ElegyForTheEnd:()=>Pc,EmeraldOrb:()=>uc,EndOfTheLine:()=>go,EngulfingLightning:()=>Mc,EverlastingMoonglow:()=>$o,EyeOfPerception:()=>sc,FadingTwilight:()=>yo,FavoniusCodex:()=>Ec,FavoniusGreatsword:()=>fl,FavoniusLance:()=>wc,FavoniusSword:()=>xc,FavoniusWarbow:()=>Uc,FerrousShadow:()=>Ll,FesteringDesire:()=>eo,FilletBlade:()=>So,FinaleOfTheDeep:()=>$i,FleuveCendreFerryman:()=>Qi,FlowingPurity:()=>qi,ForestRegalia:()=>dl,FreedomSworn:()=>kl,Frostbearer:()=>nc,FruitOfFulfillment:()=>Zo,HakushinRing:()=>ec,Halberd:()=>Dc,Hamayumi:()=>Oo,HaranGeppakuFutsu:()=>Ul,HarbingerOfDawn:()=>mo,HuntersPath:()=>Lo,IbisPiercer:()=>rl,IronSting:()=>ro,JadeCutter:()=>jl,JadeSpear:()=>Lc,JadefallSplendor:()=>il,KagotsurubeIsshin:()=>Jl,KagurasVerity:()=>qo,KatsuragikiriNagamasa:()=>Cl,KeyOfKhajNisut:()=>xl,KingsSquire:()=>Go,KitainCrossSpear:()=>Gc,LightOfFoliarIncision:()=>Vl,LionsRoar:()=>lo,LithicBlade:()=>gl,LithicSpear:()=>Ic,LostPrayer:()=>Xo,LuxuriousSeaLord:()=>pl,MagicGuide:()=>hc,MailedFlower:()=>ll,MakhairaAquamarine:()=>Al,MappaMare:()=>ic,MemoryOfDust:()=>Qo,Messenger:()=>Fo,MissiveWindspear:()=>dc,MistsplitterReforged:()=>Wl,MitternachtsWaltz:()=>vo,Moonpiercer:()=>Cc,MouunsMoon:()=>Ro,OathswornEye:()=>tc,OtherworldlyStory:()=>Ac,PolarStar:()=>Co,Predator:()=>Io,PrototypeAmber:()=>lc,PrototypeArchaic:()=>Rl,PrototypeCrescent:()=>Bo,PrototypeRancour:()=>io,PrototypeStarglitter:()=>Kc,Rainslasher:()=>Il,RavenBow:()=>Uo,RecurveBow:()=>Vo,RedhornStonethresher:()=>Ol,RightfulReward:()=>ji,RoyalBow:()=>To,RoyalGreatsword:()=>Dl,RoyalGrimoire:()=>co,RoyalLongsword:()=>_o,RoyalSpear:()=>Eo,Rust:()=>bo,SacrificialBow:()=>Ko,SacrificialFragments:()=>cc,SacrificialGreatsword:()=>vl,SacrificialJade:()=>Zi,SacrificialSword:()=>yc,SapwoodBlade:()=>Xl,ScionOfTheBlazingSun:()=>tl,SerpentSpine:()=>Fl,SharpshootersOath:()=>xo,SkyriderGreatsword:()=>yl,SkyriderSword:()=>uo,SkywardAtlas:()=>Jo,SkywardBlade:()=>kc,SkywardHarp:()=>Vc,SkywardPride:()=>Pl,SkywardSpine:()=>Nc,Slingshot:()=>ko,SnowTombedStarsilver:()=>Hl,SolarPearl:()=>oc,SongOfBrokenPines:()=>Gl,SongOfStillness:()=>zi,SplendorOfTranquilWaters:()=>Ui,StaffOfHoma:()=>Hc,StaffOfTheScarletSands:()=>mc,SummitShaper:()=>zl,SwordOfDescension:()=>ao,TalkingStick:()=>el,TheAlleyFlash:()=>no,TheBell:()=>wl,TheBlackSword:()=>cl,TheCatch:()=>El,TheFirstGreatMagic:()=>nl,TheFlute:()=>oo,TheStringless:()=>Yo,TheUnforged:()=>Bl,TheViridescentHunt:()=>Ho,TheWidsith:()=>Wc,ThousandFloatingDreams:()=>jo,ThrillingTalesOfDragonSlayers:()=>Sc,ThunderingPulse:()=>po,TidalShadow:()=>Xi,TomeOfTheEternalFlow:()=>Wi,ToukabouShigure:()=>$l,TravelersHandySword:()=>ho,TulaytullahsRemembrance:()=>Wo,TwinNephrite:()=>_c,UltimateOverlordsMegaMagicSword:()=>Vi,Veredict:()=>xi,VortexVanquisher:()=>pc,WanderingEvenstar:()=>zo,WavebreakerFin:()=>gc,WhiteIronGreatsword:()=>Kl,WhiteTassel:()=>Bc,Whiteblind:()=>bl,WindblumeOde:()=>Do,WineAndSong:()=>_l,WolfFang:()=>Ji,WolfsGravestone:()=>Yl,XiphosMoonlight:()=>Ql});var vt=4,Vi=p.Factory({Name:"UltimateOverlordsMegaMagicSword",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.ENERGY_RECHARGE,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"UltimateOverlordsMegaMagicSword1",MaxRank:5,MaxStacks:vt,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ATK_PERCENT).Values(.12/vt,.15/vt,.18/vt,.21/vt,.24/vt).Stacks().Build()})]}),xi=p.Factory({Name:"Verdict",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"Verdict1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.ATK).Values(.2,.25,.3,.35,.4).Next().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.18,.225,.27,.315,.36).Stacks().Build()})]}),Ui=p.Factory({Name:"SplendorOfTranquilWaters",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"SplendorOfTranquilWaters1",MaxStacks:3,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.08,.1,.12,.14,.16).Stacks().Build()}),l.Factory({Name:"SplendorOfTranquilWaters2",MaxStacks:2,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.14,.175,.21,.245,.28).Stacks().Build()})]}),Wi=p.Factory({Name:"TomeOfTheEternalFlow",Stars:5,Type:t.weapon.CATALYST,Substat:t.stat.CRIT_DMG,Scaling:o.WeaponScaling.TYPE_44b,Effects:[l.Factory({Name:"TomeOfTheEternalFlow1",MaxStacks:3,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.14,.18,.22,.26,.3).Stacks().Build()})]}),ji=p.Factory({Name:"RightfulReward",Stars:4,Type:t.weapon.POLEARM,Substat:t.stat.HP_PERCENT,Scaling:o.WeaponScaling.TYPE_44,Effects:[]}),zi=p.Factory({Name:"SongOfStillness",Stars:4,Type:t.weapon.BOW,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"SongOfStillness1",MaxRank:5,MaxConditions:1,Conditions:["HEALED"],OnApply:new l.Builder().Where({effect:{conditions:["HEALED"]}}).stat.Char(t.stat.ALL_DMG).Values(.16,.2,.24,.28,.32).Build()})]}),qi=p.Factory({Name:"FlowingPurity",Stars:4,Type:t.weapon.CATALYST,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"FlowingPurity1",MaxRank:5,MaxConditions:1,MaxStacks:6e3,Conditions:["CAST_SKILL"],OnApply:new l.Builder().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Next().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(...[.02,.025,.03,.035,.04].map(e=>e/1e3)).Stacks().Build()})]}),$i=p.Factory({Name:"FinaleOfTheDeep",Stars:4,Type:t.weapon.SWORD,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"FinaleOfTheDeep1",MaxRank:5,MaxStacks:100,MaxConditions:1,Conditions:["CAST_SKILL"],OnApply:new l.Builder().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().observe.Target(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ATK_FLAT).Values(.024,.03,.036,.042,.048).Map((e,a,n)=>{let s=e*n.GetStacks()/100*.25*a.GetCharacter().Get(t.stat.HP);return s=Math.min(s,150/.024*e),s}).Build()})]}),Qi=p.Factory({Name:"FleuveCendreFerryman",Stars:4,Type:t.weapon.SWORD,Substat:t.stat.ENERGY_RECHARGE,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"FleuveCendreFerryman1",MaxRank:5,Conditions:["CAST_SKILL"],MaxConditions:1,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.08,.1,.12,.14,.16).Next().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(t.stat.ENERGY_RECHARGE).Values(.16,.2,.24,.28,.32).Build()})]}),Xi=p.Factory({Name:"TidalShadow",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"TidalShadow1",MaxRank:5,Conditions:["HEALED"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["HEALED"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),Ji=p.Factory({Name:"WolfFang",Stars:4,Type:t.weapon.SWORD,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"WolfFang1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.16,.2,.24,.28,.32).Build()}),l.Factory({Name:"WolfFang2",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.02,.025,.03,.035,.04).Stacks().Build()}),l.Factory({Name:"WolfFang3",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.02,.025,.03,.035,.04).Stacks().Build()})]}),Zi=p.Factory({Name:"SacrificialJade",Stars:4,Type:t.weapon.CATALYST,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"SacrificialJade1",MaxRank:5,Conditions:["OFF_FIELD"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(t.stat.HP_PERCENT).Values(.32,.4,.48,.56,.64).Next().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(40,50,60,70,80).Build()})]}),tl=p.Factory({Name:"ScionOfTheBlazingSun",Stars:4,Type:t.weapon.BOW,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"ScionOfTheBlazingSun1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_ScionOfTheBlazingSun",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.6,.75,.9,1.05,1.2]}).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.28,.35,.42,.49,.56).Build()})]}),el=p.Factory({Name:"TalkingStick",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"TalkingStick1",MaxRank:5,MaxAuras:2,ValidAuras:[t.aura.PYRO,t.aura.HYDRO],OnApply:new l.Builder().Where({effect:{aura:[t.aura.PYRO]}}).stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{aura:[t.aura.HYDRO]}}).stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Build()})]}),al=p.Factory({Name:"BalladOfTheFjords",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"BalladOfTheFjords1",MaxRank:5,OnApply:new l.Builder().observe.Party(!0).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(120,150,180,210,240).Map((e,a)=>{const n=a.GetParty();if(!n)return 0;const s=new Set;for(const r of n.GetMembers())s.add(r.GetCharacter().Options.Element);return s.size>=3?e:0}).Build()})]}),nl=p.Factory({Name:"TheFirstGreatMagic",Type:t.weapon.BOW,Stars:5,Substat:t.stat.CRIT_DMG,Scaling:o.WeaponScaling.TYPE_46,Effects:[l.Factory({Name:"TheFirstGreatMagic1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().observe.Party(!0).stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Map((e,a)=>{let n=1;const s=a.GetCharacter().Options.Element,r=a.GetParty();if(r)for(const i of r.GetMembers())i!==a&&i.GetCharacter().Options.Element===s&&n++;return n=Math.min(n,3),e*n}).Build()})]}),Kt=e=>l.Factory({Name:e,MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Stacks().Build()}),sl=p.Factory({Name:"BlackcliffWarbow",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffWarbow1")]}),rl=p.Factory({Name:"IbisPiercer",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"IbisPiercer1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(40,50,60,70,80).Stacks().Build()})]}),il=p.Factory({Name:"JadefallSplendor",Type:t.weapon.CATALYST,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"JadefallSplendor1",MaxRank:5,OnApply:new l.Builder().observe.Owner(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.MapStat(e=>[e.GetCharacter().Options.Element]).Values(.3,.5,.7,.9,1.1).Map((e,a,n)=>Math.min([.12,.2,.28,.36,.44][n.GetRank()-1],e/100*a.GetCharacter().Get(t.stat.HP)/1e3)).Build()})]}),ll=p.Factory({Name:"MailedFlower",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.ELEMENTAL_MASTERY,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"MailedFlower1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(48,60,72,84,96).Build()})]}),ol=p.Factory({Name:"BeaconOfTheReedSea",Stars:5,Type:t.weapon.CLAYMORE,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_46,Effects:[l.Factory({Name:"BeaconOfTheReedSea1",MaxRank:5,Conditions:["HIT_SKILL","DMG_TAKEN"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["DMG_TAKEN"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().Where({target:{shielded:!1}}).stat.Char(t.stat.HP_PERCENT).Values(.32,.4,.48,.56,.64).Build()})]}),cl=p.Factory({Name:"TheBlackSword",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"TheBlackSword1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),El=p.Factory({Name:"TheCatch",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"TheCatch1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.06,.075,.09,.105,.12).Build()})]}),aa=e=>l.Factory({Name:e,MaxRank:5,OnApply(a,n,s){const r=a.GetCharacter(),i=s.Modifier(r.CreateModifier(t.stat.ELEMENTAL_BURST_DMG,0));function c(){let _=[r];const u=a.GetParty();u&&(_=u.GetMembers().map(h=>h.GetCharacter()));let A=0;for(const h of _)A+=h.Options.BurstCost;const S=Math.min(k1[n.GetRank()-1],F1[n.GetRank()-1]*A);i.SetValue(S)}return s.Observer(n.Event.CreateObserver(l.EffectEvent.CHANGE_RANK,c)),s.Observer(a.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,c)),()=>0}}),F1=[.12/100,.15/100,.18/100,.21/100,.24/100],k1=[.4,.5,.6,.7,.8],Tl=p.Factory({Name:"Akuoumaru",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[aa("Akuoumaru1")]}),_l=p.Factory({Name:"WineAndSong",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"WineAndSong1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),ul=(e,a,n)=>l.Factory({Name:e,ApplyOther:!0,StackSelf:!0,MaxRank:5,OnApply(s,r,i){const c=r.Owner.GetCharacter(),_=s.GetCharacter(),u=i.Modifier(_.CreateModifier(a,0));function A(){const S=c.Get(t.stat.ELEMENTAL_MASTERY);let h=n[r.GetRank()-1]*S;c!==_&&(h*=.3),u.SetValue(h)}return A(),i.Observer(c.CreateObserver(t.stat.ELEMENTAL_MASTERY,A)),()=>0}}),Al=p.Factory({Name:"MakhairaAquamarine",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[ul("MakhairaAquamarine1",t.stat.ATK_FLAT,[.24,.3,.36,.42,.48])]}),Sl=p.Factory({Name:"BlackcliffSlasher",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffSlasher1")]}),hl=p.Factory({Name:"BloodtaintedGreatsword",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"BloodtaintedGreatsword1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),ml=p.Factory({Name:"DebateClub",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"DebateClub1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_DebateClub",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.6,.75,.9,1.05,1.2]}).Build()})]}),fl=p.Factory({Name:"FavoniusGreatsword",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Ll=p.Factory({Name:"FerrousShadow",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"FerrousShadow1",MaxRank:5,OnApply:new l.Builder().Where({target:{hp:{leq:.7}}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.3,.35,.4,.45,.5).Build()})]}),pl=p.Factory({Name:"LuxuriousSeaLord",Type:t.weapon.CLAYMORE,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"LuxuriousSeaLord1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.12,.15,.18,.21,.24).Next().instance.Basic({Name:"HIT_LuxuriousSeaLord",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),Nl=e=>l.Factory({Name:e,MaxRank:5,ApplyOther:!0,MaxTargets:1,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60,75,90,105,120).Build()}),dl=p.Factory({Name:"ForestRegalia",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[Nl("ForestRegalia1")]}),Cl=p.Factory({Name:"KatsuragikiriNagamasa",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"KatsuragikiriNagamasa1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.06,.075,.09,.105,.12).Build()})]}),Ml=e=>l.Factory({Name:e,MaxRank:5,OnApply(a,n,s){const r=a.GetCharacter(),i=s.Modifier(r.CreateModifier(t.stat.CRIT_RATE,0)),c=s.Modifier(r.CreateModifier(t.stat.ATK_PERCENT,0));function _(){let u=[r];const A=a.GetParty();A&&(u=A.GetMembers().map(f=>f.GetCharacter()));const S=Math.min(4,u.filter(f=>f.Options.Region===t.region.LIYUE).length),h=V1[n.GetRank()-1]*S,m=x1[n.GetRank()-1]*S;i.SetValue(h),c.SetValue(m)}return _(),s.Observer(n.CreateObserver(l.EffectEvent.CHANGE_RANK,_)),s.Observer(a.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,_)),()=>0}}),V1=[.03,.04,.05,.06,.07],x1=[.07,.08,.09,.1,.11],gl=p.Factory({Name:"LithicBlade",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[Ml("LithicBlade1")]}),na=new Map;function U1(e){const a=na.get(e);if(!a){const n=new Set;return na.set(e,n),n}return a}var sa=({Name:e,OnApply:a})=>l.Factory({Name:e,MaxRank:5,ApplyOther:!0,OnApply(n,s,r){a(n,s,r);const i=r.GetModifiers(),c=U1(n);i.forEach(u=>c.add(u));function _(){for(const u of i)Array.from(c).some(S=>S!==u&&S.GetProp()===u.GetProp()&&S.Enabled()&&S.GetValue()!==0)&&(u.SetValue(0),u.Disable())}_();for(const u of l.EffectEvent.Values())r.Observer(s.CreateObserver(u,_));return()=>{i.forEach(u=>c.delete(u)),c.size===0&&na.delete(n)}}}),Gl=p.Factory({Name:"SongOfBrokenPines",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_49,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"SongOfBrokenPines1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()}),sa({Name:"SongOfBrokenPines2",OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Rl=p.Factory({Name:"PrototypeArchaic",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"PrototypeArchaic1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_PrototypeArchaic",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2.4,3,3.6,4.2,4.8]}).Build()})]}),Il=p.Factory({Name:"Rainslasher",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"Rainslasher1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.HYDRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),Ol=p.Factory({Name:"RedhornStonethresher",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"RedhornStonethresher1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT).Values(.28,.35,.42,.49,.56).Next().observe.Target(t.stat.DEF,t.stat.DEF_PERCENT,t.stat.DEF_FLAT).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT).Values(.4,.5,.6,.7,.8).Map((e,a)=>e*a.GetCharacter().Get(t.stat.DEF)).Build()})]}),Yt=e=>l.Factory({Name:e,MaxRank:5,OnApply(a,n,s){const r=a.GetCharacter();function i(c=!0){if(!c)r.MapCritRate=_=>_;else{const _=n.GetRank();r.MapCritRate=u=>W1(_,u)}}return i(!0),s.Observer(n.CreateObserver(l.EffectEvent.ENABLE,()=>i(!0))),s.Observer(n.CreateObserver(l.EffectEvent.CHANGE_RANK,()=>i(!0))),s.Observer(n.CreateObserver(l.EffectEvent.DISABLE,()=>i(!1))),()=>i(!1)}});function W1(e,a){const n=Math.max,s=.08+.02*(e-1);return a<0?((5*s+a)*n(0,a)-(5*s*a-5*s+g(a,2)-a)*n(0,s+a)+(5*g(s,2)*a-5*g(s,2)+6*s*g(a,2)-11*s*a+5*s+g(a,3)-2*g(a,2)+a)*n(0,2*s+a)-(10*g(s,3)*a-10*g(s,3)+17*g(s,2)*g(a,2)-32*g(s,2)*a+15*g(s,2)+8*s*g(a,3)-21*s*g(a,2)+18*s*a-5*s+g(a,4)-3*g(a,3)+3*g(a,2)-a)*n(0,3*s+a)+(30*g(s,4)*a-30*g(s,4)+61*g(s,3)*g(a,2)-116*g(s,3)*a+55*g(s,3)+41*g(s,2)*g(a,3)-112*g(s,2)*g(a,2)+101*g(s,2)*a-30*g(s,2)+11*s*g(a,4)-38*s*g(a,3)+48*s*g(a,2)-26*s*a+5*s+g(a,5)-4*g(a,4)+6*g(a,3)-4*g(a,2)+a)*n(0,4*s+a)-(24*g(s,4)*a-24*g(s,4)+50*g(s,3)*g(a,2)-100*g(s,3)*a+50*g(s,3)+35*g(s,2)*g(a,3)-105*g(s,2)*g(a,2)+105*g(s,2)*a-35*g(s,2)+10*s*g(a,4)-40*s*g(a,3)+60*s*g(a,2)-40*s*a+10*s+g(a,5)-5*g(a,4)+10*g(a,3)-10*g(a,2)+5*a-1)*n(0,5*s+a))/(6*g(s,4)*a-6*g(s,4)+11*g(s,3)*g(a,2)-26*g(s,3)*a+15*g(s,3)+6*g(s,2)*g(a,3)-24*g(s,2)*g(a,2)+33*g(s,2)*a-15*g(s,2)+s*g(a,4)-6*s*g(a,3)+15*s*g(a,2)-20*s*a+15*s+1):(5*s+a)/(6*g(s,4)*a-6*g(s,4)+11*g(s,3)*g(a,2)-26*g(s,3)*a+15*g(s,3)+6*g(s,2)*g(a,3)-24*g(s,2)*g(a,2)+33*g(s,2)*a-15*g(s,2)+s*g(a,4)-6*s*g(a,3)+15*s*g(a,2)-20*s*a+15*s+1)}var Dl=p.Factory({Name:"RoyalGreatsword",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalGreatsword1")]}),vl=p.Factory({Name:"SacrificialGreatsword",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),yl=p.Factory({Name:"SkyriderGreatsword",Type:t.weapon.CLAYMORE,Stars:3,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"SkyriderGreatsword1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.06,.07,.08,.09,.1).Build()})]}),Pl=p.Factory({Name:"SkywardPride",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"SkywardPride1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.08,.1,.12,.14,.16).Next().instance.Basic({Name:"HIT_SkywardPride",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.8,1,1.2,1.4,1.6]}).Build()})]}),ra=(e,a)=>l.Factory({Name:e,MaxRank:5,OnApply:new l.Builder().instance.Options({Name:a,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NONE,Scaling:[{Initial:0,Stat:t.stat.NONE,Talent:t.stat.NONE,Scaling:o.TalentScaling.NONE}]}).Next().Where({not:!0,enemy:{affected:[t.stat.CRYO_DMG]}}).mv.Mv(t.stat.ATK,.8,a).Map((n,s,r)=>[.8,.95,1.1,1.25,1.4][r.GetRank()-1]).Next().Where({enemy:{affected:[t.stat.CRYO_DMG]}}).mv.Mv(t.stat.ATK,2,a).Map((n,s,r)=>[2,2.4,2.8,3.2,3.6][r.GetRank()-1]).Build()}),Hl=p.Factory({Name:"SnowTombedStarsilver",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.PHYSICAL_DMG,Effects:[ra("SnowTombedStarsilver1","HIT_SnowTombedStarsilver")]}),wl=p.Factory({Name:"TheBell",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"TheBell1",MaxRank:5,OnApply:new l.Builder().Where({target:{shielded:!0}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),ce=e=>l.Factory({Name:e,MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Next().Where({target:{shielded:!0}}).stat.Char(t.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()}),Bl=p.Factory({Name:"TheUnforged",Type:t.weapon.CLAYMORE,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[ce("TheUnforged1")]}),bl=p.Factory({Name:"Whiteblind",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.DEF_PERCENT,Effects:[l.Factory({Name:"Whiteblind1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT,t.stat.DEF_PERCENT).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),Kl=p.Factory({Name:"WhiteIronGreatsword",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.DEF_PERCENT,Effects:[]}),Yl=p.Factory({Name:"WolfsGravestone",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"WolfsGravestone1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()}),l.Factory({Name:"WolfsGravestone2",MaxRank:5,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.4,.5,.6,.7,.8).Build()})]}),Fl=p.Factory({Name:"SerpentSpine",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"SerpentSpine1",MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.06,.07,.08,.09,.1).Stacks().Build()})]}),kl=p.Factory({Name:"FreedomSworn",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"FreedomSworn1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.1,.125,.15,.175,.2).Build()}),sa({Name:"FreedomSworn2",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Vl=p.Factory({Name:"LightOfFoliarIncision",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"LightOfFoliarIncision1",MaxRank:5,Conditions:["HIT_NORMAL"],MaxConditions:1,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.04,.05,.06,.07,.08).Next().observe.Target(t.stat.ELEMENTAL_MASTERY).Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT,t.stat.ELEMENTAL_SKILL_DMG_FLAT).Values(1.2,1.5,1.8,2.1,2.4).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()})]}),xl=p.Factory({Name:"KeyOfKhajNisut",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"KeyOfKhajNisut1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Build()}),l.Factory({Name:"KeyOfKhajNisut2",MaxRank:5,MaxStacks:3,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.HP,t.stat.HP_PERCENT,t.stat.HP_FLAT).Where({target:{isOwner:!0}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(.12,.15,.18,.21,.24).Stacks().Map((e,a)=>e*a.GetCharacter().Get(t.stat.HP)/100).Next().observe.Owner(t.stat.HP,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ELEMENTAL_MASTERY).Stacks([0,0,0,.2],[0,0,0,.25],[0,0,0,.3],[0,0,0,.35],[0,0,0,.4]).Map((e,a,{Owner:n})=>e*n.GetCharacter().Get(t.stat.HP)/100).Build()})]}),Ul=p.Factory({Name:"HaranGeppakuFutsu",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"HaranGeppakuFutsu1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Stacks().Build()})]}),Wl=p.Factory({Name:"MistsplitterReforged",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"MistsplitterReforged1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char().MapStat(e=>[e.GetCharacter().Options.Element]).Stacks([0,.08,.16,.28],[0,.1,.2,.35],[0,.12,.24,.42],[0,.14,.28,.49],[0,.16,.32,.56]).Build()})]}),jl=p.Factory({Name:"JadeCutter",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"JadeCutter1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Next().observe.Target(t.stat.HP_PERCENT,t.stat.HP_FLAT,t.stat.HP_BASE).stat.Char(t.stat.ATK_FLAT).Values(.012,.015,.018,.021,.024).Map((e,a)=>e*a.GetCharacter().Get(t.stat.HP)).Build()})]}),zl=p.Factory({Name:"SummitShaper",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[ce("SummitShaper1")]}),ql=p.Factory({Name:"AquilaFavonia",Type:t.weapon.SWORD,Stars:5,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"AquilaFavonia1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().instance.Basic({Name:"HIT_AquilaFavonia",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2,2.3,2.6,2.9,3.2]}).Build()})]}),$l=p.Factory({Name:"ToukabouShigure",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"ToukabouShigure1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.16,.2,.24,.28,.32).Build()})]}),Ql=p.Factory({Name:"XiphosMoonlight",Type:t.weapon.SWORD,Stars:4,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[ul("XiphosMoonlight1",t.stat.ENERGY_RECHARGE,[.036/100,.045/100,.054/100,.063/100,.072/100])]}),Xl=p.Factory({Name:"SapwoodBlade",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[Nl("SapwoodBlade1")]}),Jl=p.Factory({Name:"KagotsurubeIsshin",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"KagotsurubeIsshin1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_KagotsurubeIsshin",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.8]}).Next().stat.Char(t.stat.ATK_PERCENT).Values(.15).Build()})]}),Zl=p.Factory({Name:"CinnabarSpindle",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.DEF_PERCENT,Effects:[l.Factory({Name:"CinnabarSpindle1",MaxRank:5,OnApply:new l.Builder().mv.Mv(t.stat.DEF,.4,e=>e.Options.Talent===t.stat.ELEMENTAL_SKILL_DMG).Map((e,a,n)=>[.4,.5,.6,.7,.8][n.GetRank()-1]).Build()})]}),to=p.Factory({Name:"AmenomaKageuchi",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[]}),eo=p.Factory({Name:"FesteringDesire",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"FesteringDesire1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.06,.075,.09,.105,.12).Build()})]}),ao=p.Factory({Name:"SwordOfDescension",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39b,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"SwordOfDescension1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_SwordOfDescension",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2]}).Next().Where({target:{name:/traveler/i}}).stat.Char(t.stat.ATK_FLAT).Values(66).Build()})]}),no=p.Factory({Name:"TheAlleyFlash",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"TheAlleyFlash1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),so=p.Factory({Name:"BlackcliffLongsword",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffLongsword1")]}),ro=p.Factory({Name:"IronSting",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"IronSting1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),io=p.Factory({Name:"PrototypeRancour",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"PrototypeRancour1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT,t.stat.DEF_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()})]}),lo=p.Factory({Name:"LionsRoar",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"LionsRoar1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),oo=p.Factory({Name:"TheFlute",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"TheFlute1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_TheFlute",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),co=p.Factory({Name:"RoyalGrimoire",Type:t.weapon.CATALYST,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalGrimoire1")]}),Eo=p.Factory({Name:"RoyalSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalSpear1")]}),To=p.Factory({Name:"RoyalBow",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalBow1")]}),_o=p.Factory({Name:"RoyalLongsword",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalLongsword1")]}),uo=p.Factory({Name:"SkyriderSword",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"SkyriderSword1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Build()})]}),Ao=p.Factory({Name:"DarkIronSword",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"DarkIronSword1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),So=p.Factory({Name:"FilletBlade",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"FilletBlade1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_FilletBlade",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2.4,2.8,3.2,3.6,4]}).Build()})]}),ho=p.Factory({Name:"TravelersHandySword",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.DEF_PERCENT,Effects:[]}),mo=p.Factory({Name:"HarbingerOfDawn",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"HarbingerOfDawn1",MaxRank:5,OnApply:new l.Builder().Where({target:{hp:{geq:.9}}}).stat.Char(t.stat.CRIT_RATE).Values(.14,.175,.21,.245,.28).Build()})]}),fo=p.Factory({Name:"CoolSteel",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"CoolSteel1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.CRYO_DMG,t.stat.HYDRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),Lo=p.Factory({Name:"HuntersPath",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"HuntersPath1",MaxRank:5,Conditions:["HIT_CHARGED"],MaxConditions:1,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().observe.Target(t.stat.ELEMENTAL_MASTERY).Where({effect:{conditions:["HIT_CHARGED"]}}).stat.Char(t.stat.CHARGED_ATTACK_DMG_FLAT).Values(1.6,2,2.4,2.8,3.2).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()})]}),po=p.Factory({Name:"ThunderingPulse",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"ThunderingPulse1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().stat.Char(t.stat.NORMAL_ATTACK_DMG).Stacks([0,.12,.24,.4],[0,.15,.3,.5],[0,.18,.36,.6],[0,.21,.42,.7],[0,.24,.48,.8]).Build()})]}),No=p.Factory({Name:"AquaSimulacra",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"AquaSimulacra1",MaxRank:5,Conditions:["FAR","NEAR"],MaxConditions:1,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["NEAR"]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),Co=p.Factory({Name:"PolarStar",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"PolarStar1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Stacks([0,.1,.2,.3,.48],[0,.125,.25,.375,.6],[0,.15,.3,.45,.72],[0,.175,.35,.525,.84],[0,.2,.4,.6,.96]).Build()})]}),Mo=p.Factory({Name:"AmosBow",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"AmosBow1",MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),go=p.Factory({Name:"EndOfTheLine",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"EndOfTheLine1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_EndOfTheLine",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.8,1,1.2,1.4,1.6]}).Build()})]}),Go=p.Factory({Name:"KingsSquire",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"KingsSquire1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60,80,100,120,140).Next().instance.Basic({Name:"HIT_KingsSquire",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.2,1.4,1.6,1.8]}).Build()})]}),Ro=p.Factory({Name:"MouunsMoon",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[aa("MouunsMoon1")]}),Io=p.Factory({Name:"Predator",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Predator1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.1).Stacks().Next().Where({target:{name:"Aloy"}}).stat.Char(t.stat.ATK_FLAT).Values(66).Build()})]}),Oo=p.Factory({Name:"Hamayumi",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Hamayumi1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().Where({target:{energy:{geq:1}}}).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().Where({target:{energy:{geq:1}}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().Build()})]}),Do=p.Factory({Name:"WindblumeOde",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"WindblumeOde1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()})]}),vo=p.Factory({Name:"MitternachtsWaltz",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"MitternachtsWaltz1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_SKILL"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),yo=p.Factory({Name:"FadingTwilight",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"FadingTwilight1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Stacks([0,.06,.1,.14],[0,.075,.125,.175],[0,.09,.15,.21],[0,.105,.175,.245],[0,.12,.2,.28]).Build()})]}),Po=p.Factory({Name:"AlleyHunter",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"AlleyHunter1",MaxRank:5,MaxStacks:10,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.02,.025,.03,.035,.04).Stacks().Build()})]}),Ho=p.Factory({Name:"TheViridescentHunt",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"TheViridescentHunt1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_TheViridescentHunt",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.4,.5,.6,.7,.8]}).Build()})]}),wo=p.Factory({Name:"CompoundBow",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"CompoundBow1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()})]}),Bo=p.Factory({Name:"PrototypeCrescent",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"PrototypeCrescent1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.36,.45,.54,.63,.72).Build()})]}),bo=p.Factory({Name:"Rust",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Rust1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.4,.5,.6,.7,.8).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(-.1).Build()})]}),Ko=p.Factory({Name:"SacrificialBow",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Yo=p.Factory({Name:"TheStringless",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"TheStringless1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),Fo=p.Factory({Name:"Messenger",Type:t.weapon.BOW,Stars:3,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"Messenger1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_Messenger",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),ko=p.Factory({Name:"Slingshot",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"Slingshot1",MaxRank:5,Conditions:["FAR","NEAR"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["FAR"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.36,.42,.48,.54,.6).Next().Where({effect:{conditions:["NEAR"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(-.1).Build()})]}),Vo=p.Factory({Name:"RecurveBow",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.HP_PERCENT,Effects:[]}),xo=p.Factory({Name:"SharpshootersOath",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"SharpshootersOath1",Conditions:["WEAK_SPOT"],MaxConditions:1,MaxRank:5,OnApply:new l.Builder().Where({effect:{conditions:["WEAK_SPOT"]}}).stat.Char(t.stat.AIMED_SHOT_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),Uo=p.Factory({Name:"RavenBow",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"RavenBow1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),Wo=p.Factory({Name:"TulaytullahsRemembrance",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"TulaytullahsRemembrance1",MaxRank:5,MaxStacks:10,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.048,.06,.072,.084,.096).Stacks().Build()})]}),jo=p.Factory({Name:"ThousandFloatingDreams",Type:t.weapon.CATALYST,Stars:5,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"ThousandFloatingDreams1",MaxRank:5,OnApply(e,a,n){const s=e.GetCharacter(),r=n.Modifier(s.CreateModifier(t.stat.ELEMENTAL_MASTERY,0)),i=[n.Modifier(s.CreateModifier(s.Options.Element,0)),n.Modifier(s.CreateModifier(s.Options.Element,0)),n.Modifier(s.CreateModifier(s.Options.Element,0))];function c(){i.forEach(h=>h.SetValue(0));let _=[s];const u=e.GetParty();u&&(_=u.GetMembers().map(h=>h.GetCharacter()));let A=0,S=0;for(const h of _)if(h!==s)if(h.Options.Element===s.Options.Element)A++;else{const m=i[S++];if(!m)continue;m.SetProp(h.Options.Element),m.SetValue(z1[a.GetRank()-1])}A=Math.min(3,A),r.SetValue(j1[a.GetRank()-1]*A)}return c(),n.Observer(e.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,c)),n.Observer(a.Event.CreateObserver(l.EffectEvent.CHANGE_RANK,c)),()=>0}}),l.Factory({Name:"ThousandFloatingDreams2",MaxRank:5,ApplyOther:!0,ApplySelf:!1,StackSelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(40,42,44,46,48).Build()})]}),j1=[32,40,48,56,64],z1=[.1,.14,.18,.22,.26],zo=p.Factory({Name:"WanderingEvenstar",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"WanderingEvenstar1",StackSelf:!0,ApplyOther:!0,MaxRank:5,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ATK_FLAT).Values(.24,.3,.36,.42,.48).Map((e,a,n)=>e*n.Owner.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)*(a===n.Owner?1:.3)).Build()})]}),qo=p.Factory({Name:"KagurasVerity",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"KagurasVerity1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.12,.15,.18,.21,.24).Stacks().Next().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Stacks([0,0,0,.12],[0,0,0,.15],[0,0,0,.18],[0,0,0,.21],[0,0,0,.24]).Build()})]}),$o=p.Factory({Name:"EverlastingMoonglow",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"EverlastingMoonglow1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HEALING_BONUS).Values(.1,.125,.15,.175,.2).Next().observe.Target(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT).Values(.01,.015,.02,.025,.03).Map((e,a)=>e*a.GetCharacter().Get(t.stat.HP)).Build()})]}),Qo=p.Factory({Name:"MemoryOfDust",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[ce("MemoryOfDust1")]}),Xo=p.Factory({Name:"LostPrayer",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"LostPrayer1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),Jo=p.Factory({Name:"SkywardAtlas",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"SkywardAtlas1",MaxRank:5,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().instance.Basic({Name:"HIT_SkywardAtlas",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.6,2,2.4,4.8,3.2]}).Build()})]}),Zo=p.Factory({Name:"FruitOfFulfillment",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"FruitOfFulfillment1",MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(24,27,30,33,36).Stacks().Next().stat.Char(t.stat.ATK_PERCENT).Values(-.05).Stacks().Build()})]}),tc=p.Factory({Name:"OathswornEye",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"OathswornEye1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ENERGY_RECHARGE).Values(.24,.3,.36,.42,.48).Build()})]}),ec=p.Factory({Name:"HakushinRing",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"HakushinRing1",ApplyOther:!0,MaxRank:5,OnApply:new l.Builder().stat.Char().MapStat(e=>[e.GetCharacter().Options.Element]).Values(.1,.125,.15,.175,.2).Build()})]}),ac=p.Factory({Name:"DodocoTales",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"DodocoTales1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_CHARGED"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["HIT_CHARGED"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.08,.1,.12,.14,.16).Next().Build()})]}),nc=p.Factory({Name:"Frostbearer",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[ra("Frostbearer1","HIT_Frostbearer")]}),sc=p.Factory({Name:"EyeOfPerception",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"EyeOfPerception1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_EyeOfPerception",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2.4,2.7,3,3.3,3.6]}).Build()})]}),rc=p.Factory({Name:"BlackcliffAgate",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffAgate1")]}),ic=p.Factory({Name:"MappaMare",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"MappaMare1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),lc=p.Factory({Name:"PrototypeAmber",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.HP_PERCENT,Effects:[]}),oc=p.Factory({Name:"SolarPearl",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"SolarPearl1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_SKILL"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Next().Build()})]}),cc=p.Factory({Name:"SacrificialFragments",Type:t.weapon.CATALYST,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[]}),Ec=p.Factory({Name:"FavoniusCodex",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Tc=p.Factory({Name:"AmberBead",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"AmberBead1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),_c=p.Factory({Name:"TwinNephrite",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"TwinNephrite1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.14,.16,.18,.2).Build()})]}),uc=p.Factory({Name:"EmeraldOrb",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"EmeraldOrb1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Ac=p.Factory({Name:"OtherworldlyStory",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Sc=p.Factory({Name:"ThrillingTalesOfDragonSlayers",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"ThrillingTalesOfDragonSlayers1",MaxRank:5,ApplySelf:!1,ApplyOther:!0,MaxTargets:1,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),hc=p.Factory({Name:"MagicGuide",Type:t.weapon.CATALYST,Stars:3,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"MagicGuide1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.HYDRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),mc=p.Factory({Name:"StaffOfTheScarletSands",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"StaffOfTheScarletSands1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ATK_FLAT).Values(.52,.65,.78,.91,1.04).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Next().observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ATK_FLAT).Values(.28,.35,.42,.49,.56).Stacks().Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Next().Build()})]}),fc=p.Factory({Name:"CalamityQueller",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_49,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"CalamityQueller1",MaxRank:5,MaxStacks:6,Conditions:["ON_FIELD","OFF_FIELD"],MaxConditions:1,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ATK_PERCENT).Values(.032,.04,.048,.056,.064).Stacks().Next().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.032,.04,.048,.056,.064).Stacks().Next().Build()})]}),Lc=p.Factory({Name:"JadeSpear",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"JadeSpear1",MaxRank:5,MaxStacks:7,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.032,.039,.046,.053,.06).Stacks().Next().stat.Char(t.stat.ALL_DMG).Stacks([0,0,0,0,0,0,0,.12],[0,0,0,0,0,0,0,.15],[0,0,0,0,0,0,0,.18],[0,0,0,0,0,0,0,.21],[0,0,0,0,0,0,0,.24]).Build()})]}),pc=p.Factory({Name:"VortexVanquisher",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[ce("VortexVanquisher1")]}),Nc=p.Factory({Name:"SkywardSpine",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"SkywardSpine1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.08,.1,.12,.14,.16).Next().instance.Basic({Name:"HIT_SkywardSpine",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.4,.55,.7,.85,1]}).Build()})]}),dc=p.Factory({Name:"MissiveWindspear",Type:t.weapon.POLEARM,Stars:4,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"MissiveWindspear1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(48,60,72,84,96).Build()})]}),Cc=p.Factory({Name:"Moonpiercer",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"Moonpiercer1",ApplyOther:!0,MaxTargets:1,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()})]}),Mc=p.Factory({Name:"EngulfingLightning",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"EngulfingLightning1",MaxRank:5,Conditions:["CAST_BURST","NO_BURST"],MaxConditions:1,OnApply:new l.Builder().observe.Target(t.stat.ENERGY_RECHARGE).stat.Char(t.stat.ATK_PERCENT).Values(.28,.35,.42,.49,.56).Map((e,a,n)=>q1(e,a.GetCharacter().Get(t.stat.ENERGY_RECHARGE),n.GetRank())).Next().Where({effect:{conditions:["CAST_BURST"]}}).stat.Char(t.stat.ENERGY_RECHARGE).Values(.3,.35,.4,.45,.5).Build()})]});function q1(e,a,n){return Math.min(e*Math.max(0,a-1),$1[n-1])}var $1=[.8,.9,1,1.1,1.2],gc=p.Factory({Name:"WavebreakerFin",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_45,Substat:t.stat.ATK_PERCENT,Effects:[aa("WavebreakerFin1")]}),Gc=p.Factory({Name:"KitainCrossSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"KitainCrossSpear1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.06,.075,.09,.105,.12).Build()})]}),Rc=p.Factory({Name:"DragonspineSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.PHYSICAL_DMG,Effects:[ra("DragonspineSpear1","HIT_DragonspineSpear")]}),Ic=p.Factory({Name:"LithicSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Ml("LithicSpear1")]}),Oc=p.Factory({Name:"CrescentPike",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"CrescentPike1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_CrescentPike",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.2,.25,.3,.35,.4]}).Build()})]}),Dc=p.Factory({Name:"Halberd",Stars:3,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Halberd1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_Halberd",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.6,2,2.4,2.8,3.2]}).Build()})]}),vc=p.Factory({Name:"DragonsBane",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"DragonsBane1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.HYDRO_DMG,t.stat.PYRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),yc=p.Factory({Name:"SacrificialSword",Type:t.weapon.SWORD,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Pc=p.Factory({Name:"ElegyForTheEnd",Type:t.weapon.BOW,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"ElegyForTheEnd1",ApplySelf:!0,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60,75,90,105,120).Build()}),sa({Name:"ElegyForTheEnd2",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(100,125,150,175,200).Next().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Hc=p.Factory({Name:"StaffOfHoma",Type:t.weapon.POLEARM,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"StaffOfHoma1",ApplySelf:!0,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Next().observe.Target(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ATK_FLAT).Values(.008,.01,.012,.014,.016).Map((e,a)=>a.GetCharacter().Get(t.stat.HP)*e).Next().observe.Target(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ATK_FLAT).Where({target:{hp:{leq:.5}}}).Values(.01,.012,.014,.016,.018).Map((e,a)=>a.GetCharacter().Get(t.stat.HP)*e).Build()})]}),wc=p.Factory({Name:"FavoniusLance",Type:t.weapon.POLEARM,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Bc=p.Factory({Name:"WhiteTassel",Stars:3,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"WhiteTassel1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),bc=p.Factory({Name:"BlackTassel",Stars:3,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"BlackTassel1",MaxRank:5,Conditions:["NO_SLIMES","SLIMES"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["SLIMES"]}}).stat.Char(t.stat.ALL_DMG).Values(.4,.5,.6,.7,.8).Build()})]}),Kc=p.Factory({Name:"PrototypeStarglitter",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"PrototypeStarglitter1",MaxStacks:2,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.08,.1,.12,.14,.16).Stacks().Next().Build()})]}),Yc=p.Factory({Name:"BlackcliffPole",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffPole1")]}),Fc=p.Factory({Name:"Deathmatch",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"Deathmatch1",MaxRank:5,MaxConditions:1,Conditions:["ENEMY_1","ENEMY_2"],OnApply:new l.Builder().Where({effect:{conditions:["ENEMY_2"]}}).stat.Char(t.stat.ATK_PERCENT,t.stat.DEF_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["ENEMY_1"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),kc=p.Factory({Name:"SkywardBlade",Stars:5,Type:t.weapon.SWORD,Substat:t.stat.ENERGY_RECHARGE,Scaling:o.WeaponScaling.TYPE_46,Effects:[l.Factory({Name:"SkywardBlade1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.04,.05,.06,.07,.08).Next().instance.Basic({Name:"HIT_SkywardBlade",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.2,.25,.3,.35,.4]}).Build()})]}),Vc=p.Factory({Name:"SkywardHarp",Type:t.weapon.BOW,Stars:5,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"SkywardHarp1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CRIT_DMG).Values(.2,.25,.3,.35,.4).Next().instance.Basic({Name:"HIT_SkywardHarp",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.25]}).Build()})]}),xc=p.Factory({Name:"FavoniusSword",Type:t.weapon.SWORD,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Uc=p.Factory({Name:"FavoniusWarbow",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Wc=p.Factory({Name:"TheWidsith",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"TheWidsith1",MaxRank:5,Conditions:["RECITATIVE","ARIA","INTERLUDE"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["RECITATIVE"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.6,.75,.9,1.05,1.2).Next().Where({effect:{conditions:["ARIA"]}}).stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.48,.6,.72,.84,.96).Next().Where({effect:{conditions:["INTERLUDE"]}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(240,300,360,420,480).Build()})]}),jc=Object.values(ki).sort((e,a)=>e.Type===a.Type?e.Stars===a.Stars?e.Name.localeCompare(a.Name):e.Stars-a.Stars:e.Type-a.Type),Ee={};for(const e of jc)Ee[e.Type]||(Ee[e.Type]=[]),Ee[e.Type].push(e);var ia=new Q(e=>e.Name);ia.AddList(jc);function zc(){return ia.Get()}function Q1(e){return ia.Find(e)}function X1(e){return Ee[e]||[]}var Te={};D(Te,{FindByName:()=>Z1,GetList:()=>J1});var Nt=new Q(e=>e.Name);for(const e of Fi())e.Effects.forEach(a=>Nt.Add(a));for(const e of zc())e.Effects.forEach(a=>Nt.Add(a));for(const e of Kr())e.Piece2.forEach(a=>Nt.Add(a)),e.Piece4.forEach(a=>Nt.Add(a));for(const e of ps())Nt.Add(e);function J1(){return Nt.Get()}function Z1(e){return Nt.Find(e)}var Ft={};D(Ft,{ArtifactStore:()=>aN,CopyCharbox:()=>lN,FilterArtifacts:()=>la,PartyFrom:()=>tN});function tN(e){const a=new G.Party;for(const n in e.characters){const s=pt.FindByName(n);if(!s)throw new Error(`Character not found: ${n}`);const r=s();a.Add(r);const i=e.characters[n],c=Object.keys(i.weapon)[0];if(c){const _=et.FindByName(c);if(!_)throw new Error(`Weapon not found: ${n}`);r.SetWeapon(_)}i.artifacts&&Object.keys(i.artifacts).length>0&&r.SetArtifacts(new Lt.Artbox(r))}return G.ImportParty(e,a),a}function la(e,a,n){const s=a.map(r=>eN(r));return n&&s.push({filter(r){return!(n.pieces&&!n.pieces.includes(r.piece)||n.only&&n.only==="locked"!==!!r.locked)}}),en.Filter({values:e,mode:"every",filters:s})}function eN(e){const a=e.pieces||t.piece.Values(),n=e.subsMode||"some";return{for(s){return a.includes(s.piece)},filter(s){if(e.main&&!e.main.includes(s.mainstat))return!1;if(e.subs){const r=s.substats.map(c=>c.stat);if(!e.subs[n](c=>r.includes(c)))return!1}return!(Number.isFinite(e.stars)&&s.stars<(e.stars||0)||Number.isFinite(e.level)&&s.level<(e.level||0))}}}var aN=class{constructor(e){this.onChange=e,this.list=[],this.filtered=[]}Update(){this.onChange()}All(){return this.list}Clear(){this.list.splice(0,this.list.length),this.filtered.splice(0,this.filtered.length),this.onChange()}Add(e,a="push"){const n=I.Export(e);this.list[a](n),this.filtered=[...this.list],this.onChange()}AddExported(e,a="push"){this.list[a](e),this.filtered=[...this.list],this.onChange()}Filter(e,a){const{values:n}=la(this.list,e,a);return this.filtered=n,n}Get(){return this.filtered}Replace(e,a){const n=this.list.indexOf(e);return n===-1?!1:(this.list.splice(n,1,a),this.onChange(),!0)}RemoveMultiple(e,a){const{indexes:n}=la(this.list,e,a),s=[];return this.list.forEach((r,i)=>{n.includes(i)||s.push(r)}),this.list=s,this.onChange(),s.length}Remove(e){const a=this.list.indexOf(e);return a===-1?!1:(this.list.splice(a,1),this.onChange(),!0)}};function nN(e,a){const n=e.GetArtifacts();let s=a.GetArtifacts();if(!n){a.SetArtifacts(void 0);return}s||(s=new Lt.Artbox(a),a.SetArtifacts(s));const r=s,i=n.GetActiveSets(),c=r.GetActiveSets(),_=(()=>{const u=new Map;return n.GetEffects().forEach(A=>{const S=A.GetTargets().map(h=>h===e?a:h);u.set(A.Options.Name,S)}),u})();r.GetArtifacts().forEach((u,A)=>{const S=n.Get(A);I.Import(I.Export(S),u)}),i.every(u=>c.includes(u))&&r.GetEffects().forEach(u=>{const A=_.get(u.Options.Name);A&&u.ApplyMultiple(A)})}var sN=[[t.stat.NORMAL_ATTACK_LEVEL,t.stat.NORMAL_ATTACK_LEVEL_UP],[t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP],[t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP]];function rN(e,a){const n=e.GetCharacter(),s=a.GetCharacter();for(const[r,i]of sN){const c=n.Get(r)-n.Get(i),_=s.Get(i);s.Set(r,c+_)}}function iN(e,a){const n=e.GetWeapon(),s=a.GetWeapon();if(!n){a.SetWeapon(void 0);return}if(!s||s.Options.Name!==n.Options.Name){const i=et.FindByName(n.Options.Name);if(!i)throw new Error(`Weapon not found: ${n.Options.Name}`);a.SetWeapon(i)}const r=a.GetWeapon();if(!r)throw new Error("Target has no weapon");p.Import(p.Export(n),r)}function lN(e,a){a.GetCharacter().SetLevel(e.GetCharacter().GetLevel()),a.GetCharacter().SetAscension(e.GetCharacter().GetAscension()),rN(e,a),iN(e,a),nN(e,a)}var oa=class extends $a{constructor(e){super(e),this.functions=new Map;const a=Mt.Contexts("math","logic",{functions:{pick:{name:"pick",arguments:[{name:"index",description:"integer index of the item to pick, starting at 1"},"..."],evaluate({values:[s,...r]}){return r[s-1]}},var:{name:"var",arguments:[{name:"name",description:"name of the variable to set",expression:!0},{name:"value",description:"value to set the variable to"}],evaluate:({values:[,s],expressions:[r]})=>{const i=r.token.value;return n.setVar(i,s),s}},add:{name:"add",arguments:[{name:"variable",description:"name of the variable to add to",expression:!0},{name:"value",description:"value to add to the variable"}],evaluate:({values:[,s],expressions:[r],location:i})=>{const c=r.token.value,_=n.getVar(c);if(_===void 0)throw new Error(`Variable ${c} is not defined at ${i}`);const u=_+s;return n.setVar(c,u),u}},multiply:{name:"multiply",arguments:[{name:"variable",description:"name of the variable to multiply",expression:!0},{name:"value",description:"value to multiply the variable by"}],evaluate:({values:[,s],expressions:[r]})=>{const i=r.token.value,c=n.getVar(i);if(c===void 0)throw new Error(`Variable ${i} is not defined`);const _=c*s;return n.setVar(i,_),_}},func:{name:"func",description:"define a function. Example: function(myfunc, (arg1, arg2), (arg1 + arg2))",arguments:[{name:"name",description:"name of the function to define",expression:!0},{name:"arguments",description:"arguments to the function",expression:!0},{name:"body",description:"body of the function",expression:!0}],evaluate:({expressions:[s,r,i],location:c})=>{const _=s.token.value,u=r.children.length?r.children.map(({token:S})=>S.value):r.token.value==="0"?[]:[r.token.value],A=(()=>i.evaluate?[i.evaluate]:i.children.map(S=>S.evaluate||(()=>0)))();if(!A)throw new Error(`Function body is not an expression at ${c}`);return this.functions.set(_,{args:u,expr:A}),0}},call:{name:"call",description:"call a function. Example: call(myfunc, arg1, arg2)",arguments:[{name:"name",description:"name of the function to call",expression:!0},"..."],evaluate:({expressions:[s],values:[,...r],location:i})=>{var c;const _=s.token.value,u=this.functions.get(_);if(!u)throw new Error(`Function ${_} is not defined at ${i}`);if(r.length!==u.args.length)throw new Error(`Function ${_} expects ${u.args.length} arguments, but ${r.length} were provided at ${i}`);for(let A=0;AA()).pop())!=null?c:0}}}});a.ignoreCase=!0;const n=new Mt(a);this.exprParser=n}};function B(e){if(typeof e=="number")return e;const a=e.endsWith("%");a&&(e=e.slice(0,e.length-1));let n=parseFloat(e);if(!Number.isFinite(n))throw new Error(`Invalid number format: "${e}"`);return a&&(n/=100),n}function Id(e){return e}var oN=()=>({show:{name:"show",description:"Shows the rolls of the character artifacts",compile(e,{context:a,logger:n}){return function(){const i=a.GetChar().GetArtifacts();if(!i){n.error("Current character has no artifacts");return}n.log(` +`+At(...n)}function Pu(e,a){const n=new Y(v.NAME,v.DAMAGE,v.RELATIVE);n.AddRow(e,a.damage,oe(a.relative));for(const s in a.elements){const r=parseInt(s);n.AddRow(t.stat.Name(r),a.elements[s].damage,oe(a.elements[s].relative))}for(const s in a.talents){const r=parseInt(s);n.AddRow(t.stat.Name(r),a.talents[s].damage,oe(a.talents[s].relative))}for(const s in a.instances)n.AddRow(s,a.instances[s].damage,oe(a.instances[s].relative));return n.toString()}var oe=e=>e*100;function Hu(...e){const a=new Y("NAME","STARS","TYPE","EFFECTS");for(const n of e){const s=(()=>{if(n instanceof Ot.Food){const r=n.GetRank();return n.Options.Effects.map(([i,c,_])=>{const u=c+(_-c)*(r-1)/2;return`${t.stat.Name(i)}: ${u}`}).join(", ")}else return n.Effects.map(([r,i,c])=>`${t.stat.Name(r)}: ${i}-${c}`).join(", ")})();a.AddRow(n.Name,n.Stars,n.Type,s)}return a.String()}var wu=[{Name:T.hits.HIT_Q_1,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.6816000000000004}]},{Name:T.hits.HIT_Q_2,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.49090000000000006}]}],Bu=l.Factory({Name:"ChevreuseC2",OnApply:new l.Builder().instance.Options({Name:"HIT_C2",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:1.2,Talent:t.stat.NONE}]}).Build()}),bu=l.Factory({Name:"ChevreuseC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Ku=l.Factory({Name:"ChevreuseC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Yu=l.Factory({Name:"ChevreuseC6",ApplyOther:!0,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG,t.stat.ELECTRO_DMG).Values(.2).Stacks().Build()}),Fu=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5313}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.49310000000000004}]},{Name:T.hits.HIT_N3_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2764}]},{Name:T.hits.HIT_N3_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3245}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7726000000000001}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2168999999999999}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],ku=l.Factory({Name:"ChevreuseA1",Conditions:["HIT_OVERLOAD"],ApplyOther:!0,MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:1},effect:{conditions:["HIT_OVERLOAD"]}}).stat.Enemy(t.stat.PYRO_RES,t.stat.ELECTRO_RES).Values(-.4).Build()}),Vu=l.Factory({Name:"ChevreuseA4",ApplyOther:!0,MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:4},target:{element:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).observe.Owner(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Enemy(t.stat.ATK_PERCENT).Values(1/100).Map((e,a,n)=>{const r=n.Owner.GetCharacter().Get(t.stat.HP);return Math.min(e*r/1e3,.4)}).Build()}),xu=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1520000000000001}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.7280000000000002}]},{Name:T.hits.HIT_E_HOLD+"_2",Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.824}]},{Name:T.hits.HIT_E+"_OUSIA",Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.28800000000000003}]}],Vr=G.Factory({Name:"Chevreuse",Stars:4,Weapon:t.weapon.POLEARM,Element:t.stat.PYRO_DMG,StatBonus:t.stat.HP_PERCENT,BurstCost:60,Region:t.region.FONTAINE,HpBase:[1002.9700927734,3588.6091308594],AtkBase:[16.205280303955,57.983562469482],DefBase:[50.701351165771,181.40849304199],Normals:Fu,Skills:xu,Bursts:wu,Extra:[],Effects:[ku,Vu,Bu,bu,Ku,Yu]}),Uu=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.752}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4315}]}],Wu=new l.Builder().stat.Char(t.stat.CRIT_RATE).Instance("HIT_E").Values(.12).Map((e,a)=>{const n=a.FindEffect("NaviaE");if(!n)throw new Error("NaviaE not found");const s=Math.min(n.GetStacks(),3);return e*s}).Build(),ju=l.Factory({Name:"NaviaC2",OnApply(e,a,n){const s=Wu(e,a,n),r=e.FindEffect("NaviaE");if(!r)throw new Error("NaviaE not found");return n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_STACKS,s)),s}}),zu=l.Factory({Name:"NaviaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),qu=l.Factory({Name:"NaviaC4",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.GEO_RES).Values(-.2).Build()}),$u=l.Factory({Name:"NaviaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Qu=new l.Builder().stat.Char(t.stat.CRIT_DMG).Instance("HIT_E").Values(.45).Map((e,a)=>{const n=a.FindEffect("NaviaE");if(!n)throw new Error("NaviaE not found");const s=Math.max(0,Math.min(n.GetStacks()-3,3));return e*s}).Build(),Xu=l.Factory({Name:"NaviaC6",OnApply(e,a,n){const s=Qu(e,a,n),r=e.FindEffect("NaviaE");if(!r)throw new Error("NaviaE not found");return n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_STACKS,s)),s}}),Ju=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9352}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8651}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3489}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.3343}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6252}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1309}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],Zu=l.Factory({Name:"NaviaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).infusion.Set(t.stat.GEO_DMG,!0).Next().Where({target:{ascension:1}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(.4).Build()}),tA=l.Factory({Name:"NaviaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Party(!0).stat.Char(t.stat.ATK_PERCENT).Values(.2).Map((e,a)=>{var n;const s=((n=a.GetParty())==null?void 0:n.GetMembers())||[a];let r=0;for(const i of s){const c=i.GetCharacter().Options.Element;t.Swirlable.includes(t.DmgToAura(c))&&r++}return r>2&&(r=2),e*r}).Build()}),eA=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.948}]},{Name:T.hits.HIT_E+"_OUSIA",Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.36}]}],aA=l.Factory({Name:"NaviaE2",MaxStacks:6,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance(T.hits.HIT_E).Values(.15).Map((e,a,n)=>e*Math.max(0,n.GetStacks()-3)).Next().Where({effect:{conditions:["ALL_STRIKE"]}}).mv.Multiplier(2,T.hits.HIT_E).Build()}),nA=l.Factory({Name:"NaviaE",MaxStacks:11,OnApply:new l.Builder().mv.Multiplier(1,T.hits.HIT_E).Map((e,a,n)=>e*n.GetStacks()/11+1).Build()}),xr=G.Factory({Name:"Navia",Element:t.stat.GEO_DMG,Stars:5,Weapon:t.weapon.CLAYMORE,StatBonus:t.stat.CRIT_DMG,BurstCost:60,Region:t.region.FONTAINE,HpBase:[984.78,4044.0373535156],AtkBase:[27.3714,112.3935546875],DefBase:[61.74456,253.56239318848],Normals:Ju,Skills:eA,Bursts:Uu,Extra:[],Effects:[nA,aA,Zu,tA,ju,zu,qu,$u,Xu]}),sA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4839}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4373}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5512}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.733}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7422}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]},{Name:"HIT_ARKHE",Element:t.stat.HYDRO_DMG,Talent:t.stat.NONE,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.0946}]}],rA=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0786}]},{Name:T.hits.HIT_E_1,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0596}]},{Name:T.hits.HIT_E_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0323}]},{Name:T.hits.HIT_E_3,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0829}]}],iA=l.Factory({Name:"FurinaE",OnApply(e,a,n){const s=lA(e,a,n),r=[],i=()=>{for(const u of r)n.RemoveObserver(u);let c=[];const _=e.GetParty();_&&(c=_.GetMembers());for(const u of c){if(u===e)continue;const A=n.Observer(u.GetCharacter().CreateObserver(t.stat.HP_CURRENT,s));r.push(A)}};return n.Observer(e.Event.CreateObserver(ut.CHANGE_PARTY,i)),i(),()=>0}}),lA=new l.Builder().observe.Party(!0).observe.Target(t.stat.HP_CURRENT).mv.Multiplier(1,/E_\d/).Map((e,a)=>{let n=[];const s=a.GetParty();s?n=s.GetMembers():n=[a];let r=0;for(const i of n)i.GetCharacter().Get(t.stat.HP_CURRENT)>.5&&r++;return r=Math.min(r,4),1+r/10}).Build(),oA=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1141}]}],cA=l.Factory({Name:"FurinaQ",MaxStacks:400,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ALL_DMG).Values(1).Stacks().Map((e,a,n)=>{let r=.05+.02*n.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL);return r=r*e/100,r}).Build()}),EA=l.Factory({Name:"FurinaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.HP,t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ALL_DMG).Instance(/E_\d/).Values(.7/100).Map((e,a)=>Math.min(.28,e*a.GetCharacter().Get(t.stat.HP)/1e3)).Build()}),TA=l.Factory({Name:"FurinaC1",OnApply(e,a,n){const s=e.FindEffect("FurinaQ");if(!s)throw new Error("FurinaC1: could not find FurinaQ");let r=0,i=a.Enabled();const c=()=>{const _=s.GetStacks();a.Enabled()?!i&&_300&&(r=_,s.SetStacks(300)),i=a.Enabled()};return c(),n.Observer(a.CreateObserver(U.ENABLE,c)),n.Observer(a.CreateObserver(U.DISABLE,c)),s.CreateObserver(U.CHANGE_STACKS,c),()=>0}}),_A=l.Factory({Name:"FurinaC2",MaxStacks:400,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.35/100).Stacks().Build()}),uA=l.Factory({Name:"FurinaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),AA=l.Factory({Name:"FurinaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),SA=l.Factory({Name:"FurinaC6",Conditions:["ARKHE_PNEUMA"],MaxConditions:1,OnApply:new l.Builder().infusion.Set(t.stat.HYDRO_DMG,!0).Next().mv.Mv(t.stat.HP,.18,/N\d|Charged|Plunge/i).Next().Where({effect:{conditions:["ARKHE_PNEUMA"]}}).mv.Mv(t.stat.HP,.25,/N\d|Charged|Plunge/i).Build()}),Ur=G.Factory({Name:"Furina",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.SWORD,StatBonus:t.stat.CRIT_RATE,BurstCost:60,Region:t.region.FONTAINE,Normals:sA,Skills:rA,Bursts:oA,Extra:[],Effects:[iA,cA,EA,TA,_A,uA,AA,SA],HpBase:[1191.65,4893.5590820312],AtkBase:[18.9924,77.987365722656],DefBase:[54.146148681641,222.35850524902]}),hA=[{Name:T.hits.HIT_N1,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5458}]},{Name:T.hits.HIT_N2,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4625}]},{Name:T.hits.HIT_N3,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.7234}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.368}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.HP,Scaling:o.TalentScaling.PHYSICAL_1,Initial:.0732}]},{Name:T.hits.HIT_CHARGED+"_C6",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.HP,Scaling:o.TalentScaling.NONE,Initial:.1}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],mA=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1286}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.208}]}],fA=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.2226}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0911}]}],LA=l.Factory({Name:"NeuvilletteA1",MaxStacks:3,OnApply:new l.Builder().Where({target:{ascension:1}}).mv.Multiplier(1,"HIT_CHARGED_2","HIT_CHARGED_C6").Map((e,a,n)=>[0,1.1,1.25,1.6][n.GetStacks()]).Build()}),pA=l.Factory({Name:"NeuvilletteA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.HP_CURRENT).stat.Char(t.stat.HYDRO_DMG).Values(1).Map((e,a)=>Math.min(.3,.6*Math.max(0,a.GetCharacter().Get(t.stat.HP_CURRENT)-.3))).Build()}),NA=l.Factory({Name:"NeuvilletteC2",OnApply(e,a,n){const s=e.FindEffect("NeuvilletteA1");if(!s)throw new Error("NeuvilletteC2: Could not find NeuvilletteA1");const r=e.FindInstance("HIT_CHARGED_2"),i=e.FindInstance("HIT_CHARGED_C6");if(!r)throw new Error("NeuvilletteC2: Could not find HIT_CHARGED_2");if(!i)throw new Error("NeuvilletteC2: Could not find HIT_CHARGED_C6");const c=n.Modifier(r.Subject.CreateModifier(t.stat.CRIT_DMG,0)),_=n.Modifier(i.Subject.CreateModifier(t.stat.CRIT_DMG,0)),u=()=>{if(e.GetCharacter().GetAscension()<1){c.SetValue(0),_.SetValue(0);return}const A=s.GetStacks();c.SetValue(.14*A),_.SetValue(.14*A)};return u(),n.Observer(s.CreateObserver(l.EffectEvent.CHANGE_STACKS,u)),n.Observer(e.GetCharacter().CreateObserver(t.stat.LEVEL,u)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ASCENSION,u)),()=>0}}),dA=l.Factory({Name:"NeuvilletteC3",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_LEVEL_UP).Values(3).Build()}),CA=l.Factory({Name:"NeuvilletteC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Wr=G.Factory({Name:"Neuvillette",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.CATALYST,StatBonus:t.stat.CRIT_DMG,BurstCost:70,Region:t.region.FONTAINE,HpBase:[1143.984,4697.8169],AtkBase:[16.218,66.595],DefBase:[44.8725,184.275],Normals:hA,Skills:mA,Bursts:fA,Extra:[],Effects:[LA,pA,NA,dA,CA]}),MA=l.Factory({Name:"MikaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),gA=l.Factory({Name:"MikaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),GA=l.Factory({Name:"MikaC6",ApplyOther:!0,MaxTargets:1,OnApply:new l.Builder().stat.Char(t.stat.PHYSICAL_CRIT_DMG).Values(.6).Build()}),RA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4326}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.415}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.545}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2761}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7087}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1275}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],IA=l.Factory({Name:"MikaA1",MaxStacks:4,ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.PHYSICAL_DMG).Values(.1).Stacks().Build()}),OA=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.84}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.252}]}],jr=G.Factory({Name:"Mika",Element:t.stat.CRYO_DMG,Stars:4,Weapon:t.weapon.POLEARM,StatBonus:t.stat.HP_PERCENT,BurstCost:70,Region:t.region.MONDSTADT,HpBase:[1048.5597,3751.7275],AtkBase:[18.6984,66.90411],DefBase:[59.800125,213.96375],Normals:RA,Skills:OA,Bursts:[],Extra:[],Effects:[IA,MA,gA,GA]}),DA=[{Name:T.hits.HIT_N1+"_Q",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.987},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0169}]},{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.393},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.0239}]}],vA=l.Factory({Name:"DehyaC1",OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2).Next().mv.Mv(t.stat.HP,.036,e=>e.Options.Talent===t.stat.ELEMENTAL_SKILL_DMG).Next().mv.Mv(t.stat.HP,.06,e=>e.Options.Talent===t.stat.ELEMENTAL_BURST_DMG).Build()}),yA=l.Factory({Name:"DehyaC2",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance("HIT_E_DOT").Values(.5).Build()}),PA=l.Factory({Name:"DehyaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),HA=l.Factory({Name:"DehyaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wA=l.Factory({Name:"DehyaC6",MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.1).Next().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_DMG).Values(.15).Stacks().Build()}),BA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6212}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6171}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7663}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9529}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5633}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0182}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],bA=[{Name:T.hits.HIT_E_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1288}]},{Name:T.hits.HIT_E_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.328}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.602},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0103}]}],zr=G.Factory({Name:"Dehya",Stars:5,Element:t.stat.PYRO_DMG,Weapon:t.weapon.CLAYMORE,StatBonus:t.stat.HP_PERCENT,Region:t.region.SUMERU,BurstCost:70,HpBase:[1220.2496,5011.0044],AtkBase:[20.6682,84.8686],DefBase:[48.88111,200.7369],Normals:BA,Skills:bA,Bursts:DA,Extra:[],Effects:[vA,yA,PA,HA,wA]}),KA=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.776}]}],YA=l.Factory({Name:"FaruzanQ",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.ANEMO_RES).Values(-.3).Next().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ANEMO_DMG).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map(e=>e*.18).Build()}),FA=l.Factory({Name:"FaruzanC3",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),kA=l.Factory({Name:"FaruzanC5",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),VA=l.Factory({Name:"FaruzanC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ANEMO_CRIT_DMG).Values(.4).Build()}),xA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4473}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4219}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5316}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7062}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],UA=l.Factory({Name:"FaruzanA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).observe.Owner(t.stat.ATK_BASE).stat.Char(t.stat.ANEMO_DMG_FLAT).Values(.32).Map((e,a,n)=>n.Owner.GetCharacter().Get(t.stat.ATK_BASE)*e).Build()}),WA=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.488}]},{Name:T.hits.HIT_E_2,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.08}]}],qr=G.Factory({Name:"Faruzan",Stars:4,Element:t.stat.ANEMO_DMG,Weapon:t.weapon.BOW,StatBonus:t.stat.ATK_PERCENT,BurstCost:80,Region:t.region.SUMERU,HpBase:[802.3761,2870.8872],AtkBase:[16.4724,58.939335],DefBase:[52.647,188.37],Normals:xA,Skills:WA,Bursts:KA,Extra:[],Effects:[YA,UA,FA,kA,VA]}),jA=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1843}]},{Name:T.hits.HIT_Q_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.2253}]}],zA=l.Factory({Name:"NilouC1",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance("HIT_E_3_1").Values(.65).Build()}),qA=l.Factory({Name:"NilouC2",ApplyOther:!0,Conditions:["BLOOM"],MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Enemy(t.stat.HYDRO_RES).Values(-.35).Next().Where({owner:{ascension:1},effect:{conditions:["BLOOM"]}}).stat.Enemy(t.stat.DENDRO_RES).Values(-.35).Build()}),$A=l.Factory({Name:"NilouC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),QA=l.Factory({Name:"NilouC4",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.5).Build()}),XA=l.Factory({Name:"NilouC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),JA=l.Factory({Name:"NilouC6",OnApply:new l.Builder().observe.Target(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.Char(t.stat.CRIT_RATE).Values(.6/100).Map((e,a)=>Math.max(0,Math.min(.3,e*a.GetCharacter().Get(t.stat.HP)/1e3))).Next().observe.Target(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.Char(t.stat.CRIT_DMG).Values(1.2/100).Map((e,a)=>Math.max(0,Math.min(.6,e*a.GetCharacter().Get(t.stat.HP)/1e3))).Build()}),ZA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5031}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4544}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7035}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5022}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5444}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}];function $r(e){const a=e.GetParty();if(!a)return!1;let n=!1,s=!1;for(const r of a.GetMembers()){const i=r.GetCharacter().Options.Element;if(i===t.stat.DENDRO_DMG)n=!0;else if(i===t.stat.HYDRO_DMG)s=!0;else return!1}return n&&s}var tS=l.Factory({Name:"NilouA1",ApplyOther:!0,OnApply:new l.Builder().Where((e,a)=>a.GetCharacter().GetAscension()<1?!1:$r(e)).observe.Party(!0).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(100).Build()}),eS=l.Factory({Name:"NilouA4",ApplyOther:!0,OnApply:new l.Builder().Where((e,a)=>a.GetCharacter().GetAscension()<4?!1:$r(e)).observe.Party(!0).observe.Owner(t.stat.HP_FLAT,t.stat.HP_BASE,t.stat.HP_PERCENT).stat.Char(t.stat.BLOOM_DMG).Values(.09).Map((e,a,n)=>Math.max(0,Math.min(4,(n.Owner.GetCharacter().Get(t.stat.HP)-3e4)*e/1e3))).Build()}),aS=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0334}]},{Name:T.hits.HIT_E_1+"_1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0455}]},{Name:T.hits.HIT_E_1+"_2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0326}]},{Name:T.hits.HIT_E_2+"_1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0514}]},{Name:T.hits.HIT_E_2+"_2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0396}]},{Name:T.hits.HIT_E_3+"_1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0717}]},{Name:T.hits.HIT_E_3+"_2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0506}]}],Qr=G.Factory({Name:"Nilou",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.SWORD,StatBonus:t.stat.HP_PERCENT,Region:t.region.SUMERU,BurstCost:70,HpBase:[1182.1168,4854.4106],AtkBase:[17.8752,73.39987],DefBase:[56.71884,232.9236],Normals:ZA,Skills:aS,Bursts:jA,Extra:[],Effects:[tS,eS,zA,qA,$A,QA,XA,JA]}),Je=new Set,Ze=[.025,.05,.075,.115];function nS(e){const a=e.FindEffect("YunjinA4");if(!a||!a.Enabled()||e.GetCharacter().GetAscension()<4)return 0;const n=e.GetParty();if(!n)return Ze[0];Je.clear();for(const r of n.GetMembers()){const i=r.GetCharacter().Options.Element;Je.add(i)}const s=Math.max(1,Math.min(Ze.length,Je.size));return Ze[s-1]}var sS=l.Factory({Name:"YunjinA4",OnApply(e,a,n){const s=e.FindEffect("YunjinQ");if(!s)throw new Error("Yunjin Burst effect not found");const r=s;function i(){r.Enabled()&&(r.Disable(),r.Enable())}return i(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_TARGET,i)),()=>0}}),rS=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.44}]}],iS=l.Factory({Name:"YunjinQ",ApplyOther:!0,OnApply:new l.Builder().observe.Party(!0).observe.Owner(t.stat.DEF_PERCENT,t.stat.DEF_BASE,t.stat.DEF_FLAT,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a,n)=>(.3216*e+nS(n.Owner))*n.Owner.GetCharacter().Get(t.stat.DEF)).Build()}),lS=l.Factory({Name:"YunjinC2",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.15).Build()}),oS=l.Factory({Name:"YunjinC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),cS=l.Factory({Name:"YunjinC4",OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT).Values(.2).Build()}),ES=l.Factory({Name:"YunjinC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),TS=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4051}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4025}]},{Name:T.hits.HIT_N3_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2296}]},{Name:T.hits.HIT_N3_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2752}]},{Name:T.hits.HIT_N4_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2399}]},{Name:T.hits.HIT_N4_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2881}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6734}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2169}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],_S=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.4912}]},{Name:T.hits.HIT_E_1,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.6096}]},{Name:T.hits.HIT_E_2,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.728}]}],Xr=G.Factory({Name:"Yunjin",Stars:4,Weapon:t.weapon.POLEARM,Element:t.stat.GEO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,Region:t.region.LIYUE,BurstCost:60,HpBase:[893.5552,3197.1245],AtkBase:[16.0272,57.34638],DefBase:[61.5741,220.311],Normals:TS,Skills:_S,Bursts:rS,Extra:[],Effects:[iS,sS,lS,oS,cS,ES]}),uS=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.272}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.22}]}],AS=l.Factory({Name:"YoimiyaC1",OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2).Build()}),SS=l.Factory({Name:"YoimiyaC2",OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Values(.25).Build()}),hS=l.Factory({Name:"YoimiyaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),mS=l.Factory({Name:"YoimiyaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),fS=l.Factory({Name:"YoimiyaC6",OnApply:new l.Builder().instance.Location("Normal").Options({Name:"HIT_C6",Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Talent:t.stat.NORMAL_ATTACK_LEVEL,Initial:.164*.6}]}).Build()}),LS=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3564}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6838}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8889}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4642}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0586}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_KindlingArrow",Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.164}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],pS=l.Factory({Name:"YoimiyaA1",MaxStacks:10,OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.PYRO_DMG).Values(.02).Stacks().Build()}),NS=l.Factory({Name:"YoimiyaA4",ApplyOther:!0,ApplySelf:!1,OnApply(e,a,n){const s=e.GetCharacter(),r=a.Owner.GetCharacter(),i=a.Owner.FindEffect("YoimiyaA1");if(!i)throw new Error("Cannot find Yoimiya A1");const c=n.Modifier(s.CreateModifier(t.stat.ATK_PERCENT,0)),_=()=>{if(r.GetAscension()<4){c.SetValue(0);return}c.SetValue(.1+.01*i.GetStacks())};return _(),n.Observer(r.CreateObserver(t.stat.LEVEL,_)),n.Observer(r.CreateObserver(t.stat.ASCENSION,_)),n.Observer(i.CreateObserver(l.EffectEvent.CHANGE_STACKS,_)),()=>0}}),dS=l.Factory({Name:"YoimiyaE",OnApply:new l.Builder().infusion.Set(t.stat.PYRO_DMG,!0).Next().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.3791,/hit_n\d/i).Map((e,a)=>1+e*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),Jr=G.Factory({Name:"Yoimiya",Stars:5,Weapon:t.weapon.BOW,Element:t.stat.PYRO_DMG,StatBonus:t.stat.CRIT_RATE,Region:t.region.INAZUMA,BurstCost:60,HpBase:[791.2556,3249.3232],AtkBase:[25.137,103.21857],DefBase:[47.864,196.56],Normals:LS,Skills:[],Bursts:uS,Extra:[],Effects:[dS,pS,NS,AS,SS,hS,mS,fS]}),CS=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.824}]}],MS=l.Factory({Name:"YanfeiQ",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(...o.TalentScaling.ELEMENTAL_2).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map(e=>.334*e).Build()}),gS=l.Factory({Name:"YanfeiC2",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_CRIT_RATE).Values(.2).Build()}),GS=l.Factory({Name:"YanfeiC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),RS=l.Factory({Name:"YanfeiC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),IS=[{Name:T.hits.HIT_N1,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5834}]},{Name:T.hits.HIT_N2,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5213}]},{Name:T.hits.HIT_N3,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.7601}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_2,Initial:.9823}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],OS=l.Factory({Name:"YanfeiA1",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindEffect("YanfeiSeal");if(!r)throw new Error("Cannot find Yanfei Scarlet Seals");const i=n.Modifier(s.CreateModifier(t.stat.PYRO_DMG,0)),c=()=>{if(s.GetAscension()<1){i.SetValue(0);return}i.SetValue(r.GetStacks()*.05)};return c(),n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_STACKS,c)),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),DS=l.Factory({Name:"YanfeiA4",OnApply:new l.Builder().Where({target:{ascension:4}}).instance.Location("Normal").Options({Name:"HIT_A4",Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Initial:.8,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),vS=l.Factory({Name:"YanfeiSeal",MaxStacks:4,OnApply:new l.Builder().observe.Target(t.stat.NORMAL_ATTACK_LEVEL,t.stat.NORMAL_ATTACK_LEVEL_UP).mv.Mv(t.stat.ATK,.1733,"HIT_CHARGED").Map((e,a,n)=>e*n.GetStacks()*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.NORMAL_ATTACK_LEVEL)-1]).Build()}),yS=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.696}]}],Zr=G.Factory({Name:"Yanfei",Stars:4,Element:t.stat.PYRO_DMG,StatBonus:t.stat.PYRO_DMG,Weapon:t.weapon.CATALYST,Region:t.region.LIYUE,BurstCost:80,HpBase:[784.14026,2805.64],AtkBase:[20.12304,72.001564],DefBase:[49.2135,176.085],Normals:IS,Skills:yS,Bursts:CS,Extra:[],Effects:[vS,MS,OS,DS,gS,GS,RS]}),PS=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.6}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.3382}]}],HS=l.Factory({Name:"YaeC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wS=l.Factory({Name:"YaeC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_DMG).Values(.2).Build()}),BS=l.Factory({Name:"YaeC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),bS=l.Factory({Name:"YaeC6",OnApply:new l.Builder().stat.Char(t.stat.DEFIGNORED).Instance(/HIT_E_\d/i).Values(.6).Build()}),KS=[{Name:T.hits.HIT_N1,Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3966}]},{Name:T.hits.HIT_N2,Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3852}]},{Name:T.hits.HIT_N3,Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5689}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4289}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],YS=l.Factory({Name:"YaeA4",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_MASTERY).Where({target:{ascension:4}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.15/100).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()}),FS=[{Name:T.hits.HIT_E_1,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6067}]},{Name:T.hits.HIT_E_2,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7584}]},{Name:T.hits.HIT_E_3,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.948}]},{Name:T.hits.HIT_E_4,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.185}]}],ti=G.Factory({Name:"Yae",Stars:5,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.CRIT_RATE,Weapon:t.weapon.CATALYST,Region:t.region.INAZUMA,BurstCost:90,HpBase:[807.46204,3315.8757],AtkBase:[26.4404,108.57064],DefBase:[44.2742,181.818],Normals:KS,Skills:FS,Bursts:PS,Extra:[],Effects:[YS,HS,wS,BS,bS]}),kS=l.Factory({Name:"XiaoQ",OnApply:new l.Builder().infusion.Set(t.stat.ANEMO_DMG,!0).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(...o.TalentScaling.ELEMENTAL_2).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map(e=>.5845*e).Build()}),VS=l.Factory({Name:"XiaoC2",OnApply:new l.Builder().stat.Char(t.stat.ENERGY_RECHARGE).Values(.25).Build()}),xS=l.Factory({Name:"XiaoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),US=l.Factory({Name:"XiaoC4",OnApply:new l.Builder().Where({target:{hp:{leq:.5}}}).stat.Char(t.stat.DEF_PERCENT).Values(1).Build()}),WS=l.Factory({Name:"XiaoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),jS=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.2754}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.5694}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6855}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.3766}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.7154}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.9583}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.2109}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439}]}],zS=l.Factory({Name:"XiaoA1",MaxStacks:5,OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.ALL_DMG).Values(.05).Stacks().Build()}),qS=l.Factory({Name:"XiaoA4",MaxStacks:3,OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.15).Stacks().Build()}),$S=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.528}]}],ei=G.Factory({Name:"Xiao",Stars:5,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.CRIT_RATE,Weapon:t.weapon.POLEARM,Region:t.region.LIYUE,BurstCost:70,HpBase:[991.4528,4071.4412],AtkBase:[27.1852,111.628975],DefBase:[62.2232,255.528],Normals:jS,Skills:$S,Bursts:[],Extra:[],Effects:[kS,zS,qS,VS,xS,US,WS]}),QS=[{Name:T.hits.HIT_Q_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.72}]},{Name:T.hits.HIT_Q_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.88}]},{Name:T.hits.HIT_Q_3,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.096}]},{Name:"HIT_PYRONADO",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.12}]}],XS=l.Factory({Name:"XianglingC1",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.PYRO_RES).Values(-.15).Build()}),JS=l.Factory({Name:"XianglingC2",OnApply:new l.Builder().instance.Options({Name:"HIT_C2",Element:t.stat.PYRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.75,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),ZS=l.Factory({Name:"XianglingC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),t0=l.Factory({Name:"XianglingC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),e0=l.Factory({Name:"XianglingC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Values(.15).Build()}),a0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4205}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4214}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2606}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.141}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7104}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.2169}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],n0=l.Factory({Name:"XianglingA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.ATK_PERCENT).Values(.1).Build()}),s0=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1128}]}],ai=G.Factory({Name:"Xiangling",Stars:4,Element:t.stat.PYRO_DMG,StatBonus:t.stat.ELEMENTAL_MASTERY,Weapon:t.weapon.POLEARM,Region:t.region.LIYUE,BurstCost:80,HpBase:[911.791,3262.3718],AtkBase:[18.87648,67.54129],DefBase:[56.0805,200.655],Normals:a0,Skills:s0,Bursts:QS,Extra:[],Effects:[n0,XS,JS,ZS,t0,e0]}),r0=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.472}]}],i0=l.Factory({Name:"WandererC1",OnApply(e,a,n){if(!e.FindEffect("WandererA4"))throw new Error("Cannot find Wanderer A4");let r;const i=()=>{const c=e.FindInstance("HIT_A4");!c||r||(r=n.Mv({Stat:t.stat.ATK,Value:.25,Enabled:!0},c))};return i(),n.Observer(e.GetCharacter().CreateObserver(t.stat.LEVEL,i)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ASCENSION,i)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),()=>0}}),l0=l.Factory({Name:"WandererC2",MaxStacks:120,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.04).Stacks().Map(e=>Math.min(2,e)).Build()}),o0=l.Factory({Name:"WandererC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),c0=l.Factory({Name:"WandererC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),E0=[{Name:T.hits.HIT_N1,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6871}]},{Name:T.hits.HIT_N2,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6502}]},{Name:T.hits.HIT_N3,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4764}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.3208}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]},{Name:T.hits.HIT_N1+"_C6",Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6871*.4}]},{Name:T.hits.HIT_N2+"_C6",Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6502*.4}]},{Name:T.hits.HIT_N3+"_C6",Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4764*.4}]}],T0=l.Factory({Name:"WandererA1",MaxAuras:1,ValidAuras:t.Swirlable,OnApply:new l.Builder().Where({target:{ascension:1},effect:{affected:[t.stat.PYRO_DMG]}}).stat.Char(t.stat.ATK_PERCENT).Values(.3).Next().Where({target:{ascension:1},effect:{affected:[t.stat.CRYO_DMG]}}).stat.Char(t.stat.CRIT_RATE).Values(.2).Build()}),_0=l.Factory({Name:"WandererA4",OnApply:new l.Builder().Where({target:{ascension:4}}).instance.Options({Name:"HIT_A4",Element:t.stat.ANEMO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.35,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),u0=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.952}]}],A0=l.Factory({Name:"WandererE",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.3298,/hit_n\d/i).Map((e,a)=>1+e*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Next().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.2639,/hit_charged/i).Map((e,a)=>1+e*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),ni=G.Factory({Name:"Wanderer",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.CRIT_RATE,Region:t.region.SUMERU,BurstCost:60,HpBase:[791.2556,3249.3232],AtkBase:[25.5094,104.747734],DefBase:[47.2657,194.103],Normals:E0,Skills:u0,Bursts:r0,Extra:[],Effects:[A0,T0,_0,i0,l0,o0,c0]}),S0=[{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.376}]}],h0=l.Factory({Name:"VentiQ",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){m0(e,a,n);function s(){const r=e.FindBurst(T.hits.HIT_Q+"_ADDITIONAL");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),m0=new l.Builder().instance.Location("Burst").Options({Name:T.hits.HIT_Q+"_ADDITIONAL",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.188,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),f0=l.Factory({Name:"VentiC1",OnApply:new l.Builder().instance.Location("Normal").Options({Name:"HIT_C1",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Talent:t.stat.NORMAL_ATTACK_LEVEL,Stat:t.stat.ATK,Initial:.4386*.33}]}).Next().instance.Location("Normal").Options({Name:"HIT_CHARGED_C1",Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Talent:t.stat.NORMAL_ATTACK_LEVEL,Stat:t.stat.ATK,Initial:1.24*.33}]}).Next().Build()}),L0=l.Factory({Name:"VentiC2",ApplyOther:!0,Conditions:["AIRBORNE","NO_AIRBORNE"],MaxConditions:1,OnApply:new l.Builder().stat.Enemy(t.stat.ANEMO_RES,t.stat.PHYSICAL_RES).Values(-.12).Next().Where({effect:{conditions:["AIRBORNE"]}}).stat.Enemy(t.stat.ANEMO_RES,t.stat.PHYSICAL_RES).Values(-.12).Build()}),p0=l.Factory({Name:"VentiC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),N0=l.Factory({Name:"VentiC4",OnApply:new l.Builder().stat.Char(t.stat.ANEMO_DMG).Values(.25).Build()}),d0=l.Factory({Name:"VentiC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),C0=l.Factory({Name:"VentiC6",ApplyOther:!0,OnApply(e,a,n){const s=e.GetCharacter().GetEnemy(),r=a.Owner.FindEffect("VentiQ");if(!r)throw new Error("Venti Q not found");n.Modifier(s.Subject.CreateModifier(t.stat.ANEMO_RES,-.2));const i=n.Modifier(s.Subject.CreateModifier(t.stat.ANEMO_RES,0)),c=()=>{const _=r.GetAuras();if(!_.length||_[0]===t.aura.NONE)i.SetValue(0);else{const u=t.DmgToRes(t.AuraToDmg(_[0]));i.SetValue(-.2),i.SetProp(u)}};return c(),n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_AURAS,c)),()=>0}}),M0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2038}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4438}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5237}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2606}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5065}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7095}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],g0=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.76}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.8}]}],si=G.Factory({Name:"Venti",Stars:5,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,Weapon:t.weapon.BOW,Region:t.region.MONDSTADT,BurstCost:60,HpBase:[819.8552,3366.7688],AtkBase:[20.482,84.10402],DefBase:[52.0521,213.759],Normals:M0,Skills:g0,Bursts:S0,Extra:[],Effects:[h0,f0,L0,p0,N0,d0,C0]}),G0=[{Name:T.hits.HIT_Q+"_MELEE",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.64}]},{Name:T.hits.HIT_Q+"_RANGED",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.784}]},{Name:"HIT_RiptideBlast",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2}]}],R0=l.Factory({Name:"TartagliaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),I0=l.Factory({Name:"TartagliaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),O0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4128}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4627}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5538}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5702}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6089}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7276}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_RiptideFlash",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.124}]},{Name:"HIT_RiptideBurst",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.62}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],D0=l.Factory({Name:"TartagliaA0",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_LEVEL_UP).Values(1).Build()}),v0=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.72}]},{Name:T.hits.HIT_N1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3887}]},{Name:T.hits.HIT_N2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4162}]},{Name:T.hits.HIT_N3+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5633}]},{Name:T.hits.HIT_N4+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5994}]},{Name:T.hits.HIT_N5+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.553}]},{Name:T.hits.HIT_N6_1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3543}]},{Name:T.hits.HIT_N6_2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3767}]},{Name:T.hits.HIT_CHARGED_1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.602}]},{Name:T.hits.HIT_CHARGED_2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7198}]},{Name:"HIT_RiptideSlash",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.602}]}],ri=G.Factory({Name:"Tartaglia",Stars:5,Weapon:t.weapon.BOW,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.HYDRO_DMG,Region:t.region.SNEZHNAYA,BurstCost:60,HpBase:[1020.0524,4188.8867],AtkBase:[23.4612,96.33733],DefBase:[63.4198,260.442],Normals:O0,Skills:v0,Bursts:G0,Extra:[],Effects:[D0,R0,I0]}),y0=[{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.48}]}],P0=l.Factory({Name:"SucroseQ",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){H0(e,a,n);function s(){const r=e.FindBurst(T.hits.HIT_Q+"_ADDITIONAL");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),H0=new l.Builder().instance.Location("Burst").Options({Name:T.hits.HIT_Q+"_ADDITIONAL",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.44,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),w0=l.Factory({Name:"SucroseC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),B0=l.Factory({Name:"SucroseC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),b0=l.Factory({Name:"SucroseC6",ApplyOther:!0,OnApply(e,a,n){const s=a.Owner.FindEffect("SucroseQ"),r=e.GetCharacter();if(!s)throw new Error("Cannot find Sucrose Q");const i=n.Modifier(r.CreateModifier(t.stat.PYRO_DMG,0)),c=()=>{const _=s.GetAuras();(!_.length||_[0]===t.aura.NONE)&&i.SetValue(0);const u=t.AuraToDmg(_[0]);i.SetProp(u),i.SetValue(.2)};return c(),n.Observer(s.CreateObserver(l.EffectEvent.CHANGE_AURAS,c)),()=>0}}),K0=[{Name:T.hits.HIT_N1,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3346}]},{Name:T.hits.HIT_N2,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3062}]},{Name:T.hits.HIT_N3,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3845}]},{Name:T.hits.HIT_N4,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4792}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.2016}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],Y0=l.Factory({Name:"SucroseA1",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(50).Build()}),F0=l.Factory({Name:"SucroseA4",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_MASTERY).Where({owner:{ascension:1}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(.2).Map((e,a,n)=>e*n.Owner.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()}),k0=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.112}]}],ii=G.Factory({Name:"Sucrose",Stars:4,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.ANEMO_DMG,Weapon:t.weapon.CATALYST,Region:t.region.MONDSTADT,BurstCost:80,HpBase:[775.02234,2773.016],AtkBase:[14.2464,50.97456],DefBase:[58.94175,210.8925],Normals:K0,Skills:k0,Bursts:y0,Extra:[],Effects:[P0,Y0,F0,w0,B0,b0]}),V0=l.Factory({Name:"ShenheA1",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.CRYO_DMG).Values(.15).Build()}),x0=l.Factory({Name:"ShenheA4",ApplyOther:!0,Conditions:["PRESS","HOLD"],MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:4},effect:{conditions:["PRESS"]}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.15).Next().Where({owner:{ascension:4},effect:{conditions:["HOLD"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(.15).Build()}),U0=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.008}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.3312}]}],W0=l.Factory({Name:"ShenheQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Enemy(t.stat.CRYO_RES,t.stat.PHYSICAL_RES).Values(-.06,-.07,-.08,-.09,-.1,-.11,-.12,-.13,-.14,-.15).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Build()}),j0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4326}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4025}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5332}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2632}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6562}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1067}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],z0=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.392}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.888}]}],q0=l.Factory({Name:"ShenheE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP,t.stat.ATK_PERCENT,t.stat.ATK_BASE,t.stat.ATK_FLAT).stat.Char(t.stat.CRYO_DMG_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a,n)=>.4566*e*n.Owner.GetCharacter().Get(t.stat.ATK)).Build()}),$0=l.Factory({Name:"ShenheC2",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRYO_CRIT_DMG).Values(.15).Build()}),Q0=l.Factory({Name:"ShenheC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),X0=l.Factory({Name:"ShenheC4",MaxStacks:50,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.05).Stacks().Build()}),J0=l.Factory({Name:"ShenheC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),li=G.Factory({Name:"Shenhe",Stars:5,Element:t.stat.CRYO_DMG,Weapon:t.weapon.POLEARM,StatBonus:t.stat.ATK_PERCENT,Region:t.region.LIYUE,BurstCost:80,HpBase:[1011.47253,4153.653],AtkBase:[23.6474,97.10191],DefBase:[64.6164,265.356],Normals:j0,Skills:z0,Bursts:U0,Extra:[],Effects:[q0,W0,V0,x0,$0,Q0,X0,J0]}),Z0=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1042}]}],th=l.Factory({Name:"KokomiQ",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.HP,.0484,/HIT_N\d/i).Map((e,a)=>e*o.TalentScaling.ELEMENTAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1]).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.HP,.0678,/charged/i).Map((e,a)=>e*o.TalentScaling.ELEMENTAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1]).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.HP,.071,/HIT_E$/i).Map((e,a)=>e*o.TalentScaling.ELEMENTAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1]).Build()}),eh=l.Factory({Name:"KokomiC1",OnApply:new l.Builder().instance.Options({Name:"HIT_C1",Element:t.stat.HYDRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.HP,Initial:.3,Talent:t.stat.NONE,Scaling:o.TalentScaling.NONE}]}).Build()}),ah=l.Factory({Name:"KokomiC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nh=l.Factory({Name:"KokomiC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),sh=l.Factory({Name:"KokomiC6",OnApply:new l.Builder().stat.Char(t.stat.HYDRO_DMG).Values(.4).Build()}),rh=[{Name:T.hits.HIT_N1,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6838}]},{Name:T.hits.HIT_N2,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6154}]},{Name:T.hits.HIT_N3,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.9431}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4832}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],ih=l.Factory({Name:"KokomiA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.HEALING_BONUS).Values(.25).Next().Where({target:{ascension:1}}).stat.Char(t.stat.CRIT_RATE).Values(-1).Next().Build()}),lh=l.Factory({Name:"KokomiA4",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindEffect("KokomiQ");if(!r)throw new Error("Kokomi Q effect not found");const i=se(e.GetNormals(),[/HIT_N\d/i]),c=se(e.GetNormals(),[/charged/i]),_=n.Mv({Stat:t.stat.HP,Value:0,Enabled:!0},...i),u=n.Mv({Stat:t.stat.HP,Value:0,Enabled:!0},...c),A=()=>{(!r.Enabled()||s.GetAscension()<4)&&(_.Value=0,u.Value=0);const S=s.Get(t.stat.HEALING_BONUS);_.Value=u.Value=.15*S};return A(),n.Observer(s.CreateObserver(t.stat.HEALING_BONUS,A)),n.Observer(r.CreateObserver(l.EffectEvent.ENABLE,A)),n.Observer(r.CreateObserver(l.EffectEvent.DISABLE,A)),()=>0}}),oh=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.0919}]}],oi=G.Factory({Name:"Kokomi",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.HYDRO_DMG,Region:t.region.INAZUMA,BurstCost:70,HpBase:[1048.652,4306.332],AtkBase:[18.2476,74.92904],DefBase:[51.15465,210.0735],Normals:rh,Skills:oh,Bursts:Z0,Extra:[],Effects:[th,ih,lh,eh,ah,nh,sh]}),ch=[{Name:T.hits.HIT_Q_1,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.04}]},{Name:T.hits.HIT_Q_2,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.52}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.32}]}],Eh=l.Factory({Name:"RosariaC1",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.1).Build()}),Th=l.Factory({Name:"RosariaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),_h=l.Factory({Name:"RosariaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),uh=l.Factory({Name:"RosariaC6",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.PHYSICAL_RES).Values(-.2).Build()}),Ah=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5246}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.516}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3182}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6966}]},{Name:T.hits.HIT_N5_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4162}]},{Name:T.hits.HIT_N5_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.43}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.3674}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Sh=l.Factory({Name:"RosariaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.CRIT_RATE).Values(.12).Build()}),hh=l.Factory({Name:"RosariaA4",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.CRIT_RATE).Where({owner:{ascension:4}}).stat.Char(t.stat.CRIT_RATE).Values(.15).Map((e,a,n)=>Math.max(0,Math.min(1,e*n.Owner.GetCharacter().Get(t.stat.CRIT_RATE)))).Build()}),mh=[{Name:T.hits.HIT_E_1,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.584}]},{Name:T.hits.HIT_E_2,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.36}]}],ci=G.Factory({Name:"Rosaria",Stars:4,Weapon:t.weapon.POLEARM,Element:t.stat.CRYO_DMG,Region:t.region.MONDSTADT,StatBonus:t.stat.ATK_PERCENT,BurstCost:60,HpBase:[1030.3239,3686.4802],AtkBase:[20.12304,72.001564],DefBase:[59.514,212.94],Normals:Ah,Skills:mh,Bursts:ch,Extra:[],Effects:[Sh,hh,Eh,Th,_h,uh]}),fh=[{Name:T.hits.HIT_Q_1,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672}]},{Name:T.hits.HIT_Q_2,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.928}]}],Lh=l.Factory({Name:"NoelleQ",OnApply:new l.Builder().infusion.Set(t.stat.GEO_DMG,!0).Next().observe.Target(t.stat.DEF_FLAT,t.stat.DEF_PERCENT,t.stat.DEF_FLAT,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(.4,.43,.46,.5,.53,.56,.6,.64,.68,.72,.76,.8,.85,.9,.95).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a)=>e*a.GetCharacter().Get(t.stat.DEF)).Build()}),ph=l.Factory({Name:"NoelleC2",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.15).Build()}),Nh=l.Factory({Name:"NoelleC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),dh=l.Factory({Name:"NoelleC4",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C4",Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Stat:t.stat.ATK,Initial:4}]}).Build()}),Ch=l.Factory({Name:"NoelleC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Mh=l.Factory({Name:"NoelleC6",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindEffect("NoelleQ");if(!r)throw new Error("Noelle Q effect not found");const i=n.Modifier(s.CreateModifier(t.stat.ATK_FLAT,0)),c=()=>{r.Enabled()?i.SetValue(.5*s.Get(t.stat.DEF)):i.SetValue(0)};return c(),n.Observer(s.CreateObserver(t.stat.DEF_FLAT,c)),n.Observer(s.CreateObserver(t.stat.DEF_PERCENT,c)),n.Observer(s.CreateObserver(t.stat.DEF_BASE,c)),n.Observer(r.CreateObserver(l.EffectEvent.ENABLE,c)),n.Observer(r.CreateObserver(l.EffectEvent.DISABLE,c)),()=>0}}),gh=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7912}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7336}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8626}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1343}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5074}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9047}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],Gh=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:1.2}]}],Ei=G.Factory({Name:"Noelle",Stars:4,Element:t.stat.GEO_DMG,StatBonus:t.stat.DEF_PERCENT,BurstCost:60,Region:t.region.MONDSTADT,Weapon:t.weapon.CLAYMORE,HpBase:[1012.088,3621.2327],AtkBase:[16.0272,57.34638],DefBase:[66.95325,239.5575],Normals:gh,Skills:Gh,Bursts:fh,Extra:[],Effects:[Lh,ph,Nh,dh,Ch,Mh]}),Rh=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.8696}]}],Ih=l.Factory({Name:"NingguangC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Oh=l.Factory({Name:"NingguangC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Dh=[{Name:T.hits.HIT_N1,Element:t.stat.GEO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.28}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.GEO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.7408}]},{Name:"HIT_Jade",Element:t.stat.GEO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.496}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.GEO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.GEO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.GEO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],vh=l.Factory({Name:"NingguangA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.GEO_DMG).Values(.12).Build()}),yh=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.304}]}],Ti=G.Factory({Name:"Ningguang",Stars:4,Element:t.stat.GEO_DMG,StatBonus:t.stat.GEO_DMG,Weapon:t.weapon.CATALYST,Region:t.region.LIYUE,BurstCost:40,HpBase:[820.6119,2936.1348],AtkBase:[17.808,63.7182],DefBase:[48.069,171.99],Normals:Dh,Skills:yh,Bursts:Rh,Extra:[],Effects:[vh,Ih,Oh]}),Ph=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.424}]}],Hh=l.Factory({Name:"MonaQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ALL_DMG).Values(.4,.42,.44,.46,.48,.5,.52,.54,.56,.58,.6).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Build()}),wh=l.Factory({Name:"MonaC1",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELECTROCHARGE_DMG,t.stat.VAPORIZE_DMG).Values(.15).Next().stat.Char(t.stat.ALL_DMG).Instance("HIT_SWIRL_HYDRO").Values(.15).Build()}),Bh=l.Factory({Name:"MonaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),bh=l.Factory({Name:"MonaC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.15).Build()}),Kh=l.Factory({Name:"MonaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Yh=l.Factory({Name:"MonaC6",MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.6).Stacks().Build()}),Fh=[{Name:T.hits.HIT_N1,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.376}]},{Name:T.hits.HIT_N2,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.36}]},{Name:T.hits.HIT_N3,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.448}]},{Name:T.hits.HIT_N4,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5616}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.4972}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],kh=l.Factory({Name:"MonaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.ELEMENTAL_SKILL_LEVEL,Stat:t.stat.ATK,Initial:1.328*.5}]}).Build()}),Vh=l.Factory({Name:"MonaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ENERGY_RECHARGE).stat.Char(t.stat.HYDRO_DMG).Values(.2).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ENERGY_RECHARGE)).Build()}),xh=[{Name:T.hits.HIT_E_DOT,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.32}]},{Name:T.hits.HIT_E_EXPLOSION,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.328}]}],_i=G.Factory({Name:"Mona",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,Region:t.region.MONDSTADT,BurstCost:60,HpBase:[810.322,3327.62],AtkBase:[22.344,91.74984],DefBase:[50.8555,208.845],Normals:Fh,Skills:xh,Bursts:Ph,Extra:[],Effects:[Hh,kh,Vh,wh,Bh,bh,Kh,Yh]}),Uh=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4264}]}],Wh=l.Factory({Name:"KleeC1",OnApply:new l.Builder().instance.Location("Burst").Options({Name:"HIT_C1",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.ELEMENTAL_BURST_LEVEL,Stat:t.stat.ATK,Initial:.4264*1.2}]}).Build()}),jh=l.Factory({Name:"KleeC2",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.DEFREDUCTION).Values(.23).Build()}),zh=l.Factory({Name:"KleeC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),qh=l.Factory({Name:"KleeC4",OnApply:new l.Builder().instance.Location("Burst").Options({Name:"HIT_C4",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Stat:t.stat.ATK,Initial:5.55}]}).Build()}),$h=l.Factory({Name:"KleeC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Qh=l.Factory({Name:"KleeC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Build()}),Xh=[{Name:T.hits.HIT_N1,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.7216}]},{Name:T.hits.HIT_N2,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.624}]},{Name:T.hits.HIT_N3,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.8992}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.5736}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],Jh=l.Factory({Name:"KleeA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.5).Build()}),Zh=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.952}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.328}]}],ui=G.Factory({Name:"Klee",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.PYRO_DMG,StatBonus:t.stat.PYRO_DMG,Region:t.region.MONDSTADT,BurstCost:60,HpBase:[800.7888,3288.4717],AtkBase:[24.206,99.39566],DefBase:[47.864,196.56],Normals:Xh,Skills:Zh,Bursts:Uh,Extra:[],Effects:[Jh,Wh,jh,zh,qh,$h,Qh]}),tm=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.88}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.24}]},{Name:T.hits.HIT_Q_EXPLOSION,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.888}]}],em=l.Factory({Name:"KeqingC1",OnApply:new l.Builder().instance.Options({Name:"HIT_C1",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.5,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),am=l.Factory({Name:"KeqingC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nm=l.Factory({Name:"KeqingC4",OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.25).Build()}),sm=l.Factory({Name:"KeqingC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),rm=l.Factory({Name:"KeqingC6",OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_DMG).Values(.06).Build()}),im=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4102}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4102}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5444}]},{Name:T.hits.HIT_N4_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3148}]},{Name:T.hits.HIT_N4_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.344}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6699}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.768}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.86}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],lm=l.Factory({Name:"KeqingA1",OnApply:new l.Builder().Where({target:{ascension:1}}).infusion.Set(t.stat.ELECTRO_DMG,!1).Build()}),om=l.Factory({Name:"KeqingA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.CRIT_RATE,t.stat.ENERGY_RECHARGE).Values(.15).Build()}),cm=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.504}]},{Name:T.hits.HIT_E+"_SLASH",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.68}]},{Name:T.hits.HIT_E+"_SLASH_2",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.84}]}],Ai=G.Factory({Name:"Keqing",Stars:5,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.CRIT_DMG,Weapon:t.weapon.SWORD,Region:t.region.LIYUE,BurstCost:40,HpBase:[1020.0524,4188.8867],AtkBase:[25.137,103.21857],DefBase:[62.2232,255.528],Normals:im,Skills:cm,Bursts:tm,Extra:[],Effects:[lm,om,em,am,nm,sm,rm]}),Em=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6646}]}],Tm=l.Factory({Name:"AyatoQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.11,.12,.13,.14,.15,.16,.17,.18,.19,.2).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Build()}),_m=l.Factory({Name:"AyatoC1",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance(/HIT_N\d_E/i).Values(.4).Build()}),um=l.Factory({Name:"AyatoC2",OnApply(e,a,n){const s=e.FindEffect("AyatoE");if(!s)throw new Error("Cannot find Ayato Skill");const r=n.Modifier(e.GetCharacter().CreateModifier(t.stat.HP_PERCENT,0)),i=function(){s.GetStacks()>=3?r.SetValue(.5):r.SetValue(0)};return i(),n.Observer(s.CreateObserver(l.EffectEvent.CHANGE_STACKS,i)),()=>0}}),Am=l.Factory({Name:"AyatoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Sm=l.Factory({Name:"AyatoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),hm=l.Factory({Name:"AyatoC6",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Stat:t.stat.ATK,Initial:4.5}]}).Build()}),mm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4496}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4716}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5861}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2945}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.756}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2953}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],fm=[{Name:T.hits.HIT_N1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5289}]},{Name:T.hits.HIT_N2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5891}]},{Name:T.hits.HIT_N3+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6493}]},{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0148}]}],Lm=l.Factory({Name:"AyatoE",MaxStacks:5,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Mv(t.stat.HP,.56/100,/HIT_N\d_E/i).Map((e,a,n)=>e*n.GetStacks()*o.TalentScaling.PHYSICAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),Si=G.Factory({Name:"Ayato",Stars:5,Weapon:t.weapon.SWORD,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.CRIT_DMG,Region:t.region.INAZUMA,BurstCost:80,HpBase:[1067.7184,4384.629],AtkBase:[23.275,95.57275],DefBase:[59.83,245.7],Normals:mm,Skills:fm,Bursts:Em,Extra:[],Effects:[Lm,Tm,_m,um,Am,Sm,hm]}),pm=[{Name:T.hits.HIT_Q_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.123}]},{Name:T.hits.HIT_Q_EXPLOSION,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.6845}]}],Nm=l.Factory({Name:"AyakaC2",OnApply:new l.Builder().instance.Location("Burst").Options({Name:"HIT_C2",Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.ELEMENTAL_BURST_LEVEL,Stat:t.stat.ATK,Initial:1.123}]}).Build()}),dm=l.Factory({Name:"AyakaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Cm=l.Factory({Name:"AyakaC4",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.DEFREDUCTION).Values(.3).Build()}),Mm=l.Factory({Name:"AyakaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),gm=l.Factory({Name:"AyakaC6",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(2.98).Build()}),Gm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4573}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4868}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6262}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2265}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7818}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5513}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Rm=l.Factory({Name:"AyakaSprint",OnApply:new l.Builder().infusion.Set(t.stat.CRYO_DMG,!1).Build()}),Im=l.Factory({Name:"AyakaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.3).Build()}),Om=l.Factory({Name:"AyakaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.CRYO_DMG).Values(.18).Build()}),Dm=[{Name:T.hits.HIT_E,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.392}]}],hi=G.Factory({Name:"Ayaka",Stars:5,Element:t.stat.CRYO_DMG,StatBonus:t.stat.CRIT_DMG,Weapon:t.weapon.SWORD,Region:t.region.INAZUMA,BurstCost:80,HpBase:[1000.986,4110.59],AtkBase:[26.6266,109.33523],DefBase:[61.0266,250.614],Normals:Gm,Skills:Dm,Bursts:pm,Extra:[],Effects:[Rm,Im,Om,Nm,dm,Cm,Mm,gm]}),vm=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.248}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.784}]}],ym=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4833}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4558}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6029}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6588}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7921}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.6202}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Pm=l.Factory({Name:"JeanC1",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.4).Build()}),Hm=l.Factory({Name:"JeanC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),wm=l.Factory({Name:"JeanC4",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.ANEMO_RES).Values(-.4).Build()}),Bm=l.Factory({Name:"JeanC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),bm=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.92}]}],mi=G.Factory({Name:"Jean",Stars:5,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.HEALING_BONUS,Weapon:t.weapon.SWORD,Region:t.region.MONDSTADT,BurstCost:80,HpBase:[1143.984,4697.817],AtkBase:[18.62,76.4582],DefBase:[59.83,245.7],Normals:ym,Skills:bm,Bursts:vm,Extra:[],Effects:[Pm,Hm,wm,Bm]}),Km=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:.9822}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:.613}]}];function ta(e){const a=e.GetParty();if(!a)return e.GetCharacter().Options.Element===t.stat.GEO_DMG?1:0;let n=0;for(const s of a.GetMembers())s.GetCharacter().Options.Element===t.stat.GEO_DMG&&n++;return n}var Ym=l.Factory({Name:"GorouC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Fm=l.Factory({Name:"GorouC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),km=l.Factory({Name:"GorouC6",ApplyOther:!0,OnApply:new l.Builder().observe.Party(!0).stat.Char(t.stat.GEO_CRIT_DMG).Values(.1,.2,.4).Rank(e=>ta(e)).Build()}),Vm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3775}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3715}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4945}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.59}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.GEO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],xm=l.Factory({Name:"GorouA1",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.DEF_PERCENT).Values(.25).Build()}),Um=l.Factory({Name:"GorouA4",OnApply:new l.Builder().Where({target:{ascension:4}}).mv.Mv(t.stat.DEF,1.56,"HIT_E").Next().Where({target:{ascension:4}}).mv.Mv(t.stat.DEF,.156,"HIT_Q","HIT_Q_DOT").Next().Build()}),Wm=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.072}]}],jm=l.Factory({Name:"GorouE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).observe.Party(!0).stat.Char(t.stat.DEF_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a)=>206.16*e*(ta(a)>=1?1:0)).Next().observe.Party(!0).stat.Char(t.stat.GEO_DMG).Values(.15).Map((e,a)=>e*(ta(a)>=3?1:0)).Build()}),fi=G.Factory({Name:"Gorou",Stars:4,Weapon:t.weapon.BOW,Element:t.stat.GEO_DMG,StatBonus:t.stat.GEO_DMG,BurstCost:80,Region:t.region.INAZUMA,HpBase:[802.3761,2870.8872],AtkBase:[15.31488,54.797653],DefBase:[54.36375,194.5125],Normals:Vm,Skills:Wm,Bursts:Km,Extra:[],Effects:[jm,xm,Um,Ym,Fm,km]}),zm=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7027}]}],qm=l.Factory({Name:"GanyuC1",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.CRYO_RES).Values(-.15).Build()}),$m=l.Factory({Name:"GanyuC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Qm=l.Factory({Name:"GanyuC4",ApplyOther:!0,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.05).Stacks().Build()}),Xm=l.Factory({Name:"GanyuC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Jm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3173}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.356}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4549}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4549}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4825}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5762}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.CRYO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_Frostflake",Element:t.stat.CRYO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.28}]},{Name:"HIT_FrostflakeBloom",Element:t.stat.CRYO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.176}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],Zm=l.Factory({Name:"GanyuA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.CRIT_RATE).Instance(/Frostflake/i).Values(.2).Build()}),tf=l.Factory({Name:"GanyuA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.CRYO_DMG).Values(.2).Build()}),ef=[{Name:T.hits.HIT_E,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.32}]}],Li=G.Factory({Name:"Ganyu",Stars:5,Weapon:t.weapon.BOW,Region:t.region.LIYUE,Element:t.stat.CRYO_DMG,StatBonus:t.stat.CRIT_DMG,BurstCost:60,HpBase:[762.656,3131.878],AtkBase:[26.068,107.04148],DefBase:[49.0606,201.474],Normals:Jm,Skills:ef,Bursts:zm,Extra:[],Effects:[Zm,tf,qm,$m,Qm,Xm]}),af=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.456}]},{Name:"HIT_LightfallSword",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:3.6705}]}],nf=l.Factory({Name:"EulaQ",MaxStacks:30,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.ATK,.7499,"HIT_LightfallSword").Map((e,a,n)=>{const s=Math.max(1,Math.min(15,a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)));return n.GetStacks()*e*o.TalentScaling.PHYSICAL_1A[s-1]}).Build()}),sf=l.Factory({Name:"EulaC1",OnApply:new l.Builder().stat.Char(t.stat.PHYSICAL_DMG).Values(.3).Build()}),rf=l.Factory({Name:"EulaC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),lf=l.Factory({Name:"EulaC4",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.25).Build()}),of=l.Factory({Name:"EulaC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),cf=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8973}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.9355}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.568}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.1264}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7183}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.688}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.244}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.8629}]}],Ef=l.Factory({Name:"EulaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Burst").Options({Name:"HIT_A1",Talent:t.stat.ELEMENTAL_BURST_DMG,Element:t.stat.PHYSICAL_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Talent:t.stat.ELEMENTAL_BURST_LEVEL,Stat:t.stat.ATK,Initial:3.6705*.5}]}).Build()}),Tf=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.464}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.456}]},{Name:"HIT_Icewhirl",Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.96}]}],_f=l.Factory({Name:"EulaE_1",MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT).Values(.3).Stacks().Build()}),uf=l.Factory({Name:"EulaE_2",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Enemy(t.stat.CRYO_RES,t.stat.PHYSICAL_RES).Values(-.16,-.17,-.18,-.19,-.2,-.21,-.22,-.23,-.24,-.25).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Build()}),pi=G.Factory({Name:"Eula",Stars:5,Weapon:t.weapon.CLAYMORE,Element:t.stat.CRYO_DMG,StatBonus:t.stat.CRIT_DMG,BurstCost:80,Region:t.region.MONDSTADT,HpBase:[1029.5856,4228.035],AtkBase:[26.6266,109.33523],DefBase:[58.45391,240.0489],Normals:cf,Skills:Tf,Bursts:af,Extra:[],Effects:[_f,uf,nf,Ef,sf,rf,lf,of]}),Af=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.04}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6}]},{Name:T.hits.HIT_Q_EXPLOSION,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.04}]}],Sf=l.Factory({Name:"DilucQ",OnApply:new l.Builder().infusion.Set(t.stat.PYRO_DMG,!1).Build()}),hf=l.Factory({Name:"DilucC1",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.15).Build()}),mf=l.Factory({Name:"DilucC2",MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.1).Stacks().Build()}),ff=l.Factory({Name:"DilucC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Lf=l.Factory({Name:"DilucC4",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.4).Build()}),pf=l.Factory({Name:"DilucC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Nf=l.Factory({Name:"DilucC6",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.3).Build()}),df=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.897}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8763}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.9881}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.3399}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.688}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.247}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8951}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.7897}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.2355}]}],Cf=l.Factory({Name:"DilucA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.PYRO_DMG).Values(.2).Build()}),Mf=[{Name:T.hits.HIT_E_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.944}]},{Name:T.hits.HIT_E_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.976}]},{Name:T.hits.HIT_E_3,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.288}]}],Ni=G.Factory({Name:"Diluc",Stars:5,Weapon:t.weapon.CLAYMORE,Element:t.stat.PYRO_DMG,StatBonus:t.stat.CRIT_RATE,BurstCost:40,Region:t.region.MONDSTADT,HpBase:[1010.5192,4149.7383],AtkBase:[26.068,107.04148],DefBase:[61.0266,250.614],Normals:df,Skills:Mf,Bursts:Af,Extra:[],Effects:[Sf,Cf,hf,mf,ff,Lf,pf,Nf]}),gf=[{Name:T.hits.HIT_N1+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7828}]},{Name:T.hits.HIT_N2+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8247}]},{Name:T.hits.HIT_N3+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0463}]},{Name:T.hits.HIT_N4+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5169}]},{Name:T.hits.HIT_N5+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.3084}]},{Name:T.hits.HIT_CHARGED+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0105}]},{Name:T.hits.HIT_PLUNGE+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Gf=l.Factory({Name:"CynoQ",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(100).Build()}),Rf=l.Factory({Name:"CynoC2",MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_DMG).Values(.1).Stacks().Build()}),If=l.Factory({Name:"CynoC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Of=l.Factory({Name:"CynoC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Df=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4926}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4792}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2931}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7589}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2238}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],vf=l.Factory({Name:"CynoA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:t.stat.ATK,Initial:.35,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Next().Where({target:{ascension:1}}).stat.Char(t.stat.ALL_DMG).Instance("HIT_E","HIT_E_2").Values(.35).Build()}),yf=new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.DMG_FLAT).Instance(/N\d_Q$/i).Values(1.5).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build(),Pf=l.Factory({Name:"CynoA4",OnApply(e,a,n){yf(e,a,n);const s=e.GetCharacter(),r=e.FindEffect("CynoA1");let i;if(!r)throw new Error("Cannot find Cyno A1");function c(){if(!i){const _=e.FindInstance("HIT_A1");if(!_)return;i=n.Modifier(_.Subject.CreateModifier(t.stat.DMG_FLAT,0))}!i||(s.GetAscension()>=4?i.SetValue(2.5*s.Get(t.stat.ELEMENTAL_MASTERY)):i.SetValue(0))}c();for(const _ of l.EffectEvent.Values())n.Observer(r.CreateObserver(_,c));return n.Observer(s.CreateObserver(t.stat.ELEMENTAL_MASTERY,c)),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),Hf=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.304}]},{Name:T.hits.HIT_E_2,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.568}]}],di=G.Factory({Name:"Cyno",Stars:5,Weapon:t.weapon.POLEARM,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.CRIT_DMG,BurstCost:80,Region:t.region.SUMERU,HpBase:[972.3864,3993.1443],AtkBase:[24.7646,101.68941],DefBase:[66.88994,274.6926],Normals:Df,Skills:Hf,Bursts:gf,Extra:[],Effects:[Gf,vf,Pf,Rf,If,Of]}),wf=[{Name:T.hits.HIT_Q,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.0182}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4325}]}],Bf=l.Factory({Name:"ColleiC1",OnApply:new l.Builder().stat.Char(t.stat.ENERGY_RECHARGE).Values(.2).Build()}),bf=l.Factory({Name:"ColleiC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Kf=l.Factory({Name:"ColleiC4",ApplyOther:!0,ApplySelf:!1,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60).Build()}),Yf=l.Factory({Name:"ColleiC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Ff=l.Factory({Name:"ColleiC6",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Initial:2}]}).Build()}),kf=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.436}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4266}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5409}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6803}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.DENDRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],Vf=l.Factory({Name:"ColleiA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Initial:.4}]}).Build()}),xf=[{Name:T.hits.HIT_E,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.512}]}],Ci=G.Factory({Name:"Collei",Stars:4,Weapon:t.weapon.BOW,Element:t.stat.DENDRO_DMG,StatBonus:t.stat.ATK_PERCENT,BurstCost:60,Region:t.region.SUMERU,HpBase:[820.6119,2936.1348],AtkBase:[16.73952,59.895107],DefBase:[50.358,180.18],Normals:kf,Skills:xf,Bursts:wf,Extra:[],Effects:[Vf,Bf,bf,Kf,Yf,Ff]}),Uf=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.424}]}],Wf=l.Factory({Name:"ChongyunC1",OnApply:new l.Builder().instance.Basic({Name:"HIT_C1",Element:t.stat.CRYO_DMG,Stat:t.stat.ATK,Values:[.5]}).Build()}),jf=l.Factory({Name:"ChongyunC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),zf=l.Factory({Name:"ChongyunC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),qf=l.Factory({Name:"ChongyunC6",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.15).Build()}),$f=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6312}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8032}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0122}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5629}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0178}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],Qf=l.Factory({Name:"ChongyunA4",ApplyOther:!0,OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Enemy(t.stat.CRYO_RES).Values(-.1).Build()}),Xf=[{Name:T.hits.HIT_E,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.7204}]}],Jf=l.Factory({Name:"ChongyunE",ApplyOther:!0,OnApply:new l.Builder().infusion.Set(t.stat.CRYO_DMG,!1).Build()}),Mi=G.Factory({Name:"Chongyun",Stars:4,Element:t.stat.CRYO_DMG,Weapon:t.weapon.CLAYMORE,StatBonus:t.stat.ATK_PERCENT,BurstCost:40,Region:t.region.LIYUE,HpBase:[920.90894,3294.9956],AtkBase:[18.6984,66.90411],DefBase:[54.36375,194.5125],Normals:$f,Skills:Xf,Bursts:Uf,Extra:[],Effects:[Jf,Qf,Wf,jf,zf,qf]}),Zf=l.Factory({Name:"IttoQ",OnApply:new l.Builder().observe.Target(t.stat.DEF_FLAT,t.stat.DEF_BASE,t.stat.DEF_PERCENT,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a)=>.576*e*a.GetCharacter().Get(t.stat.DEF)).Next().infusion.Set(t.stat.GEO_DMG,!0).Build()}),tL=l.Factory({Name:"IttoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),eL=l.Factory({Name:"IttoC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT,t.stat.ATK_PERCENT).Values(.2).Build()}),aL=l.Factory({Name:"IttoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nL=l.Factory({Name:"IttoC6",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_CRIT_DMG).Values(.7).Build()}),sL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7923}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7637}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9164}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1722}]},{Name:"HIT_KesagiriSlash",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9116}]},{Name:"HIT_KesagiriFinal",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.9092}]},{Name:"HIT_SaichimonjiSlash",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9047}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439}]}],rL=l.Factory({Name:"IttoA4",OnApply:new l.Builder().Where({target:{ascension:4}}).mv.Mv(t.stat.DEF,.35,/Kesagiri/i).Build()}),iL=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.072}]}],gi=G.Factory({Name:"Itto",Stars:5,Weapon:t.weapon.CLAYMORE,Element:t.stat.GEO_DMG,StatBonus:t.stat.CRIT_RATE,Region:t.region.INAZUMA,BurstCost:70,HpBase:[1000.986,4110.59],AtkBase:[17.689,72.63529],DefBase:[74.66784,306.6336],Normals:sL,Skills:iL,Bursts:[],Extra:[],Effects:[Zf,rL,tL,eL,aL,nL]}),lL=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.2808}]}],oL=l.Factory({Name:"AmberC1",OnApply:new l.Builder().instance.Location("Normal").Options({Name:"HIT_C1",Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.NORMAL_ATTACK_LEVEL,Stat:t.stat.ATK,Initial:1.24*.2}]}).Build()}),cL=l.Factory({Name:"AmberC2",OnApply:new l.Builder().mv.Mv(t.stat.ATK,2,/hit_e/i).Build()}),EL=l.Factory({Name:"AmberC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),TL=l.Factory({Name:"AmberC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),_L=l.Factory({Name:"AmberC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.15).Build()}),uL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3612}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3612}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4644}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.473}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5934}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],AL=l.Factory({Name:"AmberA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.1).Build()}),SL=l.Factory({Name:"AmberA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.ATK_PERCENT).Values(.15).Build()}),hL=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.232}]}],Gi=G.Factory({Name:"Amber",Stars:4,Weapon:t.weapon.BOW,Element:t.stat.PYRO_DMG,StatBonus:t.stat.ATK_PERCENT,BurstCost:40,Region:t.region.MONDSTADT,HpBase:[793.2582,2838.2634],AtkBase:[18.6984,66.90411],DefBase:[50.358,180.18],Normals:uL,Skills:hL,Bursts:lL,Extra:[],Effects:[AL,SL,oL,cL,EL,TL,_L]}),mL=l.Factory({Name:"AlhaithamA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.1/100).Map((e,a)=>Math.min(1,e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY))).Build()}),fL=[{Name:T.hits.HIT_Q,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.216},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:.9728}]}],LL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4953}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5075}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3418}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6677}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8385}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5526}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],pL=[{Name:T.hits.HIT_E,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.936},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.5488}]},{Name:T.hits.HIT_E_DOT+"_1",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.344}]},{Name:T.hits.HIT_E_DOT+"_2",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672*2},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.344*2}]},{Name:T.hits.HIT_E_DOT+"_3",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672*3},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.344*3}]}],NL=l.Factory({Name:"AlhaithamE",OnApply:new l.Builder().infusion.Set(t.stat.DENDRO_DMG,!0).Build()}),dL=l.Factory({Name:"AlhaithamC2",MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(50).Stacks().Build()}),CL=l.Factory({Name:"AlhaithamC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),ML=l.Factory({Name:"AlhaithamC4",MaxStacks:3,ApplyOther:!0,OnApply:new l.Builder().Where({target:{isOwner:!0}}).stat.Char(t.stat.DENDRO_DMG).Values(.1).Stacks().Next().Where({target:{isOwner:!1}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(30).Stacks().Build()}),gL=l.Factory({Name:"AlhaithamC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),GL=l.Factory({Name:"AlhaithamC6",OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.1).Next().stat.Char(t.stat.CRIT_DMG).Values(.7).Build()}),Ri=G.Factory({Name:"Alhaitham",Stars:5,Weapon:t.weapon.SWORD,Element:t.stat.DENDRO_DMG,StatBonus:t.stat.DENDRO_DMG,Region:t.region.SUMERU,BurstCost:70,AtkBase:[24.3922,100.16024],DefBase:[60.84711,249.8769],HpBase:[1039.1188,4267.1836],Normals:LL,Skills:pL,Bursts:fL,Extra:[],Effects:[NL,mL,dL,CL,ML,gL,GL]}),RL=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.672}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.72}]}],IL=l.Factory({Name:"AlbedoC2",MaxStacks:4,OnApply:new l.Builder().mv.Mv(t.stat.DEF,.3,/HIT_Q/i).Map((e,a,n)=>e*n.GetStacks()).Build()}),OL=l.Factory({Name:"AlbedoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),DL=l.Factory({Name:"AlbedoC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PLUNGE_ATTACK_DMG).Values(.3).Build()}),vL=l.Factory({Name:"AlbedoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),yL=l.Factory({Name:"AlbedoC6",ApplyOther:!0,OnApply:new l.Builder().Where({target:{shielded:!0}}).stat.Char(t.stat.ALL_DMG).Values(.17).Build()}),PL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3674}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3674}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4745}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4975}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6207}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.473}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.602}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],HL=l.Factory({Name:"AlbedoA1",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindSkill(T.hits.HIT_E_DOT);if(!r)throw new Error("Cannot find Albedo Skill");const i=n.Modifier(r.Subject.CreateModifier(t.stat.ALL_DMG,0));function c(){s.GetAscension()>=1?i.SetValue(.25):i.SetValue(0)}return c(),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),wL=l.Factory({Name:"AlbedoA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(125).Build()}),BL=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.304}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:1.336}]}],Ii=G.Factory({Name:"Albedo",Element:t.stat.GEO_DMG,Stars:5,Weapon:t.weapon.SWORD,StatBonus:t.stat.GEO_DMG,Region:t.region.MONDSTADT,AtkBase:[19.551,80.28111],DefBase:[68.2062,280.098],HpBase:[1029.5856,4228.035],BurstCost:40,Normals:PL,Skills:BL,Bursts:RL,Extra:[],Effects:[HL,wL,IL,OL,DL,vL,yL]}),bL=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.216}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.96}]}],KL=l.Factory({Name:"BeidouC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),YL=l.Factory({Name:"BeidouC4",ApplySelf:!0,OnApply:new l.Builder().instance.Options({Name:"HIT_C4",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.2,Talent:t.stat.NONE,Scaling:o.TalentScaling.NONE}]}).Build()}),FL=l.Factory({Name:"BeidouC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),kL=l.Factory({Name:"BeidouC6",ApplySelf:!0,ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.ELECTRO_RES).Values(-.15).Build()}),VL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7112}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7086}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8832}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8652}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.1214}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5624}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.0182}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],xL=l.Factory({Name:"BeidouA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.15).Build()}),UL=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.216}]}],WL=l.Factory({Name:"BeidouE",MaxStacks:2,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Mv(t.stat.ATK,.96,T.hits.HIT_E).Map((e,a,n)=>{const s=n.GetStacks(),r=a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1,i=o.TalentScaling.ELEMENTAL_1[r];return e*i*s}).Build()}),Oi=G.Factory({Name:"Beidou",Stars:4,Weapon:t.weapon.CLAYMORE,Element:t.stat.ELECTRO_DMG,Region:t.region.LIYUE,StatBonus:t.stat.ELECTRO_DMG,AtkBase:[18.87648,67.54129],DefBase:[54.36375,194.5125],HpBase:[1094.1492,3914.8462],BurstCost:80,Normals:VL,Skills:UL,Bursts:bL,Extra:[],Effects:[WL,xL,KL,YL,FL,kL]}),jL=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.5427}]}],zL=l.Factory({Name:"XingqiuC2",ApplySelf:!0,ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.HYDRO_RES).Values(-.15).Build()}),qL=l.Factory({Name:"XingqiuC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),$L=l.Factory({Name:"XingqiuC4",ApplySelf:!0,OnApply:new l.Builder().mv.Multiplier(1.5,/^HIT_E_/i).Build()}),QL=l.Factory({Name:"XingqiuC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),XL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4661}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4764}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2855}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5599}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3586}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.473}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5616}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],JL=l.Factory({Name:"XingqiuA4",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.HYDRO_DMG).Where({owner:{ascension:4}}).Values(.2).Build()}),ZL=[{Name:T.hits.HIT_E_1,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.68}]},{Name:T.hits.HIT_E_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.912}]}],Di=G.Factory({Name:"Xingqiu",Stars:4,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.SWORD,Region:t.region.LIYUE,HpBase:[857.08356,3066.6296],AtkBase:[16.9176,60.53229],DefBase:[63.51975,227.2725],StatBonus:t.stat.ATK_PERCENT,Normals:XL,Skills:ZL,Bursts:jL,Extra:[],Effects:[JL,zL,qL,$L,QL],BurstCost:80}),tp=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_2,Stat:t.stat.ATK,Initial:3.0327}]}],ep=l.Factory({Name:"HuTaoQ",OnApply:new l.Builder().mv.Where({target:{hp:{leq:.5}}}).Multiplier(3.7909/3.0327,"HIT_Q").Build()}),ap=l.Factory({Name:"HuTaoC2",ApplySelf:!0,OnApply:new l.Builder().mv.Mv(t.stat.HP,.1,"HIT_E").Build()}),np=l.Factory({Name:"HuTaoC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),sp=l.Factory({Name:"HuTaoC4",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.12).Build()}),rp=l.Factory({Name:"HuTaoC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),ip=l.Factory({Name:"HuTaoC6",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(1).Build()}),lp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.4689}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.4825}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6105}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6564}]},{Name:T.hits.HIT_N5_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.3327}]},{Name:T.hits.HIT_N5_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.352}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.8596}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.3596}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6542}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.3081}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.6339}]}],op=l.Factory({Name:"HuTaoA1",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Where({owner:{ascension:1}}).Values(.12).Build()}),cp=l.Factory({Name:"HuTaoA4",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Where({owner:{ascension:4,hp:{leq:.5}}}).Values(.33).Build()}),Ep=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.64}]}],Tp=l.Factory({Name:"HuTaoE",ApplySelf:!0,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP,t.stat.ATK_BASE,t.stat.HP_BASE,t.stat.HP_FLAT,t.stat.HP_PERCENT).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_2).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a)=>{const n=a.GetCharacter(),s=.0384*e*n.Get(t.stat.HP),r=n.Get(t.stat.ATK_BASE)*4;return Math.max(0,Math.min(r,s))}).Next().infusion.Set(t.stat.PYRO_DMG,!0).Build()}),vi=G.Factory({Name:"HuTao",Element:t.stat.PYRO_DMG,Region:t.region.LIYUE,Stars:5,Weapon:t.weapon.POLEARM,HpBase:[1210.7164,4971.856],AtkBase:[8.2859,34.0239],DefBase:[68.2062,280.098],StatBonus:t.stat.CRIT_DMG,Normals:lp,Skills:Ep,Bursts:tp,Extra:[],Effects:[Tp,ep,op,cp,ap,np,sp,rp,ip],BurstCost:60}),_p=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0731}]},{Name:T.hits.HIT_Q+"_THROW",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0487}]}],up=l.Factory({Name:"YelanC2",OnApply:new l.Builder().instance.Options({Name:"HIT_C2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.14,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build()}),Ap=l.Factory({Name:"YelanC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Sp=l.Factory({Name:"YelanC4",MaxStacks:4,ApplySelf:!0,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.1).Stacks().Build()}),hp=l.Factory({Name:"YelanC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),mp=l.Factory({Name:"YelanC6",OnApply:new l.Builder().instance.Options({Name:"HIT_C6",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:1.56*.1158,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),fp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4068}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3904}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.516}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3251}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_BREAKTHROUGH_BARB",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1158}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],Lp=l.Factory({Name:"YelanA1",ApplySelf:!0,OnApply:new l.Builder().observe.Party(!0).stat.Char(t.stat.HP_PERCENT).Where({owner:{ascension:1}}).Values(.06,.12,.18,.3).Rank(e=>{const a=e.GetParty();if(!a)return 1;const n=a.GetMembers(),s=new Map;for(const i of n)s.set(i.GetCharacter().Options.Element,!0);let r=0;for(const i of s.values())i&&r++;return r}).Build()}),pp=l.Factory({Name:"YelanA4",ApplySelf:!0,ApplyOther:!0,MaxTargets:1,MaxStacks:15,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Where({owner:{ascension:4}}).Values(.01).Next().stat.Char(t.stat.ALL_DMG).Where({owner:{ascension:4}}).Values(.035).Stacks().Map(e=>Math.min(.5,e)).Build()}),Np=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.2261}]}],yi=G.Factory({Name:"Yelan",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.BOW,Region:t.region.LIYUE,BurstCost:70,HpBase:[1124.9176,4619.52],AtkBase:[18.9924,77.987366],DefBase:[42.65879,175.1841],StatBonus:t.stat.CRIT_RATE,Normals:fp,Skills:Np,Bursts:_p,Extra:[],Effects:[Lp,pp,up,Ap,Sp,hp,mp]}),dp=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:[1,1.108,1.216,1.351,1.473,1.595,1.757,1.919,2.081,2.243,2.405,2.568,2.703,2.838,2.973],Stat:t.stat.ATK,Initial:4.0108}]}],Cp=l.Factory({Name:"ZhongliC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Mp=l.Factory({Name:"ZhongliC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),gp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3077}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3115}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3858}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4294}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.1075}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.545}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.1103}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Gp=l.Factory({Name:"ZhongliA4",ApplySelf:!0,OnApply:new l.Builder().Where({target:{ascension:4}}).mv.Mv(t.stat.HP,.0139,/HIT_(N(\d)|CHARGED|PLUNGE)/).Next().Where({target:{ascension:4}}).mv.Mv(t.stat.HP,.019,/HIT_E/).Next().Where({target:{ascension:4}}).mv.Mv(t.stat.HP,.33,/HIT_Q/).Build()}),Rp=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.16}]},{Name:T.hits.HIT_E+"_RESONANCE",Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.32}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.8}]}],Ip=l.Factory({Name:"ZhongliE",ApplySelf:!0,ApplyOther:!0,OnApply:(e,a,n)=>{const s=t.Elements;for(const r of s){const i=t.DmgToRes(r);n.Modifier(e.GetCharacter().GetEnemy().Subject.CreateModifier(i,-.2))}return()=>0}}),Pi=G.Factory({Name:"Zhongli",Stars:5,Element:t.stat.GEO_DMG,Weapon:t.weapon.POLEARM,Region:t.region.LIYUE,HpBase:[1143.984,4697.817],AtkBase:[19.551,80.2811],DefBase:[57.4368,235.872],StatBonus:t.stat.GEO_DMG,BurstCost:40,Normals:gp,Skills:Rp,Bursts:dp,Extra:[],Effects:[Ip,Gp,Cp,Mp]}),Op=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.008}]},{Name:T.hits.HIT_N1+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4447}]},{Name:T.hits.HIT_N2+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4396}]},{Name:T.hits.HIT_N3+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.5382}]},{Name:T.hits.HIT_N4+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.3089}]},{Name:T.hits.HIT_N5+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7394}]},{Name:T.hits.HIT_CHARGED_1+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.616}]},{Name:T.hits.HIT_CHARGED_2+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7436}]},{Name:T.hits.HIT_PLUNGE+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Dp=l.Factory({Name:"RaidenQ",MaxStacks:60,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.ATK,.0389,T.hits.HIT_Q).Map((e,a,n)=>n.GetStacks()*e*o.TalentScaling.ELEMENTAL_1[Math.max(0,Math.min(o.TalentScaling.ELEMENTAL_1.length-1,a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1))]).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.ATK,.0073,/_.+_Q$/).Map((e,a,n)=>n.GetStacks()*e*o.TalentScaling.ELEMENTAL_1[Math.max(0,Math.min(o.TalentScaling.ELEMENTAL_1.length-1,a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1))]).Build()}),vp=l.Factory({Name:"RaidenC2",OnApply:new l.Builder().stat.Char(t.stat.DEFIGNORED).Values(.6).Build()}),yp=l.Factory({Name:"RaidenC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Pp=l.Factory({Name:"RaidenC4",ApplyOther:!0,ApplySelf:!1,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.3).Build()}),Hp=l.Factory({Name:"RaidenC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3965}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3973}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4988}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2898}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6545}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9959}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Bp=l.Factory({Name:"RaidenA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ENERGY_RECHARGE).stat.Char(t.stat.ELECTRO_DMG).Values(.4).Map((e,a)=>e*Math.max(0,a.GetCharacter().Get(t.stat.ENERGY_RECHARGE)-1)).Build()}),bp=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.172}]},{Name:T.hits.HIT_E+"_COORDINATED",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.42}]}],Kp=l.Factory({Name:"RaidenE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.0022,.0023,.0024,.0025,.0026,.0027,.0028,.0029,.003).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a)=>e*a.GetCharacter().Options.BurstCost).Build()}),Hi=G.Factory({Name:"Raiden",Stars:5,Weapon:t.weapon.POLEARM,Region:t.region.INAZUMA,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,BurstCost:90,AtkBase:[26.2542,107.80606],DefBase:[61.44541,252.3339],HpBase:[1004.79926,4126.249],Normals:wp,Skills:bp,Bursts:Op,Extra:[],Effects:[Kp,Dp,Bp,vp,yp,Pp,Hp]}),Yp=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.328}]}],Fp=l.Factory({Name:"BennettQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ATK_BASE,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a,n)=>{const s=n.Owner.FindEffect("BennettC1");return(.56*e+(s&&s.Enabled()?.2:0))*n.Owner.GetCharacter().Get(t.stat.ATK_BASE)}).Build()}),kp=l.Factory({Name:"BennettC1",OnApply(e,a,n){const s=e.FindEffect("BennettQ");if(!s)throw new Error("Bennett Burst effect not found");const r=s;function i(){r.Enabled()&&(r.Disable(),r.Enable())}return i(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_TARGET,i)),()=>0}}),Vp=l.Factory({Name:"BennettC2",OnApply:new l.Builder().Where({target:{hp:{leq:.7}}}).stat.Char(t.stat.ENERGY_RECHARGE).Values(.3).Build()}),xp=l.Factory({Name:"BennettC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Up=l.Factory({Name:"BennettC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Wp=l.Factory({Name:"BennettC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Values(.15).Next().Where({target:{weapon:[t.weapon.CLAYMORE,t.weapon.SWORD,t.weapon.POLEARM]}}).infusion.Set(t.stat.PYRO_DMG,!1).Build()}),jp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4455}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4274}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5461}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5968}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.719}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.559}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6072}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],zp=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.376}]},{Name:T.hits.HIT_E_1_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.84}]},{Name:T.hits.HIT_E_1_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.92}]},{Name:T.hits.HIT_E_2_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.88}]},{Name:T.hits.HIT_E_2_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.96}]},{Name:T.hits.HIT_E_EXPLOSION,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.32}]},{Name:"HIT_C4",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.92*1.35}]}],wi=G.Factory({Name:"Bennett",Stars:4,Weapon:t.weapon.SWORD,Element:t.stat.PYRO_DMG,Region:t.region.MONDSTADT,StatBonus:t.stat.ENERGY_RECHARGE,BurstCost:60,HpBase:[1039.4418,3719.104],AtkBase:[16.0272,57.34638],DefBase:[64.66425,231.3675],Normals:jp,Skills:zp,Bursts:Yp,Effects:[Fp,kp,Vp,xp,Up,Wp],Extra:[]}),qp=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.08}]}],$p=l.Factory({Name:"FischlC1",OnApply:new l.Builder().instance.Options({Name:"HIT_C1",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:.22,Talent:t.stat.NONE}]}).Build()}),Qp=l.Factory({Name:"FischlC2",OnApply:new l.Builder().mv.Mv(t.stat.ATK,2,/HIT_E$/).Build()}),Xp=l.Factory({Name:"FischlC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Jp=l.Factory({Name:"FischlC4",OnApply:new l.Builder().instance.Options({Name:"HIT_C4",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:2.22,Talent:t.stat.NONE}]}).Build()}),Zp=l.Factory({Name:"FischlC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),t1=l.Factory({Name:"FischlC6",OnApply:new l.Builder().instance.Options({Name:"HIT_C6",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:.3,Talent:t.stat.NONE}]}).Build()}),e1=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4412}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4678}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5814}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5771}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7207}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],a1=l.Factory({Name:"FischlA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Options({Name:"HIT_A1",Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24*1.527,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),n1=l.Factory({Name:"FischlA4",OnApply:new l.Builder().Where({target:{ascension:4}}).instance.Options({Name:"HIT_A4",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:.8,Talent:t.stat.NONE}]}).Build()}),s1=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1544}]},{Name:"HIT_OZ",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.888}]}],Bi=G.Factory({Name:"Fischl",Stars:4,Element:t.stat.ELECTRO_DMG,Region:t.region.MONDSTADT,Weapon:t.weapon.BOW,StatBonus:t.stat.ATK_PERCENT,AtkBase:[20.4792,73.27593],HpBase:[770.4634,2756.704],DefBase:[49.78575,178.1325],BurstCost:60,Normals:e1,Skills:s1,Bursts:qp,Extra:[],Effects:[a1,n1,$p,Qp,Xp,Jp,Zp,t1]}),r1=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.624}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2}]}],i1=l.Factory({Name:"KazuhaQ",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){l1(e,a,n);function s(){const r=e.FindBurst(T.hits.HIT_Q+"_ADDITIONAL");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),l1=new l.Builder().instance.Location("Burst").Options({Name:T.hits.HIT_Q+"_ADDITIONAL",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.36,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),o1=l.Factory({Name:"KazuhaC2",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(200).Build()}),c1=l.Factory({Name:"KazuhaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),E1=l.Factory({Name:"KazuhaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),T1=l.Factory({Name:"KazuhaC6",OnApply:new l.Builder().infusion.Set(t.stat.ANEMO_DMG,!1).Build()}),_1=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4498}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4524}]},{Name:T.hits.HIT_N3_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.258}]},{Name:T.hits.HIT_N3_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3096}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6072}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2537}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.43}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7465}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439}]}],u1=l.Factory({Name:"KazuhaA1",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){A1(e,a,n);function s(){const r=e.FindNormal("HIT_A1");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),A1=new l.Builder().Where({target:{ascension:1}}).instance.Location("Normal").Options({Name:"HIT_A1",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:2,Talent:t.stat.NONE}]}).Build(),S1=l.Factory({Name:"KazuhaA4",ApplyOther:!0,MaxAuras:1/0,ValidAuras:t.Swirlable,OnApply(e,a,n){const s=a.Owner.GetCharacter(),r=e.GetCharacter(),i=t.Elements.filter(_=>_!==t.stat.PHYSICAL_DMG).map(_=>n.Modifier(r.CreateModifier(_,0)));function c(){const _=a.GetAuras().map(u=>t.AuraToDmg(u));for(const u of i)_.includes(u.GetProp())&&s.GetAscension()>=4?u.SetValue(.04/100*s.Get(t.stat.ELEMENTAL_MASTERY)):u.SetValue(0)}return c(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,c)),n.Observer(s.CreateObserver(t.stat.ELEMENTAL_MASTERY,c)),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),h1=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.92}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.608}]}],m1=l.Factory({Name:"KazuhaE",OnApply:new l.Builder().instance.Location("Normal").Options({Name:T.hits.HIT_PLUNGE+"_E",Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Next().instance.Location("Normal").Options({Name:T.hits.HIT_PLUNGE_LOW+"_E",Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Next().instance.Location("Normal").Options({Name:T.hits.HIT_PLUNGE_HIGH+"_E",Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),bi=G.Factory({Name:"Kazuha",Stars:5,Weapon:t.weapon.SWORD,Region:t.region.INAZUMA,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.ELEMENTAL_MASTERY,BurstCost:60,HpBase:[1039.1188,4267.1836],AtkBase:[23.0888,94.80817],DefBase:[62.8215,257.985],Normals:_1,Skills:h1,Bursts:r1,Extra:[],Effects:[m1,i1,u1,S1,o1,c1,E1,T1]}),f1=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.096}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.3412}]}],L1=l.Factory({Name:"SaraC2",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C2",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2576*.3,Talent:t.stat.ELEMENTAL_SKILL_LEVEL}]}).Build()}),p1=l.Factory({Name:"SaraC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),N1=l.Factory({Name:"SaraC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),d1=l.Factory({Name:"SaraC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_CRIT_DMG).Values(.6).Build()}),C1=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3689}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.387}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.485}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.504}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.585}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],M1=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2576}]}],g1=l.Factory({Name:"SaraE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ATK_BASE,t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a,n)=>.4296*e*n.Owner.GetCharacter().Get(t.stat.ATK_BASE)).Build()}),Ki=G.Factory({Name:"Sara",Stars:4,Weapon:t.weapon.BOW,Region:t.region.INAZUMA,Element:t.stat.ELECTRO_DMG,BurstCost:80,HpBase:[802.3761,2870.8872],AtkBase:[16.38336,58.620743],DefBase:[52.647,188.37],StatBonus:t.stat.ATK_PERCENT,Normals:C1,Skills:M1,Bursts:f1,Extra:[],Effects:[g1,L1,p1,N1,d1]}),G1=[{Name:T.hits.HIT_N1,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.403}]},{Name:T.hits.HIT_N2,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3697}]},{Name:T.hits.HIT_N3,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4587}]},{Name:T.hits.HIT_N4,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5841}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.DENDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.32}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.DENDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.DENDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.DENDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],R1=l.Factory({Name:"NahidaA1",ApplyOther:!0,MaxTargets:1,OnApply(e,a,n){const s=e.GetCharacter(),r=a.Owner.GetCharacter(),i=n.Modifier(s.CreateModifier(t.stat.ELEMENTAL_MASTERY,0));let c=[];const _=[];function u(S){if(S===i)return;if(r.Get(t.stat.ASCENSION)<1){i.SetValue(0);return}let h=0,m=s;for(const N of c){const L=N.Get(t.stat.ELEMENTAL_MASTERY);L>h&&(h=L,m=N)}m===s&&(h-=i.GetValue());const f=Math.min(250,Math.max(0,.25*h));i.SetValue(f)}function A(){_.forEach(h=>h.Remove());const S=e.GetParty();if(!S)c=[s];else{c=[];for(const h of S.GetMembers())c.push(h.GetCharacter())}for(const h of c)_.push(n.Observer(h.CreateObserver(t.stat.ELEMENTAL_MASTERY,u)));u()}return A(),n.Observer(e.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,A)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,A)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,A)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_CONDITIONS,A)),n.Observer(r.CreateObserver(t.stat.LEVEL,u)),n.Observer(r.CreateObserver(t.stat.ASCENSION,u)),()=>0}}),I1=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.984}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.304}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.032},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:2.064}]}],O1=l.Factory({Name:"NahidaA4",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindSkill(T.hits.HIT_E_DOT);if(!r)throw new Error("Cannot find Nahida Skill");const i=n.Modifier(r.Subject.CreateModifier(t.stat.ALL_DMG,0)),c=n.Modifier(r.Subject.CreateModifier(t.stat.CRIT_RATE,0));let _,u;function A(){if(s.GetAscension()<4){i.SetValue(0),c.SetValue(0),_&&_.SetValue(0),u&&u.SetValue(0);return}const S=e.FindSkill("HIT_C6");S&&(_||(_=n.Modifier(S.Subject.CreateModifier(t.stat.ALL_DMG,0))),u||(u=n.Modifier(S.Subject.CreateModifier(t.stat.CRIT_RATE,0))));const h=Math.max(0,s.Get(t.stat.ELEMENTAL_MASTERY)-200),m=Math.min(.24,h*.03/100),f=Math.min(.8,h*.1/100);i.SetValue(f),c.SetValue(m),_&&_.SetValue(f),u&&u.SetValue(m)}return A(),n.Observer(s.CreateObserver(t.stat.ELEMENTAL_MASTERY,A)),n.Observer(s.CreateObserver(t.stat.LEVEL,A)),n.Observer(s.CreateObserver(t.stat.ASCENSION,A)),()=>0}}),D1=l.Factory({Name:"NahidaQ",OnApply(e,a,n){const s=e.FindSkill(T.hits.HIT_E_DOT);if(!s)throw new Error("Cannot find Nahida Skill");const r=n.Modifier(s.Subject.CreateModifier(t.stat.ALL_DMG,0));let i;function c(){const _=e.GetParty();if(!_){r.SetValue(0),i&&i.SetValue(0);return}const u=e.FindSkill("HIT_C6");u&&!i&&(i=n.Modifier(u.Subject.CreateModifier(t.stat.ALL_DMG,0)));const A=e.FindEffect("NahidaC1");let h=A&&A.Enabled()&&A.GetTargets().includes(e)?1:0;for(const N of _.GetMembers())N.GetCharacter().Options.Element===t.stat.PYRO_DMG&&h++;let m=0;h>=1&&(m=.1488),h>=2&&(m=.2232);const f=m*o.TalentScaling.ELEMENTAL_1[e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1];r.SetValue(f),i&&i.SetValue(f)}return c(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,c)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,c)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ELEMENTAL_BURST_LEVEL,c)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ELEMENTAL_BURST_LEVEL_UP,c)),n.Observer(e.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,c)),()=>0}}),v1=l.Factory({Name:"NahidaC1",OnApply(e,a,n){const s=e.FindEffect("NahidaQ");if(!s)throw new Error("Nahida Burst effect not found");const r=s;function i(){r.Enabled()&&(r.Disable(),r.Enable())}return i(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_TARGET,i)),()=>0}}),y1=l.Factory({Name:"NahidaC2",ApplyOther:!0,MaxAuras:1,ValidAuras:[t.aura.QUICKEN],OnApply(e,a,n){P1(e,a,n);const r=["BURGEON","BLOOM","HYPERBLOOM","BURNING"].map(i=>e.FindTr("HIT_"+i));for(const i of r)!i||(n.Modifier(i.Subject.CreateModifier(t.stat.CRIT_RATE,.2)),n.Modifier(i.Subject.CreateModifier(t.stat.CRIT_DMG,1)));return()=>0}}),P1=new l.Builder().Where({effect:{aura:[t.aura.QUICKEN]}}).stat.Enemy(t.stat.DEFREDUCTION).Values(.3).Build(),H1=l.Factory({Name:"NahidaC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),w1=l.Factory({Name:"NahidaC4",MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Stacks([0,100,120,140,160]).Build()}),B1=l.Factory({Name:"NahidaC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),b1=l.Factory({Name:"NahidaC6",OnApply(e,a,n){K1(e,a,n);function s(){const r=e.FindEffect("NahidaQ"),i=e.FindEffect("NahidaA4");r&&r.Enabled()&&(r.Disable(),r.Enable()),i&&i.Enabled()&&(i.Disable(),i.Enable())}return s(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,s)),()=>0}}),K1=new l.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Talent:t.stat.NONE,Initial:2},{Scaling:o.TalentScaling.NONE,Stat:t.stat.ELEMENTAL_MASTERY,Talent:t.stat.NONE,Initial:4}]}).Build(),Yi=G.Factory({Name:"Nahida",Stars:5,Element:t.stat.DENDRO_DMG,Region:t.region.SUMERU,Weapon:t.weapon.CATALYST,StatBonus:t.stat.ELEMENTAL_MASTERY,BurstCost:50,HpBase:[806.5087,3311.961],AtkBase:[23.275,95.57275],DefBase:[49.0606,201.474],Normals:G1,Skills:I1,Bursts:[],Extra:[],Effects:[D1,R1,O1,v1,y1,H1,w1,B1,b1]}),ea=new Q(e=>e.Name);ea.AddList(Object.values(Fr).sort((e,a)=>e.Name.localeCompare(a.Name)));function Fi(){return ea.Get()}function Y1(e){return ea.Find(e)}var et={};D(et,{Akuoumaru:()=>Tl,AlleyHunter:()=>Po,AmberBead:()=>Tc,AmenomaKageuchi:()=>to,AmosBow:()=>Mo,AquaSimulacra:()=>No,AquilaFavonia:()=>ql,BalladOfTheFjords:()=>al,BeaconOfTheReedSea:()=>ol,BlackTassel:()=>bc,BlackcliffAgate:()=>rc,BlackcliffLongsword:()=>so,BlackcliffPole:()=>Yc,BlackcliffSlasher:()=>Sl,BlackcliffWarbow:()=>sl,BloodtaintedGreatsword:()=>hl,CalamityQueller:()=>fc,CinnabarSpindle:()=>Zl,CompoundBow:()=>wo,CoolSteel:()=>fo,CrescentPike:()=>Oc,DarkIronSword:()=>Ao,Deathmatch:()=>Fc,DebateClub:()=>ml,DodocoTales:()=>ac,DragonsBane:()=>vc,DragonspineSpear:()=>Rc,ElegyForTheEnd:()=>Pc,EmeraldOrb:()=>uc,EndOfTheLine:()=>go,EngulfingLightning:()=>Mc,EverlastingMoonglow:()=>$o,EyeOfPerception:()=>sc,FadingTwilight:()=>yo,FavoniusCodex:()=>Ec,FavoniusGreatsword:()=>fl,FavoniusLance:()=>wc,FavoniusSword:()=>xc,FavoniusWarbow:()=>Uc,FerrousShadow:()=>Ll,FesteringDesire:()=>eo,FilletBlade:()=>So,FinaleOfTheDeep:()=>$i,FindByName:()=>Q1,FleuveCendreFerryman:()=>Qi,FlowingPurity:()=>qi,ForestRegalia:()=>dl,FreedomSworn:()=>kl,Frostbearer:()=>nc,FruitOfFulfillment:()=>Zo,GetByType:()=>X1,GetList:()=>zc,HakushinRing:()=>ec,Halberd:()=>Dc,Hamayumi:()=>Oo,HaranGeppakuFutsu:()=>Ul,HarbingerOfDawn:()=>mo,HuntersPath:()=>Lo,IbisPiercer:()=>rl,IronSting:()=>ro,JadeCutter:()=>jl,JadeSpear:()=>Lc,JadefallSplendor:()=>il,KagotsurubeIsshin:()=>Jl,KagurasVerity:()=>qo,KatsuragikiriNagamasa:()=>Cl,KeyOfKhajNisut:()=>xl,KingsSquire:()=>Go,KitainCrossSpear:()=>Gc,LightOfFoliarIncision:()=>Vl,LionsRoar:()=>lo,LithicBlade:()=>gl,LithicSpear:()=>Ic,LostPrayer:()=>Xo,LuxuriousSeaLord:()=>pl,MagicGuide:()=>hc,MailedFlower:()=>ll,MakhairaAquamarine:()=>Al,MappaMare:()=>ic,MemoryOfDust:()=>Qo,Messenger:()=>Fo,MissiveWindspear:()=>dc,MistsplitterReforged:()=>Wl,MitternachtsWaltz:()=>vo,Moonpiercer:()=>Cc,MouunsMoon:()=>Ro,OathswornEye:()=>tc,OtherworldlyStory:()=>Ac,PolarStar:()=>Co,Predator:()=>Io,PrototypeAmber:()=>lc,PrototypeArchaic:()=>Rl,PrototypeCrescent:()=>Bo,PrototypeRancour:()=>io,PrototypeStarglitter:()=>Kc,Rainslasher:()=>Il,RavenBow:()=>Uo,RecurveBow:()=>Vo,RedhornStonethresher:()=>Ol,RightfulReward:()=>ji,RoyalBow:()=>To,RoyalGreatsword:()=>Dl,RoyalGrimoire:()=>co,RoyalLongsword:()=>_o,RoyalSpear:()=>Eo,Rust:()=>bo,SacrificialBow:()=>Ko,SacrificialFragments:()=>cc,SacrificialGreatsword:()=>vl,SacrificialJade:()=>Zi,SacrificialSword:()=>yc,SapwoodBlade:()=>Xl,ScionOfTheBlazingSun:()=>tl,SerpentSpine:()=>Fl,SharpshootersOath:()=>xo,SkyriderGreatsword:()=>yl,SkyriderSword:()=>uo,SkywardAtlas:()=>Jo,SkywardBlade:()=>kc,SkywardHarp:()=>Vc,SkywardPride:()=>Pl,SkywardSpine:()=>Nc,Slingshot:()=>ko,SnowTombedStarsilver:()=>Hl,SolarPearl:()=>oc,SongOfBrokenPines:()=>Gl,SongOfStillness:()=>zi,SplendorOfTranquilWaters:()=>Ui,StaffOfHoma:()=>Hc,StaffOfTheScarletSands:()=>mc,SummitShaper:()=>zl,SwordOfDescension:()=>ao,TalkingStick:()=>el,TheAlleyFlash:()=>no,TheBell:()=>wl,TheBlackSword:()=>cl,TheCatch:()=>El,TheFirstGreatMagic:()=>nl,TheFlute:()=>oo,TheStringless:()=>Yo,TheUnforged:()=>Bl,TheViridescentHunt:()=>Ho,TheWidsith:()=>Wc,ThousandFloatingDreams:()=>jo,ThrillingTalesOfDragonSlayers:()=>Sc,ThunderingPulse:()=>po,TidalShadow:()=>Xi,TomeOfTheEternalFlow:()=>Wi,ToukabouShigure:()=>$l,TravelersHandySword:()=>ho,TulaytullahsRemembrance:()=>Wo,TwinNephrite:()=>_c,UltimateOverlordsMegaMagicSword:()=>Vi,Veredict:()=>xi,VortexVanquisher:()=>pc,WanderingEvenstar:()=>zo,WavebreakerFin:()=>gc,WhiteIronGreatsword:()=>Kl,WhiteTassel:()=>Bc,Whiteblind:()=>bl,WindblumeOde:()=>Do,WineAndSong:()=>_l,WolfFang:()=>Ji,WolfsGravestone:()=>Yl,XiphosMoonlight:()=>Ql});var ki={};D(ki,{Akuoumaru:()=>Tl,AlleyHunter:()=>Po,AmberBead:()=>Tc,AmenomaKageuchi:()=>to,AmosBow:()=>Mo,AquaSimulacra:()=>No,AquilaFavonia:()=>ql,BalladOfTheFjords:()=>al,BeaconOfTheReedSea:()=>ol,BlackTassel:()=>bc,BlackcliffAgate:()=>rc,BlackcliffLongsword:()=>so,BlackcliffPole:()=>Yc,BlackcliffSlasher:()=>Sl,BlackcliffWarbow:()=>sl,BloodtaintedGreatsword:()=>hl,CalamityQueller:()=>fc,CinnabarSpindle:()=>Zl,CompoundBow:()=>wo,CoolSteel:()=>fo,CrescentPike:()=>Oc,DarkIronSword:()=>Ao,Deathmatch:()=>Fc,DebateClub:()=>ml,DodocoTales:()=>ac,DragonsBane:()=>vc,DragonspineSpear:()=>Rc,ElegyForTheEnd:()=>Pc,EmeraldOrb:()=>uc,EndOfTheLine:()=>go,EngulfingLightning:()=>Mc,EverlastingMoonglow:()=>$o,EyeOfPerception:()=>sc,FadingTwilight:()=>yo,FavoniusCodex:()=>Ec,FavoniusGreatsword:()=>fl,FavoniusLance:()=>wc,FavoniusSword:()=>xc,FavoniusWarbow:()=>Uc,FerrousShadow:()=>Ll,FesteringDesire:()=>eo,FilletBlade:()=>So,FinaleOfTheDeep:()=>$i,FleuveCendreFerryman:()=>Qi,FlowingPurity:()=>qi,ForestRegalia:()=>dl,FreedomSworn:()=>kl,Frostbearer:()=>nc,FruitOfFulfillment:()=>Zo,HakushinRing:()=>ec,Halberd:()=>Dc,Hamayumi:()=>Oo,HaranGeppakuFutsu:()=>Ul,HarbingerOfDawn:()=>mo,HuntersPath:()=>Lo,IbisPiercer:()=>rl,IronSting:()=>ro,JadeCutter:()=>jl,JadeSpear:()=>Lc,JadefallSplendor:()=>il,KagotsurubeIsshin:()=>Jl,KagurasVerity:()=>qo,KatsuragikiriNagamasa:()=>Cl,KeyOfKhajNisut:()=>xl,KingsSquire:()=>Go,KitainCrossSpear:()=>Gc,LightOfFoliarIncision:()=>Vl,LionsRoar:()=>lo,LithicBlade:()=>gl,LithicSpear:()=>Ic,LostPrayer:()=>Xo,LuxuriousSeaLord:()=>pl,MagicGuide:()=>hc,MailedFlower:()=>ll,MakhairaAquamarine:()=>Al,MappaMare:()=>ic,MemoryOfDust:()=>Qo,Messenger:()=>Fo,MissiveWindspear:()=>dc,MistsplitterReforged:()=>Wl,MitternachtsWaltz:()=>vo,Moonpiercer:()=>Cc,MouunsMoon:()=>Ro,OathswornEye:()=>tc,OtherworldlyStory:()=>Ac,PolarStar:()=>Co,Predator:()=>Io,PrototypeAmber:()=>lc,PrototypeArchaic:()=>Rl,PrototypeCrescent:()=>Bo,PrototypeRancour:()=>io,PrototypeStarglitter:()=>Kc,Rainslasher:()=>Il,RavenBow:()=>Uo,RecurveBow:()=>Vo,RedhornStonethresher:()=>Ol,RightfulReward:()=>ji,RoyalBow:()=>To,RoyalGreatsword:()=>Dl,RoyalGrimoire:()=>co,RoyalLongsword:()=>_o,RoyalSpear:()=>Eo,Rust:()=>bo,SacrificialBow:()=>Ko,SacrificialFragments:()=>cc,SacrificialGreatsword:()=>vl,SacrificialJade:()=>Zi,SacrificialSword:()=>yc,SapwoodBlade:()=>Xl,ScionOfTheBlazingSun:()=>tl,SerpentSpine:()=>Fl,SharpshootersOath:()=>xo,SkyriderGreatsword:()=>yl,SkyriderSword:()=>uo,SkywardAtlas:()=>Jo,SkywardBlade:()=>kc,SkywardHarp:()=>Vc,SkywardPride:()=>Pl,SkywardSpine:()=>Nc,Slingshot:()=>ko,SnowTombedStarsilver:()=>Hl,SolarPearl:()=>oc,SongOfBrokenPines:()=>Gl,SongOfStillness:()=>zi,SplendorOfTranquilWaters:()=>Ui,StaffOfHoma:()=>Hc,StaffOfTheScarletSands:()=>mc,SummitShaper:()=>zl,SwordOfDescension:()=>ao,TalkingStick:()=>el,TheAlleyFlash:()=>no,TheBell:()=>wl,TheBlackSword:()=>cl,TheCatch:()=>El,TheFirstGreatMagic:()=>nl,TheFlute:()=>oo,TheStringless:()=>Yo,TheUnforged:()=>Bl,TheViridescentHunt:()=>Ho,TheWidsith:()=>Wc,ThousandFloatingDreams:()=>jo,ThrillingTalesOfDragonSlayers:()=>Sc,ThunderingPulse:()=>po,TidalShadow:()=>Xi,TomeOfTheEternalFlow:()=>Wi,ToukabouShigure:()=>$l,TravelersHandySword:()=>ho,TulaytullahsRemembrance:()=>Wo,TwinNephrite:()=>_c,UltimateOverlordsMegaMagicSword:()=>Vi,Veredict:()=>xi,VortexVanquisher:()=>pc,WanderingEvenstar:()=>zo,WavebreakerFin:()=>gc,WhiteIronGreatsword:()=>Kl,WhiteTassel:()=>Bc,Whiteblind:()=>bl,WindblumeOde:()=>Do,WineAndSong:()=>_l,WolfFang:()=>Ji,WolfsGravestone:()=>Yl,XiphosMoonlight:()=>Ql});var vt=4,Vi=p.Factory({Name:"UltimateOverlordsMegaMagicSword",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.ENERGY_RECHARGE,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"UltimateOverlordsMegaMagicSword1",MaxRank:5,MaxStacks:vt,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ATK_PERCENT).Values(.12/vt,.15/vt,.18/vt,.21/vt,.24/vt).Stacks().Build()})]}),xi=p.Factory({Name:"Verdict",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"Verdict1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.ATK).Values(.2,.25,.3,.35,.4).Next().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.18,.225,.27,.315,.36).Stacks().Build()})]}),Ui=p.Factory({Name:"SplendorOfTranquilWaters",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"SplendorOfTranquilWaters1",MaxStacks:3,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.08,.1,.12,.14,.16).Stacks().Build()}),l.Factory({Name:"SplendorOfTranquilWaters2",MaxStacks:2,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.14,.175,.21,.245,.28).Stacks().Build()})]}),Wi=p.Factory({Name:"TomeOfTheEternalFlow",Stars:5,Type:t.weapon.CATALYST,Substat:t.stat.CRIT_DMG,Scaling:o.WeaponScaling.TYPE_44b,Effects:[l.Factory({Name:"TomeOfTheEternalFlow1",MaxStacks:3,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.14,.18,.22,.26,.3).Stacks().Build()})]}),ji=p.Factory({Name:"RightfulReward",Stars:4,Type:t.weapon.POLEARM,Substat:t.stat.HP_PERCENT,Scaling:o.WeaponScaling.TYPE_44,Effects:[]}),zi=p.Factory({Name:"SongOfStillness",Stars:4,Type:t.weapon.BOW,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"SongOfStillness1",MaxRank:5,MaxConditions:1,Conditions:["HEALED"],OnApply:new l.Builder().Where({effect:{conditions:["HEALED"]}}).stat.Char(t.stat.ALL_DMG).Values(.16,.2,.24,.28,.32).Build()})]}),qi=p.Factory({Name:"FlowingPurity",Stars:4,Type:t.weapon.CATALYST,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"FlowingPurity1",MaxRank:5,MaxConditions:1,MaxStacks:6e3,Conditions:["CAST_SKILL"],OnApply:new l.Builder().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Next().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(...[.02,.025,.03,.035,.04].map(e=>e/1e3)).Stacks().Build()})]}),$i=p.Factory({Name:"FinaleOfTheDeep",Stars:4,Type:t.weapon.SWORD,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"FinaleOfTheDeep1",MaxRank:5,MaxStacks:100,MaxConditions:1,Conditions:["CAST_SKILL"],OnApply:new l.Builder().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().observe.Target(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ATK_FLAT).Values(.024,.03,.036,.042,.048).Map((e,a,n)=>{let s=e*n.GetStacks()/100*.25*a.GetCharacter().Get(t.stat.HP);return s=Math.min(s,150/.024*e),s}).Build()})]}),Qi=p.Factory({Name:"FleuveCendreFerryman",Stars:4,Type:t.weapon.SWORD,Substat:t.stat.ENERGY_RECHARGE,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"FleuveCendreFerryman1",MaxRank:5,Conditions:["CAST_SKILL"],MaxConditions:1,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.08,.1,.12,.14,.16).Next().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(t.stat.ENERGY_RECHARGE).Values(.16,.2,.24,.28,.32).Build()})]}),Xi=p.Factory({Name:"TidalShadow",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"TidalShadow1",MaxRank:5,Conditions:["HEALED"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["HEALED"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),Ji=p.Factory({Name:"WolfFang",Stars:4,Type:t.weapon.SWORD,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"WolfFang1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.16,.2,.24,.28,.32).Build()}),l.Factory({Name:"WolfFang2",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.02,.025,.03,.035,.04).Stacks().Build()}),l.Factory({Name:"WolfFang3",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.02,.025,.03,.035,.04).Stacks().Build()})]}),Zi=p.Factory({Name:"SacrificialJade",Stars:4,Type:t.weapon.CATALYST,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"SacrificialJade1",MaxRank:5,Conditions:["OFF_FIELD"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(t.stat.HP_PERCENT).Values(.32,.4,.48,.56,.64).Next().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(40,50,60,70,80).Build()})]}),tl=p.Factory({Name:"ScionOfTheBlazingSun",Stars:4,Type:t.weapon.BOW,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"ScionOfTheBlazingSun1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_ScionOfTheBlazingSun",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.6,.75,.9,1.05,1.2]}).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.28,.35,.42,.49,.56).Build()})]}),el=p.Factory({Name:"TalkingStick",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"TalkingStick1",MaxRank:5,MaxAuras:2,ValidAuras:[t.aura.PYRO,t.aura.HYDRO],OnApply:new l.Builder().Where({effect:{aura:[t.aura.PYRO]}}).stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{aura:[t.aura.HYDRO]}}).stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Build()})]}),al=p.Factory({Name:"BalladOfTheFjords",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"BalladOfTheFjords1",MaxRank:5,OnApply:new l.Builder().observe.Party(!0).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(120,150,180,210,240).Map((e,a)=>{const n=a.GetParty();if(!n)return 0;const s=new Set;for(const r of n.GetMembers())s.add(r.GetCharacter().Options.Element);return s.size>=3?e:0}).Build()})]}),nl=p.Factory({Name:"TheFirstGreatMagic",Type:t.weapon.BOW,Stars:5,Substat:t.stat.CRIT_DMG,Scaling:o.WeaponScaling.TYPE_46,Effects:[l.Factory({Name:"TheFirstGreatMagic1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().observe.Party(!0).stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Map((e,a)=>{let n=1;const s=a.GetCharacter().Options.Element,r=a.GetParty();if(r)for(const i of r.GetMembers())i!==a&&i.GetCharacter().Options.Element===s&&n++;return n=Math.min(n,3),e*n}).Build()})]}),Kt=e=>l.Factory({Name:e,MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Stacks().Build()}),sl=p.Factory({Name:"BlackcliffWarbow",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffWarbow1")]}),rl=p.Factory({Name:"IbisPiercer",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"IbisPiercer1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(40,50,60,70,80).Stacks().Build()})]}),il=p.Factory({Name:"JadefallSplendor",Type:t.weapon.CATALYST,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"JadefallSplendor1",MaxRank:5,OnApply:new l.Builder().observe.Owner(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.MapStat(e=>[e.GetCharacter().Options.Element]).Values(.3,.5,.7,.9,1.1).Map((e,a,n)=>Math.min([.12,.2,.28,.36,.44][n.GetRank()-1],e/100*a.GetCharacter().Get(t.stat.HP)/1e3)).Build()})]}),ll=p.Factory({Name:"MailedFlower",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.ELEMENTAL_MASTERY,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"MailedFlower1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(48,60,72,84,96).Build()})]}),ol=p.Factory({Name:"BeaconOfTheReedSea",Stars:5,Type:t.weapon.CLAYMORE,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_46,Effects:[l.Factory({Name:"BeaconOfTheReedSea1",MaxRank:5,Conditions:["HIT_SKILL","DMG_TAKEN"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["DMG_TAKEN"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().Where({target:{shielded:!1}}).stat.Char(t.stat.HP_PERCENT).Values(.32,.4,.48,.56,.64).Build()})]}),cl=p.Factory({Name:"TheBlackSword",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"TheBlackSword1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),El=p.Factory({Name:"TheCatch",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"TheCatch1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.06,.075,.09,.105,.12).Build()})]}),aa=e=>l.Factory({Name:e,MaxRank:5,OnApply(a,n,s){const r=a.GetCharacter(),i=s.Modifier(r.CreateModifier(t.stat.ELEMENTAL_BURST_DMG,0));function c(){let _=[r];const u=a.GetParty();u&&(_=u.GetMembers().map(h=>h.GetCharacter()));let A=0;for(const h of _)A+=h.Options.BurstCost;const S=Math.min(k1[n.GetRank()-1],F1[n.GetRank()-1]*A);i.SetValue(S)}return s.Observer(n.Event.CreateObserver(l.EffectEvent.CHANGE_RANK,c)),s.Observer(a.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,c)),()=>0}}),F1=[.12/100,.15/100,.18/100,.21/100,.24/100],k1=[.4,.5,.6,.7,.8],Tl=p.Factory({Name:"Akuoumaru",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[aa("Akuoumaru1")]}),_l=p.Factory({Name:"WineAndSong",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"WineAndSong1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),ul=(e,a,n)=>l.Factory({Name:e,ApplyOther:!0,StackSelf:!0,MaxRank:5,OnApply(s,r,i){const c=r.Owner.GetCharacter(),_=s.GetCharacter(),u=i.Modifier(_.CreateModifier(a,0));function A(){const S=c.Get(t.stat.ELEMENTAL_MASTERY);let h=n[r.GetRank()-1]*S;c!==_&&(h*=.3),u.SetValue(h)}return A(),i.Observer(c.CreateObserver(t.stat.ELEMENTAL_MASTERY,A)),()=>0}}),Al=p.Factory({Name:"MakhairaAquamarine",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[ul("MakhairaAquamarine1",t.stat.ATK_FLAT,[.24,.3,.36,.42,.48])]}),Sl=p.Factory({Name:"BlackcliffSlasher",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffSlasher1")]}),hl=p.Factory({Name:"BloodtaintedGreatsword",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"BloodtaintedGreatsword1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),ml=p.Factory({Name:"DebateClub",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"DebateClub1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_DebateClub",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.6,.75,.9,1.05,1.2]}).Build()})]}),fl=p.Factory({Name:"FavoniusGreatsword",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Ll=p.Factory({Name:"FerrousShadow",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"FerrousShadow1",MaxRank:5,OnApply:new l.Builder().Where({target:{hp:{leq:.7}}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.3,.35,.4,.45,.5).Build()})]}),pl=p.Factory({Name:"LuxuriousSeaLord",Type:t.weapon.CLAYMORE,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"LuxuriousSeaLord1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.12,.15,.18,.21,.24).Next().instance.Basic({Name:"HIT_LuxuriousSeaLord",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),Nl=e=>l.Factory({Name:e,MaxRank:5,ApplyOther:!0,MaxTargets:1,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60,75,90,105,120).Build()}),dl=p.Factory({Name:"ForestRegalia",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[Nl("ForestRegalia1")]}),Cl=p.Factory({Name:"KatsuragikiriNagamasa",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"KatsuragikiriNagamasa1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.06,.075,.09,.105,.12).Build()})]}),Ml=e=>l.Factory({Name:e,MaxRank:5,OnApply(a,n,s){const r=a.GetCharacter(),i=s.Modifier(r.CreateModifier(t.stat.CRIT_RATE,0)),c=s.Modifier(r.CreateModifier(t.stat.ATK_PERCENT,0));function _(){let u=[r];const A=a.GetParty();A&&(u=A.GetMembers().map(f=>f.GetCharacter()));const S=Math.min(4,u.filter(f=>f.Options.Region===t.region.LIYUE).length),h=V1[n.GetRank()-1]*S,m=x1[n.GetRank()-1]*S;i.SetValue(h),c.SetValue(m)}return _(),s.Observer(n.CreateObserver(l.EffectEvent.CHANGE_RANK,_)),s.Observer(a.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,_)),()=>0}}),V1=[.03,.04,.05,.06,.07],x1=[.07,.08,.09,.1,.11],gl=p.Factory({Name:"LithicBlade",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[Ml("LithicBlade1")]}),na=new Map;function U1(e){const a=na.get(e);if(!a){const n=new Set;return na.set(e,n),n}return a}var sa=({Name:e,OnApply:a})=>l.Factory({Name:e,MaxRank:5,ApplyOther:!0,OnApply(n,s,r){a(n,s,r);const i=r.GetModifiers(),c=U1(n);i.forEach(u=>c.add(u));function _(){for(const u of i)Array.from(c).some(S=>S!==u&&S.GetProp()===u.GetProp()&&S.Enabled()&&S.GetValue()!==0)&&(u.SetValue(0),u.Disable())}_();for(const u of l.EffectEvent.Values())r.Observer(s.CreateObserver(u,_));return()=>{i.forEach(u=>c.delete(u)),c.size===0&&na.delete(n)}}}),Gl=p.Factory({Name:"SongOfBrokenPines",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_49,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"SongOfBrokenPines1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()}),sa({Name:"SongOfBrokenPines2",OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Rl=p.Factory({Name:"PrototypeArchaic",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"PrototypeArchaic1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_PrototypeArchaic",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2.4,3,3.6,4.2,4.8]}).Build()})]}),Il=p.Factory({Name:"Rainslasher",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"Rainslasher1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.HYDRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),Ol=p.Factory({Name:"RedhornStonethresher",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"RedhornStonethresher1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT).Values(.28,.35,.42,.49,.56).Next().observe.Target(t.stat.DEF,t.stat.DEF_PERCENT,t.stat.DEF_FLAT).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT).Values(.4,.5,.6,.7,.8).Map((e,a)=>e*a.GetCharacter().Get(t.stat.DEF)).Build()})]}),Yt=e=>l.Factory({Name:e,MaxRank:5,OnApply(a,n,s){const r=a.GetCharacter();function i(c=!0){if(!c)r.MapCritRate=_=>_;else{const _=n.GetRank();r.MapCritRate=u=>W1(_,u)}}return i(!0),s.Observer(n.CreateObserver(l.EffectEvent.ENABLE,()=>i(!0))),s.Observer(n.CreateObserver(l.EffectEvent.CHANGE_RANK,()=>i(!0))),s.Observer(n.CreateObserver(l.EffectEvent.DISABLE,()=>i(!1))),()=>i(!1)}});function W1(e,a){const n=Math.max,s=.08+.02*(e-1);return a<0?((5*s+a)*n(0,a)-(5*s*a-5*s+g(a,2)-a)*n(0,s+a)+(5*g(s,2)*a-5*g(s,2)+6*s*g(a,2)-11*s*a+5*s+g(a,3)-2*g(a,2)+a)*n(0,2*s+a)-(10*g(s,3)*a-10*g(s,3)+17*g(s,2)*g(a,2)-32*g(s,2)*a+15*g(s,2)+8*s*g(a,3)-21*s*g(a,2)+18*s*a-5*s+g(a,4)-3*g(a,3)+3*g(a,2)-a)*n(0,3*s+a)+(30*g(s,4)*a-30*g(s,4)+61*g(s,3)*g(a,2)-116*g(s,3)*a+55*g(s,3)+41*g(s,2)*g(a,3)-112*g(s,2)*g(a,2)+101*g(s,2)*a-30*g(s,2)+11*s*g(a,4)-38*s*g(a,3)+48*s*g(a,2)-26*s*a+5*s+g(a,5)-4*g(a,4)+6*g(a,3)-4*g(a,2)+a)*n(0,4*s+a)-(24*g(s,4)*a-24*g(s,4)+50*g(s,3)*g(a,2)-100*g(s,3)*a+50*g(s,3)+35*g(s,2)*g(a,3)-105*g(s,2)*g(a,2)+105*g(s,2)*a-35*g(s,2)+10*s*g(a,4)-40*s*g(a,3)+60*s*g(a,2)-40*s*a+10*s+g(a,5)-5*g(a,4)+10*g(a,3)-10*g(a,2)+5*a-1)*n(0,5*s+a))/(6*g(s,4)*a-6*g(s,4)+11*g(s,3)*g(a,2)-26*g(s,3)*a+15*g(s,3)+6*g(s,2)*g(a,3)-24*g(s,2)*g(a,2)+33*g(s,2)*a-15*g(s,2)+s*g(a,4)-6*s*g(a,3)+15*s*g(a,2)-20*s*a+15*s+1):(5*s+a)/(6*g(s,4)*a-6*g(s,4)+11*g(s,3)*g(a,2)-26*g(s,3)*a+15*g(s,3)+6*g(s,2)*g(a,3)-24*g(s,2)*g(a,2)+33*g(s,2)*a-15*g(s,2)+s*g(a,4)-6*s*g(a,3)+15*s*g(a,2)-20*s*a+15*s+1)}var Dl=p.Factory({Name:"RoyalGreatsword",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalGreatsword1")]}),vl=p.Factory({Name:"SacrificialGreatsword",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),yl=p.Factory({Name:"SkyriderGreatsword",Type:t.weapon.CLAYMORE,Stars:3,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"SkyriderGreatsword1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.06,.07,.08,.09,.1).Build()})]}),Pl=p.Factory({Name:"SkywardPride",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"SkywardPride1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.08,.1,.12,.14,.16).Next().instance.Basic({Name:"HIT_SkywardPride",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.8,1,1.2,1.4,1.6]}).Build()})]}),ra=(e,a)=>l.Factory({Name:e,MaxRank:5,OnApply:new l.Builder().instance.Options({Name:a,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NONE,Scaling:[{Initial:0,Stat:t.stat.NONE,Talent:t.stat.NONE,Scaling:o.TalentScaling.NONE}]}).Next().Where({not:!0,enemy:{affected:[t.stat.CRYO_DMG]}}).mv.Mv(t.stat.ATK,.8,a).Map((n,s,r)=>[.8,.95,1.1,1.25,1.4][r.GetRank()-1]).Next().Where({enemy:{affected:[t.stat.CRYO_DMG]}}).mv.Mv(t.stat.ATK,2,a).Map((n,s,r)=>[2,2.4,2.8,3.2,3.6][r.GetRank()-1]).Build()}),Hl=p.Factory({Name:"SnowTombedStarsilver",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.PHYSICAL_DMG,Effects:[ra("SnowTombedStarsilver1","HIT_SnowTombedStarsilver")]}),wl=p.Factory({Name:"TheBell",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"TheBell1",MaxRank:5,OnApply:new l.Builder().Where({target:{shielded:!0}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),ce=e=>l.Factory({Name:e,MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Next().Where({target:{shielded:!0}}).stat.Char(t.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()}),Bl=p.Factory({Name:"TheUnforged",Type:t.weapon.CLAYMORE,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[ce("TheUnforged1")]}),bl=p.Factory({Name:"Whiteblind",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.DEF_PERCENT,Effects:[l.Factory({Name:"Whiteblind1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT,t.stat.DEF_PERCENT).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),Kl=p.Factory({Name:"WhiteIronGreatsword",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.DEF_PERCENT,Effects:[]}),Yl=p.Factory({Name:"WolfsGravestone",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"WolfsGravestone1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()}),l.Factory({Name:"WolfsGravestone2",MaxRank:5,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.4,.5,.6,.7,.8).Build()})]}),Fl=p.Factory({Name:"SerpentSpine",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"SerpentSpine1",MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.06,.07,.08,.09,.1).Stacks().Build()})]}),kl=p.Factory({Name:"FreedomSworn",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"FreedomSworn1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.1,.125,.15,.175,.2).Build()}),sa({Name:"FreedomSworn2",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Vl=p.Factory({Name:"LightOfFoliarIncision",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"LightOfFoliarIncision1",MaxRank:5,Conditions:["HIT_NORMAL"],MaxConditions:1,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.04,.05,.06,.07,.08).Next().observe.Target(t.stat.ELEMENTAL_MASTERY).Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT,t.stat.ELEMENTAL_SKILL_DMG_FLAT).Values(1.2,1.5,1.8,2.1,2.4).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()})]}),xl=p.Factory({Name:"KeyOfKhajNisut",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"KeyOfKhajNisut1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Build()}),l.Factory({Name:"KeyOfKhajNisut2",MaxRank:5,MaxStacks:3,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.HP,t.stat.HP_PERCENT,t.stat.HP_FLAT).Where({target:{isOwner:!0}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(.12,.15,.18,.21,.24).Stacks().Map((e,a)=>e*a.GetCharacter().Get(t.stat.HP)/100).Next().observe.Owner(t.stat.HP,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ELEMENTAL_MASTERY).Stacks([0,0,0,.2],[0,0,0,.25],[0,0,0,.3],[0,0,0,.35],[0,0,0,.4]).Map((e,a,{Owner:n})=>e*n.GetCharacter().Get(t.stat.HP)/100).Build()})]}),Ul=p.Factory({Name:"HaranGeppakuFutsu",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"HaranGeppakuFutsu1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Stacks().Build()})]}),Wl=p.Factory({Name:"MistsplitterReforged",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"MistsplitterReforged1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char().MapStat(e=>[e.GetCharacter().Options.Element]).Stacks([0,.08,.16,.28],[0,.1,.2,.35],[0,.12,.24,.42],[0,.14,.28,.49],[0,.16,.32,.56]).Build()})]}),jl=p.Factory({Name:"JadeCutter",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"JadeCutter1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Next().observe.Target(t.stat.HP_PERCENT,t.stat.HP_FLAT,t.stat.HP_BASE).stat.Char(t.stat.ATK_FLAT).Values(.012,.015,.018,.021,.024).Map((e,a)=>e*a.GetCharacter().Get(t.stat.HP)).Build()})]}),zl=p.Factory({Name:"SummitShaper",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[ce("SummitShaper1")]}),ql=p.Factory({Name:"AquilaFavonia",Type:t.weapon.SWORD,Stars:5,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"AquilaFavonia1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().instance.Basic({Name:"HIT_AquilaFavonia",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2,2.3,2.6,2.9,3.2]}).Build()})]}),$l=p.Factory({Name:"ToukabouShigure",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"ToukabouShigure1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.16,.2,.24,.28,.32).Build()})]}),Ql=p.Factory({Name:"XiphosMoonlight",Type:t.weapon.SWORD,Stars:4,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[ul("XiphosMoonlight1",t.stat.ENERGY_RECHARGE,[.036/100,.045/100,.054/100,.063/100,.072/100])]}),Xl=p.Factory({Name:"SapwoodBlade",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[Nl("SapwoodBlade1")]}),Jl=p.Factory({Name:"KagotsurubeIsshin",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"KagotsurubeIsshin1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_KagotsurubeIsshin",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.8]}).Next().stat.Char(t.stat.ATK_PERCENT).Values(.15).Build()})]}),Zl=p.Factory({Name:"CinnabarSpindle",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.DEF_PERCENT,Effects:[l.Factory({Name:"CinnabarSpindle1",MaxRank:5,OnApply:new l.Builder().mv.Mv(t.stat.DEF,.4,e=>e.Options.Talent===t.stat.ELEMENTAL_SKILL_DMG).Map((e,a,n)=>[.4,.5,.6,.7,.8][n.GetRank()-1]).Build()})]}),to=p.Factory({Name:"AmenomaKageuchi",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[]}),eo=p.Factory({Name:"FesteringDesire",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"FesteringDesire1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.06,.075,.09,.105,.12).Build()})]}),ao=p.Factory({Name:"SwordOfDescension",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39b,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"SwordOfDescension1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_SwordOfDescension",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2]}).Next().Where({target:{name:/traveler/i}}).stat.Char(t.stat.ATK_FLAT).Values(66).Build()})]}),no=p.Factory({Name:"TheAlleyFlash",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_45,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"TheAlleyFlash1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),so=p.Factory({Name:"BlackcliffLongsword",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffLongsword1")]}),ro=p.Factory({Name:"IronSting",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"IronSting1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),io=p.Factory({Name:"PrototypeRancour",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"PrototypeRancour1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT,t.stat.DEF_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()})]}),lo=p.Factory({Name:"LionsRoar",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"LionsRoar1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),oo=p.Factory({Name:"TheFlute",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"TheFlute1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_TheFlute",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),co=p.Factory({Name:"RoyalGrimoire",Type:t.weapon.CATALYST,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalGrimoire1")]}),Eo=p.Factory({Name:"RoyalSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalSpear1")]}),To=p.Factory({Name:"RoyalBow",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalBow1")]}),_o=p.Factory({Name:"RoyalLongsword",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalLongsword1")]}),uo=p.Factory({Name:"SkyriderSword",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"SkyriderSword1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Build()})]}),Ao=p.Factory({Name:"DarkIronSword",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"DarkIronSword1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),So=p.Factory({Name:"FilletBlade",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"FilletBlade1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_FilletBlade",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2.4,2.8,3.2,3.6,4]}).Build()})]}),ho=p.Factory({Name:"TravelersHandySword",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.DEF_PERCENT,Effects:[]}),mo=p.Factory({Name:"HarbingerOfDawn",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"HarbingerOfDawn1",MaxRank:5,OnApply:new l.Builder().Where({target:{hp:{geq:.9}}}).stat.Char(t.stat.CRIT_RATE).Values(.14,.175,.21,.245,.28).Build()})]}),fo=p.Factory({Name:"CoolSteel",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"CoolSteel1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.CRYO_DMG,t.stat.HYDRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),Lo=p.Factory({Name:"HuntersPath",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"HuntersPath1",MaxRank:5,Conditions:["HIT_CHARGED"],MaxConditions:1,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().observe.Target(t.stat.ELEMENTAL_MASTERY).Where({effect:{conditions:["HIT_CHARGED"]}}).stat.Char(t.stat.CHARGED_ATTACK_DMG_FLAT).Values(1.6,2,2.4,2.8,3.2).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()})]}),po=p.Factory({Name:"ThunderingPulse",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"ThunderingPulse1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().stat.Char(t.stat.NORMAL_ATTACK_DMG).Stacks([0,.12,.24,.4],[0,.15,.3,.5],[0,.18,.36,.6],[0,.21,.42,.7],[0,.24,.48,.8]).Build()})]}),No=p.Factory({Name:"AquaSimulacra",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"AquaSimulacra1",MaxRank:5,Conditions:["FAR","NEAR"],MaxConditions:1,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["NEAR"]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),Co=p.Factory({Name:"PolarStar",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"PolarStar1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Stacks([0,.1,.2,.3,.48],[0,.125,.25,.375,.6],[0,.15,.3,.45,.72],[0,.175,.35,.525,.84],[0,.2,.4,.6,.96]).Build()})]}),Mo=p.Factory({Name:"AmosBow",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"AmosBow1",MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),go=p.Factory({Name:"EndOfTheLine",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"EndOfTheLine1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_EndOfTheLine",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.8,1,1.2,1.4,1.6]}).Build()})]}),Go=p.Factory({Name:"KingsSquire",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"KingsSquire1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60,80,100,120,140).Next().instance.Basic({Name:"HIT_KingsSquire",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.2,1.4,1.6,1.8]}).Build()})]}),Ro=p.Factory({Name:"MouunsMoon",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[aa("MouunsMoon1")]}),Io=p.Factory({Name:"Predator",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Predator1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.1).Stacks().Next().Where({target:{name:"Aloy"}}).stat.Char(t.stat.ATK_FLAT).Values(66).Build()})]}),Oo=p.Factory({Name:"Hamayumi",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Hamayumi1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().Where({target:{energy:{geq:1}}}).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().Where({target:{energy:{geq:1}}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().Build()})]}),Do=p.Factory({Name:"WindblumeOde",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"WindblumeOde1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()})]}),vo=p.Factory({Name:"MitternachtsWaltz",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"MitternachtsWaltz1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_SKILL"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),yo=p.Factory({Name:"FadingTwilight",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"FadingTwilight1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Stacks([0,.06,.1,.14],[0,.075,.125,.175],[0,.09,.15,.21],[0,.105,.175,.245],[0,.12,.2,.28]).Build()})]}),Po=p.Factory({Name:"AlleyHunter",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"AlleyHunter1",MaxRank:5,MaxStacks:10,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.02,.025,.03,.035,.04).Stacks().Build()})]}),Ho=p.Factory({Name:"TheViridescentHunt",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"TheViridescentHunt1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_TheViridescentHunt",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.4,.5,.6,.7,.8]}).Build()})]}),wo=p.Factory({Name:"CompoundBow",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"CompoundBow1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()})]}),Bo=p.Factory({Name:"PrototypeCrescent",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"PrototypeCrescent1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.36,.45,.54,.63,.72).Build()})]}),bo=p.Factory({Name:"Rust",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Rust1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.4,.5,.6,.7,.8).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(-.1).Build()})]}),Ko=p.Factory({Name:"SacrificialBow",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Yo=p.Factory({Name:"TheStringless",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"TheStringless1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),Fo=p.Factory({Name:"Messenger",Type:t.weapon.BOW,Stars:3,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"Messenger1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_Messenger",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),ko=p.Factory({Name:"Slingshot",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"Slingshot1",MaxRank:5,Conditions:["FAR","NEAR"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["FAR"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.36,.42,.48,.54,.6).Next().Where({effect:{conditions:["NEAR"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(-.1).Build()})]}),Vo=p.Factory({Name:"RecurveBow",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.HP_PERCENT,Effects:[]}),xo=p.Factory({Name:"SharpshootersOath",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"SharpshootersOath1",Conditions:["WEAK_SPOT"],MaxConditions:1,MaxRank:5,OnApply:new l.Builder().Where({effect:{conditions:["WEAK_SPOT"]}}).stat.Char(t.stat.AIMED_SHOT_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),Uo=p.Factory({Name:"RavenBow",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"RavenBow1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),Wo=p.Factory({Name:"TulaytullahsRemembrance",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"TulaytullahsRemembrance1",MaxRank:5,MaxStacks:10,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.048,.06,.072,.084,.096).Stacks().Build()})]}),jo=p.Factory({Name:"ThousandFloatingDreams",Type:t.weapon.CATALYST,Stars:5,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"ThousandFloatingDreams1",MaxRank:5,OnApply(e,a,n){const s=e.GetCharacter(),r=n.Modifier(s.CreateModifier(t.stat.ELEMENTAL_MASTERY,0)),i=[n.Modifier(s.CreateModifier(s.Options.Element,0)),n.Modifier(s.CreateModifier(s.Options.Element,0)),n.Modifier(s.CreateModifier(s.Options.Element,0))];function c(){i.forEach(h=>h.SetValue(0));let _=[s];const u=e.GetParty();u&&(_=u.GetMembers().map(h=>h.GetCharacter()));let A=0,S=0;for(const h of _)if(h!==s)if(h.Options.Element===s.Options.Element)A++;else{const m=i[S++];if(!m)continue;m.SetProp(h.Options.Element),m.SetValue(z1[a.GetRank()-1])}A=Math.min(3,A),r.SetValue(j1[a.GetRank()-1]*A)}return c(),n.Observer(e.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,c)),n.Observer(a.Event.CreateObserver(l.EffectEvent.CHANGE_RANK,c)),()=>0}}),l.Factory({Name:"ThousandFloatingDreams2",MaxRank:5,ApplyOther:!0,ApplySelf:!1,StackSelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(40,42,44,46,48).Build()})]}),j1=[32,40,48,56,64],z1=[.1,.14,.18,.22,.26],zo=p.Factory({Name:"WanderingEvenstar",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"WanderingEvenstar1",StackSelf:!0,ApplyOther:!0,MaxRank:5,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ATK_FLAT).Values(.24,.3,.36,.42,.48).Map((e,a,n)=>e*n.Owner.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)*(a===n.Owner?1:.3)).Build()})]}),qo=p.Factory({Name:"KagurasVerity",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"KagurasVerity1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.12,.15,.18,.21,.24).Stacks().Next().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Stacks([0,0,0,.12],[0,0,0,.15],[0,0,0,.18],[0,0,0,.21],[0,0,0,.24]).Build()})]}),$o=p.Factory({Name:"EverlastingMoonglow",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"EverlastingMoonglow1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HEALING_BONUS).Values(.1,.125,.15,.175,.2).Next().observe.Target(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT).Values(.01,.015,.02,.025,.03).Map((e,a)=>e*a.GetCharacter().Get(t.stat.HP)).Build()})]}),Qo=p.Factory({Name:"MemoryOfDust",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[ce("MemoryOfDust1")]}),Xo=p.Factory({Name:"LostPrayer",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"LostPrayer1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),Jo=p.Factory({Name:"SkywardAtlas",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"SkywardAtlas1",MaxRank:5,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().instance.Basic({Name:"HIT_SkywardAtlas",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.6,2,2.4,4.8,3.2]}).Build()})]}),Zo=p.Factory({Name:"FruitOfFulfillment",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"FruitOfFulfillment1",MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(24,27,30,33,36).Stacks().Next().stat.Char(t.stat.ATK_PERCENT).Values(-.05).Stacks().Build()})]}),tc=p.Factory({Name:"OathswornEye",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"OathswornEye1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ENERGY_RECHARGE).Values(.24,.3,.36,.42,.48).Build()})]}),ec=p.Factory({Name:"HakushinRing",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"HakushinRing1",ApplyOther:!0,MaxRank:5,OnApply:new l.Builder().stat.Char().MapStat(e=>[e.GetCharacter().Options.Element]).Values(.1,.125,.15,.175,.2).Build()})]}),ac=p.Factory({Name:"DodocoTales",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"DodocoTales1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_CHARGED"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["HIT_CHARGED"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.08,.1,.12,.14,.16).Next().Build()})]}),nc=p.Factory({Name:"Frostbearer",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[ra("Frostbearer1","HIT_Frostbearer")]}),sc=p.Factory({Name:"EyeOfPerception",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"EyeOfPerception1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_EyeOfPerception",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2.4,2.7,3,3.3,3.6]}).Build()})]}),rc=p.Factory({Name:"BlackcliffAgate",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffAgate1")]}),ic=p.Factory({Name:"MappaMare",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"MappaMare1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),lc=p.Factory({Name:"PrototypeAmber",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.HP_PERCENT,Effects:[]}),oc=p.Factory({Name:"SolarPearl",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"SolarPearl1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_SKILL"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Next().Build()})]}),cc=p.Factory({Name:"SacrificialFragments",Type:t.weapon.CATALYST,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[]}),Ec=p.Factory({Name:"FavoniusCodex",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Tc=p.Factory({Name:"AmberBead",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"AmberBead1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),_c=p.Factory({Name:"TwinNephrite",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"TwinNephrite1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.14,.16,.18,.2).Build()})]}),uc=p.Factory({Name:"EmeraldOrb",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"EmeraldOrb1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Ac=p.Factory({Name:"OtherworldlyStory",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Sc=p.Factory({Name:"ThrillingTalesOfDragonSlayers",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"ThrillingTalesOfDragonSlayers1",MaxRank:5,ApplySelf:!1,ApplyOther:!0,MaxTargets:1,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),hc=p.Factory({Name:"MagicGuide",Type:t.weapon.CATALYST,Stars:3,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"MagicGuide1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.HYDRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),mc=p.Factory({Name:"StaffOfTheScarletSands",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"StaffOfTheScarletSands1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ATK_FLAT).Values(.52,.65,.78,.91,1.04).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Next().observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ATK_FLAT).Values(.28,.35,.42,.49,.56).Stacks().Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Next().Build()})]}),fc=p.Factory({Name:"CalamityQueller",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_49,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"CalamityQueller1",MaxRank:5,MaxStacks:6,Conditions:["ON_FIELD","OFF_FIELD"],MaxConditions:1,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ATK_PERCENT).Values(.032,.04,.048,.056,.064).Stacks().Next().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.032,.04,.048,.056,.064).Stacks().Next().Build()})]}),Lc=p.Factory({Name:"JadeSpear",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"JadeSpear1",MaxRank:5,MaxStacks:7,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.032,.039,.046,.053,.06).Stacks().Next().stat.Char(t.stat.ALL_DMG).Stacks([0,0,0,0,0,0,0,.12],[0,0,0,0,0,0,0,.15],[0,0,0,0,0,0,0,.18],[0,0,0,0,0,0,0,.21],[0,0,0,0,0,0,0,.24]).Build()})]}),pc=p.Factory({Name:"VortexVanquisher",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[ce("VortexVanquisher1")]}),Nc=p.Factory({Name:"SkywardSpine",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"SkywardSpine1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.08,.1,.12,.14,.16).Next().instance.Basic({Name:"HIT_SkywardSpine",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.4,.55,.7,.85,1]}).Build()})]}),dc=p.Factory({Name:"MissiveWindspear",Type:t.weapon.POLEARM,Stars:4,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"MissiveWindspear1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(48,60,72,84,96).Build()})]}),Cc=p.Factory({Name:"Moonpiercer",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"Moonpiercer1",ApplyOther:!0,MaxTargets:1,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()})]}),Mc=p.Factory({Name:"EngulfingLightning",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"EngulfingLightning1",MaxRank:5,Conditions:["CAST_BURST","NO_BURST"],MaxConditions:1,OnApply:new l.Builder().observe.Target(t.stat.ENERGY_RECHARGE).stat.Char(t.stat.ATK_PERCENT).Values(.28,.35,.42,.49,.56).Map((e,a,n)=>q1(e,a.GetCharacter().Get(t.stat.ENERGY_RECHARGE),n.GetRank())).Next().Where({effect:{conditions:["CAST_BURST"]}}).stat.Char(t.stat.ENERGY_RECHARGE).Values(.3,.35,.4,.45,.5).Build()})]});function q1(e,a,n){return Math.min(e*Math.max(0,a-1),$1[n-1])}var $1=[.8,.9,1,1.1,1.2],gc=p.Factory({Name:"WavebreakerFin",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_45,Substat:t.stat.ATK_PERCENT,Effects:[aa("WavebreakerFin1")]}),Gc=p.Factory({Name:"KitainCrossSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"KitainCrossSpear1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.06,.075,.09,.105,.12).Build()})]}),Rc=p.Factory({Name:"DragonspineSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.PHYSICAL_DMG,Effects:[ra("DragonspineSpear1","HIT_DragonspineSpear")]}),Ic=p.Factory({Name:"LithicSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Ml("LithicSpear1")]}),Oc=p.Factory({Name:"CrescentPike",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"CrescentPike1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_CrescentPike",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.2,.25,.3,.35,.4]}).Build()})]}),Dc=p.Factory({Name:"Halberd",Stars:3,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Halberd1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_Halberd",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.6,2,2.4,2.8,3.2]}).Build()})]}),vc=p.Factory({Name:"DragonsBane",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"DragonsBane1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.HYDRO_DMG,t.stat.PYRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),yc=p.Factory({Name:"SacrificialSword",Type:t.weapon.SWORD,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Pc=p.Factory({Name:"ElegyForTheEnd",Type:t.weapon.BOW,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"ElegyForTheEnd1",ApplySelf:!0,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60,75,90,105,120).Build()}),sa({Name:"ElegyForTheEnd2",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(100,125,150,175,200).Next().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Hc=p.Factory({Name:"StaffOfHoma",Type:t.weapon.POLEARM,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"StaffOfHoma1",ApplySelf:!0,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Next().observe.Target(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ATK_FLAT).Values(.008,.01,.012,.014,.016).Map((e,a)=>a.GetCharacter().Get(t.stat.HP)*e).Next().observe.Target(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ATK_FLAT).Where({target:{hp:{leq:.5}}}).Values(.01,.012,.014,.016,.018).Map((e,a)=>a.GetCharacter().Get(t.stat.HP)*e).Build()})]}),wc=p.Factory({Name:"FavoniusLance",Type:t.weapon.POLEARM,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Bc=p.Factory({Name:"WhiteTassel",Stars:3,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"WhiteTassel1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),bc=p.Factory({Name:"BlackTassel",Stars:3,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"BlackTassel1",MaxRank:5,Conditions:["NO_SLIMES","SLIMES"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["SLIMES"]}}).stat.Char(t.stat.ALL_DMG).Values(.4,.5,.6,.7,.8).Build()})]}),Kc=p.Factory({Name:"PrototypeStarglitter",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"PrototypeStarglitter1",MaxStacks:2,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.08,.1,.12,.14,.16).Stacks().Next().Build()})]}),Yc=p.Factory({Name:"BlackcliffPole",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffPole1")]}),Fc=p.Factory({Name:"Deathmatch",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"Deathmatch1",MaxRank:5,MaxConditions:1,Conditions:["ENEMY_1","ENEMY_2"],OnApply:new l.Builder().Where({effect:{conditions:["ENEMY_2"]}}).stat.Char(t.stat.ATK_PERCENT,t.stat.DEF_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["ENEMY_1"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),kc=p.Factory({Name:"SkywardBlade",Stars:5,Type:t.weapon.SWORD,Substat:t.stat.ENERGY_RECHARGE,Scaling:o.WeaponScaling.TYPE_46,Effects:[l.Factory({Name:"SkywardBlade1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.04,.05,.06,.07,.08).Next().instance.Basic({Name:"HIT_SkywardBlade",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.2,.25,.3,.35,.4]}).Build()})]}),Vc=p.Factory({Name:"SkywardHarp",Type:t.weapon.BOW,Stars:5,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"SkywardHarp1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CRIT_DMG).Values(.2,.25,.3,.35,.4).Next().instance.Basic({Name:"HIT_SkywardHarp",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.25]}).Build()})]}),xc=p.Factory({Name:"FavoniusSword",Type:t.weapon.SWORD,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Uc=p.Factory({Name:"FavoniusWarbow",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Wc=p.Factory({Name:"TheWidsith",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"TheWidsith1",MaxRank:5,Conditions:["RECITATIVE","ARIA","INTERLUDE"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["RECITATIVE"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.6,.75,.9,1.05,1.2).Next().Where({effect:{conditions:["ARIA"]}}).stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.48,.6,.72,.84,.96).Next().Where({effect:{conditions:["INTERLUDE"]}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(240,300,360,420,480).Build()})]}),jc=Object.values(ki).sort((e,a)=>e.Type===a.Type?e.Stars===a.Stars?e.Name.localeCompare(a.Name):e.Stars-a.Stars:e.Type-a.Type),Ee={};for(const e of jc)Ee[e.Type]||(Ee[e.Type]=[]),Ee[e.Type].push(e);var ia=new Q(e=>e.Name);ia.AddList(jc);function zc(){return ia.Get()}function Q1(e){return ia.Find(e)}function X1(e){return Ee[e]||[]}var Te={};D(Te,{FindByName:()=>Z1,GetList:()=>J1});var Nt=new Q(e=>e.Name);for(const e of Fi())e.Effects.forEach(a=>Nt.Add(a));for(const e of zc())e.Effects.forEach(a=>Nt.Add(a));for(const e of Kr())e.Piece2.forEach(a=>Nt.Add(a)),e.Piece4.forEach(a=>Nt.Add(a));for(const e of ps())Nt.Add(e);function J1(){return Nt.Get()}function Z1(e){return Nt.Find(e)}var Ft={};D(Ft,{ArtifactStore:()=>aN,CopyCharbox:()=>lN,FilterArtifacts:()=>la,PartyFrom:()=>tN});function tN(e){const a=new G.Party;for(const n in e.characters){const s=pt.FindByName(n);if(!s)throw new Error(`Character not found: ${n}`);const r=s();a.Add(r);const i=e.characters[n],c=Object.keys(i.weapon)[0];if(c){const _=et.FindByName(c);if(!_)throw new Error(`Weapon not found: ${n}`);r.SetWeapon(_)}i.artifacts&&Object.keys(i.artifacts).length>0&&r.SetArtifacts(new Lt.Artbox(r))}return G.ImportParty(e,a),a}function la(e,a,n){const s=a.map(r=>eN(r));return n&&s.push({filter(r){return!(n.pieces&&!n.pieces.includes(r.piece)||n.only&&n.only==="locked"!==!!r.locked)}}),en.Filter({values:e,mode:"every",filters:s})}function eN(e){const a=e.pieces||t.piece.Values(),n=e.subsMode||"some";return{for(s){return a.includes(s.piece)},filter(s){if(e.main&&!e.main.includes(s.mainstat))return!1;if(e.subs){const r=s.substats.map(c=>c.stat);if(!e.subs[n](c=>r.includes(c)))return!1}return!(Number.isFinite(e.stars)&&s.stars<(e.stars||0)||Number.isFinite(e.level)&&s.level<(e.level||0))}}}var aN=class{constructor(e){this.onChange=e,this.list=[],this.filtered=[]}Update(){this.onChange()}All(){return this.list}Clear(){this.list.splice(0,this.list.length),this.filtered.splice(0,this.filtered.length),this.onChange()}Add(e,a="push"){const n=I.Export(e);this.list[a](n),this.filtered=[...this.list],this.onChange()}AddExported(e,a="push"){this.list[a](e),this.filtered=[...this.list],this.onChange()}Filter(e,a){const{values:n}=la(this.list,e,a);return this.filtered=n,n}Get(){return this.filtered}Replace(e,a){const n=this.list.indexOf(e);return n===-1?!1:(this.list.splice(n,1,a),this.onChange(),!0)}RemoveMultiple(e,a){const{indexes:n}=la(this.list,e,a),s=[];return this.list.forEach((r,i)=>{n.includes(i)||s.push(r)}),this.list=s,this.onChange(),s.length}Remove(e){const a=this.list.indexOf(e);return a===-1?!1:(this.list.splice(a,1),this.onChange(),!0)}};function nN(e,a){const n=e.GetArtifacts();let s=a.GetArtifacts();if(!n){a.SetArtifacts(void 0);return}s||(s=new Lt.Artbox(a),a.SetArtifacts(s));const r=s,i=n.GetActiveSets(),c=r.GetActiveSets(),_=(()=>{const u=new Map;return n.GetEffects().forEach(A=>{const S=A.GetTargets().map(h=>h===e?a:h);u.set(A.Options.Name,S)}),u})();r.GetArtifacts().forEach((u,A)=>{const S=n.Get(A);I.Import(I.Export(S),u)}),i.every(u=>c.includes(u))&&r.GetEffects().forEach(u=>{const A=_.get(u.Options.Name);A&&u.ApplyMultiple(A)})}var sN=[[t.stat.NORMAL_ATTACK_LEVEL,t.stat.NORMAL_ATTACK_LEVEL_UP],[t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP],[t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP]];function rN(e,a){const n=e.GetCharacter(),s=a.GetCharacter();for(const[r,i]of sN){const c=n.Get(r)-n.Get(i),_=s.Get(i);s.Set(r,c+_)}}function iN(e,a){const n=e.GetWeapon(),s=a.GetWeapon();if(!n){a.SetWeapon(void 0);return}if(!s||s.Options.Name!==n.Options.Name){const i=et.FindByName(n.Options.Name);if(!i)throw new Error(`Weapon not found: ${n.Options.Name}`);a.SetWeapon(i)}const r=a.GetWeapon();if(!r)throw new Error("Target has no weapon");p.Import(p.Export(n),r)}function lN(e,a){a.GetCharacter().SetLevel(e.GetCharacter().GetLevel()),a.GetCharacter().SetAscension(e.GetCharacter().GetAscension()),rN(e,a),iN(e,a),nN(e,a)}var oa=class extends $a{constructor(e){super(e),this.functions=new Map;const a=Mt.Contexts("math","logic",{functions:{pick:{name:"pick",arguments:[{name:"index",description:"integer index of the item to pick, starting at 1"},"..."],evaluate({values:[s,...r]}){return r[s-1]}},var:{name:"var",arguments:[{name:"name",description:"name of the variable to set",expression:!0},{name:"value",description:"value to set the variable to"}],evaluate:({values:[,s],expressions:[r]})=>{const i=r.token.value;return n.setVar(i,s),s}},add:{name:"add",arguments:[{name:"variable",description:"name of the variable to add to",expression:!0},{name:"value",description:"value to add to the variable"}],evaluate:({values:[,s],expressions:[r],location:i})=>{const c=r.token.value,_=n.getVar(c);if(_===void 0)throw new Error(`Variable ${c} is not defined at ${i}`);const u=_+s;return n.setVar(c,u),u}},multiply:{name:"multiply",arguments:[{name:"variable",description:"name of the variable to multiply",expression:!0},{name:"value",description:"value to multiply the variable by"}],evaluate:({values:[,s],expressions:[r]})=>{const i=r.token.value,c=n.getVar(i);if(c===void 0)throw new Error(`Variable ${i} is not defined`);const _=c*s;return n.setVar(i,_),_}},func:{name:"func",description:"define a function. Example: function(myfunc, (arg1, arg2), (arg1 + arg2))",arguments:[{name:"name",description:"name of the function to define",expression:!0},{name:"arguments",description:"arguments to the function",expression:!0},{name:"body",description:"body of the function",expression:!0}],evaluate:({expressions:[s,r,i],location:c})=>{const _=s.token.value,u=r.children.length?r.children.map(({token:S})=>S.value):r.token.value==="0"?[]:[r.token.value],A=(()=>i.evaluate?[i.evaluate]:i.children.map(S=>S.evaluate||(()=>0)))();if(!A)throw new Error(`Function body is not an expression at ${c}`);return this.functions.set(_,{args:u,expr:A}),0}},call:{name:"call",description:"call a function. Example: call(myfunc, arg1, arg2)",arguments:[{name:"name",description:"name of the function to call",expression:!0},"..."],evaluate:({expressions:[s],values:[,...r],location:i})=>{var c;const _=s.token.value,u=this.functions.get(_);if(!u)throw new Error(`Function ${_} is not defined at ${i}`);if(r.length!==u.args.length)throw new Error(`Function ${_} expects ${u.args.length} arguments, but ${r.length} were provided at ${i}`);for(let A=0;AA()).pop())!=null?c:0}}}});a.ignoreCase=!0;const n=new Mt(a);this.exprParser=n}};function B(e){if(typeof e=="number")return e;const a=e.endsWith("%");a&&(e=e.slice(0,e.length-1));let n=parseFloat(e);if(!Number.isFinite(n))throw new Error(`Invalid number format: "${e}"`);return a&&(n/=100),n}function Id(e){return e}var oN=()=>({show:{name:"show",description:"Shows the rolls of the character artifacts",compile(e,{context:a,logger:n}){return function(){const i=a.GetChar().GetArtifacts();if(!i){n.error("Current character has no artifacts");return}n.log(` `+i.GetArtifacts().map(c=>T.ArtifactRolls(c)).join(` `))}}},tier:{name:"tier",arguments:"tier",description:"Sets the rolls tier to equip.`",example:"artifact rolls tier 3",docs:{tier:"a number from 0 to 4, where 0 is the lowest tier and 3 is the highest tier.Also, the number 4 or the word `avg` can be used to set the tier to the average."},compile({values:[e]},{context:a,logger:n}){let s,r;return e==="avg"?(s=4,r="AVERAGE"):(s=Math.max(0,Math.min(4,Math.floor(B(e)))),r=s+""),function(){a.Config.substats.tier=s,n.logf("Rolls tier set to %s",r)}}},equip:{name:"equip",arguments:"stat rolls more...",description:"Equips the given rolls to the artifacts.Arguments in the form `[stat] [rolls] [stat] [rolls] ...`.",example:"artifact rolls equip crit_rate 10 crit_dmg 12 elemental_mastery 3",compile({values:e},{context:a,logger:n}){const s=[];for(let r=0;r({list:{name:"list",description:"Lists the registered artifact sets",compile(e,{logger:a}){const n=new T.Table(T.labels.SET,T.labels.STARS),s=tt.GetList();return s.forEach(r=>n.AddRow(r.Name,r.Stars)),function(){a.logf("Total artifact sets: %d",s.length),a.log(` `+n.String())}}},add:{name:"add",description:"Adds a build of 5 artifacts to the current character",compile(e,{context:a,logger:n}){return function(){const r=a.GetChar();r.GetArtifacts()?n.warn("Artifacts not created. Character already has artifacts"):(r.SetArtifacts(new Lt.Artbox(r)),n.log("Artifacts created"))}}},fill:{name:"fill",description:"Adds 4 empty substats to all artifacts in the current character",compile(e,{context:a,logger:n}){return function(){const i=a.GetChar().GetArtifacts();i?(i.GetArtifacts().forEach(c=>c.FillSubstats()),n.log("All artifacts filled")):n.error("Character has no artifacts")}}},main:{name:"main",description:"Sets the mainstats of the character artifacts.",arguments:"sands goblet circlet",example:"artifact main atk_percent pyro_dmg crit_rate",compile({values:[e,a,n]},{context:s,logger:r}){const i=t.stat.Get(e.toUpperCase()),c=t.stat.Get(a.toUpperCase()),_=t.stat.Get(n.toUpperCase());return function(){const S=s.GetChar().GetArtifacts();if(!S){r.error("Current character has no artifacts");return}S.Get(2).SetMainstat(i),S.Get(3).SetMainstat(c),S.Get(4).SetMainstat(_);const h=S.GetArtifacts().map(m=>t.stat.Name(m.GetMainstat()));r.logf("Artifact mainstats set to %s",h.join(", "))}}},level:{name:"level",description:"Sets the level of all the artifacts of the current character.",example:"artifact level 20",arguments:"level",compile({values:[e]},{context:a,logger:n}){const s=B(e);return function(){const c=a.GetChar().GetArtifacts();if(!c){n.error("Current character has no artifacts");return}c.GetArtifacts().forEach(u=>u.SetLevel(s));const _=c.GetArtifacts().map(u=>u.GetLevel());n.logf("Artifact levels set to %s",_.join(", "))}}},stars:{name:"stars",description:"Sets the stars of all the artifacts of the current character.",example:"artifact stars 5",arguments:"stars",compile({values:[e]},{context:a,logger:n}){const s=B(e);return function(){const c=a.GetChar().GetArtifacts();if(!c){n.error("Current character has no artifacts");return}c.GetArtifacts().forEach(u=>u.SetStars(s));const _=c.GetArtifacts().map(u=>u.GetStars());n.logf("Artifact stars set to %s",_.join(", "))}}},remove:{name:"remove",description:"Removes all artifacts from the current character",compile(e,{context:a,logger:n}){return function(){a.GetChar().SetArtifacts(void 0),n.log("Artifacts removed")}}},show:{name:"show",description:"Shows the artifacts of the current character",compile(e,{context:a,logger:n}){return function(){const i=a.GetChar().GetArtifacts();if(!i){n.error("Current character has no artifacts");return}n.log(` @@ -667,4 +667,4 @@ resource mora 371480 # have a cost associated with them. # The cost will be calculated based on the resources # configured here. -`,FE={};D(FE,{enka:()=>kE,good:()=>VE});var kE={};D(kE,{Characters:()=>eE,FetchEnka:()=>qc,GetEnka:()=>nE,GetEnkaUrl:()=>$c,ParseEnka:()=>aE,Pieces:()=>Jc,PropMapStat:()=>Xc,Props:()=>ca,Sets:()=>tE,Weapons:()=>Zc});var VE={};D(VE,{MapPieces:()=>xE,MapStats:()=>pa,Parse:()=>dd,ParseArtifact:()=>UE});var xE={flower:t.piece.FLOWER,plume:t.piece.PLUME,sands:t.piece.SANDS,goblet:t.piece.GOBLET,circlet:t.piece.CIRCLET},pa={hp:t.stat.HP_FLAT,hp_:t.stat.HP_PERCENT,atk:t.stat.ATK_FLAT,atk_:t.stat.ATK_PERCENT,def:t.stat.DEF_FLAT,def_:t.stat.DEF_PERCENT,eleMas:t.stat.ELEMENTAL_MASTERY,enerRech_:t.stat.ENERGY_RECHARGE,heal_:t.stat.HEALING_BONUS,critRate_:t.stat.CRIT_RATE,critDMG_:t.stat.CRIT_DMG,physical_dmg_:t.stat.PHYSICAL_DMG,anemo_dmg_:t.stat.ANEMO_DMG,geo_dmg_:t.stat.GEO_DMG,electro_dmg_:t.stat.ELECTRO_DMG,hydro_dmg_:t.stat.HYDRO_DMG,pyro_dmg_:t.stat.PYRO_DMG,cryo_dmg_:t.stat.CRYO_DMG,dendro_dmg_:t.stat.DENDRO_DMG};function UE(e){const a=xE[e.slotKey];t.piece.Name(a);const n=new I.Artifact(a),s=tt.FindByName(e.setKey);s?n.SetSet(s.Name):(console.warn(`Could not find artifacts set "${e.setKey}"`),n.SetSet(e.setKey)),n.SetStars(e.rarity),n.SetLevel(e.level);const r=pa[e.mainStatKey];t.stat.Name(r),n.SetMainstat(r);for(const{key:i,value:c}of e.substats){const _=pa[i];t.stat.Name(_);let u=c;if(t.FlatStats.includes(_)||(u/=100),!Number.isFinite(u)||u<0)throw new Error(`Invalid substat value: ${u}`);n.AddSubstat(_,u)}return n}function dd(e){return(e.artifacts||[]).map(n=>UE(n))}function Cd(){return new Worker("/genshin-damage-calc/v4/assets/worker_child.775addad.js")}Xt.worker.SetGenerator(()=>{const e=new Cd,a=new Xt.worker.VirtualWorker((n,s,r)=>e.postMessage({path:n,id:s,data:r}));return a.SetKiller(()=>e.terminate()),e.addEventListener("message",async({data:n})=>{if(n.error){await a.Error(n.error);return}a.Recieve(n.path,n.id,n.data)}),a});const fe=self,Na=Xt.worker.BackendWorker((e,a,n)=>fe.postMessage({path:e,id:a,data:n}));Na.SetKiller(()=>fe.terminate()),fe.addEventListener("message",async({data:e})=>{try{await Na.Recieve(e.path,e.id,e.data)}catch(a){console.error("[WORKER ERROR]",a),Na.Error(a),fe.postMessage({error:a})}})})(); +`,FE={};D(FE,{enka:()=>kE,good:()=>VE});var kE={};D(kE,{Characters:()=>eE,FetchEnka:()=>qc,GetEnka:()=>nE,GetEnkaUrl:()=>$c,ParseEnka:()=>aE,Pieces:()=>Jc,PropMapStat:()=>Xc,Props:()=>ca,Sets:()=>tE,Weapons:()=>Zc});var VE={};D(VE,{MapPieces:()=>xE,MapStats:()=>pa,Parse:()=>dd,ParseArtifact:()=>UE});var xE={flower:t.piece.FLOWER,plume:t.piece.PLUME,sands:t.piece.SANDS,goblet:t.piece.GOBLET,circlet:t.piece.CIRCLET},pa={hp:t.stat.HP_FLAT,hp_:t.stat.HP_PERCENT,atk:t.stat.ATK_FLAT,atk_:t.stat.ATK_PERCENT,def:t.stat.DEF_FLAT,def_:t.stat.DEF_PERCENT,eleMas:t.stat.ELEMENTAL_MASTERY,enerRech_:t.stat.ENERGY_RECHARGE,heal_:t.stat.HEALING_BONUS,critRate_:t.stat.CRIT_RATE,critDMG_:t.stat.CRIT_DMG,physical_dmg_:t.stat.PHYSICAL_DMG,anemo_dmg_:t.stat.ANEMO_DMG,geo_dmg_:t.stat.GEO_DMG,electro_dmg_:t.stat.ELECTRO_DMG,hydro_dmg_:t.stat.HYDRO_DMG,pyro_dmg_:t.stat.PYRO_DMG,cryo_dmg_:t.stat.CRYO_DMG,dendro_dmg_:t.stat.DENDRO_DMG};function UE(e){const a=xE[e.slotKey];t.piece.Name(a);const n=new I.Artifact(a),s=tt.FindByName(e.setKey);s?n.SetSet(s.Name):(console.warn(`Could not find artifacts set "${e.setKey}"`),n.SetSet(e.setKey)),n.SetStars(e.rarity),n.SetLevel(e.level);const r=pa[e.mainStatKey];t.stat.Name(r),n.SetMainstat(r);for(const{key:i,value:c}of e.substats){const _=pa[i];t.stat.Name(_);let u=c;if(t.FlatStats.includes(_)||(u/=100),!Number.isFinite(u)||u<0)throw new Error(`Invalid substat value: ${u}`);n.AddSubstat(_,u)}return n}function dd(e){return(e.artifacts||[]).map(n=>UE(n))}function Cd(){return new Worker("/genshin-damage-calc/v4/assets/worker_child.60eff3ad.js")}Xt.worker.SetGenerator(()=>{const e=new Cd,a=new Xt.worker.VirtualWorker((n,s,r)=>e.postMessage({path:n,id:s,data:r}));return a.SetKiller(()=>e.terminate()),e.addEventListener("message",async({data:n})=>{if(n.error){await a.Error(n.error);return}a.Recieve(n.path,n.id,n.data)}),a});const fe=self,Na=Xt.worker.BackendWorker((e,a,n)=>fe.postMessage({path:e,id:a,data:n}));Na.SetKiller(()=>fe.terminate()),fe.addEventListener("message",async({data:e})=>{try{await Na.Recieve(e.path,e.id,e.data)}catch(a){console.error("[WORKER ERROR]",a),Na.Error(a),fe.postMessage({error:a})}})})(); diff --git a/v4/assets/worker_child.775addad.js b/v4/assets/worker_child.60eff3ad.js similarity index 99% rename from v4/assets/worker_child.775addad.js rename to v4/assets/worker_child.60eff3ad.js index 723d4b0..15ddbf0 100644 --- a/v4/assets/worker_child.775addad.js +++ b/v4/assets/worker_child.60eff3ad.js @@ -80,7 +80,7 @@ maximize z: `+this.strExpr(a.c)+`; ${v.DPS}: ${e.dps.toFixed(2)} -`+At(...n)}function Pu(e,a){const n=new Y(v.NAME,v.DAMAGE,v.RELATIVE);n.AddRow(e,a.damage,le(a.relative));for(const s in a.elements){const r=parseInt(s);n.AddRow(t.stat.Name(r),a.elements[s].damage,le(a.elements[s].relative))}for(const s in a.talents){const r=parseInt(s);n.AddRow(t.stat.Name(r),a.talents[s].damage,le(a.talents[s].relative))}for(const s in a.instances)n.AddRow(s,a.instances[s].damage,le(a.instances[s].relative));return n.toString()}var le=e=>e*100;function Hu(...e){const a=new Y("NAME","STARS","TYPE","EFFECTS");for(const n of e){const s=(()=>{if(n instanceof Ot.Food){const r=n.GetRank();return n.Options.Effects.map(([i,c,_])=>{const u=c+(_-c)*(r-1)/2;return`${t.stat.Name(i)}: ${u}`}).join(", ")}else return n.Effects.map(([r,i,c])=>`${t.stat.Name(r)}: ${i}-${c}`).join(", ")})();a.AddRow(n.Name,n.Stars,n.Type,s)}return a.String()}var wu=[{Name:T.hits.HIT_Q_1,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.6816000000000004}]},{Name:T.hits.HIT_Q_2,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.49090000000000006}]}],Bu=l.Factory({Name:"ChevreuseC2",OnApply:new l.Builder().instance.Options({Name:"HIT_C2",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:1.2,Talent:t.stat.NONE}]}).Build()}),bu=l.Factory({Name:"ChevreuseC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Ku=l.Factory({Name:"ChevreuseC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Yu=l.Factory({Name:"ChevreuseC6",ApplyOther:!0,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG,t.stat.ELECTRO_DMG).Values(.2).Stacks().Build()}),Fu=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5313}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.49310000000000004}]},{Name:T.hits.HIT_N3_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2764}]},{Name:T.hits.HIT_N3_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3245}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7726000000000001}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2168999999999999}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],ku=l.Factory({Name:"ChevreuseA1",Conditions:["HIT_OVERLOAD"],ApplyOther:!0,MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:1},effect:{conditions:["HIT_OVERLOAD"]}}).stat.Enemy(t.stat.PYRO_RES,t.stat.ELECTRO_RES).Values(-.4).Build()}),Vu=l.Factory({Name:"ChevreuseA4",ApplyOther:!0,MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:4},target:{element:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).observe.Owner(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Enemy(t.stat.ATK_PERCENT).Values(1/100).Map((e,a,n)=>{const r=n.Owner.GetCharacter().Get(t.stat.HP);return Math.min(e*r/1e3,.4)}).Build()}),xu=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1520000000000001}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.7280000000000002}]},{Name:T.hits.HIT_E_HOLD+"_2",Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.824}]},{Name:T.hits.HIT_E+"_OUSIA",Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.28800000000000003}]}],Vr=G.Factory({Name:"Chevreuse",Stars:4,Weapon:t.weapon.POLEARM,Element:t.stat.PYRO_DMG,StatBonus:t.stat.HP_PERCENT,BurstCost:60,Region:t.region.FONTAINE,HpBase:[1002.9700927734,3588.6091308594],AtkBase:[16.205280303955,57.983562469482],DefBase:[50.701351165771,181.40849304199],Normals:Fu,Skills:xu,Bursts:wu,Extra:[],Effects:[ku,Vu,Bu,bu,Ku,Yu]}),Uu=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.752}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4315}]}],Wu=new l.Builder().stat.Char(t.stat.CRIT_RATE).Instance("HIT_E").Values(.12).Map((e,a)=>{const n=a.FindEffect("NaviaE");if(!n)throw new Error("NaviaE not found");const s=Math.min(n.GetStacks(),3);return e*s}).Build(),ju=l.Factory({Name:"NaviaC2",OnApply(e,a,n){const s=Wu(e,a,n),r=e.FindEffect("NaviaE");if(!r)throw new Error("NaviaE not found");return n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_STACKS,s)),s}}),zu=l.Factory({Name:"NaviaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),qu=l.Factory({Name:"NaviaC4",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.GEO_RES).Values(-.2).Build()}),$u=l.Factory({Name:"NaviaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Qu=new l.Builder().stat.Char(t.stat.CRIT_DMG).Instance("HIT_E").Values(.45).Map((e,a)=>{const n=a.FindEffect("NaviaE");if(!n)throw new Error("NaviaE not found");const s=Math.max(0,Math.min(n.GetStacks()-3,3));return e*s}).Build(),Xu=l.Factory({Name:"NaviaC6",OnApply(e,a,n){const s=Qu(e,a,n),r=e.FindEffect("NaviaE");if(!r)throw new Error("NaviaE not found");return n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_STACKS,s)),s}}),Ju=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9352}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8651}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3489}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.3343}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6252}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1309}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],Zu=l.Factory({Name:"NaviaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).infusion.Set(t.stat.GEO_DMG,!0).Next().Where({target:{ascension:1}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(.4).Build()}),tA=l.Factory({Name:"NaviaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Party(!0).stat.Char(t.stat.ATK_PERCENT).Values(.2).Map((e,a)=>{var n;const s=((n=a.GetParty())==null?void 0:n.GetMembers())||[a];let r=0;for(const i of s){const c=i.GetCharacter().Options.Element;t.Swirlable.includes(t.DmgToAura(c))&&r++}return r>2&&(r=2),e*r}).Build()}),eA=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.948}]},{Name:T.hits.HIT_E+"_OUSIA",Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.36}]}],aA=l.Factory({Name:"NaviaE2",MaxStacks:6,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance(T.hits.HIT_E).Values(.15).Map((e,a,n)=>e*Math.max(0,n.GetStacks()-3)).Next().Where({effect:{conditions:["ALL_STRIKE"]}}).mv.Multiplier(2,T.hits.HIT_E).Build()}),nA=l.Factory({Name:"NaviaE",MaxStacks:11,OnApply:new l.Builder().mv.Multiplier(1,T.hits.HIT_E).Map((e,a,n)=>e*n.GetStacks()/11+1).Build()}),xr=G.Factory({Name:"Navia",Element:t.stat.GEO_DMG,Stars:5,Weapon:t.weapon.CLAYMORE,StatBonus:t.stat.CRIT_DMG,BurstCost:60,Region:t.region.FONTAINE,HpBase:[984.78,4044.0373535156],AtkBase:[27.3714,112.3935546875],DefBase:[61.74456,253.56239318848],Normals:Ju,Skills:eA,Bursts:Uu,Extra:[],Effects:[nA,aA,Zu,tA,ju,zu,qu,$u,Xu]}),sA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4839}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4373}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5512}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.733}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7422}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]},{Name:"HIT_ARKHE",Element:t.stat.HYDRO_DMG,Talent:t.stat.NONE,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.0946}]}],rA=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0786}]},{Name:T.hits.HIT_E_1,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0596}]},{Name:T.hits.HIT_E_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0323}]},{Name:T.hits.HIT_E_3,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0829}]}],iA=l.Factory({Name:"FurinaE",OnApply(e,a,n){const s=lA(e,a,n),r=[],i=()=>{for(const u of r)n.RemoveObserver(u);let c=[];const _=e.GetParty();_&&(c=_.GetMembers());for(const u of c){if(u===e)continue;const A=n.Observer(u.GetCharacter().CreateObserver(t.stat.HP_CURRENT,s));r.push(A)}};return n.Observer(e.Event.CreateObserver(ut.CHANGE_PARTY,i)),i(),()=>0}}),lA=new l.Builder().observe.Party(!0).observe.Target(t.stat.HP_CURRENT).mv.Multiplier(1,/E_\d/).Map((e,a)=>{let n=[];const s=a.GetParty();s?n=s.GetMembers():n=[a];let r=0;for(const i of n)i.GetCharacter().Get(t.stat.HP_CURRENT)>.5&&r++;return r=Math.min(r,4),1+r/10}).Build(),oA=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1141}]}],cA=l.Factory({Name:"FurinaQ",MaxStacks:400,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ALL_DMG).Values(1).Stacks().Map((e,a,n)=>{let r=.05+.02*n.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL);return r=r*e/100,r}).Build()}),EA=l.Factory({Name:"FurinaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.HP,t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ALL_DMG).Instance(/E_\d/).Values(.7/100).Map((e,a)=>Math.min(.28,e*a.GetCharacter().Get(t.stat.HP)/1e3)).Build()}),TA=l.Factory({Name:"FurinaC1",OnApply(e,a,n){const s=e.FindEffect("FurinaQ");if(!s)throw new Error("FurinaC1: could not find FurinaQ");let r=0,i=a.Enabled();const c=()=>{const _=s.GetStacks();a.Enabled()?!i&&_300&&(r=_,s.SetStacks(300)),i=a.Enabled()};return c(),n.Observer(a.CreateObserver(U.ENABLE,c)),n.Observer(a.CreateObserver(U.DISABLE,c)),s.CreateObserver(U.CHANGE_STACKS,c),()=>0}}),_A=l.Factory({Name:"FurinaC2",MaxStacks:400,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.35/100).Stacks().Build()}),uA=l.Factory({Name:"FurinaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),AA=l.Factory({Name:"FurinaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),SA=l.Factory({Name:"FurinaC6",Conditions:["ARKHE_PNEUMA"],MaxConditions:1,OnApply:new l.Builder().infusion.Set(t.stat.HYDRO_DMG,!0).Next().mv.Mv(t.stat.HP,.18,/N\d|Charged|Plunge/i).Next().Where({effect:{conditions:["ARKHE_PNEUMA"]}}).mv.Mv(t.stat.HP,.25,/N\d|Charged|Plunge/i).Build()}),Ur=G.Factory({Name:"Furina",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.SWORD,StatBonus:t.stat.CRIT_RATE,BurstCost:60,Region:t.region.FONTAINE,Normals:sA,Skills:rA,Bursts:oA,Extra:[],Effects:[iA,cA,EA,TA,_A,uA,AA,SA],HpBase:[1191.65,4893.5590820312],AtkBase:[18.9924,77.987365722656],DefBase:[54.146148681641,222.35850524902]}),hA=[{Name:T.hits.HIT_N1,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5458}]},{Name:T.hits.HIT_N2,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4625}]},{Name:T.hits.HIT_N3,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.7234}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.368}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.HP,Scaling:o.TalentScaling.PHYSICAL_1,Initial:.0732}]},{Name:T.hits.HIT_CHARGED+"_C6",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.HP,Scaling:o.TalentScaling.NONE,Initial:.1}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],mA=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1286}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.208}]}],fA=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.2226}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0911}]}],LA=l.Factory({Name:"NeuvilletteA1",MaxStacks:3,OnApply:new l.Builder().Where({target:{ascension:1}}).mv.Multiplier(1,"HIT_CHARGED_2","HIT_CHARGED_C6").Map((e,a,n)=>[0,1.1,1.25,1.6][n.GetStacks()]).Build()}),pA=l.Factory({Name:"NeuvilletteA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.HP_CURRENT).stat.Char(t.stat.HYDRO_DMG).Values(1).Map((e,a)=>Math.min(.3,.6*Math.max(0,a.GetCharacter().Get(t.stat.HP_CURRENT)-.3))).Build()}),NA=l.Factory({Name:"NeuvilletteC2",OnApply(e,a,n){const s=e.FindEffect("NeuvilletteA1");if(!s)throw new Error("NeuvilletteC2: Could not find NeuvilletteA1");const r=e.FindInstance("HIT_CHARGED_2"),i=e.FindInstance("HIT_CHARGED_C6");if(!r)throw new Error("NeuvilletteC2: Could not find HIT_CHARGED_2");if(!i)throw new Error("NeuvilletteC2: Could not find HIT_CHARGED_C6");const c=n.Modifier(r.Subject.CreateModifier(t.stat.CRIT_DMG,0)),_=n.Modifier(i.Subject.CreateModifier(t.stat.CRIT_DMG,0)),u=()=>{if(e.GetCharacter().GetAscension()<1){c.SetValue(0),_.SetValue(0);return}const A=s.GetStacks();c.SetValue(.14*A),_.SetValue(.14*A)};return u(),n.Observer(s.CreateObserver(l.EffectEvent.CHANGE_STACKS,u)),n.Observer(e.GetCharacter().CreateObserver(t.stat.LEVEL,u)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ASCENSION,u)),()=>0}}),dA=l.Factory({Name:"NeuvilletteC3",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_LEVEL_UP).Values(3).Build()}),CA=l.Factory({Name:"NeuvilletteC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Wr=G.Factory({Name:"Neuvillette",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.CATALYST,StatBonus:t.stat.CRIT_DMG,BurstCost:70,Region:t.region.FONTAINE,HpBase:[1143.984,4697.8169],AtkBase:[16.218,66.595],DefBase:[44.8725,184.275],Normals:hA,Skills:mA,Bursts:fA,Extra:[],Effects:[LA,pA,NA,dA,CA]}),MA=l.Factory({Name:"MikaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),gA=l.Factory({Name:"MikaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),GA=l.Factory({Name:"MikaC6",ApplyOther:!0,MaxTargets:1,OnApply:new l.Builder().stat.Char(t.stat.PHYSICAL_CRIT_DMG).Values(.6).Build()}),RA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4326}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.415}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.545}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2761}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7087}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1275}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],IA=l.Factory({Name:"MikaA1",MaxStacks:4,ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.PHYSICAL_DMG).Values(.1).Stacks().Build()}),OA=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.84}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.252}]}],jr=G.Factory({Name:"Mika",Element:t.stat.CRYO_DMG,Stars:4,Weapon:t.weapon.POLEARM,StatBonus:t.stat.HP_PERCENT,BurstCost:70,Region:t.region.MONDSTADT,HpBase:[1048.5597,3751.7275],AtkBase:[18.6984,66.90411],DefBase:[59.800125,213.96375],Normals:RA,Skills:OA,Bursts:[],Extra:[],Effects:[IA,MA,gA,GA]}),DA=[{Name:T.hits.HIT_N1+"_Q",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.987},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0169}]},{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.393},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.0239}]}],vA=l.Factory({Name:"DehyaC1",OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2).Next().mv.Mv(t.stat.HP,.036,e=>e.Options.Talent===t.stat.ELEMENTAL_SKILL_DMG).Next().mv.Mv(t.stat.HP,.06,e=>e.Options.Talent===t.stat.ELEMENTAL_BURST_DMG).Build()}),yA=l.Factory({Name:"DehyaC2",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance("HIT_E_DOT").Values(.5).Build()}),PA=l.Factory({Name:"DehyaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),HA=l.Factory({Name:"DehyaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wA=l.Factory({Name:"DehyaC6",MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.1).Next().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_DMG).Values(.15).Stacks().Build()}),BA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6212}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6171}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7663}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9529}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5633}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0182}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],bA=[{Name:T.hits.HIT_E_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1288}]},{Name:T.hits.HIT_E_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.328}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.602},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0103}]}],zr=G.Factory({Name:"Dehya",Stars:5,Element:t.stat.PYRO_DMG,Weapon:t.weapon.CLAYMORE,StatBonus:t.stat.HP_PERCENT,Region:t.region.SUMERU,BurstCost:70,HpBase:[1220.2496,5011.0044],AtkBase:[20.6682,84.8686],DefBase:[48.88111,200.7369],Normals:BA,Skills:bA,Bursts:DA,Extra:[],Effects:[vA,yA,PA,HA,wA]}),KA=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.776}]}],YA=l.Factory({Name:"FaruzanQ",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.ANEMO_RES).Values(-.3).Next().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ANEMO_DMG).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map(e=>e*.18).Build()}),FA=l.Factory({Name:"FaruzanC3",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),kA=l.Factory({Name:"FaruzanC5",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),VA=l.Factory({Name:"FaruzanC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ANEMO_CRIT_DMG).Values(.4).Build()}),xA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4473}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4219}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5316}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7062}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],UA=l.Factory({Name:"FaruzanA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).observe.Owner(t.stat.ATK_BASE).stat.Char(t.stat.ANEMO_DMG_FLAT).Values(.32).Map((e,a,n)=>n.Owner.GetCharacter().Get(t.stat.ATK_BASE)*e).Build()}),WA=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.488}]},{Name:T.hits.HIT_E_2,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.08}]}],qr=G.Factory({Name:"Faruzan",Stars:4,Element:t.stat.ANEMO_DMG,Weapon:t.weapon.BOW,StatBonus:t.stat.ATK_PERCENT,BurstCost:80,Region:t.region.SUMERU,HpBase:[802.3761,2870.8872],AtkBase:[16.4724,58.939335],DefBase:[52.647,188.37],Normals:xA,Skills:WA,Bursts:KA,Extra:[],Effects:[YA,UA,FA,kA,VA]}),jA=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1843}]},{Name:T.hits.HIT_Q_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.2253}]}],zA=l.Factory({Name:"NilouC1",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance("HIT_E_3_1").Values(.65).Build()}),qA=l.Factory({Name:"NilouC2",ApplyOther:!0,Conditions:["BLOOM"],MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Enemy(t.stat.HYDRO_RES).Values(-.35).Next().Where({owner:{ascension:1},effect:{conditions:["BLOOM"]}}).stat.Enemy(t.stat.DENDRO_RES).Values(-.35).Build()}),$A=l.Factory({Name:"NilouC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),QA=l.Factory({Name:"NilouC4",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.5).Build()}),XA=l.Factory({Name:"NilouC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),JA=l.Factory({Name:"NilouC6",OnApply:new l.Builder().observe.Target(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.Char(t.stat.CRIT_RATE).Values(.6/100).Map((e,a)=>Math.max(0,Math.min(.3,e*a.GetCharacter().Get(t.stat.HP)/1e3))).Next().observe.Target(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.Char(t.stat.CRIT_DMG).Values(1.2/100).Map((e,a)=>Math.max(0,Math.min(.6,e*a.GetCharacter().Get(t.stat.HP)/1e3))).Build()}),ZA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5031}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4544}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7035}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5022}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5444}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}];function $r(e){const a=e.GetParty();if(!a)return!1;let n=!1,s=!1;for(const r of a.GetMembers()){const i=r.GetCharacter().Options.Element;if(i===t.stat.DENDRO_DMG)n=!0;else if(i===t.stat.HYDRO_DMG)s=!0;else return!1}return n&&s}var tS=l.Factory({Name:"NilouA1",ApplyOther:!0,OnApply:new l.Builder().Where((e,a)=>a.GetCharacter().GetAscension()<1?!1:$r(e)).observe.Party(!0).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(100).Build()}),eS=l.Factory({Name:"NilouA4",ApplyOther:!0,OnApply:new l.Builder().Where((e,a)=>a.GetCharacter().GetAscension()<4?!1:$r(e)).observe.Party(!0).observe.Owner(t.stat.HP_FLAT,t.stat.HP_BASE,t.stat.HP_PERCENT).stat.Char(t.stat.BLOOM_DMG).Values(.09).Map((e,a,n)=>Math.max(0,Math.min(4,(n.Owner.GetCharacter().Get(t.stat.HP)-3e4)*e/1e3))).Build()}),aS=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0334}]},{Name:T.hits.HIT_E_1+"_1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0455}]},{Name:T.hits.HIT_E_1+"_2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0326}]},{Name:T.hits.HIT_E_2+"_1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0514}]},{Name:T.hits.HIT_E_2+"_2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0396}]},{Name:T.hits.HIT_E_3+"_1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0717}]},{Name:T.hits.HIT_E_3+"_2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0506}]}],Qr=G.Factory({Name:"Nilou",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.SWORD,StatBonus:t.stat.HP_PERCENT,Region:t.region.SUMERU,BurstCost:70,HpBase:[1182.1168,4854.4106],AtkBase:[17.8752,73.39987],DefBase:[56.71884,232.9236],Normals:ZA,Skills:aS,Bursts:jA,Extra:[],Effects:[tS,eS,zA,qA,$A,QA,XA,JA]}),Xe=new Set,Je=[.025,.05,.075,.115];function nS(e){const a=e.FindEffect("YunjinA4");if(!a||!a.Enabled()||e.GetCharacter().GetAscension()<4)return 0;const n=e.GetParty();if(!n)return Je[0];Xe.clear();for(const r of n.GetMembers()){const i=r.GetCharacter().Options.Element;Xe.add(i)}const s=Math.max(1,Math.min(Je.length,Xe.size));return Je[s-1]}var sS=l.Factory({Name:"YunjinA4",OnApply(e,a,n){const s=e.FindEffect("YunjinQ");if(!s)throw new Error("Yunjin Burst effect not found");const r=s;function i(){r.Enabled()&&(r.Disable(),r.Enable())}return i(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_TARGET,i)),()=>0}}),rS=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.44}]}],iS=l.Factory({Name:"YunjinQ",ApplyOther:!0,OnApply:new l.Builder().observe.Party(!0).observe.Owner(t.stat.DEF_PERCENT,t.stat.DEF_BASE,t.stat.DEF_FLAT,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a,n)=>(.3216*e+nS(n.Owner))*n.Owner.GetCharacter().Get(t.stat.DEF)).Build()}),lS=l.Factory({Name:"YunjinC2",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.15).Build()}),oS=l.Factory({Name:"YunjinC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),cS=l.Factory({Name:"YunjinC4",OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT).Values(.2).Build()}),ES=l.Factory({Name:"YunjinC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),TS=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4051}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4025}]},{Name:T.hits.HIT_N3_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2296}]},{Name:T.hits.HIT_N3_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2752}]},{Name:T.hits.HIT_N4_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2399}]},{Name:T.hits.HIT_N4_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2881}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6734}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2169}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],_S=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.4912}]},{Name:T.hits.HIT_E_1,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.6096}]},{Name:T.hits.HIT_E_2,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.728}]}],Xr=G.Factory({Name:"Yunjin",Stars:4,Weapon:t.weapon.POLEARM,Element:t.stat.GEO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,Region:t.region.LIYUE,BurstCost:60,HpBase:[893.5552,3197.1245],AtkBase:[16.0272,57.34638],DefBase:[61.5741,220.311],Normals:TS,Skills:_S,Bursts:rS,Extra:[],Effects:[iS,sS,lS,oS,cS,ES]}),uS=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.272}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.22}]}],AS=l.Factory({Name:"YoimiyaC1",OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2).Build()}),SS=l.Factory({Name:"YoimiyaC2",OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Values(.25).Build()}),hS=l.Factory({Name:"YoimiyaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),mS=l.Factory({Name:"YoimiyaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),fS=l.Factory({Name:"YoimiyaC6",OnApply:new l.Builder().instance.Location("Normal").Options({Name:"HIT_C6",Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Talent:t.stat.NORMAL_ATTACK_LEVEL,Initial:.164*.6}]}).Build()}),LS=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3564}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6838}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8889}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4642}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0586}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_KindlingArrow",Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.164}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],pS=l.Factory({Name:"YoimiyaA1",MaxStacks:10,OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.PYRO_DMG).Values(.02).Stacks().Build()}),NS=l.Factory({Name:"YoimiyaA4",ApplyOther:!0,ApplySelf:!1,OnApply(e,a,n){const s=e.GetCharacter(),r=a.Owner.GetCharacter(),i=a.Owner.FindEffect("YoimiyaA1");if(!i)throw new Error("Cannot find Yoimiya A1");const c=n.Modifier(s.CreateModifier(t.stat.ATK_PERCENT,0)),_=()=>{if(r.GetAscension()<4){c.SetValue(0);return}c.SetValue(.1+.01*i.GetStacks())};return _(),n.Observer(r.CreateObserver(t.stat.LEVEL,_)),n.Observer(r.CreateObserver(t.stat.ASCENSION,_)),n.Observer(i.CreateObserver(l.EffectEvent.CHANGE_STACKS,_)),()=>0}}),dS=l.Factory({Name:"YoimiyaE",OnApply:new l.Builder().infusion.Set(t.stat.PYRO_DMG,!0).Next().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.3791,/hit_n\d/i).Map((e,a)=>1+e*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),Jr=G.Factory({Name:"Yoimiya",Stars:5,Weapon:t.weapon.BOW,Element:t.stat.PYRO_DMG,StatBonus:t.stat.CRIT_RATE,Region:t.region.INAZUMA,BurstCost:60,HpBase:[791.2556,3249.3232],AtkBase:[25.137,103.21857],DefBase:[47.864,196.56],Normals:LS,Skills:[],Bursts:uS,Extra:[],Effects:[dS,pS,NS,AS,SS,hS,mS,fS]}),CS=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.824}]}],MS=l.Factory({Name:"YanfeiQ",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(...o.TalentScaling.ELEMENTAL_2).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map(e=>.334*e).Build()}),gS=l.Factory({Name:"YanfeiC2",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_CRIT_RATE).Values(.2).Build()}),GS=l.Factory({Name:"YanfeiC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),RS=l.Factory({Name:"YanfeiC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),IS=[{Name:T.hits.HIT_N1,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5834}]},{Name:T.hits.HIT_N2,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5213}]},{Name:T.hits.HIT_N3,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.7601}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_2,Initial:.9823}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],OS=l.Factory({Name:"YanfeiA1",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindEffect("YanfeiSeal");if(!r)throw new Error("Cannot find Yanfei Scarlet Seals");const i=n.Modifier(s.CreateModifier(t.stat.PYRO_DMG,0)),c=()=>{if(s.GetAscension()<1){i.SetValue(0);return}i.SetValue(r.GetStacks()*.05)};return c(),n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_STACKS,c)),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),DS=l.Factory({Name:"YanfeiA4",OnApply:new l.Builder().Where({target:{ascension:4}}).instance.Location("Normal").Options({Name:"HIT_A4",Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Initial:.8,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),vS=l.Factory({Name:"YanfeiSeal",MaxStacks:4,OnApply:new l.Builder().observe.Target(t.stat.NORMAL_ATTACK_LEVEL,t.stat.NORMAL_ATTACK_LEVEL_UP).mv.Mv(t.stat.ATK,.1733,"HIT_CHARGED").Map((e,a,n)=>e*n.GetStacks()*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.NORMAL_ATTACK_LEVEL)-1]).Build()}),yS=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.696}]}],Zr=G.Factory({Name:"Yanfei",Stars:4,Element:t.stat.PYRO_DMG,StatBonus:t.stat.PYRO_DMG,Weapon:t.weapon.CATALYST,Region:t.region.LIYUE,BurstCost:80,HpBase:[784.14026,2805.64],AtkBase:[20.12304,72.001564],DefBase:[49.2135,176.085],Normals:IS,Skills:yS,Bursts:CS,Extra:[],Effects:[vS,MS,OS,DS,gS,GS,RS]}),PS=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.6}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.3382}]}],HS=l.Factory({Name:"YaeC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wS=l.Factory({Name:"YaeC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_DMG).Values(.2).Build()}),BS=l.Factory({Name:"YaeC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),bS=l.Factory({Name:"YaeC6",OnApply:new l.Builder().stat.Char(t.stat.DEFIGNORED).Instance(/HIT_E_\d/i).Values(.6).Build()}),KS=[{Name:T.hits.HIT_N1,Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3966}]},{Name:T.hits.HIT_N2,Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3852}]},{Name:T.hits.HIT_N3,Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5689}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4289}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],YS=l.Factory({Name:"YaeA4",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_MASTERY).Where({target:{ascension:4}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.15/100).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()}),FS=[{Name:T.hits.HIT_E_1,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6067}]},{Name:T.hits.HIT_E_2,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7584}]},{Name:T.hits.HIT_E_3,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.948}]},{Name:T.hits.HIT_E_4,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.185}]}],ti=G.Factory({Name:"Yae",Stars:5,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.CRIT_RATE,Weapon:t.weapon.CATALYST,Region:t.region.INAZUMA,BurstCost:90,HpBase:[807.46204,3315.8757],AtkBase:[26.4404,108.57064],DefBase:[44.2742,181.818],Normals:KS,Skills:FS,Bursts:PS,Extra:[],Effects:[YS,HS,wS,BS,bS]}),kS=l.Factory({Name:"XiaoQ",OnApply:new l.Builder().infusion.Set(t.stat.ANEMO_DMG,!0).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(...o.TalentScaling.ELEMENTAL_2).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map(e=>.5845*e).Build()}),VS=l.Factory({Name:"XiaoC2",OnApply:new l.Builder().stat.Char(t.stat.ENERGY_RECHARGE).Values(.25).Build()}),xS=l.Factory({Name:"XiaoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),US=l.Factory({Name:"XiaoC4",OnApply:new l.Builder().Where({target:{hp:{leq:.5}}}).stat.Char(t.stat.DEF_PERCENT).Values(1).Build()}),WS=l.Factory({Name:"XiaoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),jS=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.2754}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.5694}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6855}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.3766}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.7154}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.9583}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.2109}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439}]}],zS=l.Factory({Name:"XiaoA1",MaxStacks:5,OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.ALL_DMG).Values(.05).Stacks().Build()}),qS=l.Factory({Name:"XiaoA4",MaxStacks:3,OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.15).Stacks().Build()}),$S=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.528}]}],ei=G.Factory({Name:"Xiao",Stars:5,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.CRIT_RATE,Weapon:t.weapon.POLEARM,Region:t.region.LIYUE,BurstCost:70,HpBase:[991.4528,4071.4412],AtkBase:[27.1852,111.628975],DefBase:[62.2232,255.528],Normals:jS,Skills:$S,Bursts:[],Extra:[],Effects:[kS,zS,qS,VS,xS,US,WS]}),QS=[{Name:T.hits.HIT_Q_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.72}]},{Name:T.hits.HIT_Q_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.88}]},{Name:T.hits.HIT_Q_3,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.096}]},{Name:"HIT_PYRONADO",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.12}]}],XS=l.Factory({Name:"XianglingC1",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.PYRO_RES).Values(-.15).Build()}),JS=l.Factory({Name:"XianglingC2",OnApply:new l.Builder().instance.Options({Name:"HIT_C2",Element:t.stat.PYRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.75,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),ZS=l.Factory({Name:"XianglingC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),t0=l.Factory({Name:"XianglingC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),e0=l.Factory({Name:"XianglingC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Values(.15).Build()}),a0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4205}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4214}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2606}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.141}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7104}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.2169}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],n0=l.Factory({Name:"XianglingA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.ATK_PERCENT).Values(.1).Build()}),s0=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1128}]}],ai=G.Factory({Name:"Xiangling",Stars:4,Element:t.stat.PYRO_DMG,StatBonus:t.stat.ELEMENTAL_MASTERY,Weapon:t.weapon.POLEARM,Region:t.region.LIYUE,BurstCost:80,HpBase:[911.791,3262.3718],AtkBase:[18.87648,67.54129],DefBase:[56.0805,200.655],Normals:a0,Skills:s0,Bursts:QS,Extra:[],Effects:[n0,XS,JS,ZS,t0,e0]}),r0=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.472}]}],i0=l.Factory({Name:"WandererC1",OnApply(e,a,n){if(!e.FindEffect("WandererA4"))throw new Error("Cannot find Wanderer A4");let r;const i=()=>{const c=e.FindInstance("HIT_A4");!c||r||(r=n.Mv({Stat:t.stat.ATK,Value:.25,Enabled:!0},c))};return i(),n.Observer(e.GetCharacter().CreateObserver(t.stat.LEVEL,i)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ASCENSION,i)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),()=>0}}),l0=l.Factory({Name:"WandererC2",MaxStacks:120,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.04).Stacks().Map(e=>Math.min(2,e)).Build()}),o0=l.Factory({Name:"WandererC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),c0=l.Factory({Name:"WandererC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),E0=[{Name:T.hits.HIT_N1,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6871}]},{Name:T.hits.HIT_N2,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6502}]},{Name:T.hits.HIT_N3,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4764}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.3208}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]},{Name:T.hits.HIT_N1+"_C6",Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6871*.4}]},{Name:T.hits.HIT_N2+"_C6",Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6502*.4}]},{Name:T.hits.HIT_N3+"_C6",Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4764*.4}]}],T0=l.Factory({Name:"WandererA1",MaxAuras:1,ValidAuras:t.Swirlable,OnApply:new l.Builder().Where({target:{ascension:1},effect:{affected:[t.stat.PYRO_DMG]}}).stat.Char(t.stat.ATK_PERCENT).Values(.3).Next().Where({target:{ascension:1},effect:{affected:[t.stat.CRYO_DMG]}}).stat.Char(t.stat.CRIT_RATE).Values(.2).Build()}),_0=l.Factory({Name:"WandererA4",OnApply:new l.Builder().Where({target:{ascension:4}}).instance.Options({Name:"HIT_A4",Element:t.stat.ANEMO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.35,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),u0=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.952}]}],A0=l.Factory({Name:"WandererE",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.3298,/hit_n\d/i).Map((e,a)=>1+e*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Next().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.2639,/hit_charged/i).Map((e,a)=>1+e*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),ni=G.Factory({Name:"Wanderer",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.CRIT_RATE,Region:t.region.SUMERU,BurstCost:60,HpBase:[791.2556,3249.3232],AtkBase:[25.5094,104.747734],DefBase:[47.2657,194.103],Normals:E0,Skills:u0,Bursts:r0,Extra:[],Effects:[A0,T0,_0,i0,l0,o0,c0]}),S0=[{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.376}]}],h0=l.Factory({Name:"VentiQ",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){m0(e,a,n);function s(){const r=e.FindBurst(T.hits.HIT_Q+"_ADDITIONAL");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),m0=new l.Builder().instance.Location("Burst").Options({Name:T.hits.HIT_Q+"_ADDITIONAL",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.188,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),f0=l.Factory({Name:"VentiC1",OnApply:new l.Builder().instance.Location("Normal").Options({Name:"HIT_C1",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Talent:t.stat.NORMAL_ATTACK_LEVEL,Stat:t.stat.ATK,Initial:.4386*.33}]}).Next().instance.Location("Normal").Options({Name:"HIT_CHARGED_C1",Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Talent:t.stat.NORMAL_ATTACK_LEVEL,Stat:t.stat.ATK,Initial:1.24*.33}]}).Next().Build()}),L0=l.Factory({Name:"VentiC2",ApplyOther:!0,Conditions:["AIRBORNE","NO_AIRBORNE"],MaxConditions:1,OnApply:new l.Builder().stat.Enemy(t.stat.ANEMO_RES,t.stat.PHYSICAL_RES).Values(-.12).Next().Where({effect:{conditions:["AIRBORNE"]}}).stat.Enemy(t.stat.ANEMO_RES,t.stat.PHYSICAL_RES).Values(-.12).Build()}),p0=l.Factory({Name:"VentiC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),N0=l.Factory({Name:"VentiC4",OnApply:new l.Builder().stat.Char(t.stat.ANEMO_DMG).Values(.25).Build()}),d0=l.Factory({Name:"VentiC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),C0=l.Factory({Name:"VentiC6",ApplyOther:!0,OnApply(e,a,n){const s=e.GetCharacter().GetEnemy(),r=a.Owner.FindEffect("VentiQ");if(!r)throw new Error("Venti Q not found");n.Modifier(s.Subject.CreateModifier(t.stat.ANEMO_RES,-.2));const i=n.Modifier(s.Subject.CreateModifier(t.stat.ANEMO_RES,0)),c=()=>{const _=r.GetAuras();if(!_.length||_[0]===t.aura.NONE)i.SetValue(0);else{const u=t.DmgToRes(t.AuraToDmg(_[0]));i.SetValue(-.2),i.SetProp(u)}};return c(),n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_AURAS,c)),()=>0}}),M0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2038}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4438}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5237}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2606}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5065}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7095}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],g0=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.76}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.8}]}],si=G.Factory({Name:"Venti",Stars:5,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,Weapon:t.weapon.BOW,Region:t.region.MONDSTADT,BurstCost:60,HpBase:[819.8552,3366.7688],AtkBase:[20.482,84.10402],DefBase:[52.0521,213.759],Normals:M0,Skills:g0,Bursts:S0,Extra:[],Effects:[h0,f0,L0,p0,N0,d0,C0]}),G0=[{Name:T.hits.HIT_Q+"_MELEE",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.64}]},{Name:T.hits.HIT_Q+"_RANGED",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.784}]},{Name:"HIT_RiptideBlast",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2}]}],R0=l.Factory({Name:"TartagliaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),I0=l.Factory({Name:"TartagliaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),O0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4128}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4627}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5538}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5702}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6089}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7276}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_RiptideFlash",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.124}]},{Name:"HIT_RiptideBurst",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.62}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],D0=l.Factory({Name:"TartagliaA0",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_LEVEL_UP).Values(1).Build()}),v0=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.72}]},{Name:T.hits.HIT_N1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3887}]},{Name:T.hits.HIT_N2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4162}]},{Name:T.hits.HIT_N3+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5633}]},{Name:T.hits.HIT_N4+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5994}]},{Name:T.hits.HIT_N5+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.553}]},{Name:T.hits.HIT_N6_1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3543}]},{Name:T.hits.HIT_N6_2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3767}]},{Name:T.hits.HIT_CHARGED_1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.602}]},{Name:T.hits.HIT_CHARGED_2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7198}]},{Name:"HIT_RiptideSlash",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.602}]}],ri=G.Factory({Name:"Tartaglia",Stars:5,Weapon:t.weapon.BOW,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.HYDRO_DMG,Region:t.region.SNEZHNAYA,BurstCost:60,HpBase:[1020.0524,4188.8867],AtkBase:[23.4612,96.33733],DefBase:[63.4198,260.442],Normals:O0,Skills:v0,Bursts:G0,Extra:[],Effects:[D0,R0,I0]}),y0=[{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.48}]}],P0=l.Factory({Name:"SucroseQ",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){H0(e,a,n);function s(){const r=e.FindBurst(T.hits.HIT_Q+"_ADDITIONAL");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),H0=new l.Builder().instance.Location("Burst").Options({Name:T.hits.HIT_Q+"_ADDITIONAL",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.44,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),w0=l.Factory({Name:"SucroseC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),B0=l.Factory({Name:"SucroseC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),b0=l.Factory({Name:"SucroseC6",ApplyOther:!0,OnApply(e,a,n){const s=a.Owner.FindEffect("SucroseQ"),r=e.GetCharacter();if(!s)throw new Error("Cannot find Sucrose Q");const i=n.Modifier(r.CreateModifier(t.stat.PYRO_DMG,0)),c=()=>{const _=s.GetAuras();(!_.length||_[0]===t.aura.NONE)&&i.SetValue(0);const u=t.AuraToDmg(_[0]);i.SetProp(u),i.SetValue(.2)};return c(),n.Observer(s.CreateObserver(l.EffectEvent.CHANGE_AURAS,c)),()=>0}}),K0=[{Name:T.hits.HIT_N1,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3346}]},{Name:T.hits.HIT_N2,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3062}]},{Name:T.hits.HIT_N3,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3845}]},{Name:T.hits.HIT_N4,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4792}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.2016}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],Y0=l.Factory({Name:"SucroseA1",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(50).Build()}),F0=l.Factory({Name:"SucroseA4",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_MASTERY).Where({owner:{ascension:1}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(.2).Map((e,a,n)=>e*n.Owner.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()}),k0=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.112}]}],ii=G.Factory({Name:"Sucrose",Stars:4,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.ANEMO_DMG,Weapon:t.weapon.CATALYST,Region:t.region.MONDSTADT,BurstCost:80,HpBase:[775.02234,2773.016],AtkBase:[14.2464,50.97456],DefBase:[58.94175,210.8925],Normals:K0,Skills:k0,Bursts:y0,Extra:[],Effects:[P0,Y0,F0,w0,B0,b0]}),V0=l.Factory({Name:"ShenheA1",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.CRYO_DMG).Values(.15).Build()}),x0=l.Factory({Name:"ShenheA4",ApplyOther:!0,Conditions:["PRESS","HOLD"],MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:4},effect:{conditions:["PRESS"]}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.15).Next().Where({owner:{ascension:4},effect:{conditions:["HOLD"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(.15).Build()}),U0=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.008}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.3312}]}],W0=l.Factory({Name:"ShenheQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Enemy(t.stat.CRYO_RES,t.stat.PHYSICAL_RES).Values(-.06,-.07,-.08,-.09,-.1,-.11,-.12,-.13,-.14,-.15).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Build()}),j0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4326}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4025}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5332}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2632}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6562}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1067}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],z0=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.392}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.888}]}],q0=l.Factory({Name:"ShenheE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP,t.stat.ATK_PERCENT,t.stat.ATK_BASE,t.stat.ATK_FLAT).stat.Char(t.stat.CRYO_DMG_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a,n)=>.4566*e*n.Owner.GetCharacter().Get(t.stat.ATK)).Build()}),$0=l.Factory({Name:"ShenheC2",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRYO_CRIT_DMG).Values(.15).Build()}),Q0=l.Factory({Name:"ShenheC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),X0=l.Factory({Name:"ShenheC4",MaxStacks:50,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.05).Stacks().Build()}),J0=l.Factory({Name:"ShenheC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),li=G.Factory({Name:"Shenhe",Stars:5,Element:t.stat.CRYO_DMG,Weapon:t.weapon.POLEARM,StatBonus:t.stat.ATK_PERCENT,Region:t.region.LIYUE,BurstCost:80,HpBase:[1011.47253,4153.653],AtkBase:[23.6474,97.10191],DefBase:[64.6164,265.356],Normals:j0,Skills:z0,Bursts:U0,Extra:[],Effects:[q0,W0,V0,x0,$0,Q0,X0,J0]}),Z0=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1042}]}],th=l.Factory({Name:"KokomiQ",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.HP,.0484,/HIT_N\d/i).Map((e,a)=>e*o.TalentScaling.ELEMENTAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1]).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.HP,.0678,/charged/i).Map((e,a)=>e*o.TalentScaling.ELEMENTAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1]).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.HP,.071,/HIT_E$/i).Map((e,a)=>e*o.TalentScaling.ELEMENTAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1]).Build()}),eh=l.Factory({Name:"KokomiC1",OnApply:new l.Builder().instance.Options({Name:"HIT_C1",Element:t.stat.HYDRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.HP,Initial:.3,Talent:t.stat.NONE,Scaling:o.TalentScaling.NONE}]}).Build()}),ah=l.Factory({Name:"KokomiC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nh=l.Factory({Name:"KokomiC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),sh=l.Factory({Name:"KokomiC6",OnApply:new l.Builder().stat.Char(t.stat.HYDRO_DMG).Values(.4).Build()}),rh=[{Name:T.hits.HIT_N1,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6838}]},{Name:T.hits.HIT_N2,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6154}]},{Name:T.hits.HIT_N3,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.9431}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4832}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],ih=l.Factory({Name:"KokomiA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.HEALING_BONUS).Values(.25).Next().Where({target:{ascension:1}}).stat.Char(t.stat.CRIT_RATE).Values(-1).Next().Build()}),lh=l.Factory({Name:"KokomiA4",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindEffect("KokomiQ");if(!r)throw new Error("Kokomi Q effect not found");const i=ne(e.GetNormals(),[/HIT_N\d/i]),c=ne(e.GetNormals(),[/charged/i]),_=n.Mv({Stat:t.stat.HP,Value:0,Enabled:!0},...i),u=n.Mv({Stat:t.stat.HP,Value:0,Enabled:!0},...c),A=()=>{(!r.Enabled()||s.GetAscension()<4)&&(_.Value=0,u.Value=0);const S=s.Get(t.stat.HEALING_BONUS);_.Value=u.Value=.15*S};return A(),n.Observer(s.CreateObserver(t.stat.HEALING_BONUS,A)),n.Observer(r.CreateObserver(l.EffectEvent.ENABLE,A)),n.Observer(r.CreateObserver(l.EffectEvent.DISABLE,A)),()=>0}}),oh=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.0919}]}],oi=G.Factory({Name:"Kokomi",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.HYDRO_DMG,Region:t.region.INAZUMA,BurstCost:70,HpBase:[1048.652,4306.332],AtkBase:[18.2476,74.92904],DefBase:[51.15465,210.0735],Normals:rh,Skills:oh,Bursts:Z0,Extra:[],Effects:[th,ih,lh,eh,ah,nh,sh]}),ch=[{Name:T.hits.HIT_Q_1,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.04}]},{Name:T.hits.HIT_Q_2,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.52}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.32}]}],Eh=l.Factory({Name:"RosariaC1",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.1).Build()}),Th=l.Factory({Name:"RosariaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),_h=l.Factory({Name:"RosariaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),uh=l.Factory({Name:"RosariaC6",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.PHYSICAL_RES).Values(-.2).Build()}),Ah=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5246}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.516}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3182}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6966}]},{Name:T.hits.HIT_N5_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4162}]},{Name:T.hits.HIT_N5_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.43}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.3674}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Sh=l.Factory({Name:"RosariaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.CRIT_RATE).Values(.12).Build()}),hh=l.Factory({Name:"RosariaA4",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.CRIT_RATE).Where({owner:{ascension:4}}).stat.Char(t.stat.CRIT_RATE).Values(.15).Map((e,a,n)=>Math.max(0,Math.min(1,e*n.Owner.GetCharacter().Get(t.stat.CRIT_RATE)))).Build()}),mh=[{Name:T.hits.HIT_E_1,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.584}]},{Name:T.hits.HIT_E_2,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.36}]}],ci=G.Factory({Name:"Rosaria",Stars:4,Weapon:t.weapon.POLEARM,Element:t.stat.CRYO_DMG,Region:t.region.MONDSTADT,StatBonus:t.stat.ATK_PERCENT,BurstCost:60,HpBase:[1030.3239,3686.4802],AtkBase:[20.12304,72.001564],DefBase:[59.514,212.94],Normals:Ah,Skills:mh,Bursts:ch,Extra:[],Effects:[Sh,hh,Eh,Th,_h,uh]}),fh=[{Name:T.hits.HIT_Q_1,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672}]},{Name:T.hits.HIT_Q_2,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.928}]}],Lh=l.Factory({Name:"NoelleQ",OnApply:new l.Builder().infusion.Set(t.stat.GEO_DMG,!0).Next().observe.Target(t.stat.DEF_FLAT,t.stat.DEF_PERCENT,t.stat.DEF_FLAT,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(.4,.43,.46,.5,.53,.56,.6,.64,.68,.72,.76,.8,.85,.9,.95).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a)=>e*a.GetCharacter().Get(t.stat.DEF)).Build()}),ph=l.Factory({Name:"NoelleC2",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.15).Build()}),Nh=l.Factory({Name:"NoelleC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),dh=l.Factory({Name:"NoelleC4",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C4",Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Stat:t.stat.ATK,Initial:4}]}).Build()}),Ch=l.Factory({Name:"NoelleC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Mh=l.Factory({Name:"NoelleC6",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindEffect("NoelleQ");if(!r)throw new Error("Noelle Q effect not found");const i=n.Modifier(s.CreateModifier(t.stat.ATK_FLAT,0)),c=()=>{r.Enabled()?i.SetValue(.5*s.Get(t.stat.DEF)):i.SetValue(0)};return c(),n.Observer(s.CreateObserver(t.stat.DEF_FLAT,c)),n.Observer(s.CreateObserver(t.stat.DEF_PERCENT,c)),n.Observer(s.CreateObserver(t.stat.DEF_BASE,c)),n.Observer(r.CreateObserver(l.EffectEvent.ENABLE,c)),n.Observer(r.CreateObserver(l.EffectEvent.DISABLE,c)),()=>0}}),gh=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7912}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7336}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8626}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1343}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5074}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9047}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],Gh=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:1.2}]}],Ei=G.Factory({Name:"Noelle",Stars:4,Element:t.stat.GEO_DMG,StatBonus:t.stat.DEF_PERCENT,BurstCost:60,Region:t.region.MONDSTADT,Weapon:t.weapon.CLAYMORE,HpBase:[1012.088,3621.2327],AtkBase:[16.0272,57.34638],DefBase:[66.95325,239.5575],Normals:gh,Skills:Gh,Bursts:fh,Extra:[],Effects:[Lh,ph,Nh,dh,Ch,Mh]}),Rh=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.8696}]}],Ih=l.Factory({Name:"NingguangC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Oh=l.Factory({Name:"NingguangC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Dh=[{Name:T.hits.HIT_N1,Element:t.stat.GEO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.28}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.GEO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.7408}]},{Name:"HIT_Jade",Element:t.stat.GEO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.496}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.GEO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.GEO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.GEO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],vh=l.Factory({Name:"NingguangA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.GEO_DMG).Values(.12).Build()}),yh=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.304}]}],Ti=G.Factory({Name:"Ningguang",Stars:4,Element:t.stat.GEO_DMG,StatBonus:t.stat.GEO_DMG,Weapon:t.weapon.CATALYST,Region:t.region.LIYUE,BurstCost:40,HpBase:[820.6119,2936.1348],AtkBase:[17.808,63.7182],DefBase:[48.069,171.99],Normals:Dh,Skills:yh,Bursts:Rh,Extra:[],Effects:[vh,Ih,Oh]}),Ph=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.424}]}],Hh=l.Factory({Name:"MonaQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ALL_DMG).Values(.4,.42,.44,.46,.48,.5,.52,.54,.56,.58,.6).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Build()}),wh=l.Factory({Name:"MonaC1",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELECTROCHARGE_DMG,t.stat.VAPORIZE_DMG).Values(.15).Next().stat.Char(t.stat.ALL_DMG).Instance("HIT_SWIRL_HYDRO").Values(.15).Build()}),Bh=l.Factory({Name:"MonaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),bh=l.Factory({Name:"MonaC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.15).Build()}),Kh=l.Factory({Name:"MonaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Yh=l.Factory({Name:"MonaC6",MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.6).Stacks().Build()}),Fh=[{Name:T.hits.HIT_N1,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.376}]},{Name:T.hits.HIT_N2,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.36}]},{Name:T.hits.HIT_N3,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.448}]},{Name:T.hits.HIT_N4,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5616}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.4972}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],kh=l.Factory({Name:"MonaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.ELEMENTAL_SKILL_LEVEL,Stat:t.stat.ATK,Initial:1.328*.5}]}).Build()}),Vh=l.Factory({Name:"MonaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ENERGY_RECHARGE).stat.Char(t.stat.HYDRO_DMG).Values(.2).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ENERGY_RECHARGE)).Build()}),xh=[{Name:T.hits.HIT_E_DOT,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.32}]},{Name:T.hits.HIT_E_EXPLOSION,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.328}]}],_i=G.Factory({Name:"Mona",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,Region:t.region.MONDSTADT,BurstCost:60,HpBase:[810.322,3327.62],AtkBase:[22.344,91.74984],DefBase:[50.8555,208.845],Normals:Fh,Skills:xh,Bursts:Ph,Extra:[],Effects:[Hh,kh,Vh,wh,Bh,bh,Kh,Yh]}),Uh=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4264}]}],Wh=l.Factory({Name:"KleeC1",OnApply:new l.Builder().instance.Location("Burst").Options({Name:"HIT_C1",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.ELEMENTAL_BURST_LEVEL,Stat:t.stat.ATK,Initial:.4264*1.2}]}).Build()}),jh=l.Factory({Name:"KleeC2",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.DEFREDUCTION).Values(.23).Build()}),zh=l.Factory({Name:"KleeC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),qh=l.Factory({Name:"KleeC4",OnApply:new l.Builder().instance.Location("Burst").Options({Name:"HIT_C4",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Stat:t.stat.ATK,Initial:5.55}]}).Build()}),$h=l.Factory({Name:"KleeC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Qh=l.Factory({Name:"KleeC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Build()}),Xh=[{Name:T.hits.HIT_N1,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.7216}]},{Name:T.hits.HIT_N2,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.624}]},{Name:T.hits.HIT_N3,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.8992}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.5736}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],Jh=l.Factory({Name:"KleeA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.5).Build()}),Zh=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.952}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.328}]}],ui=G.Factory({Name:"Klee",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.PYRO_DMG,StatBonus:t.stat.PYRO_DMG,Region:t.region.MONDSTADT,BurstCost:60,HpBase:[800.7888,3288.4717],AtkBase:[24.206,99.39566],DefBase:[47.864,196.56],Normals:Xh,Skills:Zh,Bursts:Uh,Extra:[],Effects:[Jh,Wh,jh,zh,qh,$h,Qh]}),tm=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.88}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.24}]},{Name:T.hits.HIT_Q_EXPLOSION,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.888}]}],em=l.Factory({Name:"KeqingC1",OnApply:new l.Builder().instance.Options({Name:"HIT_C1",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.5,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),am=l.Factory({Name:"KeqingC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nm=l.Factory({Name:"KeqingC4",OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.25).Build()}),sm=l.Factory({Name:"KeqingC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),rm=l.Factory({Name:"KeqingC6",OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_DMG).Values(.06).Build()}),im=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4102}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4102}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5444}]},{Name:T.hits.HIT_N4_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3148}]},{Name:T.hits.HIT_N4_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.344}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6699}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.768}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.86}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],lm=l.Factory({Name:"KeqingA1",OnApply:new l.Builder().Where({target:{ascension:1}}).infusion.Set(t.stat.ELECTRO_DMG,!1).Build()}),om=l.Factory({Name:"KeqingA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.CRIT_RATE,t.stat.ENERGY_RECHARGE).Values(.15).Build()}),cm=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.504}]},{Name:T.hits.HIT_E+"_SLASH",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.68}]},{Name:T.hits.HIT_E+"_SLASH_2",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.84}]}],Ai=G.Factory({Name:"Keqing",Stars:5,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.CRIT_DMG,Weapon:t.weapon.SWORD,Region:t.region.LIYUE,BurstCost:40,HpBase:[1020.0524,4188.8867],AtkBase:[25.137,103.21857],DefBase:[62.2232,255.528],Normals:im,Skills:cm,Bursts:tm,Extra:[],Effects:[lm,om,em,am,nm,sm,rm]}),Em=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6646}]}],Tm=l.Factory({Name:"AyatoQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.11,.12,.13,.14,.15,.16,.17,.18,.19,.2).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Build()}),_m=l.Factory({Name:"AyatoC1",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance(/HIT_N\d_E/i).Values(.4).Build()}),um=l.Factory({Name:"AyatoC2",OnApply(e,a,n){const s=e.FindEffect("AyatoE");if(!s)throw new Error("Cannot find Ayato Skill");const r=n.Modifier(e.GetCharacter().CreateModifier(t.stat.HP_PERCENT,0)),i=function(){s.GetStacks()>=3?r.SetValue(.5):r.SetValue(0)};return i(),n.Observer(s.CreateObserver(l.EffectEvent.CHANGE_STACKS,i)),()=>0}}),Am=l.Factory({Name:"AyatoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Sm=l.Factory({Name:"AyatoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),hm=l.Factory({Name:"AyatoC6",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Stat:t.stat.ATK,Initial:4.5}]}).Build()}),mm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4496}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4716}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5861}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2945}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.756}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2953}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],fm=[{Name:T.hits.HIT_N1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5289}]},{Name:T.hits.HIT_N2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5891}]},{Name:T.hits.HIT_N3+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6493}]},{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0148}]}],Lm=l.Factory({Name:"AyatoE",MaxStacks:5,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Mv(t.stat.HP,.56/100,/HIT_N\d_E/i).Map((e,a,n)=>e*n.GetStacks()*o.TalentScaling.PHYSICAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),Si=G.Factory({Name:"Ayato",Stars:5,Weapon:t.weapon.SWORD,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.CRIT_DMG,Region:t.region.INAZUMA,BurstCost:80,HpBase:[1067.7184,4384.629],AtkBase:[23.275,95.57275],DefBase:[59.83,245.7],Normals:mm,Skills:fm,Bursts:Em,Extra:[],Effects:[Lm,Tm,_m,um,Am,Sm,hm]}),pm=[{Name:T.hits.HIT_Q_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.123}]},{Name:T.hits.HIT_Q_EXPLOSION,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.6845}]}],Nm=l.Factory({Name:"AyakaC2",OnApply:new l.Builder().instance.Location("Burst").Options({Name:"HIT_C2",Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.ELEMENTAL_BURST_LEVEL,Stat:t.stat.ATK,Initial:1.123}]}).Build()}),dm=l.Factory({Name:"AyakaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Cm=l.Factory({Name:"AyakaC4",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.DEFREDUCTION).Values(.3).Build()}),Mm=l.Factory({Name:"AyakaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),gm=l.Factory({Name:"AyakaC6",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(2.98).Build()}),Gm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4573}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4868}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6262}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2265}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7818}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5513}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Rm=l.Factory({Name:"AyakaSprint",OnApply:new l.Builder().infusion.Set(t.stat.CRYO_DMG,!1).Build()}),Im=l.Factory({Name:"AyakaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.3).Build()}),Om=l.Factory({Name:"AyakaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.CRYO_DMG).Values(.18).Build()}),Dm=[{Name:T.hits.HIT_E,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.392}]}],hi=G.Factory({Name:"Ayaka",Stars:5,Element:t.stat.CRYO_DMG,StatBonus:t.stat.CRIT_DMG,Weapon:t.weapon.SWORD,Region:t.region.INAZUMA,BurstCost:80,HpBase:[1000.986,4110.59],AtkBase:[26.6266,109.33523],DefBase:[61.0266,250.614],Normals:Gm,Skills:Dm,Bursts:pm,Extra:[],Effects:[Rm,Im,Om,Nm,dm,Cm,Mm,gm]}),vm=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.248}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.784}]}],ym=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4833}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4558}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6029}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6588}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7921}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.6202}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Pm=l.Factory({Name:"JeanC1",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.4).Build()}),Hm=l.Factory({Name:"JeanC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),wm=l.Factory({Name:"JeanC4",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.ANEMO_RES).Values(-.4).Build()}),Bm=l.Factory({Name:"JeanC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),bm=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.92}]}],mi=G.Factory({Name:"Jean",Stars:5,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.HEALING_BONUS,Weapon:t.weapon.SWORD,Region:t.region.MONDSTADT,BurstCost:80,HpBase:[1143.984,4697.817],AtkBase:[18.62,76.4582],DefBase:[59.83,245.7],Normals:ym,Skills:bm,Bursts:vm,Extra:[],Effects:[Pm,Hm,wm,Bm]}),Km=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:.9822}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:.613}]}];function Ze(e){const a=e.GetParty();if(!a)return e.GetCharacter().Options.Element===t.stat.GEO_DMG?1:0;let n=0;for(const s of a.GetMembers())s.GetCharacter().Options.Element===t.stat.GEO_DMG&&n++;return n}var Ym=l.Factory({Name:"GorouC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Fm=l.Factory({Name:"GorouC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),km=l.Factory({Name:"GorouC6",ApplyOther:!0,OnApply:new l.Builder().observe.Party(!0).stat.Char(t.stat.GEO_CRIT_DMG).Values(.1,.2,.4).Rank(e=>Ze(e)).Build()}),Vm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3775}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3715}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4945}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.59}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.GEO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],xm=l.Factory({Name:"GorouA1",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.DEF_PERCENT).Values(.25).Build()}),Um=l.Factory({Name:"GorouA4",OnApply:new l.Builder().Where({target:{ascension:4}}).mv.Mv(t.stat.DEF,1.56,"HIT_E").Next().Where({target:{ascension:4}}).mv.Mv(t.stat.DEF,.156,"HIT_Q","HIT_Q_DOT").Next().Build()}),Wm=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.072}]}],jm=l.Factory({Name:"GorouE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).observe.Party(!0).stat.Char(t.stat.DEF_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a)=>206.16*e*(Ze(a)>=1?1:0)).Next().observe.Party(!0).stat.Char(t.stat.GEO_DMG).Values(.15).Map((e,a)=>e*(Ze(a)>=3?1:0)).Build()}),fi=G.Factory({Name:"Gorou",Stars:4,Weapon:t.weapon.BOW,Element:t.stat.GEO_DMG,StatBonus:t.stat.GEO_DMG,BurstCost:80,Region:t.region.INAZUMA,HpBase:[802.3761,2870.8872],AtkBase:[15.31488,54.797653],DefBase:[54.36375,194.5125],Normals:Vm,Skills:Wm,Bursts:Km,Extra:[],Effects:[jm,xm,Um,Ym,Fm,km]}),zm=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7027}]}],qm=l.Factory({Name:"GanyuC1",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.CRYO_RES).Values(-.15).Build()}),$m=l.Factory({Name:"GanyuC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Qm=l.Factory({Name:"GanyuC4",ApplyOther:!0,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.05).Stacks().Build()}),Xm=l.Factory({Name:"GanyuC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Jm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3173}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.356}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4549}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4549}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4825}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5762}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.CRYO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_Frostflake",Element:t.stat.CRYO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.28}]},{Name:"HIT_FrostflakeBloom",Element:t.stat.CRYO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.176}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],Zm=l.Factory({Name:"GanyuA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.CRIT_RATE).Instance(/Frostflake/i).Values(.2).Build()}),tf=l.Factory({Name:"GanyuA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.CRYO_DMG).Values(.2).Build()}),ef=[{Name:T.hits.HIT_E,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.32}]}],Li=G.Factory({Name:"Ganyu",Stars:5,Weapon:t.weapon.BOW,Region:t.region.LIYUE,Element:t.stat.CRYO_DMG,StatBonus:t.stat.CRIT_DMG,BurstCost:60,HpBase:[762.656,3131.878],AtkBase:[26.068,107.04148],DefBase:[49.0606,201.474],Normals:Jm,Skills:ef,Bursts:zm,Extra:[],Effects:[Zm,tf,qm,$m,Qm,Xm]}),af=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.456}]},{Name:"HIT_LightfallSword",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:3.6705}]}],nf=l.Factory({Name:"EulaQ",MaxStacks:30,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.ATK,.7499,"HIT_LightfallSword").Map((e,a,n)=>{const s=Math.max(1,Math.min(15,a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)));return n.GetStacks()*e*o.TalentScaling.PHYSICAL_1A[s-1]}).Build()}),sf=l.Factory({Name:"EulaC1",OnApply:new l.Builder().stat.Char(t.stat.PHYSICAL_DMG).Values(.3).Build()}),rf=l.Factory({Name:"EulaC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),lf=l.Factory({Name:"EulaC4",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.25).Build()}),of=l.Factory({Name:"EulaC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),cf=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8973}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.9355}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.568}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.1264}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7183}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.688}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.244}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.8629}]}],Ef=l.Factory({Name:"EulaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Burst").Options({Name:"HIT_A1",Talent:t.stat.ELEMENTAL_BURST_DMG,Element:t.stat.PHYSICAL_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Talent:t.stat.ELEMENTAL_BURST_LEVEL,Stat:t.stat.ATK,Initial:3.6705*.5}]}).Build()}),Tf=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.464}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.456}]},{Name:"HIT_Icewhirl",Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.96}]}],_f=l.Factory({Name:"EulaE_1",MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT).Values(.3).Stacks().Build()}),uf=l.Factory({Name:"EulaE_2",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Enemy(t.stat.CRYO_RES,t.stat.PHYSICAL_RES).Values(-.16,-.17,-.18,-.19,-.2,-.21,-.22,-.23,-.24,-.25).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Build()}),pi=G.Factory({Name:"Eula",Stars:5,Weapon:t.weapon.CLAYMORE,Element:t.stat.CRYO_DMG,StatBonus:t.stat.CRIT_DMG,BurstCost:80,Region:t.region.MONDSTADT,HpBase:[1029.5856,4228.035],AtkBase:[26.6266,109.33523],DefBase:[58.45391,240.0489],Normals:cf,Skills:Tf,Bursts:af,Extra:[],Effects:[_f,uf,nf,Ef,sf,rf,lf,of]}),Af=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.04}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6}]},{Name:T.hits.HIT_Q_EXPLOSION,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.04}]}],Sf=l.Factory({Name:"DilucQ",OnApply:new l.Builder().infusion.Set(t.stat.PYRO_DMG,!1).Build()}),hf=l.Factory({Name:"DilucC1",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.15).Build()}),mf=l.Factory({Name:"DilucC2",MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.1).Stacks().Build()}),ff=l.Factory({Name:"DilucC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Lf=l.Factory({Name:"DilucC4",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.4).Build()}),pf=l.Factory({Name:"DilucC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Nf=l.Factory({Name:"DilucC6",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.3).Build()}),df=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.897}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8763}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.9881}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.3399}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.688}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.247}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8951}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.7897}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.2355}]}],Cf=l.Factory({Name:"DilucA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.PYRO_DMG).Values(.2).Build()}),Mf=[{Name:T.hits.HIT_E_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.944}]},{Name:T.hits.HIT_E_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.976}]},{Name:T.hits.HIT_E_3,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.288}]}],Ni=G.Factory({Name:"Diluc",Stars:5,Weapon:t.weapon.CLAYMORE,Element:t.stat.PYRO_DMG,StatBonus:t.stat.CRIT_RATE,BurstCost:40,Region:t.region.MONDSTADT,HpBase:[1010.5192,4149.7383],AtkBase:[26.068,107.04148],DefBase:[61.0266,250.614],Normals:df,Skills:Mf,Bursts:Af,Extra:[],Effects:[Sf,Cf,hf,mf,ff,Lf,pf,Nf]}),gf=[{Name:T.hits.HIT_N1+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7828}]},{Name:T.hits.HIT_N2+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8247}]},{Name:T.hits.HIT_N3+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0463}]},{Name:T.hits.HIT_N4+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5169}]},{Name:T.hits.HIT_N5+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.3084}]},{Name:T.hits.HIT_CHARGED+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0105}]},{Name:T.hits.HIT_PLUNGE+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Gf=l.Factory({Name:"CynoQ",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(100).Build()}),Rf=l.Factory({Name:"CynoC2",MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_DMG).Values(.1).Stacks().Build()}),If=l.Factory({Name:"CynoC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Of=l.Factory({Name:"CynoC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Df=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4926}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4792}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2931}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7589}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2238}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],vf=l.Factory({Name:"CynoA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:t.stat.ATK,Initial:.35,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Next().Where({target:{ascension:1}}).stat.Char(t.stat.ALL_DMG).Instance("HIT_E","HIT_E_2").Values(.35).Build()}),yf=new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.DMG_FLAT).Instance(/N\d_Q$/i).Values(1.5).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build(),Pf=l.Factory({Name:"CynoA4",OnApply(e,a,n){yf(e,a,n);const s=e.GetCharacter(),r=e.FindEffect("CynoA1");let i;if(!r)throw new Error("Cannot find Cyno A1");function c(){if(!i){const _=e.FindInstance("HIT_A1");if(!_)return;i=n.Modifier(_.Subject.CreateModifier(t.stat.DMG_FLAT,0))}!i||(s.GetAscension()>=4?i.SetValue(2.5*s.Get(t.stat.ELEMENTAL_MASTERY)):i.SetValue(0))}c();for(const _ of l.EffectEvent.Values())n.Observer(r.CreateObserver(_,c));return n.Observer(s.CreateObserver(t.stat.ELEMENTAL_MASTERY,c)),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),Hf=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.304}]},{Name:T.hits.HIT_E_2,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.568}]}],di=G.Factory({Name:"Cyno",Stars:5,Weapon:t.weapon.POLEARM,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.CRIT_DMG,BurstCost:80,Region:t.region.SUMERU,HpBase:[972.3864,3993.1443],AtkBase:[24.7646,101.68941],DefBase:[66.88994,274.6926],Normals:Df,Skills:Hf,Bursts:gf,Extra:[],Effects:[Gf,vf,Pf,Rf,If,Of]}),wf=[{Name:T.hits.HIT_Q,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.0182}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4325}]}],Bf=l.Factory({Name:"ColleiC1",OnApply:new l.Builder().stat.Char(t.stat.ENERGY_RECHARGE).Values(.2).Build()}),bf=l.Factory({Name:"ColleiC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Kf=l.Factory({Name:"ColleiC4",ApplyOther:!0,ApplySelf:!1,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60).Build()}),Yf=l.Factory({Name:"ColleiC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Ff=l.Factory({Name:"ColleiC6",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Initial:2}]}).Build()}),kf=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.436}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4266}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5409}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6803}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.DENDRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],Vf=l.Factory({Name:"ColleiA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Initial:.4}]}).Build()}),xf=[{Name:T.hits.HIT_E,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.512}]}],Ci=G.Factory({Name:"Collei",Stars:4,Weapon:t.weapon.BOW,Element:t.stat.DENDRO_DMG,StatBonus:t.stat.ATK_PERCENT,BurstCost:60,Region:t.region.SUMERU,HpBase:[820.6119,2936.1348],AtkBase:[16.73952,59.895107],DefBase:[50.358,180.18],Normals:kf,Skills:xf,Bursts:wf,Extra:[],Effects:[Vf,Bf,bf,Kf,Yf,Ff]}),Uf=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.424}]}],Wf=l.Factory({Name:"ChongyunC1",OnApply:new l.Builder().instance.Basic({Name:"HIT_C1",Element:t.stat.CRYO_DMG,Stat:t.stat.ATK,Values:[.5]}).Build()}),jf=l.Factory({Name:"ChongyunC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),zf=l.Factory({Name:"ChongyunC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),qf=l.Factory({Name:"ChongyunC6",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.15).Build()}),$f=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6312}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8032}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0122}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5629}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0178}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],Qf=l.Factory({Name:"ChongyunA4",ApplyOther:!0,OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Enemy(t.stat.CRYO_RES).Values(-.1).Build()}),Xf=[{Name:T.hits.HIT_E,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.7204}]}],Jf=l.Factory({Name:"ChongyunE",ApplyOther:!0,OnApply:new l.Builder().infusion.Set(t.stat.CRYO_DMG,!1).Build()}),Mi=G.Factory({Name:"Chongyun",Stars:4,Element:t.stat.CRYO_DMG,Weapon:t.weapon.CLAYMORE,StatBonus:t.stat.ATK_PERCENT,BurstCost:40,Region:t.region.LIYUE,HpBase:[920.90894,3294.9956],AtkBase:[18.6984,66.90411],DefBase:[54.36375,194.5125],Normals:$f,Skills:Xf,Bursts:Uf,Extra:[],Effects:[Jf,Qf,Wf,jf,zf,qf]}),Zf=l.Factory({Name:"IttoQ",OnApply:new l.Builder().observe.Target(t.stat.DEF_FLAT,t.stat.DEF_BASE,t.stat.DEF_PERCENT,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a)=>.576*e*a.GetCharacter().Get(t.stat.DEF)).Next().infusion.Set(t.stat.GEO_DMG,!0).Build()}),tL=l.Factory({Name:"IttoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),eL=l.Factory({Name:"IttoC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT,t.stat.ATK_PERCENT).Values(.2).Build()}),aL=l.Factory({Name:"IttoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nL=l.Factory({Name:"IttoC6",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_CRIT_DMG).Values(.7).Build()}),sL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7923}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7637}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9164}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1722}]},{Name:"HIT_KesagiriSlash",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9116}]},{Name:"HIT_KesagiriFinal",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.9092}]},{Name:"HIT_SaichimonjiSlash",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9047}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439}]}],rL=l.Factory({Name:"IttoA4",OnApply:new l.Builder().Where({target:{ascension:4}}).mv.Mv(t.stat.DEF,.35,/Kesagiri/i).Build()}),iL=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.072}]}],gi=G.Factory({Name:"Itto",Stars:5,Weapon:t.weapon.CLAYMORE,Element:t.stat.GEO_DMG,StatBonus:t.stat.CRIT_RATE,Region:t.region.INAZUMA,BurstCost:70,HpBase:[1000.986,4110.59],AtkBase:[17.689,72.63529],DefBase:[74.66784,306.6336],Normals:sL,Skills:iL,Bursts:[],Extra:[],Effects:[Zf,rL,tL,eL,aL,nL]}),lL=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.2808}]}],oL=l.Factory({Name:"AmberC1",OnApply:new l.Builder().instance.Location("Normal").Options({Name:"HIT_C1",Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.NORMAL_ATTACK_LEVEL,Stat:t.stat.ATK,Initial:1.24*.2}]}).Build()}),cL=l.Factory({Name:"AmberC2",OnApply:new l.Builder().mv.Mv(t.stat.ATK,2,/hit_e/i).Build()}),EL=l.Factory({Name:"AmberC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),TL=l.Factory({Name:"AmberC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),_L=l.Factory({Name:"AmberC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.15).Build()}),uL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3612}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3612}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4644}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.473}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5934}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],AL=l.Factory({Name:"AmberA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.1).Build()}),SL=l.Factory({Name:"AmberA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.ATK_PERCENT).Values(.15).Build()}),hL=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.232}]}],Gi=G.Factory({Name:"Amber",Stars:4,Weapon:t.weapon.BOW,Element:t.stat.PYRO_DMG,StatBonus:t.stat.ATK_PERCENT,BurstCost:40,Region:t.region.MONDSTADT,HpBase:[793.2582,2838.2634],AtkBase:[18.6984,66.90411],DefBase:[50.358,180.18],Normals:uL,Skills:hL,Bursts:lL,Extra:[],Effects:[AL,SL,oL,cL,EL,TL,_L]}),mL=l.Factory({Name:"AlhaithamA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.1/100).Map((e,a)=>Math.min(1,e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY))).Build()}),fL=[{Name:T.hits.HIT_Q,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.216},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:.9728}]}],LL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4953}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5075}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3418}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6677}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8385}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5526}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],pL=[{Name:T.hits.HIT_E,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.936},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.5488}]},{Name:T.hits.HIT_E_DOT+"_1",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.344}]},{Name:T.hits.HIT_E_DOT+"_2",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672*2},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.344*2}]},{Name:T.hits.HIT_E_DOT+"_3",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672*3},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.344*3}]}],NL=l.Factory({Name:"AlhaithamE",OnApply:new l.Builder().infusion.Set(t.stat.DENDRO_DMG,!0).Build()}),dL=l.Factory({Name:"AlhaithamC2",MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(50).Stacks().Build()}),CL=l.Factory({Name:"AlhaithamC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),ML=l.Factory({Name:"AlhaithamC4",MaxStacks:3,ApplyOther:!0,OnApply:new l.Builder().Where({target:{isOwner:!0}}).stat.Char(t.stat.DENDRO_DMG).Values(.1).Stacks().Next().Where({target:{isOwner:!1}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(30).Stacks().Build()}),gL=l.Factory({Name:"AlhaithamC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),GL=l.Factory({Name:"AlhaithamC6",OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.1).Next().stat.Char(t.stat.CRIT_DMG).Values(.7).Build()}),Ri=G.Factory({Name:"Alhaitham",Stars:5,Weapon:t.weapon.SWORD,Element:t.stat.DENDRO_DMG,StatBonus:t.stat.DENDRO_DMG,Region:t.region.SUMERU,BurstCost:70,AtkBase:[24.3922,100.16024],DefBase:[60.84711,249.8769],HpBase:[1039.1188,4267.1836],Normals:LL,Skills:pL,Bursts:fL,Extra:[],Effects:[NL,mL,dL,CL,ML,gL,GL]}),RL=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.672}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.72}]}],IL=l.Factory({Name:"AlbedoC2",MaxStacks:4,OnApply:new l.Builder().mv.Mv(t.stat.DEF,.3,/HIT_Q/i).Map((e,a,n)=>e*n.GetStacks()).Build()}),OL=l.Factory({Name:"AlbedoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),DL=l.Factory({Name:"AlbedoC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PLUNGE_ATTACK_DMG).Values(.3).Build()}),vL=l.Factory({Name:"AlbedoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),yL=l.Factory({Name:"AlbedoC6",ApplyOther:!0,OnApply:new l.Builder().Where({target:{shielded:!0}}).stat.Char(t.stat.ALL_DMG).Values(.17).Build()}),PL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3674}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3674}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4745}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4975}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6207}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.473}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.602}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],HL=l.Factory({Name:"AlbedoA1",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindSkill(T.hits.HIT_E_DOT);if(!r)throw new Error("Cannot find Albedo Skill");const i=n.Modifier(r.Subject.CreateModifier(t.stat.ALL_DMG,0));function c(){s.GetAscension()>=1?i.SetValue(.25):i.SetValue(0)}return c(),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),wL=l.Factory({Name:"AlbedoA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(125).Build()}),BL=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.304}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:1.336}]}],Ii=G.Factory({Name:"Albedo",Element:t.stat.GEO_DMG,Stars:5,Weapon:t.weapon.SWORD,StatBonus:t.stat.GEO_DMG,Region:t.region.MONDSTADT,AtkBase:[19.551,80.28111],DefBase:[68.2062,280.098],HpBase:[1029.5856,4228.035],BurstCost:40,Normals:PL,Skills:BL,Bursts:RL,Extra:[],Effects:[HL,wL,IL,OL,DL,vL,yL]}),bL=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.216}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.96}]}],KL=l.Factory({Name:"BeidouC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),YL=l.Factory({Name:"BeidouC4",ApplySelf:!0,OnApply:new l.Builder().instance.Options({Name:"HIT_C4",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.2,Talent:t.stat.NONE,Scaling:o.TalentScaling.NONE}]}).Build()}),FL=l.Factory({Name:"BeidouC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),kL=l.Factory({Name:"BeidouC6",ApplySelf:!0,ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.ELECTRO_RES).Values(-.15).Build()}),VL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7112}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7086}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8832}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8652}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.1214}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5624}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.0182}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],xL=l.Factory({Name:"BeidouA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.15).Build()}),UL=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.216}]}],WL=l.Factory({Name:"BeidouE",MaxStacks:2,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Mv(t.stat.ATK,.96,T.hits.HIT_E).Map((e,a,n)=>{const s=n.GetStacks(),r=a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1,i=o.TalentScaling.ELEMENTAL_1[r];return e*i*s}).Build()}),Oi=G.Factory({Name:"Beidou",Stars:4,Weapon:t.weapon.CLAYMORE,Element:t.stat.ELECTRO_DMG,Region:t.region.LIYUE,StatBonus:t.stat.ELECTRO_DMG,AtkBase:[18.87648,67.54129],DefBase:[54.36375,194.5125],HpBase:[1094.1492,3914.8462],BurstCost:80,Normals:VL,Skills:UL,Bursts:bL,Extra:[],Effects:[WL,xL,KL,YL,FL,kL]}),jL=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.5427}]}],zL=l.Factory({Name:"XingqiuC2",ApplySelf:!0,ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.HYDRO_RES).Values(-.15).Build()}),qL=l.Factory({Name:"XingqiuC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),$L=l.Factory({Name:"XingqiuC4",ApplySelf:!0,OnApply:new l.Builder().mv.Multiplier(1.5,/^HIT_E_/i).Build()}),QL=l.Factory({Name:"XingqiuC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),XL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4661}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4764}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2855}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5599}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3586}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.473}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5616}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],JL=l.Factory({Name:"XingqiuA4",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.HYDRO_DMG).Where({owner:{ascension:4}}).Values(.2).Build()}),ZL=[{Name:T.hits.HIT_E_1,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.68}]},{Name:T.hits.HIT_E_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.912}]}],Di=G.Factory({Name:"Xingqiu",Stars:4,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.SWORD,Region:t.region.LIYUE,HpBase:[857.08356,3066.6296],AtkBase:[16.9176,60.53229],DefBase:[63.51975,227.2725],StatBonus:t.stat.ATK_PERCENT,Normals:XL,Skills:ZL,Bursts:jL,Extra:[],Effects:[JL,zL,qL,$L,QL],BurstCost:80}),tp=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_2,Stat:t.stat.ATK,Initial:3.0327}]}],ep=l.Factory({Name:"HuTaoQ",OnApply:new l.Builder().mv.Where({target:{hp:{leq:.5}}}).Multiplier(3.7909/3.0327,"HIT_Q").Build()}),ap=l.Factory({Name:"HuTaoC2",ApplySelf:!0,OnApply:new l.Builder().mv.Mv(t.stat.HP,.1,"HIT_E").Build()}),np=l.Factory({Name:"HuTaoC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),sp=l.Factory({Name:"HuTaoC4",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.12).Build()}),rp=l.Factory({Name:"HuTaoC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),ip=l.Factory({Name:"HuTaoC6",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(1).Build()}),lp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.4689}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.4825}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6105}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6564}]},{Name:T.hits.HIT_N5_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.3327}]},{Name:T.hits.HIT_N5_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.352}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.8596}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.3596}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6542}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.3081}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.6339}]}],op=l.Factory({Name:"HuTaoA1",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Where({owner:{ascension:1}}).Values(.12).Build()}),cp=l.Factory({Name:"HuTaoA4",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Where({owner:{ascension:4,hp:{leq:.5}}}).Values(.33).Build()}),Ep=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.64}]}],Tp=l.Factory({Name:"HuTaoE",ApplySelf:!0,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP,t.stat.ATK_BASE,t.stat.HP_BASE,t.stat.HP_FLAT,t.stat.HP_PERCENT).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_2).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a)=>{const n=a.GetCharacter(),s=.0384*e*n.Get(t.stat.HP),r=n.Get(t.stat.ATK_BASE)*4;return Math.max(0,Math.min(r,s))}).Next().infusion.Set(t.stat.PYRO_DMG,!0).Build()}),vi=G.Factory({Name:"HuTao",Element:t.stat.PYRO_DMG,Region:t.region.LIYUE,Stars:5,Weapon:t.weapon.POLEARM,HpBase:[1210.7164,4971.856],AtkBase:[8.2859,34.0239],DefBase:[68.2062,280.098],StatBonus:t.stat.CRIT_DMG,Normals:lp,Skills:Ep,Bursts:tp,Extra:[],Effects:[Tp,ep,op,cp,ap,np,sp,rp,ip],BurstCost:60}),_p=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0731}]},{Name:T.hits.HIT_Q+"_THROW",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0487}]}],up=l.Factory({Name:"YelanC2",OnApply:new l.Builder().instance.Options({Name:"HIT_C2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.14,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build()}),Ap=l.Factory({Name:"YelanC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Sp=l.Factory({Name:"YelanC4",MaxStacks:4,ApplySelf:!0,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.1).Stacks().Build()}),hp=l.Factory({Name:"YelanC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),mp=l.Factory({Name:"YelanC6",OnApply:new l.Builder().instance.Options({Name:"HIT_C6",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:1.56*.1158,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),fp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4068}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3904}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.516}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3251}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_BREAKTHROUGH_BARB",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1158}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],Lp=l.Factory({Name:"YelanA1",ApplySelf:!0,OnApply:new l.Builder().observe.Party(!0).stat.Char(t.stat.HP_PERCENT).Where({owner:{ascension:1}}).Values(.06,.12,.18,.3).Rank(e=>{const a=e.GetParty();if(!a)return 1;const n=a.GetMembers(),s=new Map;for(const i of n)s.set(i.GetCharacter().Options.Element,!0);let r=0;for(const i of s.values())i&&r++;return r}).Build()}),pp=l.Factory({Name:"YelanA4",ApplySelf:!0,ApplyOther:!0,MaxTargets:1,MaxStacks:15,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Where({owner:{ascension:4}}).Values(.01).Next().stat.Char(t.stat.ALL_DMG).Where({owner:{ascension:4}}).Values(.035).Stacks().Map(e=>Math.min(.5,e)).Build()}),Np=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.2261}]}],yi=G.Factory({Name:"Yelan",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.BOW,Region:t.region.LIYUE,BurstCost:70,HpBase:[1124.9176,4619.52],AtkBase:[18.9924,77.987366],DefBase:[42.65879,175.1841],StatBonus:t.stat.CRIT_RATE,Normals:fp,Skills:Np,Bursts:_p,Extra:[],Effects:[Lp,pp,up,Ap,Sp,hp,mp]}),dp=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:[1,1.108,1.216,1.351,1.473,1.595,1.757,1.919,2.081,2.243,2.405,2.568,2.703,2.838,2.973],Stat:t.stat.ATK,Initial:4.0108}]}],Cp=l.Factory({Name:"ZhongliC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Mp=l.Factory({Name:"ZhongliC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),gp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3077}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3115}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3858}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4294}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.1075}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.545}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.1103}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Gp=l.Factory({Name:"ZhongliA4",ApplySelf:!0,OnApply:new l.Builder().Where({target:{ascension:4}}).mv.Mv(t.stat.HP,.0139,/HIT_(N(\d)|CHARGED|PLUNGE)/).Next().Where({target:{ascension:4}}).mv.Mv(t.stat.HP,.019,/HIT_E/).Next().Where({target:{ascension:4}}).mv.Mv(t.stat.HP,.33,/HIT_Q/).Build()}),Rp=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.16}]},{Name:T.hits.HIT_E+"_RESONANCE",Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.32}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.8}]}],Ip=l.Factory({Name:"ZhongliE",ApplySelf:!0,ApplyOther:!0,OnApply:(e,a,n)=>{const s=t.Elements;for(const r of s){const i=t.DmgToRes(r);n.Modifier(e.GetCharacter().GetEnemy().Subject.CreateModifier(i,-.2))}return()=>0}}),Pi=G.Factory({Name:"Zhongli",Stars:5,Element:t.stat.GEO_DMG,Weapon:t.weapon.POLEARM,Region:t.region.LIYUE,HpBase:[1143.984,4697.817],AtkBase:[19.551,80.2811],DefBase:[57.4368,235.872],StatBonus:t.stat.GEO_DMG,BurstCost:40,Normals:gp,Skills:Rp,Bursts:dp,Extra:[],Effects:[Ip,Gp,Cp,Mp]}),Op=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.008}]},{Name:T.hits.HIT_N1+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4447}]},{Name:T.hits.HIT_N2+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4396}]},{Name:T.hits.HIT_N3+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.5382}]},{Name:T.hits.HIT_N4+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.3089}]},{Name:T.hits.HIT_N5+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7394}]},{Name:T.hits.HIT_CHARGED_1+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.616}]},{Name:T.hits.HIT_CHARGED_2+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7436}]},{Name:T.hits.HIT_PLUNGE+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Dp=l.Factory({Name:"RaidenQ",MaxStacks:60,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.ATK,.0389,T.hits.HIT_Q).Map((e,a,n)=>n.GetStacks()*e*o.TalentScaling.ELEMENTAL_1[Math.max(0,Math.min(o.TalentScaling.ELEMENTAL_1.length-1,a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1))]).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.ATK,.0073,/_.+_Q$/).Map((e,a,n)=>n.GetStacks()*e*o.TalentScaling.ELEMENTAL_1[Math.max(0,Math.min(o.TalentScaling.ELEMENTAL_1.length-1,a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1))]).Build()}),vp=l.Factory({Name:"RaidenC2",OnApply:new l.Builder().stat.Char(t.stat.DEFIGNORED).Values(.6).Build()}),yp=l.Factory({Name:"RaidenC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Pp=l.Factory({Name:"RaidenC4",ApplyOther:!0,ApplySelf:!1,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.3).Build()}),Hp=l.Factory({Name:"RaidenC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3965}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3973}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4988}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2898}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6545}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9959}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Bp=l.Factory({Name:"RaidenA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ENERGY_RECHARGE).stat.Char(t.stat.ELECTRO_DMG).Values(.4).Map((e,a)=>e*Math.max(0,a.GetCharacter().Get(t.stat.ENERGY_RECHARGE)-1)).Build()}),bp=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.172}]},{Name:T.hits.HIT_E+"_COORDINATED",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.42}]}],Kp=l.Factory({Name:"RaidenE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.0022,.0023,.0024,.0025,.0026,.0027,.0028,.0029,.003).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a)=>e*a.GetCharacter().Options.BurstCost).Build()}),Hi=G.Factory({Name:"Raiden",Stars:5,Weapon:t.weapon.POLEARM,Region:t.region.INAZUMA,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,BurstCost:90,AtkBase:[26.2542,107.80606],DefBase:[61.44541,252.3339],HpBase:[1004.79926,4126.249],Normals:wp,Skills:bp,Bursts:Op,Extra:[],Effects:[Kp,Dp,Bp,vp,yp,Pp,Hp]}),Yp=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.328}]}],Fp=l.Factory({Name:"BennettQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ATK_BASE,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a,n)=>{const s=n.Owner.FindEffect("BennettC1");return(.56*e+(s&&s.Enabled()?.2:0))*n.Owner.GetCharacter().Get(t.stat.ATK_BASE)}).Build()}),kp=l.Factory({Name:"BennettC1",OnApply(e,a,n){const s=e.FindEffect("BennettQ");if(!s)throw new Error("Bennett Burst effect not found");const r=s;function i(){r.Enabled()&&(r.Disable(),r.Enable())}return i(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_TARGET,i)),()=>0}}),Vp=l.Factory({Name:"BennettC2",OnApply:new l.Builder().Where({target:{hp:{leq:.7}}}).stat.Char(t.stat.ENERGY_RECHARGE).Values(.3).Build()}),xp=l.Factory({Name:"BennettC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Up=l.Factory({Name:"BennettC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Wp=l.Factory({Name:"BennettC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Values(.15).Next().Where({target:{weapon:[t.weapon.CLAYMORE,t.weapon.SWORD,t.weapon.POLEARM]}}).infusion.Set(t.stat.PYRO_DMG,!1).Build()}),jp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4455}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4274}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5461}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5968}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.719}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.559}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6072}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],zp=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.376}]},{Name:T.hits.HIT_E_1_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.84}]},{Name:T.hits.HIT_E_1_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.92}]},{Name:T.hits.HIT_E_2_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.88}]},{Name:T.hits.HIT_E_2_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.96}]},{Name:T.hits.HIT_E_EXPLOSION,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.32}]},{Name:"HIT_C4",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.92*1.35}]}],wi=G.Factory({Name:"Bennett",Stars:4,Weapon:t.weapon.SWORD,Element:t.stat.PYRO_DMG,Region:t.region.MONDSTADT,StatBonus:t.stat.ENERGY_RECHARGE,BurstCost:60,HpBase:[1039.4418,3719.104],AtkBase:[16.0272,57.34638],DefBase:[64.66425,231.3675],Normals:jp,Skills:zp,Bursts:Yp,Effects:[Fp,kp,Vp,xp,Up,Wp],Extra:[]}),qp=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.08}]}],$p=l.Factory({Name:"FischlC1",OnApply:new l.Builder().instance.Options({Name:"HIT_C1",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:.22,Talent:t.stat.NONE}]}).Build()}),Qp=l.Factory({Name:"FischlC2",OnApply:new l.Builder().mv.Mv(t.stat.ATK,2,/HIT_E$/).Build()}),Xp=l.Factory({Name:"FischlC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Jp=l.Factory({Name:"FischlC4",OnApply:new l.Builder().instance.Options({Name:"HIT_C4",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:2.22,Talent:t.stat.NONE}]}).Build()}),Zp=l.Factory({Name:"FischlC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),t1=l.Factory({Name:"FischlC6",OnApply:new l.Builder().instance.Options({Name:"HIT_C6",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:.3,Talent:t.stat.NONE}]}).Build()}),e1=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4412}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4678}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5814}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5771}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7207}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],a1=l.Factory({Name:"FischlA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Options({Name:"HIT_A1",Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24*1.527,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),n1=l.Factory({Name:"FischlA4",OnApply:new l.Builder().Where({target:{ascension:4}}).instance.Options({Name:"HIT_A4",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:.8,Talent:t.stat.NONE}]}).Build()}),s1=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1544}]},{Name:"HIT_OZ",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.888}]}],Bi=G.Factory({Name:"Fischl",Stars:4,Element:t.stat.ELECTRO_DMG,Region:t.region.MONDSTADT,Weapon:t.weapon.BOW,StatBonus:t.stat.ATK_PERCENT,AtkBase:[20.4792,73.27593],HpBase:[770.4634,2756.704],DefBase:[49.78575,178.1325],BurstCost:60,Normals:e1,Skills:s1,Bursts:qp,Extra:[],Effects:[a1,n1,$p,Qp,Xp,Jp,Zp,t1]}),r1=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.624}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2}]}],i1=l.Factory({Name:"KazuhaQ",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){l1(e,a,n);function s(){const r=e.FindBurst(T.hits.HIT_Q+"_ADDITIONAL");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),l1=new l.Builder().instance.Location("Burst").Options({Name:T.hits.HIT_Q+"_ADDITIONAL",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.36,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),o1=l.Factory({Name:"KazuhaC2",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(200).Build()}),c1=l.Factory({Name:"KazuhaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),E1=l.Factory({Name:"KazuhaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),T1=l.Factory({Name:"KazuhaC6",OnApply:new l.Builder().infusion.Set(t.stat.ANEMO_DMG,!1).Build()}),_1=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4498}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4524}]},{Name:T.hits.HIT_N3_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.258}]},{Name:T.hits.HIT_N3_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3096}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6072}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2537}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.43}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7465}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439}]}],u1=l.Factory({Name:"KazuhaA1",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){A1(e,a,n);function s(){const r=e.FindNormal("HIT_A1");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),A1=new l.Builder().Where({target:{ascension:1}}).instance.Location("Normal").Options({Name:"HIT_A1",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:2,Talent:t.stat.NONE}]}).Build(),S1=l.Factory({Name:"KazuhaA4",ApplyOther:!0,MaxAuras:1/0,ValidAuras:t.Swirlable,OnApply(e,a,n){const s=a.Owner.GetCharacter(),r=e.GetCharacter(),i=t.Elements.filter(_=>_!==t.stat.PHYSICAL_DMG).map(_=>n.Modifier(r.CreateModifier(_,0)));function c(){const _=a.GetAuras().map(u=>t.AuraToDmg(u));for(const u of i)_.includes(u.GetProp())&&s.GetAscension()>=4?u.SetValue(.04/100*s.Get(t.stat.ELEMENTAL_MASTERY)):u.SetValue(0)}return c(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,c)),n.Observer(s.CreateObserver(t.stat.ELEMENTAL_MASTERY,c)),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),h1=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.92}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.608}]}],m1=l.Factory({Name:"KazuhaE",OnApply:new l.Builder().instance.Location("Normal").Options({Name:T.hits.HIT_PLUNGE+"_E",Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Next().instance.Location("Normal").Options({Name:T.hits.HIT_PLUNGE_LOW+"_E",Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Next().instance.Location("Normal").Options({Name:T.hits.HIT_PLUNGE_HIGH+"_E",Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),bi=G.Factory({Name:"Kazuha",Stars:5,Weapon:t.weapon.SWORD,Region:t.region.INAZUMA,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.ELEMENTAL_MASTERY,BurstCost:60,HpBase:[1039.1188,4267.1836],AtkBase:[23.0888,94.80817],DefBase:[62.8215,257.985],Normals:_1,Skills:h1,Bursts:r1,Extra:[],Effects:[m1,i1,u1,S1,o1,c1,E1,T1]}),f1=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.096}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.3412}]}],L1=l.Factory({Name:"SaraC2",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C2",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2576*.3,Talent:t.stat.ELEMENTAL_SKILL_LEVEL}]}).Build()}),p1=l.Factory({Name:"SaraC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),N1=l.Factory({Name:"SaraC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),d1=l.Factory({Name:"SaraC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_CRIT_DMG).Values(.6).Build()}),C1=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3689}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.387}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.485}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.504}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.585}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],M1=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2576}]}],g1=l.Factory({Name:"SaraE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ATK_BASE,t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a,n)=>.4296*e*n.Owner.GetCharacter().Get(t.stat.ATK_BASE)).Build()}),Ki=G.Factory({Name:"Sara",Stars:4,Weapon:t.weapon.BOW,Region:t.region.INAZUMA,Element:t.stat.ELECTRO_DMG,BurstCost:80,HpBase:[802.3761,2870.8872],AtkBase:[16.38336,58.620743],DefBase:[52.647,188.37],StatBonus:t.stat.ATK_PERCENT,Normals:C1,Skills:M1,Bursts:f1,Extra:[],Effects:[g1,L1,p1,N1,d1]}),G1=[{Name:T.hits.HIT_N1,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.403}]},{Name:T.hits.HIT_N2,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3697}]},{Name:T.hits.HIT_N3,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4587}]},{Name:T.hits.HIT_N4,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5841}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.DENDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.32}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.DENDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.DENDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.DENDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],R1=l.Factory({Name:"NahidaA1",ApplyOther:!0,MaxTargets:1,OnApply(e,a,n){const s=e.GetCharacter(),r=a.Owner.GetCharacter(),i=n.Modifier(s.CreateModifier(t.stat.ELEMENTAL_MASTERY,0));let c=[];const _=[];function u(S){if(S===i)return;if(r.Get(t.stat.ASCENSION)<1){i.SetValue(0);return}let h=0,m=s;for(const N of c){const L=N.Get(t.stat.ELEMENTAL_MASTERY);L>h&&(h=L,m=N)}m===s&&(h-=i.GetValue());const f=Math.min(250,Math.max(0,.25*h));i.SetValue(f)}function A(){_.forEach(h=>h.Remove());const S=e.GetParty();if(!S)c=[s];else{c=[];for(const h of S.GetMembers())c.push(h.GetCharacter())}for(const h of c)_.push(n.Observer(h.CreateObserver(t.stat.ELEMENTAL_MASTERY,u)));u()}return A(),n.Observer(e.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,A)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,A)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,A)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_CONDITIONS,A)),n.Observer(r.CreateObserver(t.stat.LEVEL,u)),n.Observer(r.CreateObserver(t.stat.ASCENSION,u)),()=>0}}),I1=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.984}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.304}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.032},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:2.064}]}],O1=l.Factory({Name:"NahidaA4",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindSkill(T.hits.HIT_E_DOT);if(!r)throw new Error("Cannot find Nahida Skill");const i=n.Modifier(r.Subject.CreateModifier(t.stat.ALL_DMG,0)),c=n.Modifier(r.Subject.CreateModifier(t.stat.CRIT_RATE,0));let _,u;function A(){if(s.GetAscension()<4){i.SetValue(0),c.SetValue(0),_&&_.SetValue(0),u&&u.SetValue(0);return}const S=e.FindSkill("HIT_C6");S&&(_||(_=n.Modifier(S.Subject.CreateModifier(t.stat.ALL_DMG,0))),u||(u=n.Modifier(S.Subject.CreateModifier(t.stat.CRIT_RATE,0))));const h=Math.max(0,s.Get(t.stat.ELEMENTAL_MASTERY)-200),m=Math.min(.24,h*.03/100),f=Math.min(.8,h*.1/100);i.SetValue(f),c.SetValue(m),_&&_.SetValue(f),u&&u.SetValue(m)}return A(),n.Observer(s.CreateObserver(t.stat.ELEMENTAL_MASTERY,A)),n.Observer(s.CreateObserver(t.stat.LEVEL,A)),n.Observer(s.CreateObserver(t.stat.ASCENSION,A)),()=>0}}),D1=l.Factory({Name:"NahidaQ",OnApply(e,a,n){const s=e.FindSkill(T.hits.HIT_E_DOT);if(!s)throw new Error("Cannot find Nahida Skill");const r=n.Modifier(s.Subject.CreateModifier(t.stat.ALL_DMG,0));let i;function c(){const _=e.GetParty();if(!_){r.SetValue(0),i&&i.SetValue(0);return}const u=e.FindSkill("HIT_C6");u&&!i&&(i=n.Modifier(u.Subject.CreateModifier(t.stat.ALL_DMG,0)));const A=e.FindEffect("NahidaC1");let h=A&&A.Enabled()&&A.GetTargets().includes(e)?1:0;for(const N of _.GetMembers())N.GetCharacter().Options.Element===t.stat.PYRO_DMG&&h++;let m=0;h>=1&&(m=.1488),h>=2&&(m=.2232);const f=m*o.TalentScaling.ELEMENTAL_1[e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1];r.SetValue(f),i&&i.SetValue(f)}return c(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,c)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,c)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ELEMENTAL_BURST_LEVEL,c)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ELEMENTAL_BURST_LEVEL_UP,c)),n.Observer(e.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,c)),()=>0}}),v1=l.Factory({Name:"NahidaC1",OnApply(e,a,n){const s=e.FindEffect("NahidaQ");if(!s)throw new Error("Nahida Burst effect not found");const r=s;function i(){r.Enabled()&&(r.Disable(),r.Enable())}return i(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_TARGET,i)),()=>0}}),y1=l.Factory({Name:"NahidaC2",ApplyOther:!0,MaxAuras:1,ValidAuras:[t.aura.QUICKEN],OnApply(e,a,n){P1(e,a,n);const r=["BURGEON","BLOOM","HYPERBLOOM","BURNING"].map(i=>e.FindTr("HIT_"+i));for(const i of r)!i||(n.Modifier(i.Subject.CreateModifier(t.stat.CRIT_RATE,.2)),n.Modifier(i.Subject.CreateModifier(t.stat.CRIT_DMG,1)));return()=>0}}),P1=new l.Builder().Where({effect:{aura:[t.aura.QUICKEN]}}).stat.Enemy(t.stat.DEFREDUCTION).Values(.3).Build(),H1=l.Factory({Name:"NahidaC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),w1=l.Factory({Name:"NahidaC4",MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Stacks([0,100,120,140,160]).Build()}),B1=l.Factory({Name:"NahidaC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),b1=l.Factory({Name:"NahidaC6",OnApply(e,a,n){K1(e,a,n);function s(){const r=e.FindEffect("NahidaQ"),i=e.FindEffect("NahidaA4");r&&r.Enabled()&&(r.Disable(),r.Enable()),i&&i.Enabled()&&(i.Disable(),i.Enable())}return s(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,s)),()=>0}}),K1=new l.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Talent:t.stat.NONE,Initial:2},{Scaling:o.TalentScaling.NONE,Stat:t.stat.ELEMENTAL_MASTERY,Talent:t.stat.NONE,Initial:4}]}).Build(),Yi=G.Factory({Name:"Nahida",Stars:5,Element:t.stat.DENDRO_DMG,Region:t.region.SUMERU,Weapon:t.weapon.CATALYST,StatBonus:t.stat.ELEMENTAL_MASTERY,BurstCost:50,HpBase:[806.5087,3311.961],AtkBase:[23.275,95.57275],DefBase:[49.0606,201.474],Normals:G1,Skills:I1,Bursts:[],Extra:[],Effects:[D1,R1,O1,v1,y1,H1,w1,B1,b1]}),ta=new Q(e=>e.Name);ta.AddList(Object.values(Fr).sort((e,a)=>e.Name.localeCompare(a.Name)));function Fi(){return ta.Get()}function Y1(e){return ta.Find(e)}var et={};D(et,{Akuoumaru:()=>Tl,AlleyHunter:()=>Po,AmberBead:()=>Tc,AmenomaKageuchi:()=>to,AmosBow:()=>Mo,AquaSimulacra:()=>No,AquilaFavonia:()=>ql,BalladOfTheFjords:()=>al,BeaconOfTheReedSea:()=>ol,BlackTassel:()=>bc,BlackcliffAgate:()=>rc,BlackcliffLongsword:()=>so,BlackcliffPole:()=>Yc,BlackcliffSlasher:()=>Sl,BlackcliffWarbow:()=>sl,BloodtaintedGreatsword:()=>hl,CalamityQueller:()=>fc,CinnabarSpindle:()=>Zl,CompoundBow:()=>wo,CoolSteel:()=>fo,CrescentPike:()=>Oc,DarkIronSword:()=>Ao,Deathmatch:()=>Fc,DebateClub:()=>ml,DodocoTales:()=>ac,DragonsBane:()=>vc,DragonspineSpear:()=>Rc,ElegyForTheEnd:()=>Pc,EmeraldOrb:()=>uc,EndOfTheLine:()=>go,EngulfingLightning:()=>Mc,EverlastingMoonglow:()=>$o,EyeOfPerception:()=>sc,FadingTwilight:()=>yo,FavoniusCodex:()=>Ec,FavoniusGreatsword:()=>fl,FavoniusLance:()=>wc,FavoniusSword:()=>xc,FavoniusWarbow:()=>Uc,FerrousShadow:()=>Ll,FesteringDesire:()=>eo,FilletBlade:()=>So,FinaleOfTheDeep:()=>$i,FindByName:()=>Q1,FleuveCendreFerryman:()=>Qi,FlowingPurity:()=>qi,ForestRegalia:()=>dl,FreedomSworn:()=>kl,Frostbearer:()=>nc,FruitOfFulfillment:()=>Zo,GetByType:()=>X1,GetList:()=>zc,HakushinRing:()=>ec,Halberd:()=>Dc,Hamayumi:()=>Oo,HaranGeppakuFutsu:()=>Ul,HarbingerOfDawn:()=>mo,HuntersPath:()=>Lo,IbisPiercer:()=>rl,IronSting:()=>ro,JadeCutter:()=>jl,JadeSpear:()=>Lc,JadefallSplendor:()=>il,KagotsurubeIsshin:()=>Jl,KagurasVerity:()=>qo,KatsuragikiriNagamasa:()=>Cl,KeyOfKhajNisut:()=>xl,KingsSquire:()=>Go,KitainCrossSpear:()=>Gc,LightOfFoliarIncision:()=>Vl,LionsRoar:()=>lo,LithicBlade:()=>gl,LithicSpear:()=>Ic,LostPrayer:()=>Xo,LuxuriousSeaLord:()=>pl,MagicGuide:()=>hc,MailedFlower:()=>ll,MakhairaAquamarine:()=>Al,MappaMare:()=>ic,MemoryOfDust:()=>Qo,Messenger:()=>Fo,MissiveWindspear:()=>dc,MistsplitterReforged:()=>Wl,MitternachtsWaltz:()=>vo,Moonpiercer:()=>Cc,MouunsMoon:()=>Ro,OathswornEye:()=>tc,OtherworldlyStory:()=>Ac,PolarStar:()=>Co,Predator:()=>Io,PrototypeAmber:()=>lc,PrototypeArchaic:()=>Rl,PrototypeCrescent:()=>Bo,PrototypeRancour:()=>io,PrototypeStarglitter:()=>Kc,Rainslasher:()=>Il,RavenBow:()=>Uo,RecurveBow:()=>Vo,RedhornStonethresher:()=>Ol,RightfulReward:()=>ji,RoyalBow:()=>To,RoyalGreatsword:()=>Dl,RoyalGrimoire:()=>co,RoyalLongsword:()=>_o,RoyalSpear:()=>Eo,Rust:()=>bo,SacrificialBow:()=>Ko,SacrificialFragments:()=>cc,SacrificialGreatsword:()=>vl,SacrificialJade:()=>Zi,SacrificialSword:()=>yc,SapwoodBlade:()=>Xl,ScionOfTheBlazingSun:()=>tl,SerpentSpine:()=>Fl,SharpshootersOath:()=>xo,SkyriderGreatsword:()=>yl,SkyriderSword:()=>uo,SkywardAtlas:()=>Jo,SkywardBlade:()=>kc,SkywardHarp:()=>Vc,SkywardPride:()=>Pl,SkywardSpine:()=>Nc,Slingshot:()=>ko,SnowTombedStarsilver:()=>Hl,SolarPearl:()=>oc,SongOfBrokenPines:()=>Gl,SongOfStillness:()=>zi,SplendorOfTranquilWaters:()=>Ui,StaffOfHoma:()=>Hc,StaffOfTheScarletSands:()=>mc,SummitShaper:()=>zl,SwordOfDescension:()=>ao,TalkingStick:()=>el,TheAlleyFlash:()=>no,TheBell:()=>wl,TheBlackSword:()=>cl,TheCatch:()=>El,TheFirstGreatMagic:()=>nl,TheFlute:()=>oo,TheStringless:()=>Yo,TheUnforged:()=>Bl,TheViridescentHunt:()=>Ho,TheWidsith:()=>Wc,ThousandFloatingDreams:()=>jo,ThrillingTalesOfDragonSlayers:()=>Sc,ThunderingPulse:()=>po,TidalShadow:()=>Xi,TomeOfTheEternalFlow:()=>Wi,ToukabouShigure:()=>$l,TravelersHandySword:()=>ho,TulaytullahsRemembrance:()=>Wo,TwinNephrite:()=>_c,UltimateOverlordsMegaMagicSword:()=>Vi,Veredict:()=>xi,VortexVanquisher:()=>pc,WanderingEvenstar:()=>zo,WavebreakerFin:()=>gc,WhiteIronGreatsword:()=>Kl,WhiteTassel:()=>Bc,Whiteblind:()=>bl,WindblumeOde:()=>Do,WineAndSong:()=>_l,WolfFang:()=>Ji,WolfsGravestone:()=>Yl,XiphosMoonlight:()=>Ql});var ki={};D(ki,{Akuoumaru:()=>Tl,AlleyHunter:()=>Po,AmberBead:()=>Tc,AmenomaKageuchi:()=>to,AmosBow:()=>Mo,AquaSimulacra:()=>No,AquilaFavonia:()=>ql,BalladOfTheFjords:()=>al,BeaconOfTheReedSea:()=>ol,BlackTassel:()=>bc,BlackcliffAgate:()=>rc,BlackcliffLongsword:()=>so,BlackcliffPole:()=>Yc,BlackcliffSlasher:()=>Sl,BlackcliffWarbow:()=>sl,BloodtaintedGreatsword:()=>hl,CalamityQueller:()=>fc,CinnabarSpindle:()=>Zl,CompoundBow:()=>wo,CoolSteel:()=>fo,CrescentPike:()=>Oc,DarkIronSword:()=>Ao,Deathmatch:()=>Fc,DebateClub:()=>ml,DodocoTales:()=>ac,DragonsBane:()=>vc,DragonspineSpear:()=>Rc,ElegyForTheEnd:()=>Pc,EmeraldOrb:()=>uc,EndOfTheLine:()=>go,EngulfingLightning:()=>Mc,EverlastingMoonglow:()=>$o,EyeOfPerception:()=>sc,FadingTwilight:()=>yo,FavoniusCodex:()=>Ec,FavoniusGreatsword:()=>fl,FavoniusLance:()=>wc,FavoniusSword:()=>xc,FavoniusWarbow:()=>Uc,FerrousShadow:()=>Ll,FesteringDesire:()=>eo,FilletBlade:()=>So,FinaleOfTheDeep:()=>$i,FleuveCendreFerryman:()=>Qi,FlowingPurity:()=>qi,ForestRegalia:()=>dl,FreedomSworn:()=>kl,Frostbearer:()=>nc,FruitOfFulfillment:()=>Zo,HakushinRing:()=>ec,Halberd:()=>Dc,Hamayumi:()=>Oo,HaranGeppakuFutsu:()=>Ul,HarbingerOfDawn:()=>mo,HuntersPath:()=>Lo,IbisPiercer:()=>rl,IronSting:()=>ro,JadeCutter:()=>jl,JadeSpear:()=>Lc,JadefallSplendor:()=>il,KagotsurubeIsshin:()=>Jl,KagurasVerity:()=>qo,KatsuragikiriNagamasa:()=>Cl,KeyOfKhajNisut:()=>xl,KingsSquire:()=>Go,KitainCrossSpear:()=>Gc,LightOfFoliarIncision:()=>Vl,LionsRoar:()=>lo,LithicBlade:()=>gl,LithicSpear:()=>Ic,LostPrayer:()=>Xo,LuxuriousSeaLord:()=>pl,MagicGuide:()=>hc,MailedFlower:()=>ll,MakhairaAquamarine:()=>Al,MappaMare:()=>ic,MemoryOfDust:()=>Qo,Messenger:()=>Fo,MissiveWindspear:()=>dc,MistsplitterReforged:()=>Wl,MitternachtsWaltz:()=>vo,Moonpiercer:()=>Cc,MouunsMoon:()=>Ro,OathswornEye:()=>tc,OtherworldlyStory:()=>Ac,PolarStar:()=>Co,Predator:()=>Io,PrototypeAmber:()=>lc,PrototypeArchaic:()=>Rl,PrototypeCrescent:()=>Bo,PrototypeRancour:()=>io,PrototypeStarglitter:()=>Kc,Rainslasher:()=>Il,RavenBow:()=>Uo,RecurveBow:()=>Vo,RedhornStonethresher:()=>Ol,RightfulReward:()=>ji,RoyalBow:()=>To,RoyalGreatsword:()=>Dl,RoyalGrimoire:()=>co,RoyalLongsword:()=>_o,RoyalSpear:()=>Eo,Rust:()=>bo,SacrificialBow:()=>Ko,SacrificialFragments:()=>cc,SacrificialGreatsword:()=>vl,SacrificialJade:()=>Zi,SacrificialSword:()=>yc,SapwoodBlade:()=>Xl,ScionOfTheBlazingSun:()=>tl,SerpentSpine:()=>Fl,SharpshootersOath:()=>xo,SkyriderGreatsword:()=>yl,SkyriderSword:()=>uo,SkywardAtlas:()=>Jo,SkywardBlade:()=>kc,SkywardHarp:()=>Vc,SkywardPride:()=>Pl,SkywardSpine:()=>Nc,Slingshot:()=>ko,SnowTombedStarsilver:()=>Hl,SolarPearl:()=>oc,SongOfBrokenPines:()=>Gl,SongOfStillness:()=>zi,SplendorOfTranquilWaters:()=>Ui,StaffOfHoma:()=>Hc,StaffOfTheScarletSands:()=>mc,SummitShaper:()=>zl,SwordOfDescension:()=>ao,TalkingStick:()=>el,TheAlleyFlash:()=>no,TheBell:()=>wl,TheBlackSword:()=>cl,TheCatch:()=>El,TheFirstGreatMagic:()=>nl,TheFlute:()=>oo,TheStringless:()=>Yo,TheUnforged:()=>Bl,TheViridescentHunt:()=>Ho,TheWidsith:()=>Wc,ThousandFloatingDreams:()=>jo,ThrillingTalesOfDragonSlayers:()=>Sc,ThunderingPulse:()=>po,TidalShadow:()=>Xi,TomeOfTheEternalFlow:()=>Wi,ToukabouShigure:()=>$l,TravelersHandySword:()=>ho,TulaytullahsRemembrance:()=>Wo,TwinNephrite:()=>_c,UltimateOverlordsMegaMagicSword:()=>Vi,Veredict:()=>xi,VortexVanquisher:()=>pc,WanderingEvenstar:()=>zo,WavebreakerFin:()=>gc,WhiteIronGreatsword:()=>Kl,WhiteTassel:()=>Bc,Whiteblind:()=>bl,WindblumeOde:()=>Do,WineAndSong:()=>_l,WolfFang:()=>Ji,WolfsGravestone:()=>Yl,XiphosMoonlight:()=>Ql});var vt=4,Vi=p.Factory({Name:"UltimateOverlordsMegaMagicSword",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.ENERGY_RECHARGE,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"UltimateOverlordsMegaMagicSword1",MaxRank:5,MaxStacks:vt,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ATK_PERCENT).Values(.12/vt,.15/vt,.18/vt,.21/vt,.24/vt).Stacks().Build()})]}),xi=p.Factory({Name:"Verdict",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"Verdict1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.ATK).Values(.2,.25,.3,.35,.4).Next().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.18,.225,.27,.315,.36).Stacks().Build()})]}),Ui=p.Factory({Name:"SplendorOfTranquilWaters",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"SplendorOfTranquilWaters1",MaxStacks:3,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.08,.1,.12,.14,.16).Stacks().Build()}),l.Factory({Name:"SplendorOfTranquilWaters2",MaxStacks:2,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.14,.175,.21,.245,.28).Stacks().Build()})]}),Wi=p.Factory({Name:"TomeOfTheEternalFlow",Stars:5,Type:t.weapon.CATALYST,Substat:t.stat.CRIT_DMG,Scaling:o.WeaponScaling.TYPE_44b,Effects:[l.Factory({Name:"TomeOfTheEternalFlow1",MaxStacks:3,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.14,.18,.22,.26,.3).Stacks().Build()})]}),ji=p.Factory({Name:"RightfulReward",Stars:4,Type:t.weapon.POLEARM,Substat:t.stat.HP_PERCENT,Scaling:o.WeaponScaling.TYPE_44,Effects:[]}),zi=p.Factory({Name:"SongOfStillness",Stars:4,Type:t.weapon.BOW,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"SongOfStillness1",MaxRank:5,MaxConditions:1,Conditions:["HEALED"],OnApply:new l.Builder().Where({effect:{conditions:["HEALED"]}}).stat.Char(t.stat.ALL_DMG).Values(.16,.2,.24,.28,.32).Build()})]}),qi=p.Factory({Name:"FlowingPurity",Stars:4,Type:t.weapon.CATALYST,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"FlowingPurity1",MaxRank:5,MaxConditions:1,MaxStacks:6e3,Conditions:["CAST_SKILL"],OnApply:new l.Builder().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Next().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(...[.02,.025,.03,.035,.04].map(e=>e/1e3)).Stacks().Build()})]}),$i=p.Factory({Name:"FinaleOfTheDeep",Stars:4,Type:t.weapon.SWORD,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"FinaleOfTheDeep1",MaxRank:5,MaxStacks:100,MaxConditions:1,Conditions:["CAST_SKILL"],OnApply:new l.Builder().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().observe.Target(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ATK_FLAT).Values(.024,.03,.036,.042,.048).Map((e,a,n)=>{let s=e*n.GetStacks()/100*.25*a.GetCharacter().Get(t.stat.HP);return s=Math.min(s,150/.024*e),s}).Build()})]}),Qi=p.Factory({Name:"FleuveCendreFerryman",Stars:4,Type:t.weapon.SWORD,Substat:t.stat.ENERGY_RECHARGE,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"FleuveCendreFerryman1",MaxRank:5,Conditions:["CAST_SKILL"],MaxConditions:1,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.08,.1,.12,.14,.16).Next().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(t.stat.ENERGY_RECHARGE).Values(.16,.2,.24,.28,.32).Build()})]}),Xi=p.Factory({Name:"TidalShadow",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"TidalShadow1",MaxRank:5,Conditions:["HEALED"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["HEALED"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),Ji=p.Factory({Name:"WolfFang",Stars:4,Type:t.weapon.SWORD,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"WolfFang1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.16,.2,.24,.28,.32).Build()}),l.Factory({Name:"WolfFang2",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.02,.025,.03,.035,.04).Stacks().Build()}),l.Factory({Name:"WolfFang3",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.02,.025,.03,.035,.04).Stacks().Build()})]}),Zi=p.Factory({Name:"SacrificialJade",Stars:4,Type:t.weapon.CATALYST,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"SacrificialJade1",MaxRank:5,Conditions:["OFF_FIELD"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(t.stat.HP_PERCENT).Values(.32,.4,.48,.56,.64).Next().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(40,50,60,70,80).Build()})]}),tl=p.Factory({Name:"ScionOfTheBlazingSun",Stars:4,Type:t.weapon.BOW,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"ScionOfTheBlazingSun1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_ScionOfTheBlazingSun",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.6,.75,.9,1.05,1.2]}).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.28,.35,.42,.49,.56).Build()})]}),el=p.Factory({Name:"TalkingStick",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"TalkingStick1",MaxRank:5,MaxAuras:2,ValidAuras:[t.aura.PYRO,t.aura.HYDRO],OnApply:new l.Builder().Where({effect:{aura:[t.aura.PYRO]}}).stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{aura:[t.aura.HYDRO]}}).stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Build()})]}),al=p.Factory({Name:"BalladOfTheFjords",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"BalladOfTheFjords1",MaxRank:5,OnApply:new l.Builder().observe.Party(!0).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(120,150,180,210,240).Map((e,a)=>{const n=a.GetParty();if(!n)return 0;const s=new Set;for(const r of n.GetMembers())s.add(r.GetCharacter().Options.Element);return s.size>=3?e:0}).Build()})]}),nl=p.Factory({Name:"TheFirstGreatMagic",Type:t.weapon.BOW,Stars:5,Substat:t.stat.CRIT_DMG,Scaling:o.WeaponScaling.TYPE_46,Effects:[l.Factory({Name:"TheFirstGreatMagic1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().observe.Party(!0).stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Map((e,a)=>{let n=1;const s=a.GetCharacter().Options.Element,r=a.GetParty();if(r)for(const i of r.GetMembers())i!==a&&i.GetCharacter().Options.Element===s&&n++;return n=Math.min(n,3),e*n}).Build()})]}),Kt=e=>l.Factory({Name:e,MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Stacks().Build()}),sl=p.Factory({Name:"BlackcliffWarbow",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffWarbow1")]}),rl=p.Factory({Name:"IbisPiercer",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"IbisPiercer1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(40,50,60,70,80).Stacks().Build()})]}),il=p.Factory({Name:"JadefallSplendor",Type:t.weapon.CATALYST,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"JadefallSplendor1",MaxRank:5,OnApply:new l.Builder().observe.Owner(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.MapStat(e=>[e.GetCharacter().Options.Element]).Values(.3,.5,.7,.9,1.1).Map((e,a,n)=>Math.min([.12,.2,.28,.36,.44][n.GetRank()-1],e/100*a.GetCharacter().Get(t.stat.HP)/1e3)).Build()})]}),ll=p.Factory({Name:"MailedFlower",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.ELEMENTAL_MASTERY,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"MailedFlower1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(48,60,72,84,96).Build()})]}),ol=p.Factory({Name:"BeaconOfTheReedSea",Stars:5,Type:t.weapon.CLAYMORE,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_46,Effects:[l.Factory({Name:"BeaconOfTheReedSea1",MaxRank:5,Conditions:["HIT_SKILL","DMG_TAKEN"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["DMG_TAKEN"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().Where({target:{shielded:!1}}).stat.Char(t.stat.HP_PERCENT).Values(.32,.4,.48,.56,.64).Build()})]}),cl=p.Factory({Name:"TheBlackSword",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"TheBlackSword1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),El=p.Factory({Name:"TheCatch",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"TheCatch1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.06,.075,.09,.105,.12).Build()})]}),ea=e=>l.Factory({Name:e,MaxRank:5,OnApply(a,n,s){const r=a.GetCharacter(),i=s.Modifier(r.CreateModifier(t.stat.ELEMENTAL_BURST_DMG,0));function c(){let _=[r];const u=a.GetParty();u&&(_=u.GetMembers().map(h=>h.GetCharacter()));let A=0;for(const h of _)A+=h.Options.BurstCost;const S=Math.min(k1[n.GetRank()-1],F1[n.GetRank()-1]*A);i.SetValue(S)}return s.Observer(n.Event.CreateObserver(l.EffectEvent.CHANGE_RANK,c)),s.Observer(a.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,c)),()=>0}}),F1=[.12/100,.15/100,.18/100,.21/100,.24/100],k1=[.4,.5,.6,.7,.8],Tl=p.Factory({Name:"Akuoumaru",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[ea("Akuoumaru1")]}),_l=p.Factory({Name:"WineAndSong",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"WineAndSong1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),ul=(e,a,n)=>l.Factory({Name:e,ApplyOther:!0,StackSelf:!0,MaxRank:5,OnApply(s,r,i){const c=r.Owner.GetCharacter(),_=s.GetCharacter(),u=i.Modifier(_.CreateModifier(a,0));function A(){const S=c.Get(t.stat.ELEMENTAL_MASTERY);let h=n[r.GetRank()-1]*S;c!==_&&(h*=.3),u.SetValue(h)}return A(),i.Observer(c.CreateObserver(t.stat.ELEMENTAL_MASTERY,A)),()=>0}}),Al=p.Factory({Name:"MakhairaAquamarine",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[ul("MakhairaAquamarine1",t.stat.ATK_FLAT,[.24,.3,.36,.42,.48])]}),Sl=p.Factory({Name:"BlackcliffSlasher",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffSlasher1")]}),hl=p.Factory({Name:"BloodtaintedGreatsword",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"BloodtaintedGreatsword1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),ml=p.Factory({Name:"DebateClub",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"DebateClub1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_DebateClub",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.6,.75,.9,1.05,1.2]}).Build()})]}),fl=p.Factory({Name:"FavoniusGreatsword",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Ll=p.Factory({Name:"FerrousShadow",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"FerrousShadow1",MaxRank:5,OnApply:new l.Builder().Where({target:{hp:{leq:.7}}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.3,.35,.4,.45,.5).Build()})]}),pl=p.Factory({Name:"LuxuriousSeaLord",Type:t.weapon.CLAYMORE,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"LuxuriousSeaLord1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.12,.15,.18,.21,.24).Next().instance.Basic({Name:"HIT_LuxuriousSeaLord",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),Nl=e=>l.Factory({Name:e,MaxRank:5,ApplyOther:!0,MaxTargets:1,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60,75,90,105,120).Build()}),dl=p.Factory({Name:"ForestRegalia",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[Nl("ForestRegalia1")]}),Cl=p.Factory({Name:"KatsuragikiriNagamasa",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"KatsuragikiriNagamasa1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.06,.075,.09,.105,.12).Build()})]}),Ml=e=>l.Factory({Name:e,MaxRank:5,OnApply(a,n,s){const r=a.GetCharacter(),i=s.Modifier(r.CreateModifier(t.stat.CRIT_RATE,0)),c=s.Modifier(r.CreateModifier(t.stat.ATK_PERCENT,0));function _(){let u=[r];const A=a.GetParty();A&&(u=A.GetMembers().map(f=>f.GetCharacter()));const S=Math.min(4,u.filter(f=>f.Options.Region===t.region.LIYUE).length),h=V1[n.GetRank()-1]*S,m=x1[n.GetRank()-1]*S;i.SetValue(h),c.SetValue(m)}return _(),s.Observer(n.CreateObserver(l.EffectEvent.CHANGE_RANK,_)),s.Observer(a.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,_)),()=>0}}),V1=[.03,.04,.05,.06,.07],x1=[.07,.08,.09,.1,.11],gl=p.Factory({Name:"LithicBlade",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[Ml("LithicBlade1")]}),aa=new Map;function U1(e){const a=aa.get(e);if(!a){const n=new Set;return aa.set(e,n),n}return a}var na=({Name:e,OnApply:a})=>l.Factory({Name:e,MaxRank:5,ApplyOther:!0,OnApply(n,s,r){a(n,s,r);const i=r.GetModifiers(),c=U1(n);i.forEach(u=>c.add(u));function _(){for(const u of i)Array.from(c).some(S=>S!==u&&S.GetProp()===u.GetProp()&&S.Enabled()&&S.GetValue()!==0)&&(u.SetValue(0),u.Disable())}_();for(const u of l.EffectEvent.Values())r.Observer(s.CreateObserver(u,_));return()=>{i.forEach(u=>c.delete(u)),c.size===0&&aa.delete(n)}}}),Gl=p.Factory({Name:"SongOfBrokenPines",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_49,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"SongOfBrokenPines1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()}),na({Name:"SongOfBrokenPines2",OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Rl=p.Factory({Name:"PrototypeArchaic",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"PrototypeArchaic1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_PrototypeArchaic",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2.4,3,3.6,4.2,4.8]}).Build()})]}),Il=p.Factory({Name:"Rainslasher",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"Rainslasher1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.HYDRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),Ol=p.Factory({Name:"RedhornStonethresher",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"RedhornStonethresher1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT).Values(.28,.35,.42,.49,.56).Next().observe.Target(t.stat.DEF,t.stat.DEF_PERCENT,t.stat.DEF_FLAT).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT).Values(.4,.5,.6,.7,.8).Map((e,a)=>e*a.GetCharacter().Get(t.stat.DEF)).Build()})]}),Yt=e=>l.Factory({Name:e,MaxRank:5,OnApply(a,n,s){const r=a.GetCharacter();function i(c=!0){if(!c)r.MapCritRate=_=>_;else{const _=n.GetRank();r.MapCritRate=u=>W1(_,u)}}return i(!0),s.Observer(n.CreateObserver(l.EffectEvent.ENABLE,()=>i(!0))),s.Observer(n.CreateObserver(l.EffectEvent.CHANGE_RANK,()=>i(!0))),s.Observer(n.CreateObserver(l.EffectEvent.DISABLE,()=>i(!1))),()=>i(!1)}});function W1(e,a){const n=Math.max,s=.08+.02*(e-1);return a<0?((5*s+a)*n(0,a)-(5*s*a-5*s+g(a,2)-a)*n(0,s+a)+(5*g(s,2)*a-5*g(s,2)+6*s*g(a,2)-11*s*a+5*s+g(a,3)-2*g(a,2)+a)*n(0,2*s+a)-(10*g(s,3)*a-10*g(s,3)+17*g(s,2)*g(a,2)-32*g(s,2)*a+15*g(s,2)+8*s*g(a,3)-21*s*g(a,2)+18*s*a-5*s+g(a,4)-3*g(a,3)+3*g(a,2)-a)*n(0,3*s+a)+(30*g(s,4)*a-30*g(s,4)+61*g(s,3)*g(a,2)-116*g(s,3)*a+55*g(s,3)+41*g(s,2)*g(a,3)-112*g(s,2)*g(a,2)+101*g(s,2)*a-30*g(s,2)+11*s*g(a,4)-38*s*g(a,3)+48*s*g(a,2)-26*s*a+5*s+g(a,5)-4*g(a,4)+6*g(a,3)-4*g(a,2)+a)*n(0,4*s+a)-(24*g(s,4)*a-24*g(s,4)+50*g(s,3)*g(a,2)-100*g(s,3)*a+50*g(s,3)+35*g(s,2)*g(a,3)-105*g(s,2)*g(a,2)+105*g(s,2)*a-35*g(s,2)+10*s*g(a,4)-40*s*g(a,3)+60*s*g(a,2)-40*s*a+10*s+g(a,5)-5*g(a,4)+10*g(a,3)-10*g(a,2)+5*a-1)*n(0,5*s+a))/(6*g(s,4)*a-6*g(s,4)+11*g(s,3)*g(a,2)-26*g(s,3)*a+15*g(s,3)+6*g(s,2)*g(a,3)-24*g(s,2)*g(a,2)+33*g(s,2)*a-15*g(s,2)+s*g(a,4)-6*s*g(a,3)+15*s*g(a,2)-20*s*a+15*s+1):(5*s+a)/(6*g(s,4)*a-6*g(s,4)+11*g(s,3)*g(a,2)-26*g(s,3)*a+15*g(s,3)+6*g(s,2)*g(a,3)-24*g(s,2)*g(a,2)+33*g(s,2)*a-15*g(s,2)+s*g(a,4)-6*s*g(a,3)+15*s*g(a,2)-20*s*a+15*s+1)}var Dl=p.Factory({Name:"RoyalGreatsword",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalGreatsword1")]}),vl=p.Factory({Name:"SacrificialGreatsword",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),yl=p.Factory({Name:"SkyriderGreatsword",Type:t.weapon.CLAYMORE,Stars:3,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"SkyriderGreatsword1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.06,.07,.08,.09,.1).Build()})]}),Pl=p.Factory({Name:"SkywardPride",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"SkywardPride1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.08,.1,.12,.14,.16).Next().instance.Basic({Name:"HIT_SkywardPride",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.8,1,1.2,1.4,1.6]}).Build()})]}),sa=(e,a)=>l.Factory({Name:e,MaxRank:5,OnApply:new l.Builder().instance.Options({Name:a,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NONE,Scaling:[{Initial:0,Stat:t.stat.NONE,Talent:t.stat.NONE,Scaling:o.TalentScaling.NONE}]}).Next().Where({not:!0,enemy:{affected:[t.stat.CRYO_DMG]}}).mv.Mv(t.stat.ATK,.8,a).Map((n,s,r)=>[.8,.95,1.1,1.25,1.4][r.GetRank()-1]).Next().Where({enemy:{affected:[t.stat.CRYO_DMG]}}).mv.Mv(t.stat.ATK,2,a).Map((n,s,r)=>[2,2.4,2.8,3.2,3.6][r.GetRank()-1]).Build()}),Hl=p.Factory({Name:"SnowTombedStarsilver",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.PHYSICAL_DMG,Effects:[sa("SnowTombedStarsilver1","HIT_SnowTombedStarsilver")]}),wl=p.Factory({Name:"TheBell",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"TheBell1",MaxRank:5,OnApply:new l.Builder().Where({target:{shielded:!0}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),oe=e=>l.Factory({Name:e,MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Next().Where({target:{shielded:!0}}).stat.Char(t.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()}),Bl=p.Factory({Name:"TheUnforged",Type:t.weapon.CLAYMORE,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[oe("TheUnforged1")]}),bl=p.Factory({Name:"Whiteblind",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.DEF_PERCENT,Effects:[l.Factory({Name:"Whiteblind1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT,t.stat.DEF_PERCENT).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),Kl=p.Factory({Name:"WhiteIronGreatsword",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.DEF_PERCENT,Effects:[]}),Yl=p.Factory({Name:"WolfsGravestone",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"WolfsGravestone1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()}),l.Factory({Name:"WolfsGravestone2",MaxRank:5,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.4,.5,.6,.7,.8).Build()})]}),Fl=p.Factory({Name:"SerpentSpine",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"SerpentSpine1",MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.06,.07,.08,.09,.1).Stacks().Build()})]}),kl=p.Factory({Name:"FreedomSworn",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"FreedomSworn1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.1,.125,.15,.175,.2).Build()}),na({Name:"FreedomSworn2",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Vl=p.Factory({Name:"LightOfFoliarIncision",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"LightOfFoliarIncision1",MaxRank:5,Conditions:["HIT_NORMAL"],MaxConditions:1,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.04,.05,.06,.07,.08).Next().observe.Target(t.stat.ELEMENTAL_MASTERY).Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT,t.stat.ELEMENTAL_SKILL_DMG_FLAT).Values(1.2,1.5,1.8,2.1,2.4).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()})]}),xl=p.Factory({Name:"KeyOfKhajNisut",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"KeyOfKhajNisut1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Build()}),l.Factory({Name:"KeyOfKhajNisut2",MaxRank:5,MaxStacks:3,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.HP,t.stat.HP_PERCENT,t.stat.HP_FLAT).Where({target:{isOwner:!0}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(.12,.15,.18,.21,.24).Stacks().Map((e,a)=>e*a.GetCharacter().Get(t.stat.HP)/100).Next().observe.Owner(t.stat.HP,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ELEMENTAL_MASTERY).Stacks([0,0,0,.2],[0,0,0,.25],[0,0,0,.3],[0,0,0,.35],[0,0,0,.4]).Map((e,a,{Owner:n})=>e*n.GetCharacter().Get(t.stat.HP)/100).Build()})]}),Ul=p.Factory({Name:"HaranGeppakuFutsu",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"HaranGeppakuFutsu1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Stacks().Build()})]}),Wl=p.Factory({Name:"MistsplitterReforged",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"MistsplitterReforged1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char().MapStat(e=>[e.GetCharacter().Options.Element]).Stacks([0,.08,.16,.28],[0,.1,.2,.35],[0,.12,.24,.42],[0,.14,.28,.49],[0,.16,.32,.56]).Build()})]}),jl=p.Factory({Name:"JadeCutter",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"JadeCutter1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Next().observe.Target(t.stat.HP_PERCENT,t.stat.HP_FLAT,t.stat.HP_BASE).stat.Char(t.stat.ATK_FLAT).Values(.012,.015,.018,.021,.024).Map((e,a)=>e*a.GetCharacter().Get(t.stat.HP)).Build()})]}),zl=p.Factory({Name:"SummitShaper",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[oe("SummitShaper1")]}),ql=p.Factory({Name:"AquilaFavonia",Type:t.weapon.SWORD,Stars:5,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"AquilaFavonia1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().instance.Basic({Name:"HIT_AquilaFavonia",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2,2.3,2.6,2.9,3.2]}).Build()})]}),$l=p.Factory({Name:"ToukabouShigure",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"ToukabouShigure1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.16,.2,.24,.28,.32).Build()})]}),Ql=p.Factory({Name:"XiphosMoonlight",Type:t.weapon.SWORD,Stars:4,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[ul("XiphosMoonlight1",t.stat.ENERGY_RECHARGE,[.036/100,.045/100,.054/100,.063/100,.072/100])]}),Xl=p.Factory({Name:"SapwoodBlade",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[Nl("SapwoodBlade1")]}),Jl=p.Factory({Name:"KagotsurubeIsshin",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"KagotsurubeIsshin1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_KagotsurubeIsshin",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.8]}).Next().stat.Char(t.stat.ATK_PERCENT).Values(.15).Build()})]}),Zl=p.Factory({Name:"CinnabarSpindle",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.DEF_PERCENT,Effects:[l.Factory({Name:"CinnabarSpindle1",MaxRank:5,OnApply:new l.Builder().mv.Mv(t.stat.DEF,.4,e=>e.Options.Talent===t.stat.ELEMENTAL_SKILL_DMG).Map((e,a,n)=>[.4,.5,.6,.7,.8][n.GetRank()-1]).Build()})]}),to=p.Factory({Name:"AmenomaKageuchi",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[]}),eo=p.Factory({Name:"FesteringDesire",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"FesteringDesire1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.06,.075,.09,.105,.12).Build()})]}),ao=p.Factory({Name:"SwordOfDescension",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39b,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"SwordOfDescension1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_SwordOfDescension",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2]}).Next().Where({target:{name:/traveler/i}}).stat.Char(t.stat.ATK_FLAT).Values(66).Build()})]}),no=p.Factory({Name:"TheAlleyFlash",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"TheAlleyFlash1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),so=p.Factory({Name:"BlackcliffLongsword",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffLongsword1")]}),ro=p.Factory({Name:"IronSting",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"IronSting1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),io=p.Factory({Name:"PrototypeRancour",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"PrototypeRancour1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT,t.stat.DEF_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()})]}),lo=p.Factory({Name:"LionsRoar",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"LionsRoar1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),oo=p.Factory({Name:"TheFlute",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"TheFlute1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_TheFlute",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),co=p.Factory({Name:"RoyalGrimoire",Type:t.weapon.CATALYST,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalGrimoire1")]}),Eo=p.Factory({Name:"RoyalSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalSpear1")]}),To=p.Factory({Name:"RoyalBow",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalBow1")]}),_o=p.Factory({Name:"RoyalLongsword",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalLongsword1")]}),uo=p.Factory({Name:"SkyriderSword",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"SkyriderSword1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Build()})]}),Ao=p.Factory({Name:"DarkIronSword",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"DarkIronSword1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),So=p.Factory({Name:"FilletBlade",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"FilletBlade1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_FilletBlade",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2.4,2.8,3.2,3.6,4]}).Build()})]}),ho=p.Factory({Name:"TravelersHandySword",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.DEF_PERCENT,Effects:[]}),mo=p.Factory({Name:"HarbingerOfDawn",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"HarbingerOfDawn1",MaxRank:5,OnApply:new l.Builder().Where({target:{hp:{geq:.9}}}).stat.Char(t.stat.CRIT_RATE).Values(.14,.175,.21,.245,.28).Build()})]}),fo=p.Factory({Name:"CoolSteel",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"CoolSteel1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.CRYO_DMG,t.stat.HYDRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),Lo=p.Factory({Name:"HuntersPath",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"HuntersPath1",MaxRank:5,Conditions:["HIT_CHARGED"],MaxConditions:1,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().observe.Target(t.stat.ELEMENTAL_MASTERY).Where({effect:{conditions:["HIT_CHARGED"]}}).stat.Char(t.stat.CHARGED_ATTACK_DMG_FLAT).Values(1.6,2,2.4,2.8,3.2).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()})]}),po=p.Factory({Name:"ThunderingPulse",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"ThunderingPulse1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().stat.Char(t.stat.NORMAL_ATTACK_DMG).Stacks([0,.12,.24,.4],[0,.15,.3,.5],[0,.18,.36,.6],[0,.21,.42,.7],[0,.24,.48,.8]).Build()})]}),No=p.Factory({Name:"AquaSimulacra",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"AquaSimulacra1",MaxRank:5,Conditions:["FAR","NEAR"],MaxConditions:1,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["NEAR"]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),Co=p.Factory({Name:"PolarStar",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"PolarStar1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Stacks([0,.1,.2,.3,.48],[0,.125,.25,.375,.6],[0,.15,.3,.45,.72],[0,.175,.35,.525,.84],[0,.2,.4,.6,.96]).Build()})]}),Mo=p.Factory({Name:"AmosBow",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"AmosBow1",MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),go=p.Factory({Name:"EndOfTheLine",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"EndOfTheLine1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_EndOfTheLine",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.8,1,1.2,1.4,1.6]}).Build()})]}),Go=p.Factory({Name:"KingsSquire",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"KingsSquire1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60,80,100,120,140).Next().instance.Basic({Name:"HIT_KingsSquire",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.2,1.4,1.6,1.8]}).Build()})]}),Ro=p.Factory({Name:"MouunsMoon",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[ea("MouunsMoon1")]}),Io=p.Factory({Name:"Predator",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Predator1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.1).Stacks().Next().Where({target:{name:"Aloy"}}).stat.Char(t.stat.ATK_FLAT).Values(66).Build()})]}),Oo=p.Factory({Name:"Hamayumi",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Hamayumi1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().Where({target:{energy:{geq:1}}}).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().Where({target:{energy:{geq:1}}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().Build()})]}),Do=p.Factory({Name:"WindblumeOde",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"WindblumeOde1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()})]}),vo=p.Factory({Name:"MitternachtsWaltz",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"MitternachtsWaltz1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_SKILL"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),yo=p.Factory({Name:"FadingTwilight",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"FadingTwilight1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Stacks([0,.06,.1,.14],[0,.075,.125,.175],[0,.09,.15,.21],[0,.105,.175,.245],[0,.12,.2,.28]).Build()})]}),Po=p.Factory({Name:"AlleyHunter",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"AlleyHunter1",MaxRank:5,MaxStacks:10,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.02,.025,.03,.035,.04).Stacks().Build()})]}),Ho=p.Factory({Name:"TheViridescentHunt",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"TheViridescentHunt1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_TheViridescentHunt",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.4,.5,.6,.7,.8]}).Build()})]}),wo=p.Factory({Name:"CompoundBow",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"CompoundBow1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()})]}),Bo=p.Factory({Name:"PrototypeCrescent",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"PrototypeCrescent1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.36,.45,.54,.63,.72).Build()})]}),bo=p.Factory({Name:"Rust",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Rust1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.4,.5,.6,.7,.8).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(-.1).Build()})]}),Ko=p.Factory({Name:"SacrificialBow",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Yo=p.Factory({Name:"TheStringless",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"TheStringless1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),Fo=p.Factory({Name:"Messenger",Type:t.weapon.BOW,Stars:3,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"Messenger1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_Messenger",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),ko=p.Factory({Name:"Slingshot",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"Slingshot1",MaxRank:5,Conditions:["FAR","NEAR"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["FAR"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.36,.42,.48,.54,.6).Next().Where({effect:{conditions:["NEAR"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(-.1).Build()})]}),Vo=p.Factory({Name:"RecurveBow",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.HP_PERCENT,Effects:[]}),xo=p.Factory({Name:"SharpshootersOath",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"SharpshootersOath1",Conditions:["WEAK_SPOT"],MaxConditions:1,MaxRank:5,OnApply:new l.Builder().Where({effect:{conditions:["WEAK_SPOT"]}}).stat.Char(t.stat.AIMED_SHOT_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),Uo=p.Factory({Name:"RavenBow",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"RavenBow1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),Wo=p.Factory({Name:"TulaytullahsRemembrance",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"TulaytullahsRemembrance1",MaxRank:5,MaxStacks:10,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.048,.06,.072,.084,.096).Stacks().Build()})]}),jo=p.Factory({Name:"ThousandFloatingDreams",Type:t.weapon.CATALYST,Stars:5,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"ThousandFloatingDreams1",MaxRank:5,OnApply(e,a,n){const s=e.GetCharacter(),r=n.Modifier(s.CreateModifier(t.stat.ELEMENTAL_MASTERY,0)),i=[n.Modifier(s.CreateModifier(s.Options.Element,0)),n.Modifier(s.CreateModifier(s.Options.Element,0)),n.Modifier(s.CreateModifier(s.Options.Element,0))];function c(){i.forEach(h=>h.SetValue(0));let _=[s];const u=e.GetParty();u&&(_=u.GetMembers().map(h=>h.GetCharacter()));let A=0,S=0;for(const h of _)if(h!==s)if(h.Options.Element===s.Options.Element)A++;else{const m=i[S++];if(!m)continue;m.SetProp(h.Options.Element),m.SetValue(z1[a.GetRank()-1])}A=Math.min(3,A),r.SetValue(j1[a.GetRank()-1]*A)}return c(),n.Observer(e.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,c)),n.Observer(a.Event.CreateObserver(l.EffectEvent.CHANGE_RANK,c)),()=>0}}),l.Factory({Name:"ThousandFloatingDreams2",MaxRank:5,ApplyOther:!0,ApplySelf:!1,StackSelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(40,42,44,46,48).Build()})]}),j1=[32,40,48,56,64],z1=[.1,.14,.18,.22,.26],zo=p.Factory({Name:"WanderingEvenstar",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"WanderingEvenstar1",StackSelf:!0,ApplyOther:!0,MaxRank:5,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ATK_FLAT).Values(.24,.3,.36,.42,.48).Map((e,a,n)=>e*n.Owner.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)*(a===n.Owner?1:.3)).Build()})]}),qo=p.Factory({Name:"KagurasVerity",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"KagurasVerity1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.12,.15,.18,.21,.24).Stacks().Next().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Stacks([0,0,0,.12],[0,0,0,.15],[0,0,0,.18],[0,0,0,.21],[0,0,0,.24]).Build()})]}),$o=p.Factory({Name:"EverlastingMoonglow",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"EverlastingMoonglow1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HEALING_BONUS).Values(.1,.125,.15,.175,.2).Next().observe.Target(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT).Values(.01,.015,.02,.025,.03).Map((e,a)=>e*a.GetCharacter().Get(t.stat.HP)).Build()})]}),Qo=p.Factory({Name:"MemoryOfDust",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[oe("MemoryOfDust1")]}),Xo=p.Factory({Name:"LostPrayer",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"LostPrayer1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),Jo=p.Factory({Name:"SkywardAtlas",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"SkywardAtlas1",MaxRank:5,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().instance.Basic({Name:"HIT_SkywardAtlas",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.6,2,2.4,4.8,3.2]}).Build()})]}),Zo=p.Factory({Name:"FruitOfFulfillment",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"FruitOfFulfillment1",MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(24,27,30,33,36).Stacks().Next().stat.Char(t.stat.ATK_PERCENT).Values(-.05).Stacks().Build()})]}),tc=p.Factory({Name:"OathswornEye",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"OathswornEye1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ENERGY_RECHARGE).Values(.24,.3,.36,.42,.48).Build()})]}),ec=p.Factory({Name:"HakushinRing",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"HakushinRing1",ApplyOther:!0,MaxRank:5,OnApply:new l.Builder().stat.Char().MapStat(e=>[e.GetCharacter().Options.Element]).Values(.1,.125,.15,.175,.2).Build()})]}),ac=p.Factory({Name:"DodocoTales",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"DodocoTales1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_CHARGED"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["HIT_CHARGED"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.08,.1,.12,.14,.16).Next().Build()})]}),nc=p.Factory({Name:"Frostbearer",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[sa("Frostbearer1","HIT_Frostbearer")]}),sc=p.Factory({Name:"EyeOfPerception",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"EyeOfPerception1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_EyeOfPerception",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2.4,2.7,3,3.3,3.6]}).Build()})]}),rc=p.Factory({Name:"BlackcliffAgate",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffAgate1")]}),ic=p.Factory({Name:"MappaMare",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"MappaMare1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),lc=p.Factory({Name:"PrototypeAmber",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.HP_PERCENT,Effects:[]}),oc=p.Factory({Name:"SolarPearl",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"SolarPearl1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_SKILL"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Next().Build()})]}),cc=p.Factory({Name:"SacrificialFragments",Type:t.weapon.CATALYST,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[]}),Ec=p.Factory({Name:"FavoniusCodex",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Tc=p.Factory({Name:"AmberBead",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"AmberBead1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),_c=p.Factory({Name:"TwinNephrite",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"TwinNephrite1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.14,.16,.18,.2).Build()})]}),uc=p.Factory({Name:"EmeraldOrb",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"EmeraldOrb1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Ac=p.Factory({Name:"OtherworldlyStory",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Sc=p.Factory({Name:"ThrillingTalesOfDragonSlayers",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"ThrillingTalesOfDragonSlayers1",MaxRank:5,ApplySelf:!1,ApplyOther:!0,MaxTargets:1,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),hc=p.Factory({Name:"MagicGuide",Type:t.weapon.CATALYST,Stars:3,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"MagicGuide1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.HYDRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),mc=p.Factory({Name:"StaffOfTheScarletSands",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"StaffOfTheScarletSands1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ATK_FLAT).Values(.52,.65,.78,.91,1.04).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Next().observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ATK_FLAT).Values(.28,.35,.42,.49,.56).Stacks().Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Next().Build()})]}),fc=p.Factory({Name:"CalamityQueller",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_49,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"CalamityQueller1",MaxRank:5,MaxStacks:6,Conditions:["ON_FIELD","OFF_FIELD"],MaxConditions:1,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ATK_PERCENT).Values(.032,.04,.048,.056,.064).Stacks().Next().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.032,.04,.048,.056,.064).Stacks().Next().Build()})]}),Lc=p.Factory({Name:"JadeSpear",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"JadeSpear1",MaxRank:5,MaxStacks:7,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.032,.039,.046,.053,.06).Stacks().Next().stat.Char(t.stat.ALL_DMG).Stacks([0,0,0,0,0,0,0,.12],[0,0,0,0,0,0,0,.15],[0,0,0,0,0,0,0,.18],[0,0,0,0,0,0,0,.21],[0,0,0,0,0,0,0,.24]).Build()})]}),pc=p.Factory({Name:"VortexVanquisher",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[oe("VortexVanquisher1")]}),Nc=p.Factory({Name:"SkywardSpine",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"SkywardSpine1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.08,.1,.12,.14,.16).Next().instance.Basic({Name:"HIT_SkywardSpine",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.4,.55,.7,.85,1]}).Build()})]}),dc=p.Factory({Name:"MissiveWindspear",Type:t.weapon.POLEARM,Stars:4,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"MissiveWindspear1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(48,60,72,84,96).Build()})]}),Cc=p.Factory({Name:"Moonpiercer",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"Moonpiercer1",ApplyOther:!0,MaxTargets:1,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()})]}),Mc=p.Factory({Name:"EngulfingLightning",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"EngulfingLightning1",MaxRank:5,Conditions:["CAST_BURST","NO_BURST"],MaxConditions:1,OnApply:new l.Builder().observe.Target(t.stat.ENERGY_RECHARGE).stat.Char(t.stat.ATK_PERCENT).Values(.28,.35,.42,.49,.56).Map((e,a,n)=>q1(e,a.GetCharacter().Get(t.stat.ENERGY_RECHARGE),n.GetRank())).Next().Where({effect:{conditions:["CAST_BURST"]}}).stat.Char(t.stat.ENERGY_RECHARGE).Values(.3,.35,.4,.45,.5).Build()})]});function q1(e,a,n){return Math.min(e*Math.max(0,a-1),$1[n-1])}var $1=[.8,.9,1,1.1,1.2],gc=p.Factory({Name:"WavebreakerFin",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_45,Substat:t.stat.ATK_PERCENT,Effects:[ea("WavebreakerFin1")]}),Gc=p.Factory({Name:"KitainCrossSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"KitainCrossSpear1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.06,.075,.09,.105,.12).Build()})]}),Rc=p.Factory({Name:"DragonspineSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.PHYSICAL_DMG,Effects:[sa("DragonspineSpear1","HIT_DragonspineSpear")]}),Ic=p.Factory({Name:"LithicSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Ml("LithicSpear1")]}),Oc=p.Factory({Name:"CrescentPike",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"CrescentPike1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_CrescentPike",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.2,.25,.3,.35,.4]}).Build()})]}),Dc=p.Factory({Name:"Halberd",Stars:3,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Halberd1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_Halberd",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.6,2,2.4,2.8,3.2]}).Build()})]}),vc=p.Factory({Name:"DragonsBane",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"DragonsBane1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.HYDRO_DMG,t.stat.PYRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),yc=p.Factory({Name:"SacrificialSword",Type:t.weapon.SWORD,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Pc=p.Factory({Name:"ElegyForTheEnd",Type:t.weapon.BOW,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"ElegyForTheEnd1",ApplySelf:!0,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60,75,90,105,120).Build()}),na({Name:"ElegyForTheEnd2",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(100,125,150,175,200).Next().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Hc=p.Factory({Name:"StaffOfHoma",Type:t.weapon.POLEARM,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"StaffOfHoma1",ApplySelf:!0,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Next().observe.Target(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ATK_FLAT).Values(.008,.01,.012,.014,.016).Map((e,a)=>a.GetCharacter().Get(t.stat.HP)*e).Next().observe.Target(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ATK_FLAT).Where({target:{hp:{leq:.5}}}).Values(.01,.012,.014,.016,.018).Map((e,a)=>a.GetCharacter().Get(t.stat.HP)*e).Build()})]}),wc=p.Factory({Name:"FavoniusLance",Type:t.weapon.POLEARM,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Bc=p.Factory({Name:"WhiteTassel",Stars:3,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"WhiteTassel1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),bc=p.Factory({Name:"BlackTassel",Stars:3,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"BlackTassel1",MaxRank:5,Conditions:["NO_SLIMES","SLIMES"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["SLIMES"]}}).stat.Char(t.stat.ALL_DMG).Values(.4,.5,.6,.7,.8).Build()})]}),Kc=p.Factory({Name:"PrototypeStarglitter",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"PrototypeStarglitter1",MaxStacks:2,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.08,.1,.12,.14,.16).Stacks().Next().Build()})]}),Yc=p.Factory({Name:"BlackcliffPole",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffPole1")]}),Fc=p.Factory({Name:"Deathmatch",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"Deathmatch1",MaxRank:5,MaxConditions:1,Conditions:["ENEMY_1","ENEMY_2"],OnApply:new l.Builder().Where({effect:{conditions:["ENEMY_2"]}}).stat.Char(t.stat.ATK_PERCENT,t.stat.DEF_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["ENEMY_1"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),kc=p.Factory({Name:"SkywardBlade",Stars:5,Type:t.weapon.SWORD,Substat:t.stat.ENERGY_RECHARGE,Scaling:o.WeaponScaling.TYPE_46,Effects:[l.Factory({Name:"SkywardBlade1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.04,.05,.06,.07,.08).Next().instance.Basic({Name:"HIT_SkywardBlade",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.2,.25,.3,.35,.4]}).Build()})]}),Vc=p.Factory({Name:"SkywardHarp",Type:t.weapon.BOW,Stars:5,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"SkywardHarp1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CRIT_DMG).Values(.2,.25,.3,.35,.4).Next().instance.Basic({Name:"HIT_SkywardHarp",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.25]}).Build()})]}),xc=p.Factory({Name:"FavoniusSword",Type:t.weapon.SWORD,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Uc=p.Factory({Name:"FavoniusWarbow",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Wc=p.Factory({Name:"TheWidsith",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"TheWidsith1",MaxRank:5,Conditions:["RECITATIVE","ARIA","INTERLUDE"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["RECITATIVE"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.6,.75,.9,1.05,1.2).Next().Where({effect:{conditions:["ARIA"]}}).stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.48,.6,.72,.84,.96).Next().Where({effect:{conditions:["INTERLUDE"]}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(240,300,360,420,480).Build()})]}),jc=Object.values(ki).sort((e,a)=>e.Type===a.Type?e.Stars===a.Stars?e.Name.localeCompare(a.Name):e.Stars-a.Stars:e.Type-a.Type),ce={};for(const e of jc)ce[e.Type]||(ce[e.Type]=[]),ce[e.Type].push(e);var ra=new Q(e=>e.Name);ra.AddList(jc);function zc(){return ra.Get()}function Q1(e){return ra.Find(e)}function X1(e){return ce[e]||[]}var Ee={};D(Ee,{FindByName:()=>Z1,GetList:()=>J1});var Nt=new Q(e=>e.Name);for(const e of Fi())e.Effects.forEach(a=>Nt.Add(a));for(const e of zc())e.Effects.forEach(a=>Nt.Add(a));for(const e of Kr())e.Piece2.forEach(a=>Nt.Add(a)),e.Piece4.forEach(a=>Nt.Add(a));for(const e of ps())Nt.Add(e);function J1(){return Nt.Get()}function Z1(e){return Nt.Find(e)}var Ft={};D(Ft,{ArtifactStore:()=>aN,CopyCharbox:()=>lN,FilterArtifacts:()=>ia,PartyFrom:()=>tN});function tN(e){const a=new G.Party;for(const n in e.characters){const s=pt.FindByName(n);if(!s)throw new Error(`Character not found: ${n}`);const r=s();a.Add(r);const i=e.characters[n],c=Object.keys(i.weapon)[0];if(c){const _=et.FindByName(c);if(!_)throw new Error(`Weapon not found: ${n}`);r.SetWeapon(_)}i.artifacts&&Object.keys(i.artifacts).length>0&&r.SetArtifacts(new Lt.Artbox(r))}return G.ImportParty(e,a),a}function ia(e,a,n){const s=a.map(r=>eN(r));return n&&s.push({filter(r){return!(n.pieces&&!n.pieces.includes(r.piece)||n.only&&n.only==="locked"!==!!r.locked)}}),tn.Filter({values:e,mode:"every",filters:s})}function eN(e){const a=e.pieces||t.piece.Values(),n=e.subsMode||"some";return{for(s){return a.includes(s.piece)},filter(s){if(e.main&&!e.main.includes(s.mainstat))return!1;if(e.subs){const r=s.substats.map(c=>c.stat);if(!e.subs[n](c=>r.includes(c)))return!1}return!(Number.isFinite(e.stars)&&s.stars<(e.stars||0)||Number.isFinite(e.level)&&s.level<(e.level||0))}}}var aN=class{constructor(e){this.onChange=e,this.list=[],this.filtered=[]}Update(){this.onChange()}All(){return this.list}Clear(){this.list.splice(0,this.list.length),this.filtered.splice(0,this.filtered.length),this.onChange()}Add(e,a="push"){const n=I.Export(e);this.list[a](n),this.filtered=[...this.list],this.onChange()}AddExported(e,a="push"){this.list[a](e),this.filtered=[...this.list],this.onChange()}Filter(e,a){const{values:n}=ia(this.list,e,a);return this.filtered=n,n}Get(){return this.filtered}Replace(e,a){const n=this.list.indexOf(e);return n===-1?!1:(this.list.splice(n,1,a),this.onChange(),!0)}RemoveMultiple(e,a){const{indexes:n}=ia(this.list,e,a),s=[];return this.list.forEach((r,i)=>{n.includes(i)||s.push(r)}),this.list=s,this.onChange(),s.length}Remove(e){const a=this.list.indexOf(e);return a===-1?!1:(this.list.splice(a,1),this.onChange(),!0)}};function nN(e,a){const n=e.GetArtifacts();let s=a.GetArtifacts();if(!n){a.SetArtifacts(void 0);return}s||(s=new Lt.Artbox(a),a.SetArtifacts(s));const r=s,i=n.GetActiveSets(),c=r.GetActiveSets(),_=(()=>{const u=new Map;return n.GetEffects().forEach(A=>{const S=A.GetTargets().map(h=>h===e?a:h);u.set(A.Options.Name,S)}),u})();r.GetArtifacts().forEach((u,A)=>{const S=n.Get(A);I.Import(I.Export(S),u)}),i.every(u=>c.includes(u))&&r.GetEffects().forEach(u=>{const A=_.get(u.Options.Name);A&&u.ApplyMultiple(A)})}var sN=[[t.stat.NORMAL_ATTACK_LEVEL,t.stat.NORMAL_ATTACK_LEVEL_UP],[t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP],[t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP]];function rN(e,a){const n=e.GetCharacter(),s=a.GetCharacter();for(const[r,i]of sN){const c=n.Get(r)-n.Get(i),_=s.Get(i);s.Set(r,c+_)}}function iN(e,a){const n=e.GetWeapon(),s=a.GetWeapon();if(!n){a.SetWeapon(void 0);return}if(!s||s.Options.Name!==n.Options.Name){const i=et.FindByName(n.Options.Name);if(!i)throw new Error(`Weapon not found: ${n.Options.Name}`);a.SetWeapon(i)}const r=a.GetWeapon();if(!r)throw new Error("Target has no weapon");p.Import(p.Export(n),r)}function lN(e,a){a.GetCharacter().SetLevel(e.GetCharacter().GetLevel()),a.GetCharacter().SetAscension(e.GetCharacter().GetAscension()),rN(e,a),iN(e,a),nN(e,a)}var la=class extends qa{constructor(e){super(e),this.functions=new Map;const a=Mt.Contexts("math","logic",{functions:{pick:{name:"pick",arguments:[{name:"index",description:"integer index of the item to pick, starting at 1"},"..."],evaluate({values:[s,...r]}){return r[s-1]}},var:{name:"var",arguments:[{name:"name",description:"name of the variable to set",expression:!0},{name:"value",description:"value to set the variable to"}],evaluate:({values:[,s],expressions:[r]})=>{const i=r.token.value;return n.setVar(i,s),s}},add:{name:"add",arguments:[{name:"variable",description:"name of the variable to add to",expression:!0},{name:"value",description:"value to add to the variable"}],evaluate:({values:[,s],expressions:[r],location:i})=>{const c=r.token.value,_=n.getVar(c);if(_===void 0)throw new Error(`Variable ${c} is not defined at ${i}`);const u=_+s;return n.setVar(c,u),u}},multiply:{name:"multiply",arguments:[{name:"variable",description:"name of the variable to multiply",expression:!0},{name:"value",description:"value to multiply the variable by"}],evaluate:({values:[,s],expressions:[r]})=>{const i=r.token.value,c=n.getVar(i);if(c===void 0)throw new Error(`Variable ${i} is not defined`);const _=c*s;return n.setVar(i,_),_}},func:{name:"func",description:"define a function. Example: function(myfunc, (arg1, arg2), (arg1 + arg2))",arguments:[{name:"name",description:"name of the function to define",expression:!0},{name:"arguments",description:"arguments to the function",expression:!0},{name:"body",description:"body of the function",expression:!0}],evaluate:({expressions:[s,r,i],location:c})=>{const _=s.token.value,u=r.children.length?r.children.map(({token:S})=>S.value):r.token.value==="0"?[]:[r.token.value],A=(()=>i.evaluate?[i.evaluate]:i.children.map(S=>S.evaluate||(()=>0)))();if(!A)throw new Error(`Function body is not an expression at ${c}`);return this.functions.set(_,{args:u,expr:A}),0}},call:{name:"call",description:"call a function. Example: call(myfunc, arg1, arg2)",arguments:[{name:"name",description:"name of the function to call",expression:!0},"..."],evaluate:({expressions:[s],values:[,...r],location:i})=>{var c;const _=s.token.value,u=this.functions.get(_);if(!u)throw new Error(`Function ${_} is not defined at ${i}`);if(r.length!==u.args.length)throw new Error(`Function ${_} expects ${u.args.length} arguments, but ${r.length} were provided at ${i}`);for(let A=0;AA()).pop())!=null?c:0}}}});a.ignoreCase=!0;const n=new Mt(a);this.exprParser=n}};function B(e){if(typeof e=="number")return e;const a=e.endsWith("%");a&&(e=e.slice(0,e.length-1));let n=parseFloat(e);if(!Number.isFinite(n))throw new Error(`Invalid number format: "${e}"`);return a&&(n/=100),n}function Rd(e){return e}var oN=()=>({show:{name:"show",description:"Shows the rolls of the character artifacts",compile(e,{context:a,logger:n}){return function(){const i=a.GetChar().GetArtifacts();if(!i){n.error("Current character has no artifacts");return}n.log(` +`+At(...n)}function Pu(e,a){const n=new Y(v.NAME,v.DAMAGE,v.RELATIVE);n.AddRow(e,a.damage,le(a.relative));for(const s in a.elements){const r=parseInt(s);n.AddRow(t.stat.Name(r),a.elements[s].damage,le(a.elements[s].relative))}for(const s in a.talents){const r=parseInt(s);n.AddRow(t.stat.Name(r),a.talents[s].damage,le(a.talents[s].relative))}for(const s in a.instances)n.AddRow(s,a.instances[s].damage,le(a.instances[s].relative));return n.toString()}var le=e=>e*100;function Hu(...e){const a=new Y("NAME","STARS","TYPE","EFFECTS");for(const n of e){const s=(()=>{if(n instanceof Ot.Food){const r=n.GetRank();return n.Options.Effects.map(([i,c,_])=>{const u=c+(_-c)*(r-1)/2;return`${t.stat.Name(i)}: ${u}`}).join(", ")}else return n.Effects.map(([r,i,c])=>`${t.stat.Name(r)}: ${i}-${c}`).join(", ")})();a.AddRow(n.Name,n.Stars,n.Type,s)}return a.String()}var wu=[{Name:T.hits.HIT_Q_1,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.6816000000000004}]},{Name:T.hits.HIT_Q_2,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.49090000000000006}]}],Bu=l.Factory({Name:"ChevreuseC2",OnApply:new l.Builder().instance.Options({Name:"HIT_C2",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:1.2,Talent:t.stat.NONE}]}).Build()}),bu=l.Factory({Name:"ChevreuseC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Ku=l.Factory({Name:"ChevreuseC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Yu=l.Factory({Name:"ChevreuseC6",ApplyOther:!0,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG,t.stat.ELECTRO_DMG).Values(.2).Stacks().Build()}),Fu=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5313}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.49310000000000004}]},{Name:T.hits.HIT_N3_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2764}]},{Name:T.hits.HIT_N3_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3245}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7726000000000001}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2168999999999999}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],ku=l.Factory({Name:"ChevreuseA1",Conditions:["HIT_OVERLOAD"],ApplyOther:!0,MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:1},effect:{conditions:["HIT_OVERLOAD"]}}).stat.Enemy(t.stat.PYRO_RES,t.stat.ELECTRO_RES).Values(-.4).Build()}),Vu=l.Factory({Name:"ChevreuseA4",ApplyOther:!0,MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:4},target:{element:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).observe.Owner(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Enemy(t.stat.ATK_PERCENT).Values(1/100).Map((e,a,n)=>{const r=n.Owner.GetCharacter().Get(t.stat.HP);return Math.min(e*r/1e3,.4)}).Build()}),xu=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1520000000000001}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.7280000000000002}]},{Name:T.hits.HIT_E_HOLD+"_2",Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.824}]},{Name:T.hits.HIT_E+"_OUSIA",Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.28800000000000003}]}],Vr=G.Factory({Name:"Chevreuse",Stars:4,Weapon:t.weapon.POLEARM,Element:t.stat.PYRO_DMG,StatBonus:t.stat.HP_PERCENT,BurstCost:60,Region:t.region.FONTAINE,HpBase:[1002.9700927734,3588.6091308594],AtkBase:[16.205280303955,57.983562469482],DefBase:[50.701351165771,181.40849304199],Normals:Fu,Skills:xu,Bursts:wu,Extra:[],Effects:[ku,Vu,Bu,bu,Ku,Yu]}),Uu=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.752}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4315}]}],Wu=new l.Builder().stat.Char(t.stat.CRIT_RATE).Instance("HIT_E").Values(.12).Map((e,a)=>{const n=a.FindEffect("NaviaE");if(!n)throw new Error("NaviaE not found");const s=Math.min(n.GetStacks(),3);return e*s}).Build(),ju=l.Factory({Name:"NaviaC2",OnApply(e,a,n){const s=Wu(e,a,n),r=e.FindEffect("NaviaE");if(!r)throw new Error("NaviaE not found");return n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_STACKS,s)),s}}),zu=l.Factory({Name:"NaviaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),qu=l.Factory({Name:"NaviaC4",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.GEO_RES).Values(-.2).Build()}),$u=l.Factory({Name:"NaviaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Qu=new l.Builder().stat.Char(t.stat.CRIT_DMG).Instance("HIT_E").Values(.45).Map((e,a)=>{const n=a.FindEffect("NaviaE");if(!n)throw new Error("NaviaE not found");const s=Math.max(0,Math.min(n.GetStacks()-3,3));return e*s}).Build(),Xu=l.Factory({Name:"NaviaC6",OnApply(e,a,n){const s=Qu(e,a,n),r=e.FindEffect("NaviaE");if(!r)throw new Error("NaviaE not found");return n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_STACKS,s)),s}}),Ju=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9352}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8651}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3489}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.3343}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6252}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1309}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],Zu=l.Factory({Name:"NaviaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).infusion.Set(t.stat.GEO_DMG,!0).Next().Where({target:{ascension:1}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(.4).Build()}),tA=l.Factory({Name:"NaviaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Party(!0).stat.Char(t.stat.ATK_PERCENT).Values(.2).Map((e,a)=>{var n;const s=((n=a.GetParty())==null?void 0:n.GetMembers())||[a];let r=0;for(const i of s){const c=i.GetCharacter().Options.Element;t.Swirlable.includes(t.DmgToAura(c))&&r++}return r>2&&(r=2),e*r}).Build()}),eA=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.948}]},{Name:T.hits.HIT_E+"_OUSIA",Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.36}]}],aA=l.Factory({Name:"NaviaE2",MaxStacks:6,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance(T.hits.HIT_E).Values(.15).Map((e,a,n)=>e*Math.max(0,n.GetStacks()-3)).Next().Where({effect:{conditions:["ALL_STRIKE"]}}).mv.Multiplier(2,T.hits.HIT_E).Build()}),nA=l.Factory({Name:"NaviaE",MaxStacks:11,OnApply:new l.Builder().mv.Multiplier(1,T.hits.HIT_E).Map((e,a,n)=>e*n.GetStacks()/11+1).Build()}),xr=G.Factory({Name:"Navia",Element:t.stat.GEO_DMG,Stars:5,Weapon:t.weapon.CLAYMORE,StatBonus:t.stat.CRIT_DMG,BurstCost:60,Region:t.region.FONTAINE,HpBase:[984.78,4044.0373535156],AtkBase:[27.3714,112.3935546875],DefBase:[61.74456,253.56239318848],Normals:Ju,Skills:eA,Bursts:Uu,Extra:[],Effects:[nA,aA,Zu,tA,ju,zu,qu,$u,Xu]}),sA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4839}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4373}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5512}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.733}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7422}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]},{Name:"HIT_ARKHE",Element:t.stat.HYDRO_DMG,Talent:t.stat.NONE,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.0946}]}],rA=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0786}]},{Name:T.hits.HIT_E_1,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0596}]},{Name:T.hits.HIT_E_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0323}]},{Name:T.hits.HIT_E_3,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0829}]}],iA=l.Factory({Name:"FurinaE",OnApply(e,a,n){const s=lA(e,a,n),r=[],i=()=>{for(const u of r)n.RemoveObserver(u);let c=[];const _=e.GetParty();_&&(c=_.GetMembers());for(const u of c){if(u===e)continue;const A=n.Observer(u.GetCharacter().CreateObserver(t.stat.HP_CURRENT,s));r.push(A)}};return n.Observer(e.Event.CreateObserver(ut.CHANGE_PARTY,i)),i(),()=>0}}),lA=new l.Builder().observe.Party(!0).observe.Target(t.stat.HP_CURRENT).mv.Multiplier(1,/E_\d/).Map((e,a)=>{let n=[];const s=a.GetParty();s?n=s.GetMembers():n=[a];let r=0;for(const i of n)i.GetCharacter().Get(t.stat.HP_CURRENT)>.5&&r++;return r=Math.min(r,4),1+r/10}).Build(),oA=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1141}]}],cA=l.Factory({Name:"FurinaQ",MaxStacks:400,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ALL_DMG).Values(1).Stacks().Map((e,a,n)=>{let r=.05+.02*n.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL);return r=r*e/100,r}).Build()}),EA=l.Factory({Name:"FurinaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.HP,t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ALL_DMG).Instance(/E_\d/).Values(.7/100).Map((e,a)=>Math.min(.28,e*a.GetCharacter().Get(t.stat.HP)/1e3)).Build()}),TA=l.Factory({Name:"FurinaC1",OnApply(e,a,n){const s=e.FindEffect("FurinaQ");if(!s)throw new Error("FurinaC1: could not find FurinaQ");let r=0,i=a.Enabled();const c=()=>{const _=s.GetStacks();a.Enabled()?!i&&_300&&(r=_,s.SetStacks(300)),i=a.Enabled()};return c(),n.Observer(a.CreateObserver(U.ENABLE,c)),n.Observer(a.CreateObserver(U.DISABLE,c)),s.CreateObserver(U.CHANGE_STACKS,c),()=>0}}),_A=l.Factory({Name:"FurinaC2",MaxStacks:400,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.35/100).Stacks().Build()}),uA=l.Factory({Name:"FurinaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),AA=l.Factory({Name:"FurinaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),SA=l.Factory({Name:"FurinaC6",Conditions:["ARKHE_PNEUMA"],MaxConditions:1,OnApply:new l.Builder().infusion.Set(t.stat.HYDRO_DMG,!0).Next().mv.Mv(t.stat.HP,.18,/N\d|Charged|Plunge/i).Next().Where({effect:{conditions:["ARKHE_PNEUMA"]}}).mv.Mv(t.stat.HP,.25,/N\d|Charged|Plunge/i).Build()}),Ur=G.Factory({Name:"Furina",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.SWORD,StatBonus:t.stat.CRIT_RATE,BurstCost:60,Region:t.region.FONTAINE,Normals:sA,Skills:rA,Bursts:oA,Extra:[],Effects:[iA,cA,EA,TA,_A,uA,AA,SA],HpBase:[1191.65,4893.5590820312],AtkBase:[18.9924,77.987365722656],DefBase:[54.146148681641,222.35850524902]}),hA=[{Name:T.hits.HIT_N1,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5458}]},{Name:T.hits.HIT_N2,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4625}]},{Name:T.hits.HIT_N3,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.7234}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.368}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.HP,Scaling:o.TalentScaling.PHYSICAL_1,Initial:.0732}]},{Name:T.hits.HIT_CHARGED+"_C6",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.HP,Scaling:o.TalentScaling.NONE,Initial:.1}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],mA=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1286}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.208}]}],fA=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.2226}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0911}]}],LA=l.Factory({Name:"NeuvilletteA1",MaxStacks:3,OnApply:new l.Builder().Where({target:{ascension:1}}).mv.Multiplier(1,"HIT_CHARGED_2","HIT_CHARGED_C6").Map((e,a,n)=>[0,1.1,1.25,1.6][n.GetStacks()]).Build()}),pA=l.Factory({Name:"NeuvilletteA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.HP_CURRENT).stat.Char(t.stat.HYDRO_DMG).Values(1).Map((e,a)=>Math.min(.3,.6*Math.max(0,a.GetCharacter().Get(t.stat.HP_CURRENT)-.3))).Build()}),NA=l.Factory({Name:"NeuvilletteC2",OnApply(e,a,n){const s=e.FindEffect("NeuvilletteA1");if(!s)throw new Error("NeuvilletteC2: Could not find NeuvilletteA1");const r=e.FindInstance("HIT_CHARGED_2"),i=e.FindInstance("HIT_CHARGED_C6");if(!r)throw new Error("NeuvilletteC2: Could not find HIT_CHARGED_2");if(!i)throw new Error("NeuvilletteC2: Could not find HIT_CHARGED_C6");const c=n.Modifier(r.Subject.CreateModifier(t.stat.CRIT_DMG,0)),_=n.Modifier(i.Subject.CreateModifier(t.stat.CRIT_DMG,0)),u=()=>{if(e.GetCharacter().GetAscension()<1){c.SetValue(0),_.SetValue(0);return}const A=s.GetStacks();c.SetValue(.14*A),_.SetValue(.14*A)};return u(),n.Observer(s.CreateObserver(l.EffectEvent.CHANGE_STACKS,u)),n.Observer(e.GetCharacter().CreateObserver(t.stat.LEVEL,u)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ASCENSION,u)),()=>0}}),dA=l.Factory({Name:"NeuvilletteC3",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_LEVEL_UP).Values(3).Build()}),CA=l.Factory({Name:"NeuvilletteC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Wr=G.Factory({Name:"Neuvillette",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.CATALYST,StatBonus:t.stat.CRIT_DMG,BurstCost:70,Region:t.region.FONTAINE,HpBase:[1143.984,4697.8169],AtkBase:[16.218,66.595],DefBase:[44.8725,184.275],Normals:hA,Skills:mA,Bursts:fA,Extra:[],Effects:[LA,pA,NA,dA,CA]}),MA=l.Factory({Name:"MikaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),gA=l.Factory({Name:"MikaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),GA=l.Factory({Name:"MikaC6",ApplyOther:!0,MaxTargets:1,OnApply:new l.Builder().stat.Char(t.stat.PHYSICAL_CRIT_DMG).Values(.6).Build()}),RA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4326}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.415}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.545}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2761}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7087}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1275}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],IA=l.Factory({Name:"MikaA1",MaxStacks:4,ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.PHYSICAL_DMG).Values(.1).Stacks().Build()}),OA=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.84}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.252}]}],jr=G.Factory({Name:"Mika",Element:t.stat.CRYO_DMG,Stars:4,Weapon:t.weapon.POLEARM,StatBonus:t.stat.HP_PERCENT,BurstCost:70,Region:t.region.MONDSTADT,HpBase:[1048.5597,3751.7275],AtkBase:[18.6984,66.90411],DefBase:[59.800125,213.96375],Normals:RA,Skills:OA,Bursts:[],Extra:[],Effects:[IA,MA,gA,GA]}),DA=[{Name:T.hits.HIT_N1+"_Q",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.987},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0169}]},{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.393},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.0239}]}],vA=l.Factory({Name:"DehyaC1",OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2).Next().mv.Mv(t.stat.HP,.036,e=>e.Options.Talent===t.stat.ELEMENTAL_SKILL_DMG).Next().mv.Mv(t.stat.HP,.06,e=>e.Options.Talent===t.stat.ELEMENTAL_BURST_DMG).Build()}),yA=l.Factory({Name:"DehyaC2",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance("HIT_E_DOT").Values(.5).Build()}),PA=l.Factory({Name:"DehyaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),HA=l.Factory({Name:"DehyaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wA=l.Factory({Name:"DehyaC6",MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.1).Next().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_DMG).Values(.15).Stacks().Build()}),BA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6212}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6171}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7663}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9529}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5633}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0182}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],bA=[{Name:T.hits.HIT_E_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1288}]},{Name:T.hits.HIT_E_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.328}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.602},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0103}]}],zr=G.Factory({Name:"Dehya",Stars:5,Element:t.stat.PYRO_DMG,Weapon:t.weapon.CLAYMORE,StatBonus:t.stat.HP_PERCENT,Region:t.region.SUMERU,BurstCost:70,HpBase:[1220.2496,5011.0044],AtkBase:[20.6682,84.8686],DefBase:[48.88111,200.7369],Normals:BA,Skills:bA,Bursts:DA,Extra:[],Effects:[vA,yA,PA,HA,wA]}),KA=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.776}]}],YA=l.Factory({Name:"FaruzanQ",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.ANEMO_RES).Values(-.3).Next().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ANEMO_DMG).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map(e=>e*.18).Build()}),FA=l.Factory({Name:"FaruzanC3",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),kA=l.Factory({Name:"FaruzanC5",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),VA=l.Factory({Name:"FaruzanC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ANEMO_CRIT_DMG).Values(.4).Build()}),xA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4473}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4219}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5316}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7062}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],UA=l.Factory({Name:"FaruzanA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).observe.Owner(t.stat.ATK_BASE).stat.Char(t.stat.ANEMO_DMG_FLAT).Values(.32).Map((e,a,n)=>n.Owner.GetCharacter().Get(t.stat.ATK_BASE)*e).Build()}),WA=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.488}]},{Name:T.hits.HIT_E_2,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.08}]}],qr=G.Factory({Name:"Faruzan",Stars:4,Element:t.stat.ANEMO_DMG,Weapon:t.weapon.BOW,StatBonus:t.stat.ATK_PERCENT,BurstCost:80,Region:t.region.SUMERU,HpBase:[802.3761,2870.8872],AtkBase:[16.4724,58.939335],DefBase:[52.647,188.37],Normals:xA,Skills:WA,Bursts:KA,Extra:[],Effects:[YA,UA,FA,kA,VA]}),jA=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1843}]},{Name:T.hits.HIT_Q_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.2253}]}],zA=l.Factory({Name:"NilouC1",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance("HIT_E_3_1").Values(.65).Build()}),qA=l.Factory({Name:"NilouC2",ApplyOther:!0,Conditions:["BLOOM"],MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Enemy(t.stat.HYDRO_RES).Values(-.35).Next().Where({owner:{ascension:1},effect:{conditions:["BLOOM"]}}).stat.Enemy(t.stat.DENDRO_RES).Values(-.35).Build()}),$A=l.Factory({Name:"NilouC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),QA=l.Factory({Name:"NilouC4",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.5).Build()}),XA=l.Factory({Name:"NilouC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),JA=l.Factory({Name:"NilouC6",OnApply:new l.Builder().observe.Target(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.Char(t.stat.CRIT_RATE).Values(.6/100).Map((e,a)=>Math.max(0,Math.min(.3,e*a.GetCharacter().Get(t.stat.HP)/1e3))).Next().observe.Target(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.Char(t.stat.CRIT_DMG).Values(1.2/100).Map((e,a)=>Math.max(0,Math.min(.6,e*a.GetCharacter().Get(t.stat.HP)/1e3))).Build()}),ZA=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5031}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4544}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7035}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5022}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5444}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}];function $r(e){const a=e.GetParty();if(!a)return!1;let n=!1,s=!1;for(const r of a.GetMembers()){const i=r.GetCharacter().Options.Element;if(i===t.stat.DENDRO_DMG)n=!0;else if(i===t.stat.HYDRO_DMG)s=!0;else return!1}return n&&s}var tS=l.Factory({Name:"NilouA1",ApplyOther:!0,OnApply:new l.Builder().Where((e,a)=>a.GetCharacter().GetAscension()<1?!1:$r(e)).observe.Party(!0).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(100).Build()}),eS=l.Factory({Name:"NilouA4",ApplyOther:!0,OnApply:new l.Builder().Where((e,a)=>a.GetCharacter().GetAscension()<4?!1:$r(e)).observe.Party(!0).observe.Owner(t.stat.HP_FLAT,t.stat.HP_BASE,t.stat.HP_PERCENT).stat.Char(t.stat.BLOOM_DMG).Values(.09).Map((e,a,n)=>Math.max(0,Math.min(4,(n.Owner.GetCharacter().Get(t.stat.HP)-3e4)*e/1e3))).Build()}),aS=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0334}]},{Name:T.hits.HIT_E_1+"_1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0455}]},{Name:T.hits.HIT_E_1+"_2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0326}]},{Name:T.hits.HIT_E_2+"_1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0514}]},{Name:T.hits.HIT_E_2+"_2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0396}]},{Name:T.hits.HIT_E_3+"_1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0717}]},{Name:T.hits.HIT_E_3+"_2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0506}]}],Qr=G.Factory({Name:"Nilou",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.SWORD,StatBonus:t.stat.HP_PERCENT,Region:t.region.SUMERU,BurstCost:70,HpBase:[1182.1168,4854.4106],AtkBase:[17.8752,73.39987],DefBase:[56.71884,232.9236],Normals:ZA,Skills:aS,Bursts:jA,Extra:[],Effects:[tS,eS,zA,qA,$A,QA,XA,JA]}),Xe=new Set,Je=[.025,.05,.075,.115];function nS(e){const a=e.FindEffect("YunjinA4");if(!a||!a.Enabled()||e.GetCharacter().GetAscension()<4)return 0;const n=e.GetParty();if(!n)return Je[0];Xe.clear();for(const r of n.GetMembers()){const i=r.GetCharacter().Options.Element;Xe.add(i)}const s=Math.max(1,Math.min(Je.length,Xe.size));return Je[s-1]}var sS=l.Factory({Name:"YunjinA4",OnApply(e,a,n){const s=e.FindEffect("YunjinQ");if(!s)throw new Error("Yunjin Burst effect not found");const r=s;function i(){r.Enabled()&&(r.Disable(),r.Enable())}return i(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_TARGET,i)),()=>0}}),rS=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.44}]}],iS=l.Factory({Name:"YunjinQ",ApplyOther:!0,OnApply:new l.Builder().observe.Party(!0).observe.Owner(t.stat.DEF_PERCENT,t.stat.DEF_BASE,t.stat.DEF_FLAT,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a,n)=>(.3216*e+nS(n.Owner))*n.Owner.GetCharacter().Get(t.stat.DEF)).Build()}),lS=l.Factory({Name:"YunjinC2",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.15).Build()}),oS=l.Factory({Name:"YunjinC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),cS=l.Factory({Name:"YunjinC4",OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT).Values(.2).Build()}),ES=l.Factory({Name:"YunjinC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),TS=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4051}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4025}]},{Name:T.hits.HIT_N3_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2296}]},{Name:T.hits.HIT_N3_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2752}]},{Name:T.hits.HIT_N4_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2399}]},{Name:T.hits.HIT_N4_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2881}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6734}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2169}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],_S=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.4912}]},{Name:T.hits.HIT_E_1,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.6096}]},{Name:T.hits.HIT_E_2,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.728}]}],Xr=G.Factory({Name:"Yunjin",Stars:4,Weapon:t.weapon.POLEARM,Element:t.stat.GEO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,Region:t.region.LIYUE,BurstCost:60,HpBase:[893.5552,3197.1245],AtkBase:[16.0272,57.34638],DefBase:[61.5741,220.311],Normals:TS,Skills:_S,Bursts:rS,Extra:[],Effects:[iS,sS,lS,oS,cS,ES]}),uS=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.272}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.22}]}],AS=l.Factory({Name:"YoimiyaC1",OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2).Build()}),SS=l.Factory({Name:"YoimiyaC2",OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Values(.25).Build()}),hS=l.Factory({Name:"YoimiyaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),mS=l.Factory({Name:"YoimiyaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),fS=l.Factory({Name:"YoimiyaC6",OnApply:new l.Builder().instance.Location("Normal").Options({Name:"HIT_C6",Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Talent:t.stat.NORMAL_ATTACK_LEVEL,Initial:.164*.6}]}).Build()}),LS=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3564}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6838}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8889}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4642}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0586}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_KindlingArrow",Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.164}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],pS=l.Factory({Name:"YoimiyaA1",MaxStacks:10,OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.PYRO_DMG).Values(.02).Stacks().Build()}),NS=l.Factory({Name:"YoimiyaA4",ApplyOther:!0,ApplySelf:!1,OnApply(e,a,n){const s=e.GetCharacter(),r=a.Owner.GetCharacter(),i=a.Owner.FindEffect("YoimiyaA1");if(!i)throw new Error("Cannot find Yoimiya A1");const c=n.Modifier(s.CreateModifier(t.stat.ATK_PERCENT,0)),_=()=>{if(r.GetAscension()<4){c.SetValue(0);return}c.SetValue(.1+.01*i.GetStacks())};return _(),n.Observer(r.CreateObserver(t.stat.LEVEL,_)),n.Observer(r.CreateObserver(t.stat.ASCENSION,_)),n.Observer(i.CreateObserver(l.EffectEvent.CHANGE_STACKS,_)),()=>0}}),dS=l.Factory({Name:"YoimiyaE",OnApply:new l.Builder().infusion.Set(t.stat.PYRO_DMG,!0).Next().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.3791,/hit_n\d/i).Map((e,a)=>1+e*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),Jr=G.Factory({Name:"Yoimiya",Stars:5,Weapon:t.weapon.BOW,Element:t.stat.PYRO_DMG,StatBonus:t.stat.CRIT_RATE,Region:t.region.INAZUMA,BurstCost:60,HpBase:[791.2556,3249.3232],AtkBase:[25.137,103.21857],DefBase:[47.864,196.56],Normals:LS,Skills:[],Bursts:uS,Extra:[],Effects:[dS,pS,NS,AS,SS,hS,mS,fS]}),CS=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.824}]}],MS=l.Factory({Name:"YanfeiQ",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(...o.TalentScaling.ELEMENTAL_2).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map(e=>.334*e).Build()}),gS=l.Factory({Name:"YanfeiC2",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_CRIT_RATE).Values(.2).Build()}),GS=l.Factory({Name:"YanfeiC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),RS=l.Factory({Name:"YanfeiC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),IS=[{Name:T.hits.HIT_N1,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5834}]},{Name:T.hits.HIT_N2,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5213}]},{Name:T.hits.HIT_N3,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.7601}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_2,Initial:.9823}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],OS=l.Factory({Name:"YanfeiA1",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindEffect("YanfeiSeal");if(!r)throw new Error("Cannot find Yanfei Scarlet Seals");const i=n.Modifier(s.CreateModifier(t.stat.PYRO_DMG,0)),c=()=>{if(s.GetAscension()<1){i.SetValue(0);return}i.SetValue(r.GetStacks()*.05)};return c(),n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_STACKS,c)),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),DS=l.Factory({Name:"YanfeiA4",OnApply:new l.Builder().Where({target:{ascension:4}}).instance.Location("Normal").Options({Name:"HIT_A4",Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Initial:.8,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),vS=l.Factory({Name:"YanfeiSeal",MaxStacks:4,OnApply:new l.Builder().observe.Target(t.stat.NORMAL_ATTACK_LEVEL,t.stat.NORMAL_ATTACK_LEVEL_UP).mv.Mv(t.stat.ATK,.1733,"HIT_CHARGED").Map((e,a,n)=>e*n.GetStacks()*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.NORMAL_ATTACK_LEVEL)-1]).Build()}),yS=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.696}]}],Zr=G.Factory({Name:"Yanfei",Stars:4,Element:t.stat.PYRO_DMG,StatBonus:t.stat.PYRO_DMG,Weapon:t.weapon.CATALYST,Region:t.region.LIYUE,BurstCost:80,HpBase:[784.14026,2805.64],AtkBase:[20.12304,72.001564],DefBase:[49.2135,176.085],Normals:IS,Skills:yS,Bursts:CS,Extra:[],Effects:[vS,MS,OS,DS,gS,GS,RS]}),PS=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.6}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.3382}]}],HS=l.Factory({Name:"YaeC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wS=l.Factory({Name:"YaeC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_DMG).Values(.2).Build()}),BS=l.Factory({Name:"YaeC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),bS=l.Factory({Name:"YaeC6",OnApply:new l.Builder().stat.Char(t.stat.DEFIGNORED).Instance(/HIT_E_\d/i).Values(.6).Build()}),KS=[{Name:T.hits.HIT_N1,Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3966}]},{Name:T.hits.HIT_N2,Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3852}]},{Name:T.hits.HIT_N3,Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5689}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4289}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],YS=l.Factory({Name:"YaeA4",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_MASTERY).Where({target:{ascension:4}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.15/100).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()}),FS=[{Name:T.hits.HIT_E_1,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6067}]},{Name:T.hits.HIT_E_2,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7584}]},{Name:T.hits.HIT_E_3,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.948}]},{Name:T.hits.HIT_E_4,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.185}]}],ti=G.Factory({Name:"Yae",Stars:5,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.CRIT_RATE,Weapon:t.weapon.CATALYST,Region:t.region.INAZUMA,BurstCost:90,HpBase:[807.46204,3315.8757],AtkBase:[26.4404,108.57064],DefBase:[44.2742,181.818],Normals:KS,Skills:FS,Bursts:PS,Extra:[],Effects:[YS,HS,wS,BS,bS]}),kS=l.Factory({Name:"XiaoQ",OnApply:new l.Builder().infusion.Set(t.stat.ANEMO_DMG,!0).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(...o.TalentScaling.ELEMENTAL_2).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map(e=>.5845*e).Build()}),VS=l.Factory({Name:"XiaoC2",OnApply:new l.Builder().stat.Char(t.stat.ENERGY_RECHARGE).Values(.25).Build()}),xS=l.Factory({Name:"XiaoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),US=l.Factory({Name:"XiaoC4",OnApply:new l.Builder().Where({target:{hp:{leq:.5}}}).stat.Char(t.stat.DEF_PERCENT).Values(1).Build()}),WS=l.Factory({Name:"XiaoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),jS=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.2754}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.5694}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6855}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.3766}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.7154}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.9583}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.2109}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439}]}],zS=l.Factory({Name:"XiaoA1",MaxStacks:5,OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.ALL_DMG).Values(.05).Stacks().Build()}),qS=l.Factory({Name:"XiaoA4",MaxStacks:3,OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.15).Stacks().Build()}),$S=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.528}]}],ei=G.Factory({Name:"Xiao",Stars:5,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.CRIT_RATE,Weapon:t.weapon.POLEARM,Region:t.region.LIYUE,BurstCost:70,HpBase:[991.4528,4071.4412],AtkBase:[27.1852,111.628975],DefBase:[62.2232,255.528],Normals:jS,Skills:$S,Bursts:[],Extra:[],Effects:[kS,zS,qS,VS,xS,US,WS]}),QS=[{Name:T.hits.HIT_Q_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.72}]},{Name:T.hits.HIT_Q_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.88}]},{Name:T.hits.HIT_Q_3,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.096}]},{Name:"HIT_PYRONADO",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.12}]}],XS=l.Factory({Name:"XianglingC1",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.PYRO_RES).Values(-.15).Build()}),JS=l.Factory({Name:"XianglingC2",OnApply:new l.Builder().instance.Options({Name:"HIT_C2",Element:t.stat.PYRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.75,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),ZS=l.Factory({Name:"XianglingC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),t0=l.Factory({Name:"XianglingC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),e0=l.Factory({Name:"XianglingC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Values(.15).Build()}),a0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4205}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4214}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2606}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.141}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7104}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.2169}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],n0=l.Factory({Name:"XianglingA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.ATK_PERCENT).Values(.1).Build()}),s0=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1128}]}],ai=G.Factory({Name:"Xiangling",Stars:4,Element:t.stat.PYRO_DMG,StatBonus:t.stat.ELEMENTAL_MASTERY,Weapon:t.weapon.POLEARM,Region:t.region.LIYUE,BurstCost:80,HpBase:[911.791,3262.3718],AtkBase:[18.87648,67.54129],DefBase:[56.0805,200.655],Normals:a0,Skills:s0,Bursts:QS,Extra:[],Effects:[n0,XS,JS,ZS,t0,e0]}),r0=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.472}]}],i0=l.Factory({Name:"WandererC1",OnApply(e,a,n){if(!e.FindEffect("WandererA4"))throw new Error("Cannot find Wanderer A4");let r;const i=()=>{const c=e.FindInstance("HIT_A4");!c||r||(r=n.Mv({Stat:t.stat.ATK,Value:.25,Enabled:!0},c))};return i(),n.Observer(e.GetCharacter().CreateObserver(t.stat.LEVEL,i)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ASCENSION,i)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),()=>0}}),l0=l.Factory({Name:"WandererC2",MaxStacks:120,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.04).Stacks().Map(e=>Math.min(2,e)).Build()}),o0=l.Factory({Name:"WandererC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),c0=l.Factory({Name:"WandererC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),E0=[{Name:T.hits.HIT_N1,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6871}]},{Name:T.hits.HIT_N2,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6502}]},{Name:T.hits.HIT_N3,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4764}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.3208}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]},{Name:T.hits.HIT_N1+"_C6",Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6871*.4}]},{Name:T.hits.HIT_N2+"_C6",Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6502*.4}]},{Name:T.hits.HIT_N3+"_C6",Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4764*.4}]}],T0=l.Factory({Name:"WandererA1",MaxAuras:1,ValidAuras:t.Swirlable,OnApply:new l.Builder().Where({target:{ascension:1},effect:{affected:[t.stat.PYRO_DMG]}}).stat.Char(t.stat.ATK_PERCENT).Values(.3).Next().Where({target:{ascension:1},effect:{affected:[t.stat.CRYO_DMG]}}).stat.Char(t.stat.CRIT_RATE).Values(.2).Build()}),_0=l.Factory({Name:"WandererA4",OnApply:new l.Builder().Where({target:{ascension:4}}).instance.Options({Name:"HIT_A4",Element:t.stat.ANEMO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.35,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),u0=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.952}]}],A0=l.Factory({Name:"WandererE",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.3298,/hit_n\d/i).Map((e,a)=>1+e*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Next().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Multiplier(.2639,/hit_charged/i).Map((e,a)=>1+e*o.TalentScaling.ELEMENTAL_2[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),ni=G.Factory({Name:"Wanderer",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.CRIT_RATE,Region:t.region.SUMERU,BurstCost:60,HpBase:[791.2556,3249.3232],AtkBase:[25.5094,104.747734],DefBase:[47.2657,194.103],Normals:E0,Skills:u0,Bursts:r0,Extra:[],Effects:[A0,T0,_0,i0,l0,o0,c0]}),S0=[{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.376}]}],h0=l.Factory({Name:"VentiQ",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){m0(e,a,n);function s(){const r=e.FindBurst(T.hits.HIT_Q+"_ADDITIONAL");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),m0=new l.Builder().instance.Location("Burst").Options({Name:T.hits.HIT_Q+"_ADDITIONAL",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.188,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),f0=l.Factory({Name:"VentiC1",OnApply:new l.Builder().instance.Location("Normal").Options({Name:"HIT_C1",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Talent:t.stat.NORMAL_ATTACK_LEVEL,Stat:t.stat.ATK,Initial:.4386*.33}]}).Next().instance.Location("Normal").Options({Name:"HIT_CHARGED_C1",Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Talent:t.stat.NORMAL_ATTACK_LEVEL,Stat:t.stat.ATK,Initial:1.24*.33}]}).Next().Build()}),L0=l.Factory({Name:"VentiC2",ApplyOther:!0,Conditions:["AIRBORNE","NO_AIRBORNE"],MaxConditions:1,OnApply:new l.Builder().stat.Enemy(t.stat.ANEMO_RES,t.stat.PHYSICAL_RES).Values(-.12).Next().Where({effect:{conditions:["AIRBORNE"]}}).stat.Enemy(t.stat.ANEMO_RES,t.stat.PHYSICAL_RES).Values(-.12).Build()}),p0=l.Factory({Name:"VentiC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),N0=l.Factory({Name:"VentiC4",OnApply:new l.Builder().stat.Char(t.stat.ANEMO_DMG).Values(.25).Build()}),d0=l.Factory({Name:"VentiC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),C0=l.Factory({Name:"VentiC6",ApplyOther:!0,OnApply(e,a,n){const s=e.GetCharacter().GetEnemy(),r=a.Owner.FindEffect("VentiQ");if(!r)throw new Error("Venti Q not found");n.Modifier(s.Subject.CreateModifier(t.stat.ANEMO_RES,-.2));const i=n.Modifier(s.Subject.CreateModifier(t.stat.ANEMO_RES,0)),c=()=>{const _=r.GetAuras();if(!_.length||_[0]===t.aura.NONE)i.SetValue(0);else{const u=t.DmgToRes(t.AuraToDmg(_[0]));i.SetValue(-.2),i.SetProp(u)}};return c(),n.Observer(r.CreateObserver(l.EffectEvent.CHANGE_AURAS,c)),()=>0}}),M0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2038}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4438}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5237}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2606}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5065}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7095}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],g0=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.76}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.8}]}],si=G.Factory({Name:"Venti",Stars:5,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,Weapon:t.weapon.BOW,Region:t.region.MONDSTADT,BurstCost:60,HpBase:[819.8552,3366.7688],AtkBase:[20.482,84.10402],DefBase:[52.0521,213.759],Normals:M0,Skills:g0,Bursts:S0,Extra:[],Effects:[h0,f0,L0,p0,N0,d0,C0]}),G0=[{Name:T.hits.HIT_Q+"_MELEE",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.64}]},{Name:T.hits.HIT_Q+"_RANGED",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.784}]},{Name:"HIT_RiptideBlast",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2}]}],R0=l.Factory({Name:"TartagliaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),I0=l.Factory({Name:"TartagliaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),O0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4128}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4627}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5538}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5702}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6089}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7276}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_RiptideFlash",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.124}]},{Name:"HIT_RiptideBurst",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.62}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],D0=l.Factory({Name:"TartagliaA0",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_LEVEL_UP).Values(1).Build()}),v0=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.72}]},{Name:T.hits.HIT_N1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3887}]},{Name:T.hits.HIT_N2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4162}]},{Name:T.hits.HIT_N3+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5633}]},{Name:T.hits.HIT_N4+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5994}]},{Name:T.hits.HIT_N5+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.553}]},{Name:T.hits.HIT_N6_1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3543}]},{Name:T.hits.HIT_N6_2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3767}]},{Name:T.hits.HIT_CHARGED_1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.602}]},{Name:T.hits.HIT_CHARGED_2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7198}]},{Name:"HIT_RiptideSlash",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.602}]}],ri=G.Factory({Name:"Tartaglia",Stars:5,Weapon:t.weapon.BOW,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.HYDRO_DMG,Region:t.region.SNEZHNAYA,BurstCost:60,HpBase:[1020.0524,4188.8867],AtkBase:[23.4612,96.33733],DefBase:[63.4198,260.442],Normals:O0,Skills:v0,Bursts:G0,Extra:[],Effects:[D0,R0,I0]}),y0=[{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.48}]}],P0=l.Factory({Name:"SucroseQ",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){H0(e,a,n);function s(){const r=e.FindBurst(T.hits.HIT_Q+"_ADDITIONAL");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),H0=new l.Builder().instance.Location("Burst").Options({Name:T.hits.HIT_Q+"_ADDITIONAL",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.44,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),w0=l.Factory({Name:"SucroseC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),B0=l.Factory({Name:"SucroseC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),b0=l.Factory({Name:"SucroseC6",ApplyOther:!0,OnApply(e,a,n){const s=a.Owner.FindEffect("SucroseQ"),r=e.GetCharacter();if(!s)throw new Error("Cannot find Sucrose Q");const i=n.Modifier(r.CreateModifier(t.stat.PYRO_DMG,0)),c=()=>{const _=s.GetAuras();(!_.length||_[0]===t.aura.NONE)&&i.SetValue(0);const u=t.AuraToDmg(_[0]);i.SetProp(u),i.SetValue(.2)};return c(),n.Observer(s.CreateObserver(l.EffectEvent.CHANGE_AURAS,c)),()=>0}}),K0=[{Name:T.hits.HIT_N1,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3346}]},{Name:T.hits.HIT_N2,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3062}]},{Name:T.hits.HIT_N3,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3845}]},{Name:T.hits.HIT_N4,Element:t.stat.ANEMO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4792}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.ANEMO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.2016}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],Y0=l.Factory({Name:"SucroseA1",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(50).Build()}),F0=l.Factory({Name:"SucroseA4",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_MASTERY).Where({owner:{ascension:1}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(.2).Map((e,a,n)=>e*n.Owner.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()}),k0=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.112}]}],ii=G.Factory({Name:"Sucrose",Stars:4,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.ANEMO_DMG,Weapon:t.weapon.CATALYST,Region:t.region.MONDSTADT,BurstCost:80,HpBase:[775.02234,2773.016],AtkBase:[14.2464,50.97456],DefBase:[58.94175,210.8925],Normals:K0,Skills:k0,Bursts:y0,Extra:[],Effects:[P0,Y0,F0,w0,B0,b0]}),V0=l.Factory({Name:"ShenheA1",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.CRYO_DMG).Values(.15).Build()}),x0=l.Factory({Name:"ShenheA4",ApplyOther:!0,Conditions:["PRESS","HOLD"],MaxConditions:1,OnApply:new l.Builder().Where({owner:{ascension:4},effect:{conditions:["PRESS"]}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.15).Next().Where({owner:{ascension:4},effect:{conditions:["HOLD"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(.15).Build()}),U0=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.008}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.3312}]}],W0=l.Factory({Name:"ShenheQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Enemy(t.stat.CRYO_RES,t.stat.PHYSICAL_RES).Values(-.06,-.07,-.08,-.09,-.1,-.11,-.12,-.13,-.14,-.15).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Build()}),j0=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4326}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4025}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5332}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2632}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6562}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1067}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],z0=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.392}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.888}]}],q0=l.Factory({Name:"ShenheE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP,t.stat.ATK_PERCENT,t.stat.ATK_BASE,t.stat.ATK_FLAT).stat.Char(t.stat.CRYO_DMG_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a,n)=>.4566*e*n.Owner.GetCharacter().Get(t.stat.ATK)).Build()}),$0=l.Factory({Name:"ShenheC2",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRYO_CRIT_DMG).Values(.15).Build()}),Q0=l.Factory({Name:"ShenheC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),X0=l.Factory({Name:"ShenheC4",MaxStacks:50,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.05).Stacks().Build()}),J0=l.Factory({Name:"ShenheC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),li=G.Factory({Name:"Shenhe",Stars:5,Element:t.stat.CRYO_DMG,Weapon:t.weapon.POLEARM,StatBonus:t.stat.ATK_PERCENT,Region:t.region.LIYUE,BurstCost:80,HpBase:[1011.47253,4153.653],AtkBase:[23.6474,97.10191],DefBase:[64.6164,265.356],Normals:j0,Skills:z0,Bursts:U0,Extra:[],Effects:[q0,W0,V0,x0,$0,Q0,X0,J0]}),Z0=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1042}]}],th=l.Factory({Name:"KokomiQ",OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.HP,.0484,/HIT_N\d/i).Map((e,a)=>e*o.TalentScaling.ELEMENTAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1]).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.HP,.0678,/charged/i).Map((e,a)=>e*o.TalentScaling.ELEMENTAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1]).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.HP,.071,/HIT_E$/i).Map((e,a)=>e*o.TalentScaling.ELEMENTAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1]).Build()}),eh=l.Factory({Name:"KokomiC1",OnApply:new l.Builder().instance.Options({Name:"HIT_C1",Element:t.stat.HYDRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.HP,Initial:.3,Talent:t.stat.NONE,Scaling:o.TalentScaling.NONE}]}).Build()}),ah=l.Factory({Name:"KokomiC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nh=l.Factory({Name:"KokomiC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),sh=l.Factory({Name:"KokomiC6",OnApply:new l.Builder().stat.Char(t.stat.HYDRO_DMG).Values(.4).Build()}),rh=[{Name:T.hits.HIT_N1,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6838}]},{Name:T.hits.HIT_N2,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.6154}]},{Name:T.hits.HIT_N3,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.9431}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4832}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],ih=l.Factory({Name:"KokomiA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.HEALING_BONUS).Values(.25).Next().Where({target:{ascension:1}}).stat.Char(t.stat.CRIT_RATE).Values(-1).Next().Build()}),lh=l.Factory({Name:"KokomiA4",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindEffect("KokomiQ");if(!r)throw new Error("Kokomi Q effect not found");const i=ne(e.GetNormals(),[/HIT_N\d/i]),c=ne(e.GetNormals(),[/charged/i]),_=n.Mv({Stat:t.stat.HP,Value:0,Enabled:!0},...i),u=n.Mv({Stat:t.stat.HP,Value:0,Enabled:!0},...c),A=()=>{(!r.Enabled()||s.GetAscension()<4)&&(_.Value=0,u.Value=0);const S=s.Get(t.stat.HEALING_BONUS);_.Value=u.Value=.15*S};return A(),n.Observer(s.CreateObserver(t.stat.HEALING_BONUS,A)),n.Observer(r.CreateObserver(l.EffectEvent.ENABLE,A)),n.Observer(r.CreateObserver(l.EffectEvent.DISABLE,A)),()=>0}}),oh=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.0919}]}],oi=G.Factory({Name:"Kokomi",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.HYDRO_DMG,Region:t.region.INAZUMA,BurstCost:70,HpBase:[1048.652,4306.332],AtkBase:[18.2476,74.92904],DefBase:[51.15465,210.0735],Normals:rh,Skills:oh,Bursts:Z0,Extra:[],Effects:[th,ih,lh,eh,ah,nh,sh]}),ch=[{Name:T.hits.HIT_Q_1,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.04}]},{Name:T.hits.HIT_Q_2,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.52}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.32}]}],Eh=l.Factory({Name:"RosariaC1",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.1).Build()}),Th=l.Factory({Name:"RosariaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),_h=l.Factory({Name:"RosariaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),uh=l.Factory({Name:"RosariaC6",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.PHYSICAL_RES).Values(-.2).Build()}),Ah=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5246}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.516}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3182}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6966}]},{Name:T.hits.HIT_N5_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4162}]},{Name:T.hits.HIT_N5_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.43}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.3674}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Sh=l.Factory({Name:"RosariaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.CRIT_RATE).Values(.12).Build()}),hh=l.Factory({Name:"RosariaA4",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.CRIT_RATE).Where({owner:{ascension:4}}).stat.Char(t.stat.CRIT_RATE).Values(.15).Map((e,a,n)=>Math.max(0,Math.min(1,e*n.Owner.GetCharacter().Get(t.stat.CRIT_RATE)))).Build()}),mh=[{Name:T.hits.HIT_E_1,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.584}]},{Name:T.hits.HIT_E_2,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.36}]}],ci=G.Factory({Name:"Rosaria",Stars:4,Weapon:t.weapon.POLEARM,Element:t.stat.CRYO_DMG,Region:t.region.MONDSTADT,StatBonus:t.stat.ATK_PERCENT,BurstCost:60,HpBase:[1030.3239,3686.4802],AtkBase:[20.12304,72.001564],DefBase:[59.514,212.94],Normals:Ah,Skills:mh,Bursts:ch,Extra:[],Effects:[Sh,hh,Eh,Th,_h,uh]}),fh=[{Name:T.hits.HIT_Q_1,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672}]},{Name:T.hits.HIT_Q_2,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.928}]}],Lh=l.Factory({Name:"NoelleQ",OnApply:new l.Builder().infusion.Set(t.stat.GEO_DMG,!0).Next().observe.Target(t.stat.DEF_FLAT,t.stat.DEF_PERCENT,t.stat.DEF_FLAT,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(.4,.43,.46,.5,.53,.56,.6,.64,.68,.72,.76,.8,.85,.9,.95).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a)=>e*a.GetCharacter().Get(t.stat.DEF)).Build()}),ph=l.Factory({Name:"NoelleC2",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.15).Build()}),Nh=l.Factory({Name:"NoelleC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),dh=l.Factory({Name:"NoelleC4",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C4",Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Stat:t.stat.ATK,Initial:4}]}).Build()}),Ch=l.Factory({Name:"NoelleC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Mh=l.Factory({Name:"NoelleC6",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindEffect("NoelleQ");if(!r)throw new Error("Noelle Q effect not found");const i=n.Modifier(s.CreateModifier(t.stat.ATK_FLAT,0)),c=()=>{r.Enabled()?i.SetValue(.5*s.Get(t.stat.DEF)):i.SetValue(0)};return c(),n.Observer(s.CreateObserver(t.stat.DEF_FLAT,c)),n.Observer(s.CreateObserver(t.stat.DEF_PERCENT,c)),n.Observer(s.CreateObserver(t.stat.DEF_BASE,c)),n.Observer(r.CreateObserver(l.EffectEvent.ENABLE,c)),n.Observer(r.CreateObserver(l.EffectEvent.DISABLE,c)),()=>0}}),gh=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7912}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7336}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8626}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1343}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5074}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9047}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],Gh=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:1.2}]}],Ei=G.Factory({Name:"Noelle",Stars:4,Element:t.stat.GEO_DMG,StatBonus:t.stat.DEF_PERCENT,BurstCost:60,Region:t.region.MONDSTADT,Weapon:t.weapon.CLAYMORE,HpBase:[1012.088,3621.2327],AtkBase:[16.0272,57.34638],DefBase:[66.95325,239.5575],Normals:gh,Skills:Gh,Bursts:fh,Extra:[],Effects:[Lh,ph,Nh,dh,Ch,Mh]}),Rh=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.8696}]}],Ih=l.Factory({Name:"NingguangC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Oh=l.Factory({Name:"NingguangC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Dh=[{Name:T.hits.HIT_N1,Element:t.stat.GEO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.28}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.GEO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.7408}]},{Name:"HIT_Jade",Element:t.stat.GEO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.496}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.GEO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.GEO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.GEO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],vh=l.Factory({Name:"NingguangA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.GEO_DMG).Values(.12).Build()}),yh=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.304}]}],Ti=G.Factory({Name:"Ningguang",Stars:4,Element:t.stat.GEO_DMG,StatBonus:t.stat.GEO_DMG,Weapon:t.weapon.CATALYST,Region:t.region.LIYUE,BurstCost:40,HpBase:[820.6119,2936.1348],AtkBase:[17.808,63.7182],DefBase:[48.069,171.99],Normals:Dh,Skills:yh,Bursts:Rh,Extra:[],Effects:[vh,Ih,Oh]}),Ph=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.424}]}],Hh=l.Factory({Name:"MonaQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ALL_DMG).Values(.4,.42,.44,.46,.48,.5,.52,.54,.56,.58,.6).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Build()}),wh=l.Factory({Name:"MonaC1",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELECTROCHARGE_DMG,t.stat.VAPORIZE_DMG).Values(.15).Next().stat.Char(t.stat.ALL_DMG).Instance("HIT_SWIRL_HYDRO").Values(.15).Build()}),Bh=l.Factory({Name:"MonaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),bh=l.Factory({Name:"MonaC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.15).Build()}),Kh=l.Factory({Name:"MonaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Yh=l.Factory({Name:"MonaC6",MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.6).Stacks().Build()}),Fh=[{Name:T.hits.HIT_N1,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.376}]},{Name:T.hits.HIT_N2,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.36}]},{Name:T.hits.HIT_N3,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.448}]},{Name:T.hits.HIT_N4,Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5616}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.4972}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.HYDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],kh=l.Factory({Name:"MonaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.ELEMENTAL_SKILL_LEVEL,Stat:t.stat.ATK,Initial:1.328*.5}]}).Build()}),Vh=l.Factory({Name:"MonaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ENERGY_RECHARGE).stat.Char(t.stat.HYDRO_DMG).Values(.2).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ENERGY_RECHARGE)).Build()}),xh=[{Name:T.hits.HIT_E_DOT,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.32}]},{Name:T.hits.HIT_E_EXPLOSION,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.328}]}],_i=G.Factory({Name:"Mona",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,Region:t.region.MONDSTADT,BurstCost:60,HpBase:[810.322,3327.62],AtkBase:[22.344,91.74984],DefBase:[50.8555,208.845],Normals:Fh,Skills:xh,Bursts:Ph,Extra:[],Effects:[Hh,kh,Vh,wh,Bh,bh,Kh,Yh]}),Uh=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4264}]}],Wh=l.Factory({Name:"KleeC1",OnApply:new l.Builder().instance.Location("Burst").Options({Name:"HIT_C1",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.ELEMENTAL_BURST_LEVEL,Stat:t.stat.ATK,Initial:.4264*1.2}]}).Build()}),jh=l.Factory({Name:"KleeC2",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.DEFREDUCTION).Values(.23).Build()}),zh=l.Factory({Name:"KleeC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),qh=l.Factory({Name:"KleeC4",OnApply:new l.Builder().instance.Location("Burst").Options({Name:"HIT_C4",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Stat:t.stat.ATK,Initial:5.55}]}).Build()}),$h=l.Factory({Name:"KleeC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Qh=l.Factory({Name:"KleeC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Build()}),Xh=[{Name:T.hits.HIT_N1,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.7216}]},{Name:T.hits.HIT_N2,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.624}]},{Name:T.hits.HIT_N3,Element:t.stat.PYRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:.8992}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.5736}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PYRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],Jh=l.Factory({Name:"KleeA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.5).Build()}),Zh=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.952}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.328}]}],ui=G.Factory({Name:"Klee",Stars:5,Weapon:t.weapon.CATALYST,Element:t.stat.PYRO_DMG,StatBonus:t.stat.PYRO_DMG,Region:t.region.MONDSTADT,BurstCost:60,HpBase:[800.7888,3288.4717],AtkBase:[24.206,99.39566],DefBase:[47.864,196.56],Normals:Xh,Skills:Zh,Bursts:Uh,Extra:[],Effects:[Jh,Wh,jh,zh,qh,$h,Qh]}),tm=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.88}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.24}]},{Name:T.hits.HIT_Q_EXPLOSION,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.888}]}],em=l.Factory({Name:"KeqingC1",OnApply:new l.Builder().instance.Options({Name:"HIT_C1",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.5,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Build()}),am=l.Factory({Name:"KeqingC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nm=l.Factory({Name:"KeqingC4",OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.25).Build()}),sm=l.Factory({Name:"KeqingC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),rm=l.Factory({Name:"KeqingC6",OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_DMG).Values(.06).Build()}),im=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4102}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4102}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5444}]},{Name:T.hits.HIT_N4_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3148}]},{Name:T.hits.HIT_N4_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.344}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6699}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.768}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.86}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],lm=l.Factory({Name:"KeqingA1",OnApply:new l.Builder().Where({target:{ascension:1}}).infusion.Set(t.stat.ELECTRO_DMG,!1).Build()}),om=l.Factory({Name:"KeqingA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.CRIT_RATE,t.stat.ENERGY_RECHARGE).Values(.15).Build()}),cm=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.504}]},{Name:T.hits.HIT_E+"_SLASH",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.68}]},{Name:T.hits.HIT_E+"_SLASH_2",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.84}]}],Ai=G.Factory({Name:"Keqing",Stars:5,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.CRIT_DMG,Weapon:t.weapon.SWORD,Region:t.region.LIYUE,BurstCost:40,HpBase:[1020.0524,4188.8867],AtkBase:[25.137,103.21857],DefBase:[62.2232,255.528],Normals:im,Skills:cm,Bursts:tm,Extra:[],Effects:[lm,om,em,am,nm,sm,rm]}),Em=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6646}]}],Tm=l.Factory({Name:"AyatoQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.11,.12,.13,.14,.15,.16,.17,.18,.19,.2).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Build()}),_m=l.Factory({Name:"AyatoC1",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Instance(/HIT_N\d_E/i).Values(.4).Build()}),um=l.Factory({Name:"AyatoC2",OnApply(e,a,n){const s=e.FindEffect("AyatoE");if(!s)throw new Error("Cannot find Ayato Skill");const r=n.Modifier(e.GetCharacter().CreateModifier(t.stat.HP_PERCENT,0)),i=function(){s.GetStacks()>=3?r.SetValue(.5):r.SetValue(0)};return i(),n.Observer(s.CreateObserver(l.EffectEvent.CHANGE_STACKS,i)),()=>0}}),Am=l.Factory({Name:"AyatoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Sm=l.Factory({Name:"AyatoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),hm=l.Factory({Name:"AyatoC6",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Stat:t.stat.ATK,Initial:4.5}]}).Build()}),mm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4496}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4716}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5861}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2945}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.756}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2953}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],fm=[{Name:T.hits.HIT_N1+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5289}]},{Name:T.hits.HIT_N2+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5891}]},{Name:T.hits.HIT_N3+"_E",Element:t.stat.HYDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6493}]},{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0148}]}],Lm=l.Factory({Name:"AyatoE",MaxStacks:5,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Mv(t.stat.HP,.56/100,/HIT_N\d_E/i).Map((e,a,n)=>e*n.GetStacks()*o.TalentScaling.PHYSICAL_1[a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1]).Build()}),Si=G.Factory({Name:"Ayato",Stars:5,Weapon:t.weapon.SWORD,Element:t.stat.HYDRO_DMG,StatBonus:t.stat.CRIT_DMG,Region:t.region.INAZUMA,BurstCost:80,HpBase:[1067.7184,4384.629],AtkBase:[23.275,95.57275],DefBase:[59.83,245.7],Normals:mm,Skills:fm,Bursts:Em,Extra:[],Effects:[Lm,Tm,_m,um,Am,Sm,hm]}),pm=[{Name:T.hits.HIT_Q_DOT,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.123}]},{Name:T.hits.HIT_Q_EXPLOSION,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.6845}]}],Nm=l.Factory({Name:"AyakaC2",OnApply:new l.Builder().instance.Location("Burst").Options({Name:"HIT_C2",Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.ELEMENTAL_BURST_LEVEL,Stat:t.stat.ATK,Initial:1.123}]}).Build()}),dm=l.Factory({Name:"AyakaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Cm=l.Factory({Name:"AyakaC4",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.DEFREDUCTION).Values(.3).Build()}),Mm=l.Factory({Name:"AyakaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),gm=l.Factory({Name:"AyakaC6",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(2.98).Build()}),Gm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4573}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4868}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6262}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2265}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7818}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5513}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Rm=l.Factory({Name:"AyakaSprint",OnApply:new l.Builder().infusion.Set(t.stat.CRYO_DMG,!1).Build()}),Im=l.Factory({Name:"AyakaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.3).Build()}),Om=l.Factory({Name:"AyakaA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.CRYO_DMG).Values(.18).Build()}),Dm=[{Name:T.hits.HIT_E,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.392}]}],hi=G.Factory({Name:"Ayaka",Stars:5,Element:t.stat.CRYO_DMG,StatBonus:t.stat.CRIT_DMG,Weapon:t.weapon.SWORD,Region:t.region.INAZUMA,BurstCost:80,HpBase:[1000.986,4110.59],AtkBase:[26.6266,109.33523],DefBase:[61.0266,250.614],Normals:Gm,Skills:Dm,Bursts:pm,Extra:[],Effects:[Rm,Im,Om,Nm,dm,Cm,Mm,gm]}),vm=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.248}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.784}]}],ym=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4833}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4558}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6029}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6588}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7921}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.6202}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Pm=l.Factory({Name:"JeanC1",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.4).Build()}),Hm=l.Factory({Name:"JeanC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),wm=l.Factory({Name:"JeanC4",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.ANEMO_RES).Values(-.4).Build()}),Bm=l.Factory({Name:"JeanC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),bm=[{Name:T.hits.HIT_E,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.92}]}],mi=G.Factory({Name:"Jean",Stars:5,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.HEALING_BONUS,Weapon:t.weapon.SWORD,Region:t.region.MONDSTADT,BurstCost:80,HpBase:[1143.984,4697.817],AtkBase:[18.62,76.4582],DefBase:[59.83,245.7],Normals:ym,Skills:bm,Bursts:vm,Extra:[],Effects:[Pm,Hm,wm,Bm]}),Km=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:.9822}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:.613}]}];function Ze(e){const a=e.GetParty();if(!a)return e.GetCharacter().Options.Element===t.stat.GEO_DMG?1:0;let n=0;for(const s of a.GetMembers())s.GetCharacter().Options.Element===t.stat.GEO_DMG&&n++;return n}var Ym=l.Factory({Name:"GorouC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Fm=l.Factory({Name:"GorouC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),km=l.Factory({Name:"GorouC6",ApplyOther:!0,OnApply:new l.Builder().observe.Party(!0).stat.Char(t.stat.GEO_CRIT_DMG).Values(.1,.2,.4).Rank(e=>Ze(e)).Build()}),Vm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3775}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3715}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4945}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.59}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.GEO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],xm=l.Factory({Name:"GorouA1",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:1}}).stat.Char(t.stat.DEF_PERCENT).Values(.25).Build()}),Um=l.Factory({Name:"GorouA4",OnApply:new l.Builder().Where({target:{ascension:4}}).mv.Mv(t.stat.DEF,1.56,"HIT_E").Next().Where({target:{ascension:4}}).mv.Mv(t.stat.DEF,.156,"HIT_Q","HIT_Q_DOT").Next().Build()}),Wm=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.072}]}],jm=l.Factory({Name:"GorouE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).observe.Party(!0).stat.Char(t.stat.DEF_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a)=>206.16*e*(Ze(a)>=1?1:0)).Next().observe.Party(!0).stat.Char(t.stat.GEO_DMG).Values(.15).Map((e,a)=>e*(Ze(a)>=3?1:0)).Build()}),fi=G.Factory({Name:"Gorou",Stars:4,Weapon:t.weapon.BOW,Element:t.stat.GEO_DMG,StatBonus:t.stat.GEO_DMG,BurstCost:80,Region:t.region.INAZUMA,HpBase:[802.3761,2870.8872],AtkBase:[15.31488,54.797653],DefBase:[54.36375,194.5125],Normals:Vm,Skills:Wm,Bursts:Km,Extra:[],Effects:[jm,xm,Um,Ym,Fm,km]}),zm=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7027}]}],qm=l.Factory({Name:"GanyuC1",ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.CRYO_RES).Values(-.15).Build()}),$m=l.Factory({Name:"GanyuC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Qm=l.Factory({Name:"GanyuC4",ApplyOther:!0,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.05).Stacks().Build()}),Xm=l.Factory({Name:"GanyuC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Jm=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3173}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.356}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4549}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4549}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4825}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5762}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.CRYO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_Frostflake",Element:t.stat.CRYO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.28}]},{Name:"HIT_FrostflakeBloom",Element:t.stat.CRYO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.176}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],Zm=l.Factory({Name:"GanyuA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.CRIT_RATE).Instance(/Frostflake/i).Values(.2).Build()}),tf=l.Factory({Name:"GanyuA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.CRYO_DMG).Values(.2).Build()}),ef=[{Name:T.hits.HIT_E,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.32}]}],Li=G.Factory({Name:"Ganyu",Stars:5,Weapon:t.weapon.BOW,Region:t.region.LIYUE,Element:t.stat.CRYO_DMG,StatBonus:t.stat.CRIT_DMG,BurstCost:60,HpBase:[762.656,3131.878],AtkBase:[26.068,107.04148],DefBase:[49.0606,201.474],Normals:Jm,Skills:ef,Bursts:zm,Extra:[],Effects:[Zm,tf,qm,$m,Qm,Xm]}),af=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.456}]},{Name:"HIT_LightfallSword",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:3.6705}]}],nf=l.Factory({Name:"EulaQ",MaxStacks:30,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.ATK,.7499,"HIT_LightfallSword").Map((e,a,n)=>{const s=Math.max(1,Math.min(15,a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)));return n.GetStacks()*e*o.TalentScaling.PHYSICAL_1A[s-1]}).Build()}),sf=l.Factory({Name:"EulaC1",OnApply:new l.Builder().stat.Char(t.stat.PHYSICAL_DMG).Values(.3).Build()}),rf=l.Factory({Name:"EulaC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),lf=l.Factory({Name:"EulaC4",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.25).Build()}),of=l.Factory({Name:"EulaC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),cf=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8973}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.9355}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.568}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.1264}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7183}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.688}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.244}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.8629}]}],Ef=l.Factory({Name:"EulaA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Burst").Options({Name:"HIT_A1",Talent:t.stat.ELEMENTAL_BURST_DMG,Element:t.stat.PHYSICAL_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Talent:t.stat.ELEMENTAL_BURST_LEVEL,Stat:t.stat.ATK,Initial:3.6705*.5}]}).Build()}),Tf=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.464}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.456}]},{Name:"HIT_Icewhirl",Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.96}]}],_f=l.Factory({Name:"EulaE_1",MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT).Values(.3).Stacks().Build()}),uf=l.Factory({Name:"EulaE_2",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Enemy(t.stat.CRYO_RES,t.stat.PHYSICAL_RES).Values(-.16,-.17,-.18,-.19,-.2,-.21,-.22,-.23,-.24,-.25).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Build()}),pi=G.Factory({Name:"Eula",Stars:5,Weapon:t.weapon.CLAYMORE,Element:t.stat.CRYO_DMG,StatBonus:t.stat.CRIT_DMG,BurstCost:80,Region:t.region.MONDSTADT,HpBase:[1029.5856,4228.035],AtkBase:[26.6266,109.33523],DefBase:[58.45391,240.0489],Normals:cf,Skills:Tf,Bursts:af,Extra:[],Effects:[_f,uf,nf,Ef,sf,rf,lf,of]}),Af=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.04}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6}]},{Name:T.hits.HIT_Q_EXPLOSION,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.04}]}],Sf=l.Factory({Name:"DilucQ",OnApply:new l.Builder().infusion.Set(t.stat.PYRO_DMG,!1).Build()}),hf=l.Factory({Name:"DilucC1",OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.15).Build()}),mf=l.Factory({Name:"DilucC2",MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.1).Stacks().Build()}),ff=l.Factory({Name:"DilucC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Lf=l.Factory({Name:"DilucC4",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.4).Build()}),pf=l.Factory({Name:"DilucC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Nf=l.Factory({Name:"DilucC6",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.3).Build()}),df=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.897}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8763}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.9881}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.3399}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.688}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.247}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8951}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.7897}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.2355}]}],Cf=l.Factory({Name:"DilucA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.PYRO_DMG).Values(.2).Build()}),Mf=[{Name:T.hits.HIT_E_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.944}]},{Name:T.hits.HIT_E_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.976}]},{Name:T.hits.HIT_E_3,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.288}]}],Ni=G.Factory({Name:"Diluc",Stars:5,Weapon:t.weapon.CLAYMORE,Element:t.stat.PYRO_DMG,StatBonus:t.stat.CRIT_RATE,BurstCost:40,Region:t.region.MONDSTADT,HpBase:[1010.5192,4149.7383],AtkBase:[26.068,107.04148],DefBase:[61.0266,250.614],Normals:df,Skills:Mf,Bursts:Af,Extra:[],Effects:[Sf,Cf,hf,mf,ff,Lf,pf,Nf]}),gf=[{Name:T.hits.HIT_N1+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7828}]},{Name:T.hits.HIT_N2+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8247}]},{Name:T.hits.HIT_N3+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0463}]},{Name:T.hits.HIT_N4+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5169}]},{Name:T.hits.HIT_N5+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.3084}]},{Name:T.hits.HIT_CHARGED+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0105}]},{Name:T.hits.HIT_PLUNGE+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Gf=l.Factory({Name:"CynoQ",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(100).Build()}),Rf=l.Factory({Name:"CynoC2",MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_DMG).Values(.1).Stacks().Build()}),If=l.Factory({Name:"CynoC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Of=l.Factory({Name:"CynoC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Df=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4926}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4792}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2931}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7589}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2238}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],vf=l.Factory({Name:"CynoA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:t.stat.ATK,Initial:.35,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE}]}).Next().Where({target:{ascension:1}}).stat.Char(t.stat.ALL_DMG).Instance("HIT_E","HIT_E_2").Values(.35).Build()}),yf=new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.DMG_FLAT).Instance(/N\d_Q$/i).Values(1.5).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build(),Pf=l.Factory({Name:"CynoA4",OnApply(e,a,n){yf(e,a,n);const s=e.GetCharacter(),r=e.FindEffect("CynoA1");let i;if(!r)throw new Error("Cannot find Cyno A1");function c(){if(!i){const _=e.FindInstance("HIT_A1");if(!_)return;i=n.Modifier(_.Subject.CreateModifier(t.stat.DMG_FLAT,0))}!i||(s.GetAscension()>=4?i.SetValue(2.5*s.Get(t.stat.ELEMENTAL_MASTERY)):i.SetValue(0))}c();for(const _ of l.EffectEvent.Values())n.Observer(r.CreateObserver(_,c));return n.Observer(s.CreateObserver(t.stat.ELEMENTAL_MASTERY,c)),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),Hf=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.304}]},{Name:T.hits.HIT_E_2,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.568}]}],di=G.Factory({Name:"Cyno",Stars:5,Weapon:t.weapon.POLEARM,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.CRIT_DMG,BurstCost:80,Region:t.region.SUMERU,HpBase:[972.3864,3993.1443],AtkBase:[24.7646,101.68941],DefBase:[66.88994,274.6926],Normals:Df,Skills:Hf,Bursts:gf,Extra:[],Effects:[Gf,vf,Pf,Rf,If,Of]}),wf=[{Name:T.hits.HIT_Q,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.0182}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4325}]}],Bf=l.Factory({Name:"ColleiC1",OnApply:new l.Builder().stat.Char(t.stat.ENERGY_RECHARGE).Values(.2).Build()}),bf=l.Factory({Name:"ColleiC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Kf=l.Factory({Name:"ColleiC4",ApplyOther:!0,ApplySelf:!1,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60).Build()}),Yf=l.Factory({Name:"ColleiC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Ff=l.Factory({Name:"ColleiC6",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Initial:2}]}).Build()}),kf=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.436}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4266}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5409}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6803}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.DENDRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],Vf=l.Factory({Name:"ColleiA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Location("Skill").Options({Name:"HIT_A1",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.NONE,Talent:t.stat.NONE,Initial:.4}]}).Build()}),xf=[{Name:T.hits.HIT_E,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.512}]}],Ci=G.Factory({Name:"Collei",Stars:4,Weapon:t.weapon.BOW,Element:t.stat.DENDRO_DMG,StatBonus:t.stat.ATK_PERCENT,BurstCost:60,Region:t.region.SUMERU,HpBase:[820.6119,2936.1348],AtkBase:[16.73952,59.895107],DefBase:[50.358,180.18],Normals:kf,Skills:xf,Bursts:wf,Extra:[],Effects:[Vf,Bf,bf,Kf,Yf,Ff]}),Uf=[{Name:T.hits.HIT_Q,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.424}]}],Wf=l.Factory({Name:"ChongyunC1",OnApply:new l.Builder().instance.Basic({Name:"HIT_C1",Element:t.stat.CRYO_DMG,Stat:t.stat.ATK,Values:[.5]}).Build()}),jf=l.Factory({Name:"ChongyunC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),zf=l.Factory({Name:"ChongyunC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),qf=l.Factory({Name:"ChongyunC6",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.15).Build()}),$f=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6312}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8032}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0122}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5629}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.0178}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],Qf=l.Factory({Name:"ChongyunA4",ApplyOther:!0,OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Enemy(t.stat.CRYO_RES).Values(-.1).Build()}),Xf=[{Name:T.hits.HIT_E,Element:t.stat.CRYO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.7204}]}],Jf=l.Factory({Name:"ChongyunE",ApplyOther:!0,OnApply:new l.Builder().infusion.Set(t.stat.CRYO_DMG,!1).Build()}),Mi=G.Factory({Name:"Chongyun",Stars:4,Element:t.stat.CRYO_DMG,Weapon:t.weapon.CLAYMORE,StatBonus:t.stat.ATK_PERCENT,BurstCost:40,Region:t.region.LIYUE,HpBase:[920.90894,3294.9956],AtkBase:[18.6984,66.90411],DefBase:[54.36375,194.5125],Normals:$f,Skills:Xf,Bursts:Uf,Extra:[],Effects:[Jf,Qf,Wf,jf,zf,qf]}),Zf=l.Factory({Name:"IttoQ",OnApply:new l.Builder().observe.Target(t.stat.DEF_FLAT,t.stat.DEF_BASE,t.stat.DEF_PERCENT,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a)=>.576*e*a.GetCharacter().Get(t.stat.DEF)).Next().infusion.Set(t.stat.GEO_DMG,!0).Build()}),tL=l.Factory({Name:"IttoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),eL=l.Factory({Name:"IttoC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT,t.stat.ATK_PERCENT).Values(.2).Build()}),aL=l.Factory({Name:"IttoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),nL=l.Factory({Name:"IttoC6",OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_CRIT_DMG).Values(.7).Build()}),sL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7923}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7637}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9164}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1722}]},{Name:"HIT_KesagiriSlash",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9116}]},{Name:"HIT_KesagiriFinal",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.9092}]},{Name:"HIT_SaichimonjiSlash",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9047}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439}]}],rL=l.Factory({Name:"IttoA4",OnApply:new l.Builder().Where({target:{ascension:4}}).mv.Mv(t.stat.DEF,.35,/Kesagiri/i).Build()}),iL=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.072}]}],gi=G.Factory({Name:"Itto",Stars:5,Weapon:t.weapon.CLAYMORE,Element:t.stat.GEO_DMG,StatBonus:t.stat.CRIT_RATE,Region:t.region.INAZUMA,BurstCost:70,HpBase:[1000.986,4110.59],AtkBase:[17.689,72.63529],DefBase:[74.66784,306.6336],Normals:sL,Skills:iL,Bursts:[],Extra:[],Effects:[Zf,rL,tL,eL,aL,nL]}),lL=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.2808}]}],oL=l.Factory({Name:"AmberC1",OnApply:new l.Builder().instance.Location("Normal").Options({Name:"HIT_C1",Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Talent:t.stat.NORMAL_ATTACK_LEVEL,Stat:t.stat.ATK,Initial:1.24*.2}]}).Build()}),cL=l.Factory({Name:"AmberC2",OnApply:new l.Builder().mv.Mv(t.stat.ATK,2,/hit_e/i).Build()}),EL=l.Factory({Name:"AmberC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),TL=l.Factory({Name:"AmberC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),_L=l.Factory({Name:"AmberC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.15).Build()}),uL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3612}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3612}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4644}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.473}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5934}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.PYRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],AL=l.Factory({Name:"AmberA1",OnApply:new l.Builder().Where({target:{ascension:1}}).stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.1).Build()}),SL=l.Factory({Name:"AmberA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.ATK_PERCENT).Values(.15).Build()}),hL=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.232}]}],Gi=G.Factory({Name:"Amber",Stars:4,Weapon:t.weapon.BOW,Element:t.stat.PYRO_DMG,StatBonus:t.stat.ATK_PERCENT,BurstCost:40,Region:t.region.MONDSTADT,HpBase:[793.2582,2838.2634],AtkBase:[18.6984,66.90411],DefBase:[50.358,180.18],Normals:uL,Skills:hL,Bursts:lL,Extra:[],Effects:[AL,SL,oL,cL,EL,TL,_L]}),mL=l.Factory({Name:"AlhaithamA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.1/100).Map((e,a)=>Math.min(1,e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY))).Build()}),fL=[{Name:T.hits.HIT_Q,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.216},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:.9728}]}],LL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4953}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5075}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3418}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6677}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8385}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5526}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],pL=[{Name:T.hits.HIT_E,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.936},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.5488}]},{Name:T.hits.HIT_E_DOT+"_1",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.344}]},{Name:T.hits.HIT_E_DOT+"_2",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672*2},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.344*2}]},{Name:T.hits.HIT_E_DOT+"_3",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.672*3},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:1.344*3}]}],NL=l.Factory({Name:"AlhaithamE",OnApply:new l.Builder().infusion.Set(t.stat.DENDRO_DMG,!0).Build()}),dL=l.Factory({Name:"AlhaithamC2",MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(50).Stacks().Build()}),CL=l.Factory({Name:"AlhaithamC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),ML=l.Factory({Name:"AlhaithamC4",MaxStacks:3,ApplyOther:!0,OnApply:new l.Builder().Where({target:{isOwner:!0}}).stat.Char(t.stat.DENDRO_DMG).Values(.1).Stacks().Next().Where({target:{isOwner:!1}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(30).Stacks().Build()}),gL=l.Factory({Name:"AlhaithamC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),GL=l.Factory({Name:"AlhaithamC6",OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.1).Next().stat.Char(t.stat.CRIT_DMG).Values(.7).Build()}),Ri=G.Factory({Name:"Alhaitham",Stars:5,Weapon:t.weapon.SWORD,Element:t.stat.DENDRO_DMG,StatBonus:t.stat.DENDRO_DMG,Region:t.region.SUMERU,BurstCost:70,AtkBase:[24.3922,100.16024],DefBase:[60.84711,249.8769],HpBase:[1039.1188,4267.1836],Normals:LL,Skills:pL,Bursts:fL,Extra:[],Effects:[NL,mL,dL,CL,ML,gL,GL]}),RL=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:3.672}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.72}]}],IL=l.Factory({Name:"AlbedoC2",MaxStacks:4,OnApply:new l.Builder().mv.Mv(t.stat.DEF,.3,/HIT_Q/i).Map((e,a,n)=>e*n.GetStacks()).Build()}),OL=l.Factory({Name:"AlbedoC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),DL=l.Factory({Name:"AlbedoC4",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PLUNGE_ATTACK_DMG).Values(.3).Build()}),vL=l.Factory({Name:"AlbedoC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),yL=l.Factory({Name:"AlbedoC6",ApplyOther:!0,OnApply:new l.Builder().Where({target:{shielded:!0}}).stat.Char(t.stat.ALL_DMG).Values(.17).Build()}),PL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3674}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3674}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4745}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4975}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6207}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.473}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.602}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],HL=l.Factory({Name:"AlbedoA1",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindSkill(T.hits.HIT_E_DOT);if(!r)throw new Error("Cannot find Albedo Skill");const i=n.Modifier(r.Subject.CreateModifier(t.stat.ALL_DMG,0));function c(){s.GetAscension()>=1?i.SetValue(.25):i.SetValue(0)}return c(),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),wL=l.Factory({Name:"AlbedoA4",ApplyOther:!0,OnApply:new l.Builder().Where({owner:{ascension:4}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(125).Build()}),BL=[{Name:T.hits.HIT_E,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.304}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.DEF,Initial:1.336}]}],Ii=G.Factory({Name:"Albedo",Element:t.stat.GEO_DMG,Stars:5,Weapon:t.weapon.SWORD,StatBonus:t.stat.GEO_DMG,Region:t.region.MONDSTADT,AtkBase:[19.551,80.28111],DefBase:[68.2062,280.098],HpBase:[1029.5856,4228.035],BurstCost:40,Normals:PL,Skills:BL,Bursts:RL,Extra:[],Effects:[HL,wL,IL,OL,DL,vL,yL]}),bL=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.216}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.96}]}],KL=l.Factory({Name:"BeidouC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),YL=l.Factory({Name:"BeidouC4",ApplySelf:!0,OnApply:new l.Builder().instance.Options({Name:"HIT_C4",Element:t.stat.ELECTRO_DMG,Talent:t.stat.NONE,Scaling:[{Stat:t.stat.ATK,Initial:.2,Talent:t.stat.NONE,Scaling:o.TalentScaling.NONE}]}).Build()}),FL=l.Factory({Name:"BeidouC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),kL=l.Factory({Name:"BeidouC6",ApplySelf:!0,ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.ELECTRO_RES).Values(-.15).Build()}),VL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7112}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7086}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8832}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.8652}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.1214}]},{Name:T.hits.HIT_CHARGED_SPIN,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5624}]},{Name:T.hits.HIT_CHARGED_FINAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.0182}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7459}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4914}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.8629}]}],xL=l.Factory({Name:"BeidouA4",OnApply:new l.Builder().Where({target:{ascension:4}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.15).Build()}),UL=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.216}]}],WL=l.Factory({Name:"BeidouE",MaxStacks:2,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).mv.Mv(t.stat.ATK,.96,T.hits.HIT_E).Map((e,a,n)=>{const s=n.GetStacks(),r=a.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)-1,i=o.TalentScaling.ELEMENTAL_1[r];return e*i*s}).Build()}),Oi=G.Factory({Name:"Beidou",Stars:4,Weapon:t.weapon.CLAYMORE,Element:t.stat.ELECTRO_DMG,Region:t.region.LIYUE,StatBonus:t.stat.ELECTRO_DMG,AtkBase:[18.87648,67.54129],DefBase:[54.36375,194.5125],HpBase:[1094.1492,3914.8462],BurstCost:80,Normals:VL,Skills:UL,Bursts:bL,Extra:[],Effects:[WL,xL,KL,YL,FL,kL]}),jL=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.5427}]}],zL=l.Factory({Name:"XingqiuC2",ApplySelf:!0,ApplyOther:!0,OnApply:new l.Builder().stat.Enemy(t.stat.HYDRO_RES).Values(-.15).Build()}),qL=l.Factory({Name:"XingqiuC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),$L=l.Factory({Name:"XingqiuC4",ApplySelf:!0,OnApply:new l.Builder().mv.Multiplier(1.5,/^HIT_E_/i).Build()}),QL=l.Factory({Name:"XingqiuC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),XL=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4661}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4764}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2855}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5599}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3586}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.473}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.5616}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],JL=l.Factory({Name:"XingqiuA4",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.HYDRO_DMG).Where({owner:{ascension:4}}).Values(.2).Build()}),ZL=[{Name:T.hits.HIT_E_1,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.68}]},{Name:T.hits.HIT_E_2,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.912}]}],Di=G.Factory({Name:"Xingqiu",Stars:4,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.SWORD,Region:t.region.LIYUE,HpBase:[857.08356,3066.6296],AtkBase:[16.9176,60.53229],DefBase:[63.51975,227.2725],StatBonus:t.stat.ATK_PERCENT,Normals:XL,Skills:ZL,Bursts:jL,Extra:[],Effects:[JL,zL,qL,$L,QL],BurstCost:80}),tp=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_2,Stat:t.stat.ATK,Initial:3.0327}]}],ep=l.Factory({Name:"HuTaoQ",OnApply:new l.Builder().mv.Where({target:{hp:{leq:.5}}}).Multiplier(3.7909/3.0327,"HIT_Q").Build()}),ap=l.Factory({Name:"HuTaoC2",ApplySelf:!0,OnApply:new l.Builder().mv.Mv(t.stat.HP,.1,"HIT_E").Build()}),np=l.Factory({Name:"HuTaoC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),sp=l.Factory({Name:"HuTaoC4",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.12).Build()}),rp=l.Factory({Name:"HuTaoC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),ip=l.Factory({Name:"HuTaoC6",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(1).Build()}),lp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.4689}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.4825}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6105}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6564}]},{Name:T.hits.HIT_N5_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.3327}]},{Name:T.hits.HIT_N5_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.352}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.8596}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.3596}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:.6542}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.3081}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_2,Stat:t.stat.ATK,Initial:1.6339}]}],op=l.Factory({Name:"HuTaoA1",ApplySelf:!1,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Where({owner:{ascension:1}}).Values(.12).Build()}),cp=l.Factory({Name:"HuTaoA4",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Where({owner:{ascension:4,hp:{leq:.5}}}).Values(.33).Build()}),Ep=[{Name:T.hits.HIT_E,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.64}]}],Tp=l.Factory({Name:"HuTaoE",ApplySelf:!0,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP,t.stat.ATK_BASE,t.stat.HP_BASE,t.stat.HP_FLAT,t.stat.HP_PERCENT).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_2).Rank(e=>e.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a)=>{const n=a.GetCharacter(),s=.0384*e*n.Get(t.stat.HP),r=n.Get(t.stat.ATK_BASE)*4;return Math.max(0,Math.min(r,s))}).Next().infusion.Set(t.stat.PYRO_DMG,!0).Build()}),vi=G.Factory({Name:"HuTao",Element:t.stat.PYRO_DMG,Region:t.region.LIYUE,Stars:5,Weapon:t.weapon.POLEARM,HpBase:[1210.7164,4971.856],AtkBase:[8.2859,34.0239],DefBase:[68.2062,280.098],StatBonus:t.stat.CRIT_DMG,Normals:lp,Skills:Ep,Bursts:tp,Extra:[],Effects:[Tp,ep,op,cp,ap,np,sp,rp,ip],BurstCost:60}),_p=[{Name:T.hits.HIT_Q,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0731}]},{Name:T.hits.HIT_Q+"_THROW",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.0487}]}],up=l.Factory({Name:"YelanC2",OnApply:new l.Builder().instance.Options({Name:"HIT_C2",Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.14,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build()}),Ap=l.Factory({Name:"YelanC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Sp=l.Factory({Name:"YelanC4",MaxStacks:4,ApplySelf:!0,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.1).Stacks().Build()}),hp=l.Factory({Name:"YelanC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),mp=l.Factory({Name:"YelanC6",OnApply:new l.Builder().instance.Options({Name:"HIT_C6",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:1.56*.1158,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),fp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4068}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3904}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.516}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3251}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:"HIT_BREAKTHROUGH_BARB",Element:t.stat.HYDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.1158}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],Lp=l.Factory({Name:"YelanA1",ApplySelf:!0,OnApply:new l.Builder().observe.Party(!0).stat.Char(t.stat.HP_PERCENT).Where({owner:{ascension:1}}).Values(.06,.12,.18,.3).Rank(e=>{const a=e.GetParty();if(!a)return 1;const n=a.GetMembers(),s=new Map;for(const i of n)s.set(i.GetCharacter().Options.Element,!0);let r=0;for(const i of s.values())i&&r++;return r}).Build()}),pp=l.Factory({Name:"YelanA4",ApplySelf:!0,ApplyOther:!0,MaxTargets:1,MaxStacks:15,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Where({owner:{ascension:4}}).Values(.01).Next().stat.Char(t.stat.ALL_DMG).Where({owner:{ascension:4}}).Values(.035).Stacks().Map(e=>Math.min(.5,e)).Build()}),Np=[{Name:T.hits.HIT_E,Element:t.stat.HYDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.HP,Initial:.2261}]}],yi=G.Factory({Name:"Yelan",Stars:5,Element:t.stat.HYDRO_DMG,Weapon:t.weapon.BOW,Region:t.region.LIYUE,BurstCost:70,HpBase:[1124.9176,4619.52],AtkBase:[18.9924,77.987366],DefBase:[42.65879,175.1841],StatBonus:t.stat.CRIT_RATE,Normals:fp,Skills:Np,Bursts:_p,Extra:[],Effects:[Lp,pp,up,Ap,Sp,hp,mp]}),dp=[{Name:T.hits.HIT_Q,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:[1,1.108,1.216,1.351,1.473,1.595,1.757,1.919,2.081,2.243,2.405,2.568,2.703,2.838,2.973],Stat:t.stat.ATK,Initial:4.0108}]}],Cp=l.Factory({Name:"ZhongliC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Mp=l.Factory({Name:"ZhongliC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),gp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3077}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3115}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3858}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4294}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.1075}]},{Name:T.hits.HIT_N6,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.545}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:1.1103}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Gp=l.Factory({Name:"ZhongliA4",ApplySelf:!0,OnApply:new l.Builder().Where({target:{ascension:4}}).mv.Mv(t.stat.HP,.0139,/HIT_(N(\d)|CHARGED|PLUNGE)/).Next().Where({target:{ascension:4}}).mv.Mv(t.stat.HP,.019,/HIT_E/).Next().Where({target:{ascension:4}}).mv.Mv(t.stat.HP,.33,/HIT_Q/).Build()}),Rp=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.16}]},{Name:T.hits.HIT_E+"_RESONANCE",Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.32}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.GEO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.8}]}],Ip=l.Factory({Name:"ZhongliE",ApplySelf:!0,ApplyOther:!0,OnApply:(e,a,n)=>{const s=t.Elements;for(const r of s){const i=t.DmgToRes(r);n.Modifier(e.GetCharacter().GetEnemy().Subject.CreateModifier(i,-.2))}return()=>0}}),Pi=G.Factory({Name:"Zhongli",Stars:5,Element:t.stat.GEO_DMG,Weapon:t.weapon.POLEARM,Region:t.region.LIYUE,HpBase:[1143.984,4697.817],AtkBase:[19.551,80.2811],DefBase:[57.4368,235.872],StatBonus:t.stat.GEO_DMG,BurstCost:40,Normals:gp,Skills:Rp,Bursts:dp,Extra:[],Effects:[Ip,Gp,Cp,Mp]}),Op=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.008}]},{Name:T.hits.HIT_N1+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4447}]},{Name:T.hits.HIT_N2+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.4396}]},{Name:T.hits.HIT_N3+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.5382}]},{Name:T.hits.HIT_N4+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.3089}]},{Name:T.hits.HIT_N5+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7394}]},{Name:T.hits.HIT_CHARGED_1+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.616}]},{Name:T.hits.HIT_CHARGED_2+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.7436}]},{Name:T.hits.HIT_PLUNGE+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH+"_Q",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Dp=l.Factory({Name:"RaidenQ",MaxStacks:60,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.ATK,.0389,T.hits.HIT_Q).Map((e,a,n)=>n.GetStacks()*e*o.TalentScaling.ELEMENTAL_1[Math.max(0,Math.min(o.TalentScaling.ELEMENTAL_1.length-1,a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1))]).Next().observe.Target(t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).mv.Mv(t.stat.ATK,.0073,/_.+_Q$/).Map((e,a,n)=>n.GetStacks()*e*o.TalentScaling.ELEMENTAL_1[Math.max(0,Math.min(o.TalentScaling.ELEMENTAL_1.length-1,a.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1))]).Build()}),vp=l.Factory({Name:"RaidenC2",OnApply:new l.Builder().stat.Char(t.stat.DEFIGNORED).Values(.6).Build()}),yp=l.Factory({Name:"RaidenC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Pp=l.Factory({Name:"RaidenC4",ApplyOther:!0,ApplySelf:!1,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.3).Build()}),Hp=l.Factory({Name:"RaidenC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),wp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3965}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3973}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4988}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.2898}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6545}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.9959}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],Bp=l.Factory({Name:"RaidenA4",OnApply:new l.Builder().Where({target:{ascension:4}}).observe.Target(t.stat.ENERGY_RECHARGE).stat.Char(t.stat.ELECTRO_DMG).Values(.4).Map((e,a)=>e*Math.max(0,a.GetCharacter().Get(t.stat.ENERGY_RECHARGE)-1)).Build()}),bp=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.172}]},{Name:T.hits.HIT_E+"_COORDINATED",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.42}]}],Kp=l.Factory({Name:"RaidenE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.0022,.0023,.0024,.0025,.0026,.0027,.0028,.0029,.003).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a)=>e*a.GetCharacter().Options.BurstCost).Build()}),Hi=G.Factory({Name:"Raiden",Stars:5,Weapon:t.weapon.POLEARM,Region:t.region.INAZUMA,Element:t.stat.ELECTRO_DMG,StatBonus:t.stat.ENERGY_RECHARGE,BurstCost:90,AtkBase:[26.2542,107.80606],DefBase:[61.44541,252.3339],HpBase:[1004.79926,4126.249],Normals:wp,Skills:bp,Bursts:Op,Extra:[],Effects:[Kp,Dp,Bp,vp,yp,Pp,Hp]}),Yp=[{Name:T.hits.HIT_Q,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.328}]}],Fp=l.Factory({Name:"BennettQ",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ATK_BASE,t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)).Map((e,a,n)=>{const s=n.Owner.FindEffect("BennettC1");return(.56*e+(s&&s.Enabled()?.2:0))*n.Owner.GetCharacter().Get(t.stat.ATK_BASE)}).Build()}),kp=l.Factory({Name:"BennettC1",OnApply(e,a,n){const s=e.FindEffect("BennettQ");if(!s)throw new Error("Bennett Burst effect not found");const r=s;function i(){r.Enabled()&&(r.Disable(),r.Enable())}return i(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_TARGET,i)),()=>0}}),Vp=l.Factory({Name:"BennettC2",OnApply:new l.Builder().Where({target:{hp:{leq:.7}}}).stat.Char(t.stat.ENERGY_RECHARGE).Values(.3).Build()}),xp=l.Factory({Name:"BennettC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Up=l.Factory({Name:"BennettC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),Wp=l.Factory({Name:"BennettC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.PYRO_DMG).Values(.15).Next().Where({target:{weapon:[t.weapon.CLAYMORE,t.weapon.SWORD,t.weapon.POLEARM]}}).infusion.Set(t.stat.PYRO_DMG,!1).Build()}),jp=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4455}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4274}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5461}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5968}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.719}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.559}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6072}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.6393}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.2784}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.5968}]}],zp=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.376}]},{Name:T.hits.HIT_E_1_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.84}]},{Name:T.hits.HIT_E_1_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.92}]},{Name:T.hits.HIT_E_2_1,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.88}]},{Name:T.hits.HIT_E_2_2,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.96}]},{Name:T.hits.HIT_E_EXPLOSION,Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.32}]},{Name:"HIT_C4",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.92*1.35}]}],wi=G.Factory({Name:"Bennett",Stars:4,Weapon:t.weapon.SWORD,Element:t.stat.PYRO_DMG,Region:t.region.MONDSTADT,StatBonus:t.stat.ENERGY_RECHARGE,BurstCost:60,HpBase:[1039.4418,3719.104],AtkBase:[16.0272,57.34638],DefBase:[64.66425,231.3675],Normals:jp,Skills:zp,Bursts:Yp,Effects:[Fp,kp,Vp,xp,Up,Wp],Extra:[]}),qp=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.08}]}],$p=l.Factory({Name:"FischlC1",OnApply:new l.Builder().instance.Options({Name:"HIT_C1",Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:.22,Talent:t.stat.NONE}]}).Build()}),Qp=l.Factory({Name:"FischlC2",OnApply:new l.Builder().mv.Mv(t.stat.ATK,2,/HIT_E$/).Build()}),Xp=l.Factory({Name:"FischlC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),Jp=l.Factory({Name:"FischlC4",OnApply:new l.Builder().instance.Options({Name:"HIT_C4",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:2.22,Talent:t.stat.NONE}]}).Build()}),Zp=l.Factory({Name:"FischlC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),t1=l.Factory({Name:"FischlC6",OnApply:new l.Builder().instance.Options({Name:"HIT_C6",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:.3,Talent:t.stat.NONE}]}).Build()}),e1=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4412}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4678}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5814}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5771}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.7207}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],a1=l.Factory({Name:"FischlA1",OnApply:new l.Builder().Where({target:{ascension:1}}).instance.Options({Name:"HIT_A1",Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24*1.527,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),n1=l.Factory({Name:"FischlA4",OnApply:new l.Builder().Where({target:{ascension:4}}).instance.Options({Name:"HIT_A4",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:.8,Talent:t.stat.NONE}]}).Build()}),s1=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.1544}]},{Name:"HIT_OZ",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.888}]}],Bi=G.Factory({Name:"Fischl",Stars:4,Element:t.stat.ELECTRO_DMG,Region:t.region.MONDSTADT,Weapon:t.weapon.BOW,StatBonus:t.stat.ATK_PERCENT,AtkBase:[20.4792,73.27593],HpBase:[770.4634,2756.704],DefBase:[49.78575,178.1325],BurstCost:60,Normals:e1,Skills:s1,Bursts:qp,Extra:[],Effects:[a1,n1,$p,Qp,Xp,Jp,Zp,t1]}),r1=[{Name:T.hits.HIT_Q,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.624}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2}]}],i1=l.Factory({Name:"KazuhaQ",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){l1(e,a,n);function s(){const r=e.FindBurst(T.hits.HIT_Q+"_ADDITIONAL");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),l1=new l.Builder().instance.Location("Burst").Options({Name:T.hits.HIT_Q+"_ADDITIONAL",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.36,Talent:t.stat.ELEMENTAL_BURST_LEVEL}]}).Build(),o1=l.Factory({Name:"KazuhaC2",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(200).Build()}),c1=l.Factory({Name:"KazuhaC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),E1=l.Factory({Name:"KazuhaC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),T1=l.Factory({Name:"KazuhaC6",OnApply:new l.Builder().infusion.Set(t.stat.ANEMO_DMG,!1).Build()}),_1=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4498}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.4524}]},{Name:T.hits.HIT_N3_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.258}]},{Name:T.hits.HIT_N3_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.3096}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.6072}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.2537}]},{Name:T.hits.HIT_CHARGED_1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.43}]},{Name:T.hits.HIT_CHARGED_2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1A,Stat:t.stat.ATK,Initial:.7465}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439}]}],u1=l.Factory({Name:"KazuhaA1",MaxAuras:1,ValidAuras:t.Swirlable,OnApply(e,a,n){A1(e,a,n);function s(){const r=e.FindNormal("HIT_A1");if(!r)return;const i=a.GetAuras()[0];!i||(r.Options.Element=t.AuraToDmg(i))}return s(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,s)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),()=>0}}),A1=new l.Builder().Where({target:{ascension:1}}).instance.Location("Normal").Options({Name:"HIT_A1",Element:t.stat.PYRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Initial:2,Talent:t.stat.NONE}]}).Build(),S1=l.Factory({Name:"KazuhaA4",ApplyOther:!0,MaxAuras:1/0,ValidAuras:t.Swirlable,OnApply(e,a,n){const s=a.Owner.GetCharacter(),r=e.GetCharacter(),i=t.Elements.filter(_=>_!==t.stat.PHYSICAL_DMG).map(_=>n.Modifier(r.CreateModifier(_,0)));function c(){const _=a.GetAuras().map(u=>t.AuraToDmg(u));for(const u of i)_.includes(u.GetProp())&&s.GetAscension()>=4?u.SetValue(.04/100*s.Get(t.stat.ELEMENTAL_MASTERY)):u.SetValue(0)}return c(),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_AURAS,c)),n.Observer(s.CreateObserver(t.stat.ELEMENTAL_MASTERY,c)),n.Observer(s.CreateObserver(t.stat.LEVEL,c)),n.Observer(s.CreateObserver(t.stat.ASCENSION,c)),()=>0}}),h1=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.92}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.ANEMO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:2.608}]}],m1=l.Factory({Name:"KazuhaE",OnApply:new l.Builder().instance.Location("Normal").Options({Name:T.hits.HIT_PLUNGE+"_E",Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.8183,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Next().instance.Location("Normal").Options({Name:T.hits.HIT_PLUNGE_LOW+"_E",Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.6363,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Next().instance.Location("Normal").Options({Name:T.hits.HIT_PLUNGE_HIGH+"_E",Element:t.stat.ANEMO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:2.0439,Talent:t.stat.NORMAL_ATTACK_LEVEL}]}).Build()}),bi=G.Factory({Name:"Kazuha",Stars:5,Weapon:t.weapon.SWORD,Region:t.region.INAZUMA,Element:t.stat.ANEMO_DMG,StatBonus:t.stat.ELEMENTAL_MASTERY,BurstCost:60,HpBase:[1039.1188,4267.1836],AtkBase:[23.0888,94.80817],DefBase:[62.8215,257.985],Normals:_1,Skills:h1,Bursts:r1,Extra:[],Effects:[m1,i1,u1,S1,o1,c1,E1,T1]}),f1=[{Name:T.hits.HIT_Q,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:4.096}]},{Name:T.hits.HIT_Q_DOT,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_BURST_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.3412}]}],L1=l.Factory({Name:"SaraC2",OnApply:new l.Builder().instance.Location("Skill").Options({Name:"HIT_C2",Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2576*.3,Talent:t.stat.ELEMENTAL_SKILL_LEVEL}]}).Build()}),p1=l.Factory({Name:"SaraC3",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),N1=l.Factory({Name:"SaraC5",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),d1=l.Factory({Name:"SaraC6",ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ELECTRO_CRIT_DMG).Values(.6).Build()}),C1=[{Name:T.hits.HIT_N1,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.3689}]},{Name:T.hits.HIT_N2,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.387}]},{Name:T.hits.HIT_N3,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.485}]},{Name:T.hits.HIT_N4,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.504}]},{Name:T.hits.HIT_N5,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.585}]},{Name:T.hits.HIT_AIMED_NORMAL,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.4386}]},{Name:T.hits.HIT_AIMED_CHARGED,Element:t.stat.ELECTRO_DMG,Talent:t.stat.CHARGED_AIMED_SHOT_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.24}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Scaling:o.TalentScaling.PHYSICAL_1,Stat:t.stat.ATK,Initial:1.4193}]}],M1=[{Name:T.hits.HIT_E,Element:t.stat.ELECTRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.2576}]}],g1=l.Factory({Name:"SaraE",ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.ATK_BASE,t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP).stat.Char(t.stat.ATK_FLAT).Values(...o.TalentScaling.ELEMENTAL_1).Rank((e,a)=>a.Owner.GetCharacter().Get(t.stat.ELEMENTAL_SKILL_LEVEL)).Map((e,a,n)=>.4296*e*n.Owner.GetCharacter().Get(t.stat.ATK_BASE)).Build()}),Ki=G.Factory({Name:"Sara",Stars:4,Weapon:t.weapon.BOW,Region:t.region.INAZUMA,Element:t.stat.ELECTRO_DMG,BurstCost:80,HpBase:[802.3761,2870.8872],AtkBase:[16.38336,58.620743],DefBase:[52.647,188.37],StatBonus:t.stat.ATK_PERCENT,Normals:C1,Skills:M1,Bursts:f1,Extra:[],Effects:[g1,L1,p1,N1,d1]}),G1=[{Name:T.hits.HIT_N1,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.403}]},{Name:T.hits.HIT_N2,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.3697}]},{Name:T.hits.HIT_N3,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.4587}]},{Name:T.hits.HIT_N4,Element:t.stat.DENDRO_DMG,Talent:t.stat.NORMAL_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5841}]},{Name:T.hits.HIT_CHARGED,Element:t.stat.DENDRO_DMG,Talent:t.stat.CHARGED_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1A,Initial:1.32}]},{Name:T.hits.HIT_PLUNGE,Element:t.stat.DENDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:.5683}]},{Name:T.hits.HIT_PLUNGE_LOW,Element:t.stat.DENDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.1363}]},{Name:T.hits.HIT_PLUNGE_HIGH,Element:t.stat.DENDRO_DMG,Talent:t.stat.PLUNGE_ATTACK_DMG,Scaling:[{Stat:t.stat.ATK,Scaling:o.TalentScaling.ELEMENTAL_1,Initial:1.4193}]}],R1=l.Factory({Name:"NahidaA1",ApplyOther:!0,MaxTargets:1,OnApply(e,a,n){const s=e.GetCharacter(),r=a.Owner.GetCharacter(),i=n.Modifier(s.CreateModifier(t.stat.ELEMENTAL_MASTERY,0));let c=[];const _=[];function u(S){if(S===i)return;if(r.Get(t.stat.ASCENSION)<1){i.SetValue(0);return}let h=0,m=s;for(const N of c){const L=N.Get(t.stat.ELEMENTAL_MASTERY);L>h&&(h=L,m=N)}m===s&&(h-=i.GetValue());const f=Math.min(250,Math.max(0,.25*h));i.SetValue(f)}function A(){_.forEach(h=>h.Remove());const S=e.GetParty();if(!S)c=[s];else{c=[];for(const h of S.GetMembers())c.push(h.GetCharacter())}for(const h of c)_.push(n.Observer(h.CreateObserver(t.stat.ELEMENTAL_MASTERY,u)));u()}return A(),n.Observer(e.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,A)),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,A)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,A)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_CONDITIONS,A)),n.Observer(r.CreateObserver(t.stat.LEVEL,u)),n.Observer(r.CreateObserver(t.stat.ASCENSION,u)),()=>0}}),I1=[{Name:T.hits.HIT_E_PRESS,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:.984}]},{Name:T.hits.HIT_E_HOLD,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.304}]},{Name:T.hits.HIT_E_DOT,Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ATK,Initial:1.032},{Scaling:o.TalentScaling.ELEMENTAL_1,Stat:t.stat.ELEMENTAL_MASTERY,Initial:2.064}]}],O1=l.Factory({Name:"NahidaA4",OnApply(e,a,n){const s=e.GetCharacter(),r=e.FindSkill(T.hits.HIT_E_DOT);if(!r)throw new Error("Cannot find Nahida Skill");const i=n.Modifier(r.Subject.CreateModifier(t.stat.ALL_DMG,0)),c=n.Modifier(r.Subject.CreateModifier(t.stat.CRIT_RATE,0));let _,u;function A(){if(s.GetAscension()<4){i.SetValue(0),c.SetValue(0),_&&_.SetValue(0),u&&u.SetValue(0);return}const S=e.FindSkill("HIT_C6");S&&(_||(_=n.Modifier(S.Subject.CreateModifier(t.stat.ALL_DMG,0))),u||(u=n.Modifier(S.Subject.CreateModifier(t.stat.CRIT_RATE,0))));const h=Math.max(0,s.Get(t.stat.ELEMENTAL_MASTERY)-200),m=Math.min(.24,h*.03/100),f=Math.min(.8,h*.1/100);i.SetValue(f),c.SetValue(m),_&&_.SetValue(f),u&&u.SetValue(m)}return A(),n.Observer(s.CreateObserver(t.stat.ELEMENTAL_MASTERY,A)),n.Observer(s.CreateObserver(t.stat.LEVEL,A)),n.Observer(s.CreateObserver(t.stat.ASCENSION,A)),()=>0}}),D1=l.Factory({Name:"NahidaQ",OnApply(e,a,n){const s=e.FindSkill(T.hits.HIT_E_DOT);if(!s)throw new Error("Cannot find Nahida Skill");const r=n.Modifier(s.Subject.CreateModifier(t.stat.ALL_DMG,0));let i;function c(){const _=e.GetParty();if(!_){r.SetValue(0),i&&i.SetValue(0);return}const u=e.FindSkill("HIT_C6");u&&!i&&(i=n.Modifier(u.Subject.CreateModifier(t.stat.ALL_DMG,0)));const A=e.FindEffect("NahidaC1");let h=A&&A.Enabled()&&A.GetTargets().includes(e)?1:0;for(const N of _.GetMembers())N.GetCharacter().Options.Element===t.stat.PYRO_DMG&&h++;let m=0;h>=1&&(m=.1488),h>=2&&(m=.2232);const f=m*o.TalentScaling.ELEMENTAL_1[e.GetCharacter().Get(t.stat.ELEMENTAL_BURST_LEVEL)-1];r.SetValue(f),i&&i.SetValue(f)}return c(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,c)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,c)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ELEMENTAL_BURST_LEVEL,c)),n.Observer(e.GetCharacter().CreateObserver(t.stat.ELEMENTAL_BURST_LEVEL_UP,c)),n.Observer(e.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,c)),()=>0}}),v1=l.Factory({Name:"NahidaC1",OnApply(e,a,n){const s=e.FindEffect("NahidaQ");if(!s)throw new Error("Nahida Burst effect not found");const r=s;function i(){r.Enabled()&&(r.Disable(),r.Enable())}return i(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,i)),n.Observer(a.CreateObserver(l.EffectEvent.CHANGE_TARGET,i)),()=>0}}),y1=l.Factory({Name:"NahidaC2",ApplyOther:!0,MaxAuras:1,ValidAuras:[t.aura.QUICKEN],OnApply(e,a,n){P1(e,a,n);const r=["BURGEON","BLOOM","HYPERBLOOM","BURNING"].map(i=>e.FindTr("HIT_"+i));for(const i of r)!i||(n.Modifier(i.Subject.CreateModifier(t.stat.CRIT_RATE,.2)),n.Modifier(i.Subject.CreateModifier(t.stat.CRIT_DMG,1)));return()=>0}}),P1=new l.Builder().Where({effect:{aura:[t.aura.QUICKEN]}}).stat.Enemy(t.stat.DEFREDUCTION).Values(.3).Build(),H1=l.Factory({Name:"NahidaC3",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_LEVEL_UP).Values(3).Build()}),w1=l.Factory({Name:"NahidaC4",MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Stacks([0,100,120,140,160]).Build()}),B1=l.Factory({Name:"NahidaC5",ApplySelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_LEVEL_UP).Values(3).Build()}),b1=l.Factory({Name:"NahidaC6",OnApply(e,a,n){K1(e,a,n);function s(){const r=e.FindEffect("NahidaQ"),i=e.FindEffect("NahidaA4");r&&r.Enabled()&&(r.Disable(),r.Enable()),i&&i.Enabled()&&(i.Disable(),i.Enable())}return s(),n.Observer(a.CreateObserver(l.EffectEvent.ENABLE,s)),n.Observer(a.CreateObserver(l.EffectEvent.DISABLE,s)),()=>0}}),K1=new l.Builder().instance.Location("Skill").Options({Name:"HIT_C6",Element:t.stat.DENDRO_DMG,Talent:t.stat.ELEMENTAL_SKILL_DMG,Scaling:[{Scaling:o.TalentScaling.NONE,Stat:t.stat.ATK,Talent:t.stat.NONE,Initial:2},{Scaling:o.TalentScaling.NONE,Stat:t.stat.ELEMENTAL_MASTERY,Talent:t.stat.NONE,Initial:4}]}).Build(),Yi=G.Factory({Name:"Nahida",Stars:5,Element:t.stat.DENDRO_DMG,Region:t.region.SUMERU,Weapon:t.weapon.CATALYST,StatBonus:t.stat.ELEMENTAL_MASTERY,BurstCost:50,HpBase:[806.5087,3311.961],AtkBase:[23.275,95.57275],DefBase:[49.0606,201.474],Normals:G1,Skills:I1,Bursts:[],Extra:[],Effects:[D1,R1,O1,v1,y1,H1,w1,B1,b1]}),ta=new Q(e=>e.Name);ta.AddList(Object.values(Fr).sort((e,a)=>e.Name.localeCompare(a.Name)));function Fi(){return ta.Get()}function Y1(e){return ta.Find(e)}var et={};D(et,{Akuoumaru:()=>Tl,AlleyHunter:()=>Po,AmberBead:()=>Tc,AmenomaKageuchi:()=>to,AmosBow:()=>Mo,AquaSimulacra:()=>No,AquilaFavonia:()=>ql,BalladOfTheFjords:()=>al,BeaconOfTheReedSea:()=>ol,BlackTassel:()=>bc,BlackcliffAgate:()=>rc,BlackcliffLongsword:()=>so,BlackcliffPole:()=>Yc,BlackcliffSlasher:()=>Sl,BlackcliffWarbow:()=>sl,BloodtaintedGreatsword:()=>hl,CalamityQueller:()=>fc,CinnabarSpindle:()=>Zl,CompoundBow:()=>wo,CoolSteel:()=>fo,CrescentPike:()=>Oc,DarkIronSword:()=>Ao,Deathmatch:()=>Fc,DebateClub:()=>ml,DodocoTales:()=>ac,DragonsBane:()=>vc,DragonspineSpear:()=>Rc,ElegyForTheEnd:()=>Pc,EmeraldOrb:()=>uc,EndOfTheLine:()=>go,EngulfingLightning:()=>Mc,EverlastingMoonglow:()=>$o,EyeOfPerception:()=>sc,FadingTwilight:()=>yo,FavoniusCodex:()=>Ec,FavoniusGreatsword:()=>fl,FavoniusLance:()=>wc,FavoniusSword:()=>xc,FavoniusWarbow:()=>Uc,FerrousShadow:()=>Ll,FesteringDesire:()=>eo,FilletBlade:()=>So,FinaleOfTheDeep:()=>$i,FindByName:()=>Q1,FleuveCendreFerryman:()=>Qi,FlowingPurity:()=>qi,ForestRegalia:()=>dl,FreedomSworn:()=>kl,Frostbearer:()=>nc,FruitOfFulfillment:()=>Zo,GetByType:()=>X1,GetList:()=>zc,HakushinRing:()=>ec,Halberd:()=>Dc,Hamayumi:()=>Oo,HaranGeppakuFutsu:()=>Ul,HarbingerOfDawn:()=>mo,HuntersPath:()=>Lo,IbisPiercer:()=>rl,IronSting:()=>ro,JadeCutter:()=>jl,JadeSpear:()=>Lc,JadefallSplendor:()=>il,KagotsurubeIsshin:()=>Jl,KagurasVerity:()=>qo,KatsuragikiriNagamasa:()=>Cl,KeyOfKhajNisut:()=>xl,KingsSquire:()=>Go,KitainCrossSpear:()=>Gc,LightOfFoliarIncision:()=>Vl,LionsRoar:()=>lo,LithicBlade:()=>gl,LithicSpear:()=>Ic,LostPrayer:()=>Xo,LuxuriousSeaLord:()=>pl,MagicGuide:()=>hc,MailedFlower:()=>ll,MakhairaAquamarine:()=>Al,MappaMare:()=>ic,MemoryOfDust:()=>Qo,Messenger:()=>Fo,MissiveWindspear:()=>dc,MistsplitterReforged:()=>Wl,MitternachtsWaltz:()=>vo,Moonpiercer:()=>Cc,MouunsMoon:()=>Ro,OathswornEye:()=>tc,OtherworldlyStory:()=>Ac,PolarStar:()=>Co,Predator:()=>Io,PrototypeAmber:()=>lc,PrototypeArchaic:()=>Rl,PrototypeCrescent:()=>Bo,PrototypeRancour:()=>io,PrototypeStarglitter:()=>Kc,Rainslasher:()=>Il,RavenBow:()=>Uo,RecurveBow:()=>Vo,RedhornStonethresher:()=>Ol,RightfulReward:()=>ji,RoyalBow:()=>To,RoyalGreatsword:()=>Dl,RoyalGrimoire:()=>co,RoyalLongsword:()=>_o,RoyalSpear:()=>Eo,Rust:()=>bo,SacrificialBow:()=>Ko,SacrificialFragments:()=>cc,SacrificialGreatsword:()=>vl,SacrificialJade:()=>Zi,SacrificialSword:()=>yc,SapwoodBlade:()=>Xl,ScionOfTheBlazingSun:()=>tl,SerpentSpine:()=>Fl,SharpshootersOath:()=>xo,SkyriderGreatsword:()=>yl,SkyriderSword:()=>uo,SkywardAtlas:()=>Jo,SkywardBlade:()=>kc,SkywardHarp:()=>Vc,SkywardPride:()=>Pl,SkywardSpine:()=>Nc,Slingshot:()=>ko,SnowTombedStarsilver:()=>Hl,SolarPearl:()=>oc,SongOfBrokenPines:()=>Gl,SongOfStillness:()=>zi,SplendorOfTranquilWaters:()=>Ui,StaffOfHoma:()=>Hc,StaffOfTheScarletSands:()=>mc,SummitShaper:()=>zl,SwordOfDescension:()=>ao,TalkingStick:()=>el,TheAlleyFlash:()=>no,TheBell:()=>wl,TheBlackSword:()=>cl,TheCatch:()=>El,TheFirstGreatMagic:()=>nl,TheFlute:()=>oo,TheStringless:()=>Yo,TheUnforged:()=>Bl,TheViridescentHunt:()=>Ho,TheWidsith:()=>Wc,ThousandFloatingDreams:()=>jo,ThrillingTalesOfDragonSlayers:()=>Sc,ThunderingPulse:()=>po,TidalShadow:()=>Xi,TomeOfTheEternalFlow:()=>Wi,ToukabouShigure:()=>$l,TravelersHandySword:()=>ho,TulaytullahsRemembrance:()=>Wo,TwinNephrite:()=>_c,UltimateOverlordsMegaMagicSword:()=>Vi,Veredict:()=>xi,VortexVanquisher:()=>pc,WanderingEvenstar:()=>zo,WavebreakerFin:()=>gc,WhiteIronGreatsword:()=>Kl,WhiteTassel:()=>Bc,Whiteblind:()=>bl,WindblumeOde:()=>Do,WineAndSong:()=>_l,WolfFang:()=>Ji,WolfsGravestone:()=>Yl,XiphosMoonlight:()=>Ql});var ki={};D(ki,{Akuoumaru:()=>Tl,AlleyHunter:()=>Po,AmberBead:()=>Tc,AmenomaKageuchi:()=>to,AmosBow:()=>Mo,AquaSimulacra:()=>No,AquilaFavonia:()=>ql,BalladOfTheFjords:()=>al,BeaconOfTheReedSea:()=>ol,BlackTassel:()=>bc,BlackcliffAgate:()=>rc,BlackcliffLongsword:()=>so,BlackcliffPole:()=>Yc,BlackcliffSlasher:()=>Sl,BlackcliffWarbow:()=>sl,BloodtaintedGreatsword:()=>hl,CalamityQueller:()=>fc,CinnabarSpindle:()=>Zl,CompoundBow:()=>wo,CoolSteel:()=>fo,CrescentPike:()=>Oc,DarkIronSword:()=>Ao,Deathmatch:()=>Fc,DebateClub:()=>ml,DodocoTales:()=>ac,DragonsBane:()=>vc,DragonspineSpear:()=>Rc,ElegyForTheEnd:()=>Pc,EmeraldOrb:()=>uc,EndOfTheLine:()=>go,EngulfingLightning:()=>Mc,EverlastingMoonglow:()=>$o,EyeOfPerception:()=>sc,FadingTwilight:()=>yo,FavoniusCodex:()=>Ec,FavoniusGreatsword:()=>fl,FavoniusLance:()=>wc,FavoniusSword:()=>xc,FavoniusWarbow:()=>Uc,FerrousShadow:()=>Ll,FesteringDesire:()=>eo,FilletBlade:()=>So,FinaleOfTheDeep:()=>$i,FleuveCendreFerryman:()=>Qi,FlowingPurity:()=>qi,ForestRegalia:()=>dl,FreedomSworn:()=>kl,Frostbearer:()=>nc,FruitOfFulfillment:()=>Zo,HakushinRing:()=>ec,Halberd:()=>Dc,Hamayumi:()=>Oo,HaranGeppakuFutsu:()=>Ul,HarbingerOfDawn:()=>mo,HuntersPath:()=>Lo,IbisPiercer:()=>rl,IronSting:()=>ro,JadeCutter:()=>jl,JadeSpear:()=>Lc,JadefallSplendor:()=>il,KagotsurubeIsshin:()=>Jl,KagurasVerity:()=>qo,KatsuragikiriNagamasa:()=>Cl,KeyOfKhajNisut:()=>xl,KingsSquire:()=>Go,KitainCrossSpear:()=>Gc,LightOfFoliarIncision:()=>Vl,LionsRoar:()=>lo,LithicBlade:()=>gl,LithicSpear:()=>Ic,LostPrayer:()=>Xo,LuxuriousSeaLord:()=>pl,MagicGuide:()=>hc,MailedFlower:()=>ll,MakhairaAquamarine:()=>Al,MappaMare:()=>ic,MemoryOfDust:()=>Qo,Messenger:()=>Fo,MissiveWindspear:()=>dc,MistsplitterReforged:()=>Wl,MitternachtsWaltz:()=>vo,Moonpiercer:()=>Cc,MouunsMoon:()=>Ro,OathswornEye:()=>tc,OtherworldlyStory:()=>Ac,PolarStar:()=>Co,Predator:()=>Io,PrototypeAmber:()=>lc,PrototypeArchaic:()=>Rl,PrototypeCrescent:()=>Bo,PrototypeRancour:()=>io,PrototypeStarglitter:()=>Kc,Rainslasher:()=>Il,RavenBow:()=>Uo,RecurveBow:()=>Vo,RedhornStonethresher:()=>Ol,RightfulReward:()=>ji,RoyalBow:()=>To,RoyalGreatsword:()=>Dl,RoyalGrimoire:()=>co,RoyalLongsword:()=>_o,RoyalSpear:()=>Eo,Rust:()=>bo,SacrificialBow:()=>Ko,SacrificialFragments:()=>cc,SacrificialGreatsword:()=>vl,SacrificialJade:()=>Zi,SacrificialSword:()=>yc,SapwoodBlade:()=>Xl,ScionOfTheBlazingSun:()=>tl,SerpentSpine:()=>Fl,SharpshootersOath:()=>xo,SkyriderGreatsword:()=>yl,SkyriderSword:()=>uo,SkywardAtlas:()=>Jo,SkywardBlade:()=>kc,SkywardHarp:()=>Vc,SkywardPride:()=>Pl,SkywardSpine:()=>Nc,Slingshot:()=>ko,SnowTombedStarsilver:()=>Hl,SolarPearl:()=>oc,SongOfBrokenPines:()=>Gl,SongOfStillness:()=>zi,SplendorOfTranquilWaters:()=>Ui,StaffOfHoma:()=>Hc,StaffOfTheScarletSands:()=>mc,SummitShaper:()=>zl,SwordOfDescension:()=>ao,TalkingStick:()=>el,TheAlleyFlash:()=>no,TheBell:()=>wl,TheBlackSword:()=>cl,TheCatch:()=>El,TheFirstGreatMagic:()=>nl,TheFlute:()=>oo,TheStringless:()=>Yo,TheUnforged:()=>Bl,TheViridescentHunt:()=>Ho,TheWidsith:()=>Wc,ThousandFloatingDreams:()=>jo,ThrillingTalesOfDragonSlayers:()=>Sc,ThunderingPulse:()=>po,TidalShadow:()=>Xi,TomeOfTheEternalFlow:()=>Wi,ToukabouShigure:()=>$l,TravelersHandySword:()=>ho,TulaytullahsRemembrance:()=>Wo,TwinNephrite:()=>_c,UltimateOverlordsMegaMagicSword:()=>Vi,Veredict:()=>xi,VortexVanquisher:()=>pc,WanderingEvenstar:()=>zo,WavebreakerFin:()=>gc,WhiteIronGreatsword:()=>Kl,WhiteTassel:()=>Bc,Whiteblind:()=>bl,WindblumeOde:()=>Do,WineAndSong:()=>_l,WolfFang:()=>Ji,WolfsGravestone:()=>Yl,XiphosMoonlight:()=>Ql});var vt=4,Vi=p.Factory({Name:"UltimateOverlordsMegaMagicSword",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.ENERGY_RECHARGE,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"UltimateOverlordsMegaMagicSword1",MaxRank:5,MaxStacks:vt,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ATK_PERCENT).Values(.12/vt,.15/vt,.18/vt,.21/vt,.24/vt).Stacks().Build()})]}),xi=p.Factory({Name:"Verdict",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"Verdict1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.ATK).Values(.2,.25,.3,.35,.4).Next().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.18,.225,.27,.315,.36).Stacks().Build()})]}),Ui=p.Factory({Name:"SplendorOfTranquilWaters",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"SplendorOfTranquilWaters1",MaxStacks:3,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.08,.1,.12,.14,.16).Stacks().Build()}),l.Factory({Name:"SplendorOfTranquilWaters2",MaxStacks:2,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.14,.175,.21,.245,.28).Stacks().Build()})]}),Wi=p.Factory({Name:"TomeOfTheEternalFlow",Stars:5,Type:t.weapon.CATALYST,Substat:t.stat.CRIT_DMG,Scaling:o.WeaponScaling.TYPE_44b,Effects:[l.Factory({Name:"TomeOfTheEternalFlow1",MaxStacks:3,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.14,.18,.22,.26,.3).Stacks().Build()})]}),ji=p.Factory({Name:"RightfulReward",Stars:4,Type:t.weapon.POLEARM,Substat:t.stat.HP_PERCENT,Scaling:o.WeaponScaling.TYPE_44,Effects:[]}),zi=p.Factory({Name:"SongOfStillness",Stars:4,Type:t.weapon.BOW,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"SongOfStillness1",MaxRank:5,MaxConditions:1,Conditions:["HEALED"],OnApply:new l.Builder().Where({effect:{conditions:["HEALED"]}}).stat.Char(t.stat.ALL_DMG).Values(.16,.2,.24,.28,.32).Build()})]}),qi=p.Factory({Name:"FlowingPurity",Stars:4,Type:t.weapon.CATALYST,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"FlowingPurity1",MaxRank:5,MaxConditions:1,MaxStacks:6e3,Conditions:["CAST_SKILL"],OnApply:new l.Builder().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Next().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(...[.02,.025,.03,.035,.04].map(e=>e/1e3)).Stacks().Build()})]}),$i=p.Factory({Name:"FinaleOfTheDeep",Stars:4,Type:t.weapon.SWORD,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"FinaleOfTheDeep1",MaxRank:5,MaxStacks:100,MaxConditions:1,Conditions:["CAST_SKILL"],OnApply:new l.Builder().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().observe.Target(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ATK_FLAT).Values(.024,.03,.036,.042,.048).Map((e,a,n)=>{let s=e*n.GetStacks()/100*.25*a.GetCharacter().Get(t.stat.HP);return s=Math.min(s,150/.024*e),s}).Build()})]}),Qi=p.Factory({Name:"FleuveCendreFerryman",Stars:4,Type:t.weapon.SWORD,Substat:t.stat.ENERGY_RECHARGE,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"FleuveCendreFerryman1",MaxRank:5,Conditions:["CAST_SKILL"],MaxConditions:1,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.08,.1,.12,.14,.16).Next().Where({effect:{conditions:["CAST_SKILL"]}}).stat.Char(t.stat.ENERGY_RECHARGE).Values(.16,.2,.24,.28,.32).Build()})]}),Xi=p.Factory({Name:"TidalShadow",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.ATK_PERCENT,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"TidalShadow1",MaxRank:5,Conditions:["HEALED"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["HEALED"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),Ji=p.Factory({Name:"WolfFang",Stars:4,Type:t.weapon.SWORD,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"WolfFang1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.16,.2,.24,.28,.32).Build()}),l.Factory({Name:"WolfFang2",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.02,.025,.03,.035,.04).Stacks().Build()}),l.Factory({Name:"WolfFang3",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.02,.025,.03,.035,.04).Stacks().Build()})]}),Zi=p.Factory({Name:"SacrificialJade",Stars:4,Type:t.weapon.CATALYST,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_42,Effects:[l.Factory({Name:"SacrificialJade1",MaxRank:5,Conditions:["OFF_FIELD"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(t.stat.HP_PERCENT).Values(.32,.4,.48,.56,.64).Next().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(40,50,60,70,80).Build()})]}),tl=p.Factory({Name:"ScionOfTheBlazingSun",Stars:4,Type:t.weapon.BOW,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"ScionOfTheBlazingSun1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_ScionOfTheBlazingSun",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.6,.75,.9,1.05,1.2]}).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.28,.35,.42,.49,.56).Build()})]}),el=p.Factory({Name:"TalkingStick",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"TalkingStick1",MaxRank:5,MaxAuras:2,ValidAuras:[t.aura.PYRO,t.aura.HYDRO],OnApply:new l.Builder().Where({effect:{aura:[t.aura.PYRO]}}).stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{aura:[t.aura.HYDRO]}}).stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Build()})]}),al=p.Factory({Name:"BalladOfTheFjords",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"BalladOfTheFjords1",MaxRank:5,OnApply:new l.Builder().observe.Party(!0).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(120,150,180,210,240).Map((e,a)=>{const n=a.GetParty();if(!n)return 0;const s=new Set;for(const r of n.GetMembers())s.add(r.GetCharacter().Options.Element);return s.size>=3?e:0}).Build()})]}),nl=p.Factory({Name:"TheFirstGreatMagic",Type:t.weapon.BOW,Stars:5,Substat:t.stat.CRIT_DMG,Scaling:o.WeaponScaling.TYPE_46,Effects:[l.Factory({Name:"TheFirstGreatMagic1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().observe.Party(!0).stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Map((e,a)=>{let n=1;const s=a.GetCharacter().Options.Element,r=a.GetParty();if(r)for(const i of r.GetMembers())i!==a&&i.GetCharacter().Options.Element===s&&n++;return n=Math.min(n,3),e*n}).Build()})]}),Kt=e=>l.Factory({Name:e,MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Stacks().Build()}),sl=p.Factory({Name:"BlackcliffWarbow",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffWarbow1")]}),rl=p.Factory({Name:"IbisPiercer",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"IbisPiercer1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(40,50,60,70,80).Stacks().Build()})]}),il=p.Factory({Name:"JadefallSplendor",Type:t.weapon.CATALYST,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"JadefallSplendor1",MaxRank:5,OnApply:new l.Builder().observe.Owner(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.MapStat(e=>[e.GetCharacter().Options.Element]).Values(.3,.5,.7,.9,1.1).Map((e,a,n)=>Math.min([.12,.2,.28,.36,.44][n.GetRank()-1],e/100*a.GetCharacter().Get(t.stat.HP)/1e3)).Build()})]}),ll=p.Factory({Name:"MailedFlower",Stars:4,Type:t.weapon.CLAYMORE,Substat:t.stat.ELEMENTAL_MASTERY,Scaling:o.WeaponScaling.TYPE_44,Effects:[l.Factory({Name:"MailedFlower1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(48,60,72,84,96).Build()})]}),ol=p.Factory({Name:"BeaconOfTheReedSea",Stars:5,Type:t.weapon.CLAYMORE,Substat:t.stat.CRIT_RATE,Scaling:o.WeaponScaling.TYPE_46,Effects:[l.Factory({Name:"BeaconOfTheReedSea1",MaxRank:5,Conditions:["HIT_SKILL","DMG_TAKEN"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["DMG_TAKEN"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().Where({target:{shielded:!1}}).stat.Char(t.stat.HP_PERCENT).Values(.32,.4,.48,.56,.64).Build()})]}),cl=p.Factory({Name:"TheBlackSword",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"TheBlackSword1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),El=p.Factory({Name:"TheCatch",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"TheCatch1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.ELEMENTAL_BURST_CRIT_RATE).Values(.06,.075,.09,.105,.12).Build()})]}),ea=e=>l.Factory({Name:e,MaxRank:5,OnApply(a,n,s){const r=a.GetCharacter(),i=s.Modifier(r.CreateModifier(t.stat.ELEMENTAL_BURST_DMG,0));function c(){let _=[r];const u=a.GetParty();u&&(_=u.GetMembers().map(h=>h.GetCharacter()));let A=0;for(const h of _)A+=h.Options.BurstCost;const S=Math.min(k1[n.GetRank()-1],F1[n.GetRank()-1]*A);i.SetValue(S)}return s.Observer(n.Event.CreateObserver(l.EffectEvent.CHANGE_RANK,c)),s.Observer(a.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,c)),()=>0}}),F1=[.12/100,.15/100,.18/100,.21/100,.24/100],k1=[.4,.5,.6,.7,.8],Tl=p.Factory({Name:"Akuoumaru",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[ea("Akuoumaru1")]}),_l=p.Factory({Name:"WineAndSong",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"WineAndSong1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),ul=(e,a,n)=>l.Factory({Name:e,ApplyOther:!0,StackSelf:!0,MaxRank:5,OnApply(s,r,i){const c=r.Owner.GetCharacter(),_=s.GetCharacter(),u=i.Modifier(_.CreateModifier(a,0));function A(){const S=c.Get(t.stat.ELEMENTAL_MASTERY);let h=n[r.GetRank()-1]*S;c!==_&&(h*=.3),u.SetValue(h)}return A(),i.Observer(c.CreateObserver(t.stat.ELEMENTAL_MASTERY,A)),()=>0}}),Al=p.Factory({Name:"MakhairaAquamarine",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[ul("MakhairaAquamarine1",t.stat.ATK_FLAT,[.24,.3,.36,.42,.48])]}),Sl=p.Factory({Name:"BlackcliffSlasher",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffSlasher1")]}),hl=p.Factory({Name:"BloodtaintedGreatsword",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"BloodtaintedGreatsword1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),ml=p.Factory({Name:"DebateClub",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"DebateClub1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_DebateClub",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.6,.75,.9,1.05,1.2]}).Build()})]}),fl=p.Factory({Name:"FavoniusGreatsword",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Ll=p.Factory({Name:"FerrousShadow",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"FerrousShadow1",MaxRank:5,OnApply:new l.Builder().Where({target:{hp:{leq:.7}}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.3,.35,.4,.45,.5).Build()})]}),pl=p.Factory({Name:"LuxuriousSeaLord",Type:t.weapon.CLAYMORE,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"LuxuriousSeaLord1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_BURST_DMG).Values(.12,.15,.18,.21,.24).Next().instance.Basic({Name:"HIT_LuxuriousSeaLord",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),Nl=e=>l.Factory({Name:e,MaxRank:5,ApplyOther:!0,MaxTargets:1,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60,75,90,105,120).Build()}),dl=p.Factory({Name:"ForestRegalia",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[Nl("ForestRegalia1")]}),Cl=p.Factory({Name:"KatsuragikiriNagamasa",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"KatsuragikiriNagamasa1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.06,.075,.09,.105,.12).Build()})]}),Ml=e=>l.Factory({Name:e,MaxRank:5,OnApply(a,n,s){const r=a.GetCharacter(),i=s.Modifier(r.CreateModifier(t.stat.CRIT_RATE,0)),c=s.Modifier(r.CreateModifier(t.stat.ATK_PERCENT,0));function _(){let u=[r];const A=a.GetParty();A&&(u=A.GetMembers().map(f=>f.GetCharacter()));const S=Math.min(4,u.filter(f=>f.Options.Region===t.region.LIYUE).length),h=V1[n.GetRank()-1]*S,m=x1[n.GetRank()-1]*S;i.SetValue(h),c.SetValue(m)}return _(),s.Observer(n.CreateObserver(l.EffectEvent.CHANGE_RANK,_)),s.Observer(a.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,_)),()=>0}}),V1=[.03,.04,.05,.06,.07],x1=[.07,.08,.09,.1,.11],gl=p.Factory({Name:"LithicBlade",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[Ml("LithicBlade1")]}),aa=new Map;function U1(e){const a=aa.get(e);if(!a){const n=new Set;return aa.set(e,n),n}return a}var na=({Name:e,OnApply:a})=>l.Factory({Name:e,MaxRank:5,ApplyOther:!0,OnApply(n,s,r){a(n,s,r);const i=r.GetModifiers(),c=U1(n);i.forEach(u=>c.add(u));function _(){for(const u of i)Array.from(c).some(S=>S!==u&&S.GetProp()===u.GetProp()&&S.Enabled()&&S.GetValue()!==0)&&(u.SetValue(0),u.Disable())}_();for(const u of l.EffectEvent.Values())r.Observer(s.CreateObserver(u,_));return()=>{i.forEach(u=>c.delete(u)),c.size===0&&aa.delete(n)}}}),Gl=p.Factory({Name:"SongOfBrokenPines",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_49,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"SongOfBrokenPines1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()}),na({Name:"SongOfBrokenPines2",OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Rl=p.Factory({Name:"PrototypeArchaic",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"PrototypeArchaic1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_PrototypeArchaic",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2.4,3,3.6,4.2,4.8]}).Build()})]}),Il=p.Factory({Name:"Rainslasher",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"Rainslasher1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.HYDRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),Ol=p.Factory({Name:"RedhornStonethresher",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"RedhornStonethresher1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.DEF_PERCENT).Values(.28,.35,.42,.49,.56).Next().observe.Target(t.stat.DEF,t.stat.DEF_PERCENT,t.stat.DEF_FLAT).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT).Values(.4,.5,.6,.7,.8).Map((e,a)=>e*a.GetCharacter().Get(t.stat.DEF)).Build()})]}),Yt=e=>l.Factory({Name:e,MaxRank:5,OnApply(a,n,s){const r=a.GetCharacter();function i(c=!0){if(!c)r.MapCritRate=_=>_;else{const _=n.GetRank();r.MapCritRate=u=>W1(_,u)}}return i(!0),s.Observer(n.CreateObserver(l.EffectEvent.ENABLE,()=>i(!0))),s.Observer(n.CreateObserver(l.EffectEvent.CHANGE_RANK,()=>i(!0))),s.Observer(n.CreateObserver(l.EffectEvent.DISABLE,()=>i(!1))),()=>i(!1)}});function W1(e,a){const n=Math.max,s=.08+.02*(e-1);return a<0?((5*s+a)*n(0,a)-(5*s*a-5*s+g(a,2)-a)*n(0,s+a)+(5*g(s,2)*a-5*g(s,2)+6*s*g(a,2)-11*s*a+5*s+g(a,3)-2*g(a,2)+a)*n(0,2*s+a)-(10*g(s,3)*a-10*g(s,3)+17*g(s,2)*g(a,2)-32*g(s,2)*a+15*g(s,2)+8*s*g(a,3)-21*s*g(a,2)+18*s*a-5*s+g(a,4)-3*g(a,3)+3*g(a,2)-a)*n(0,3*s+a)+(30*g(s,4)*a-30*g(s,4)+61*g(s,3)*g(a,2)-116*g(s,3)*a+55*g(s,3)+41*g(s,2)*g(a,3)-112*g(s,2)*g(a,2)+101*g(s,2)*a-30*g(s,2)+11*s*g(a,4)-38*s*g(a,3)+48*s*g(a,2)-26*s*a+5*s+g(a,5)-4*g(a,4)+6*g(a,3)-4*g(a,2)+a)*n(0,4*s+a)-(24*g(s,4)*a-24*g(s,4)+50*g(s,3)*g(a,2)-100*g(s,3)*a+50*g(s,3)+35*g(s,2)*g(a,3)-105*g(s,2)*g(a,2)+105*g(s,2)*a-35*g(s,2)+10*s*g(a,4)-40*s*g(a,3)+60*s*g(a,2)-40*s*a+10*s+g(a,5)-5*g(a,4)+10*g(a,3)-10*g(a,2)+5*a-1)*n(0,5*s+a))/(6*g(s,4)*a-6*g(s,4)+11*g(s,3)*g(a,2)-26*g(s,3)*a+15*g(s,3)+6*g(s,2)*g(a,3)-24*g(s,2)*g(a,2)+33*g(s,2)*a-15*g(s,2)+s*g(a,4)-6*s*g(a,3)+15*s*g(a,2)-20*s*a+15*s+1):(5*s+a)/(6*g(s,4)*a-6*g(s,4)+11*g(s,3)*g(a,2)-26*g(s,3)*a+15*g(s,3)+6*g(s,2)*g(a,3)-24*g(s,2)*g(a,2)+33*g(s,2)*a-15*g(s,2)+s*g(a,4)-6*s*g(a,3)+15*s*g(a,2)-20*s*a+15*s+1)}var Dl=p.Factory({Name:"RoyalGreatsword",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalGreatsword1")]}),vl=p.Factory({Name:"SacrificialGreatsword",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),yl=p.Factory({Name:"SkyriderGreatsword",Type:t.weapon.CLAYMORE,Stars:3,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"SkyriderGreatsword1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.06,.07,.08,.09,.1).Build()})]}),Pl=p.Factory({Name:"SkywardPride",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"SkywardPride1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.08,.1,.12,.14,.16).Next().instance.Basic({Name:"HIT_SkywardPride",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.8,1,1.2,1.4,1.6]}).Build()})]}),sa=(e,a)=>l.Factory({Name:e,MaxRank:5,OnApply:new l.Builder().instance.Options({Name:a,Element:t.stat.PHYSICAL_DMG,Talent:t.stat.NONE,Scaling:[{Initial:0,Stat:t.stat.NONE,Talent:t.stat.NONE,Scaling:o.TalentScaling.NONE}]}).Next().Where({not:!0,enemy:{affected:[t.stat.CRYO_DMG]}}).mv.Mv(t.stat.ATK,.8,a).Map((n,s,r)=>[.8,.95,1.1,1.25,1.4][r.GetRank()-1]).Next().Where({enemy:{affected:[t.stat.CRYO_DMG]}}).mv.Mv(t.stat.ATK,2,a).Map((n,s,r)=>[2,2.4,2.8,3.2,3.6][r.GetRank()-1]).Build()}),Hl=p.Factory({Name:"SnowTombedStarsilver",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.PHYSICAL_DMG,Effects:[sa("SnowTombedStarsilver1","HIT_SnowTombedStarsilver")]}),wl=p.Factory({Name:"TheBell",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"TheBell1",MaxRank:5,OnApply:new l.Builder().Where({target:{shielded:!0}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),oe=e=>l.Factory({Name:e,MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Next().Where({target:{shielded:!0}}).stat.Char(t.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()}),Bl=p.Factory({Name:"TheUnforged",Type:t.weapon.CLAYMORE,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[oe("TheUnforged1")]}),bl=p.Factory({Name:"Whiteblind",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.DEF_PERCENT,Effects:[l.Factory({Name:"Whiteblind1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT,t.stat.DEF_PERCENT).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),Kl=p.Factory({Name:"WhiteIronGreatsword",Stars:3,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.DEF_PERCENT,Effects:[]}),Yl=p.Factory({Name:"WolfsGravestone",Stars:5,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"WolfsGravestone1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()}),l.Factory({Name:"WolfsGravestone2",MaxRank:5,ApplyOther:!0,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.4,.5,.6,.7,.8).Build()})]}),Fl=p.Factory({Name:"SerpentSpine",Stars:4,Type:t.weapon.CLAYMORE,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"SerpentSpine1",MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.06,.07,.08,.09,.1).Stacks().Build()})]}),kl=p.Factory({Name:"FreedomSworn",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"FreedomSworn1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.1,.125,.15,.175,.2).Build()}),na({Name:"FreedomSworn2",OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG,t.stat.PLUNGE_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Vl=p.Factory({Name:"LightOfFoliarIncision",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"LightOfFoliarIncision1",MaxRank:5,Conditions:["HIT_NORMAL"],MaxConditions:1,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.04,.05,.06,.07,.08).Next().observe.Target(t.stat.ELEMENTAL_MASTERY).Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT,t.stat.ELEMENTAL_SKILL_DMG_FLAT).Values(1.2,1.5,1.8,2.1,2.4).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()})]}),xl=p.Factory({Name:"KeyOfKhajNisut",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"KeyOfKhajNisut1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Build()}),l.Factory({Name:"KeyOfKhajNisut2",MaxRank:5,MaxStacks:3,ApplyOther:!0,OnApply:new l.Builder().observe.Owner(t.stat.HP,t.stat.HP_PERCENT,t.stat.HP_FLAT).Where({target:{isOwner:!0}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(.12,.15,.18,.21,.24).Stacks().Map((e,a)=>e*a.GetCharacter().Get(t.stat.HP)/100).Next().observe.Owner(t.stat.HP,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ELEMENTAL_MASTERY).Stacks([0,0,0,.2],[0,0,0,.25],[0,0,0,.3],[0,0,0,.35],[0,0,0,.4]).Map((e,a,{Owner:n})=>e*n.GetCharacter().Get(t.stat.HP)/100).Build()})]}),Ul=p.Factory({Name:"HaranGeppakuFutsu",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"HaranGeppakuFutsu1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Stacks().Build()})]}),Wl=p.Factory({Name:"MistsplitterReforged",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"MistsplitterReforged1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char().MapStat(e=>[e.GetCharacter().Options.Element]).Stacks([0,.08,.16,.28],[0,.1,.2,.35],[0,.12,.24,.42],[0,.14,.28,.49],[0,.16,.32,.56]).Build()})]}),jl=p.Factory({Name:"JadeCutter",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"JadeCutter1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Next().observe.Target(t.stat.HP_PERCENT,t.stat.HP_FLAT,t.stat.HP_BASE).stat.Char(t.stat.ATK_FLAT).Values(.012,.015,.018,.021,.024).Map((e,a)=>e*a.GetCharacter().Get(t.stat.HP)).Build()})]}),zl=p.Factory({Name:"SummitShaper",Stars:5,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[oe("SummitShaper1")]}),ql=p.Factory({Name:"AquilaFavonia",Type:t.weapon.SWORD,Stars:5,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"AquilaFavonia1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().instance.Basic({Name:"HIT_AquilaFavonia",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2,2.3,2.6,2.9,3.2]}).Build()})]}),$l=p.Factory({Name:"ToukabouShigure",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"ToukabouShigure1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.16,.2,.24,.28,.32).Build()})]}),Ql=p.Factory({Name:"XiphosMoonlight",Type:t.weapon.SWORD,Stars:4,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[ul("XiphosMoonlight1",t.stat.ENERGY_RECHARGE,[.036/100,.045/100,.054/100,.063/100,.072/100])]}),Xl=p.Factory({Name:"SapwoodBlade",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[Nl("SapwoodBlade1")]}),Jl=p.Factory({Name:"KagotsurubeIsshin",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"KagotsurubeIsshin1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_KagotsurubeIsshin",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.8]}).Next().stat.Char(t.stat.ATK_PERCENT).Values(.15).Build()})]}),Zl=p.Factory({Name:"CinnabarSpindle",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.DEF_PERCENT,Effects:[l.Factory({Name:"CinnabarSpindle1",MaxRank:5,OnApply:new l.Builder().mv.Mv(t.stat.DEF,.4,e=>e.Options.Talent===t.stat.ELEMENTAL_SKILL_DMG).Map((e,a,n)=>[.4,.5,.6,.7,.8][n.GetRank()-1]).Build()})]}),to=p.Factory({Name:"AmenomaKageuchi",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[]}),eo=p.Factory({Name:"FesteringDesire",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"FesteringDesire1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.ELEMENTAL_SKILL_CRIT_RATE).Values(.06,.075,.09,.105,.12).Build()})]}),ao=p.Factory({Name:"SwordOfDescension",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39b,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"SwordOfDescension1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_SwordOfDescension",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2]}).Next().Where({target:{name:/traveler/i}}).stat.Char(t.stat.ATK_FLAT).Values(66).Build()})]}),no=p.Factory({Name:"TheAlleyFlash",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_45,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"TheAlleyFlash1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),so=p.Factory({Name:"BlackcliffLongsword",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffLongsword1")]}),ro=p.Factory({Name:"IronSting",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"IronSting1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),io=p.Factory({Name:"PrototypeRancour",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"PrototypeRancour1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT,t.stat.DEF_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()})]}),lo=p.Factory({Name:"LionsRoar",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"LionsRoar1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),oo=p.Factory({Name:"TheFlute",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"TheFlute1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_TheFlute",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),co=p.Factory({Name:"RoyalGrimoire",Type:t.weapon.CATALYST,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalGrimoire1")]}),Eo=p.Factory({Name:"RoyalSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalSpear1")]}),To=p.Factory({Name:"RoyalBow",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalBow1")]}),_o=p.Factory({Name:"RoyalLongsword",Stars:4,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[Yt("RoyalLongsword1")]}),uo=p.Factory({Name:"SkyriderSword",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"SkyriderSword1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Build()})]}),Ao=p.Factory({Name:"DarkIronSword",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"DarkIronSword1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),So=p.Factory({Name:"FilletBlade",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"FilletBlade1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_FilletBlade",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2.4,2.8,3.2,3.6,4]}).Build()})]}),ho=p.Factory({Name:"TravelersHandySword",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.DEF_PERCENT,Effects:[]}),mo=p.Factory({Name:"HarbingerOfDawn",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"HarbingerOfDawn1",MaxRank:5,OnApply:new l.Builder().Where({target:{hp:{geq:.9}}}).stat.Char(t.stat.CRIT_RATE).Values(.14,.175,.21,.245,.28).Build()})]}),fo=p.Factory({Name:"CoolSteel",Stars:3,Type:t.weapon.SWORD,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"CoolSteel1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.CRYO_DMG,t.stat.HYDRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),Lo=p.Factory({Name:"HuntersPath",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"HuntersPath1",MaxRank:5,Conditions:["HIT_CHARGED"],MaxConditions:1,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().observe.Target(t.stat.ELEMENTAL_MASTERY).Where({effect:{conditions:["HIT_CHARGED"]}}).stat.Char(t.stat.CHARGED_ATTACK_DMG_FLAT).Values(1.6,2,2.4,2.8,3.2).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Build()})]}),po=p.Factory({Name:"ThunderingPulse",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"ThunderingPulse1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Next().stat.Char(t.stat.NORMAL_ATTACK_DMG).Stacks([0,.12,.24,.4],[0,.15,.3,.5],[0,.18,.36,.6],[0,.21,.42,.7],[0,.24,.48,.8]).Build()})]}),No=p.Factory({Name:"AquaSimulacra",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"AquaSimulacra1",MaxRank:5,Conditions:["FAR","NEAR"],MaxConditions:1,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["NEAR"]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),Co=p.Factory({Name:"PolarStar",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"PolarStar1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Stacks([0,.1,.2,.3,.48],[0,.125,.25,.375,.6],[0,.15,.3,.45,.72],[0,.175,.35,.525,.84],[0,.2,.4,.6,.96]).Build()})]}),Mo=p.Factory({Name:"AmosBow",Stars:5,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"AmosBow1",MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),go=p.Factory({Name:"EndOfTheLine",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"EndOfTheLine1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_EndOfTheLine",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.8,1,1.2,1.4,1.6]}).Build()})]}),Go=p.Factory({Name:"KingsSquire",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"KingsSquire1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60,80,100,120,140).Next().instance.Basic({Name:"HIT_KingsSquire",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.2,1.4,1.6,1.8]}).Build()})]}),Ro=p.Factory({Name:"MouunsMoon",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[ea("MouunsMoon1")]}),Io=p.Factory({Name:"Predator",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Predator1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.1).Stacks().Next().Where({target:{name:"Aloy"}}).stat.Char(t.stat.ATK_FLAT).Values(66).Build()})]}),Oo=p.Factory({Name:"Hamayumi",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Hamayumi1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().Where({target:{energy:{geq:1}}}).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().Where({target:{energy:{geq:1}}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.12,.15,.18,.21,.24).Next().Build()})]}),Do=p.Factory({Name:"WindblumeOde",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"WindblumeOde1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()})]}),vo=p.Factory({Name:"MitternachtsWaltz",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"MitternachtsWaltz1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_SKILL"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Build()})]}),yo=p.Factory({Name:"FadingTwilight",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"FadingTwilight1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Stacks([0,.06,.1,.14],[0,.075,.125,.175],[0,.09,.15,.21],[0,.105,.175,.245],[0,.12,.2,.28]).Build()})]}),Po=p.Factory({Name:"AlleyHunter",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"AlleyHunter1",MaxRank:5,MaxStacks:10,OnApply:new l.Builder().stat.Char(t.stat.ALL_DMG).Values(.02,.025,.03,.035,.04).Stacks().Build()})]}),Ho=p.Factory({Name:"TheViridescentHunt",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"TheViridescentHunt1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_TheViridescentHunt",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.4,.5,.6,.7,.8]}).Build()})]}),wo=p.Factory({Name:"CompoundBow",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"CompoundBow1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.04,.05,.06,.07,.08).Stacks().Build()})]}),Bo=p.Factory({Name:"PrototypeCrescent",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"PrototypeCrescent1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.36,.45,.54,.63,.72).Build()})]}),bo=p.Factory({Name:"Rust",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Rust1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.4,.5,.6,.7,.8).Next().stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(-.1).Build()})]}),Ko=p.Factory({Name:"SacrificialBow",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Yo=p.Factory({Name:"TheStringless",Stars:4,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"TheStringless1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),Fo=p.Factory({Name:"Messenger",Type:t.weapon.BOW,Stars:3,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"Messenger1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_Messenger",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1,1.25,1.5,1.75,2]}).Build()})]}),ko=p.Factory({Name:"Slingshot",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"Slingshot1",MaxRank:5,Conditions:["FAR","NEAR"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["FAR"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.36,.42,.48,.54,.6).Next().Where({effect:{conditions:["NEAR"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(-.1).Build()})]}),Vo=p.Factory({Name:"RecurveBow",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.HP_PERCENT,Effects:[]}),xo=p.Factory({Name:"SharpshootersOath",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"SharpshootersOath1",Conditions:["WEAK_SPOT"],MaxConditions:1,MaxRank:5,OnApply:new l.Builder().Where({effect:{conditions:["WEAK_SPOT"]}}).stat.Char(t.stat.AIMED_SHOT_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),Uo=p.Factory({Name:"RavenBow",Stars:3,Type:t.weapon.BOW,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"RavenBow1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.PYRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),Wo=p.Factory({Name:"TulaytullahsRemembrance",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"TulaytullahsRemembrance1",MaxRank:5,MaxStacks:10,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.048,.06,.072,.084,.096).Stacks().Build()})]}),jo=p.Factory({Name:"ThousandFloatingDreams",Type:t.weapon.CATALYST,Stars:5,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"ThousandFloatingDreams1",MaxRank:5,OnApply(e,a,n){const s=e.GetCharacter(),r=n.Modifier(s.CreateModifier(t.stat.ELEMENTAL_MASTERY,0)),i=[n.Modifier(s.CreateModifier(s.Options.Element,0)),n.Modifier(s.CreateModifier(s.Options.Element,0)),n.Modifier(s.CreateModifier(s.Options.Element,0))];function c(){i.forEach(h=>h.SetValue(0));let _=[s];const u=e.GetParty();u&&(_=u.GetMembers().map(h=>h.GetCharacter()));let A=0,S=0;for(const h of _)if(h!==s)if(h.Options.Element===s.Options.Element)A++;else{const m=i[S++];if(!m)continue;m.SetProp(h.Options.Element),m.SetValue(z1[a.GetRank()-1])}A=Math.min(3,A),r.SetValue(j1[a.GetRank()-1]*A)}return c(),n.Observer(e.Event.CreateObserver(G.CharboxEvent.CHANGE_PARTY,c)),n.Observer(a.Event.CreateObserver(l.EffectEvent.CHANGE_RANK,c)),()=>0}}),l.Factory({Name:"ThousandFloatingDreams2",MaxRank:5,ApplyOther:!0,ApplySelf:!1,StackSelf:!0,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(40,42,44,46,48).Build()})]}),j1=[32,40,48,56,64],z1=[.1,.14,.18,.22,.26],zo=p.Factory({Name:"WanderingEvenstar",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"WanderingEvenstar1",StackSelf:!0,ApplyOther:!0,MaxRank:5,OnApply:new l.Builder().observe.Owner(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ATK_FLAT).Values(.24,.3,.36,.42,.48).Map((e,a,n)=>e*n.Owner.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)*(a===n.Owner?1:.3)).Build()})]}),qo=p.Factory({Name:"KagurasVerity",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"KagurasVerity1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.12,.15,.18,.21,.24).Stacks().Next().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Stacks([0,0,0,.12],[0,0,0,.15],[0,0,0,.18],[0,0,0,.21],[0,0,0,.24]).Build()})]}),$o=p.Factory({Name:"EverlastingMoonglow",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"EverlastingMoonglow1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HEALING_BONUS).Values(.1,.125,.15,.175,.2).Next().observe.Target(t.stat.HP_PERCENT,t.stat.HP_BASE,t.stat.HP_FLAT).stat.Char(t.stat.NORMAL_ATTACK_DMG_FLAT).Values(.01,.015,.02,.025,.03).Map((e,a)=>e*a.GetCharacter().Get(t.stat.HP)).Build()})]}),Qo=p.Factory({Name:"MemoryOfDust",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[oe("MemoryOfDust1")]}),Xo=p.Factory({Name:"LostPrayer",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"LostPrayer1",MaxRank:5,MaxStacks:4,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),Jo=p.Factory({Name:"SkywardAtlas",Stars:5,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"SkywardAtlas1",MaxRank:5,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().instance.Basic({Name:"HIT_SkywardAtlas",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.6,2,2.4,4.8,3.2]}).Build()})]}),Zo=p.Factory({Name:"FruitOfFulfillment",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"FruitOfFulfillment1",MaxRank:5,MaxStacks:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(24,27,30,33,36).Stacks().Next().stat.Char(t.stat.ATK_PERCENT).Values(-.05).Stacks().Build()})]}),tc=p.Factory({Name:"OathswornEye",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"OathswornEye1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ENERGY_RECHARGE).Values(.24,.3,.36,.42,.48).Build()})]}),ec=p.Factory({Name:"HakushinRing",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"HakushinRing1",ApplyOther:!0,MaxRank:5,OnApply:new l.Builder().stat.Char().MapStat(e=>[e.GetCharacter().Options.Element]).Values(.1,.125,.15,.175,.2).Build()})]}),ac=p.Factory({Name:"DodocoTales",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"DodocoTales1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_CHARGED"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.CHARGED_ATTACK_DMG).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["HIT_CHARGED"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.08,.1,.12,.14,.16).Next().Build()})]}),nc=p.Factory({Name:"Frostbearer",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[sa("Frostbearer1","HIT_Frostbearer")]}),sc=p.Factory({Name:"EyeOfPerception",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"EyeOfPerception1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_EyeOfPerception",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[2.4,2.7,3,3.3,3.6]}).Build()})]}),rc=p.Factory({Name:"BlackcliffAgate",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffAgate1")]}),ic=p.Factory({Name:"MappaMare",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"MappaMare1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.08,.1,.12,.14,.16).Stacks().Build()})]}),lc=p.Factory({Name:"PrototypeAmber",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.HP_PERCENT,Effects:[]}),oc=p.Factory({Name:"SolarPearl",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"SolarPearl1",MaxRank:5,Conditions:["HIT_NORMAL","HIT_SKILL"],MaxConditions:2,OnApply:new l.Builder().Where({effect:{conditions:["HIT_NORMAL"]}}).stat.Char(t.stat.ELEMENTAL_SKILL_DMG,t.stat.ELEMENTAL_BURST_DMG).Values(.2,.25,.3,.35,.4).Next().Where({effect:{conditions:["HIT_SKILL"]}}).stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.2,.25,.3,.35,.4).Next().Build()})]}),cc=p.Factory({Name:"SacrificialFragments",Type:t.weapon.CATALYST,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[]}),Ec=p.Factory({Name:"FavoniusCodex",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Tc=p.Factory({Name:"AmberBead",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"AmberBead1",MaxRank:5,MaxStacks:2,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.06,.075,.09,.105,.12).Stacks().Build()})]}),_c=p.Factory({Name:"TwinNephrite",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"TwinNephrite1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.14,.16,.18,.2).Build()})]}),uc=p.Factory({Name:"EmeraldOrb",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"EmeraldOrb1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Ac=p.Factory({Name:"OtherworldlyStory",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Sc=p.Factory({Name:"ThrillingTalesOfDragonSlayers",Stars:3,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"ThrillingTalesOfDragonSlayers1",MaxRank:5,ApplySelf:!1,ApplyOther:!0,MaxTargets:1,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),hc=p.Factory({Name:"MagicGuide",Type:t.weapon.CATALYST,Stars:3,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"MagicGuide1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.HYDRO_DMG,t.stat.ELECTRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.12,.15,.18,.21,.24).Build()})]}),mc=p.Factory({Name:"StaffOfTheScarletSands",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44b,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"StaffOfTheScarletSands1",MaxRank:5,MaxStacks:3,OnApply:new l.Builder().observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ATK_FLAT).Values(.52,.65,.78,.91,1.04).Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Next().observe.Target(t.stat.ELEMENTAL_MASTERY).stat.Char(t.stat.ATK_FLAT).Values(.28,.35,.42,.49,.56).Stacks().Map((e,a)=>e*a.GetCharacter().Get(t.stat.ELEMENTAL_MASTERY)).Next().Build()})]}),fc=p.Factory({Name:"CalamityQueller",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_49,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"CalamityQueller1",MaxRank:5,MaxStacks:6,Conditions:["ON_FIELD","OFF_FIELD"],MaxConditions:1,OnApply:new l.Builder().stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ATK_PERCENT).Values(.032,.04,.048,.056,.064).Stacks().Next().Where({effect:{conditions:["OFF_FIELD"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.032,.04,.048,.056,.064).Stacks().Next().Build()})]}),Lc=p.Factory({Name:"JadeSpear",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"JadeSpear1",MaxRank:5,MaxStacks:7,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.032,.039,.046,.053,.06).Stacks().Next().stat.Char(t.stat.ALL_DMG).Stacks([0,0,0,0,0,0,0,.12],[0,0,0,0,0,0,0,.15],[0,0,0,0,0,0,0,.18],[0,0,0,0,0,0,0,.21],[0,0,0,0,0,0,0,.24]).Build()})]}),pc=p.Factory({Name:"VortexVanquisher",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ATK_PERCENT,Effects:[oe("VortexVanquisher1")]}),Nc=p.Factory({Name:"SkywardSpine",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"SkywardSpine1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.08,.1,.12,.14,.16).Next().instance.Basic({Name:"HIT_SkywardSpine",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.4,.55,.7,.85,1]}).Build()})]}),dc=p.Factory({Name:"MissiveWindspear",Type:t.weapon.POLEARM,Stars:4,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"MissiveWindspear1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.12,.15,.18,.21,.24).Next().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(48,60,72,84,96).Build()})]}),Cc=p.Factory({Name:"Moonpiercer",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"Moonpiercer1",ApplyOther:!0,MaxTargets:1,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ATK_PERCENT).Values(.16,.2,.24,.28,.32).Build()})]}),Mc=p.Factory({Name:"EngulfingLightning",Stars:5,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"EngulfingLightning1",MaxRank:5,Conditions:["CAST_BURST","NO_BURST"],MaxConditions:1,OnApply:new l.Builder().observe.Target(t.stat.ENERGY_RECHARGE).stat.Char(t.stat.ATK_PERCENT).Values(.28,.35,.42,.49,.56).Map((e,a,n)=>q1(e,a.GetCharacter().Get(t.stat.ENERGY_RECHARGE),n.GetRank())).Next().Where({effect:{conditions:["CAST_BURST"]}}).stat.Char(t.stat.ENERGY_RECHARGE).Values(.3,.35,.4,.45,.5).Build()})]});function q1(e,a,n){return Math.min(e*Math.max(0,a-1),$1[n-1])}var $1=[.8,.9,1,1.1,1.2],gc=p.Factory({Name:"WavebreakerFin",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_45,Substat:t.stat.ATK_PERCENT,Effects:[ea("WavebreakerFin1")]}),Gc=p.Factory({Name:"KitainCrossSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"KitainCrossSpear1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_SKILL_DMG).Values(.06,.075,.09,.105,.12).Build()})]}),Rc=p.Factory({Name:"DragonspineSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.PHYSICAL_DMG,Effects:[sa("DragonspineSpear1","HIT_DragonspineSpear")]}),Ic=p.Factory({Name:"LithicSpear",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ATK_PERCENT,Effects:[Ml("LithicSpear1")]}),Oc=p.Factory({Name:"CrescentPike",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.PHYSICAL_DMG,Effects:[l.Factory({Name:"CrescentPike1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_CrescentPike",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.2,.25,.3,.35,.4]}).Build()})]}),Dc=p.Factory({Name:"Halberd",Stars:3,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_40,Substat:t.stat.ATK_PERCENT,Effects:[l.Factory({Name:"Halberd1",MaxRank:5,OnApply:new l.Builder().instance.Basic({Name:"HIT_Halberd",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.6,2,2.4,2.8,3.2]}).Build()})]}),vc=p.Factory({Name:"DragonsBane",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ELEMENTAL_MASTERY,Effects:[l.Factory({Name:"DragonsBane1",MaxRank:5,OnApply:new l.Builder().Where({enemy:{affected:[t.stat.HYDRO_DMG,t.stat.PYRO_DMG]}}).stat.Char(t.stat.ALL_DMG).Values(.2,.24,.28,.32,.36).Build()})]}),yc=p.Factory({Name:"SacrificialSword",Type:t.weapon.SWORD,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Pc=p.Factory({Name:"ElegyForTheEnd",Type:t.weapon.BOW,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"ElegyForTheEnd1",ApplySelf:!0,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(60,75,90,105,120).Build()}),na({Name:"ElegyForTheEnd2",OnApply:new l.Builder().stat.Char(t.stat.ELEMENTAL_MASTERY).Values(100,125,150,175,200).Next().stat.Char(t.stat.ATK_PERCENT).Values(.2,.25,.3,.35,.4).Build()})]}),Hc=p.Factory({Name:"StaffOfHoma",Type:t.weapon.POLEARM,Stars:5,Scaling:o.WeaponScaling.TYPE_46,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"StaffOfHoma1",ApplySelf:!0,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.HP_PERCENT).Values(.2,.25,.3,.35,.4).Next().observe.Target(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ATK_FLAT).Values(.008,.01,.012,.014,.016).Map((e,a)=>a.GetCharacter().Get(t.stat.HP)*e).Next().observe.Target(t.stat.HP_BASE,t.stat.HP_PERCENT,t.stat.HP_FLAT).stat.Char(t.stat.ATK_FLAT).Where({target:{hp:{leq:.5}}}).Values(.01,.012,.014,.016,.018).Map((e,a)=>a.GetCharacter().Get(t.stat.HP)*e).Build()})]}),wc=p.Factory({Name:"FavoniusLance",Type:t.weapon.POLEARM,Stars:4,Scaling:o.WeaponScaling.TYPE_44,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Bc=p.Factory({Name:"WhiteTassel",Stars:3,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_39,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"WhiteTassel1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG).Values(.24,.3,.36,.42,.48).Build()})]}),bc=p.Factory({Name:"BlackTassel",Stars:3,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_38,Substat:t.stat.HP_PERCENT,Effects:[l.Factory({Name:"BlackTassel1",MaxRank:5,Conditions:["NO_SLIMES","SLIMES"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["SLIMES"]}}).stat.Char(t.stat.ALL_DMG).Values(.4,.5,.6,.7,.8).Build()})]}),Kc=p.Factory({Name:"PrototypeStarglitter",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.ENERGY_RECHARGE,Effects:[l.Factory({Name:"PrototypeStarglitter1",MaxStacks:2,MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.NORMAL_ATTACK_DMG,t.stat.CHARGED_ATTACK_DMG).Values(.08,.1,.12,.14,.16).Stacks().Next().Build()})]}),Yc=p.Factory({Name:"BlackcliffPole",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[Kt("BlackcliffPole1")]}),Fc=p.Factory({Name:"Deathmatch",Stars:4,Type:t.weapon.POLEARM,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"Deathmatch1",MaxRank:5,MaxConditions:1,Conditions:["ENEMY_1","ENEMY_2"],OnApply:new l.Builder().Where({effect:{conditions:["ENEMY_2"]}}).stat.Char(t.stat.ATK_PERCENT,t.stat.DEF_PERCENT).Values(.16,.2,.24,.28,.32).Next().Where({effect:{conditions:["ENEMY_1"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.24,.3,.36,.42,.48).Build()})]}),kc=p.Factory({Name:"SkywardBlade",Stars:5,Type:t.weapon.SWORD,Substat:t.stat.ENERGY_RECHARGE,Scaling:o.WeaponScaling.TYPE_46,Effects:[l.Factory({Name:"SkywardBlade1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CRIT_RATE).Values(.04,.05,.06,.07,.08).Next().instance.Basic({Name:"HIT_SkywardBlade",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[.2,.25,.3,.35,.4]}).Build()})]}),Vc=p.Factory({Name:"SkywardHarp",Type:t.weapon.BOW,Stars:5,Scaling:o.WeaponScaling.TYPE_48,Substat:t.stat.CRIT_RATE,Effects:[l.Factory({Name:"SkywardHarp1",MaxRank:5,OnApply:new l.Builder().stat.Char(t.stat.CRIT_DMG).Values(.2,.25,.3,.35,.4).Next().instance.Basic({Name:"HIT_SkywardHarp",Element:t.stat.PHYSICAL_DMG,Stat:t.stat.ATK,Values:[1.25]}).Build()})]}),xc=p.Factory({Name:"FavoniusSword",Type:t.weapon.SWORD,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Uc=p.Factory({Name:"FavoniusWarbow",Type:t.weapon.BOW,Stars:4,Scaling:o.WeaponScaling.TYPE_41,Substat:t.stat.ENERGY_RECHARGE,Effects:[]}),Wc=p.Factory({Name:"TheWidsith",Stars:4,Type:t.weapon.CATALYST,Scaling:o.WeaponScaling.TYPE_42,Substat:t.stat.CRIT_DMG,Effects:[l.Factory({Name:"TheWidsith1",MaxRank:5,Conditions:["RECITATIVE","ARIA","INTERLUDE"],MaxConditions:1,OnApply:new l.Builder().Where({effect:{conditions:["RECITATIVE"]}}).stat.Char(t.stat.ATK_PERCENT).Values(.6,.75,.9,1.05,1.2).Next().Where({effect:{conditions:["ARIA"]}}).stat.Char(...t.Elements.filter(e=>e!==t.stat.PHYSICAL_DMG)).Values(.48,.6,.72,.84,.96).Next().Where({effect:{conditions:["INTERLUDE"]}}).stat.Char(t.stat.ELEMENTAL_MASTERY).Values(240,300,360,420,480).Build()})]}),jc=Object.values(ki).sort((e,a)=>e.Type===a.Type?e.Stars===a.Stars?e.Name.localeCompare(a.Name):e.Stars-a.Stars:e.Type-a.Type),ce={};for(const e of jc)ce[e.Type]||(ce[e.Type]=[]),ce[e.Type].push(e);var ra=new Q(e=>e.Name);ra.AddList(jc);function zc(){return ra.Get()}function Q1(e){return ra.Find(e)}function X1(e){return ce[e]||[]}var Ee={};D(Ee,{FindByName:()=>Z1,GetList:()=>J1});var Nt=new Q(e=>e.Name);for(const e of Fi())e.Effects.forEach(a=>Nt.Add(a));for(const e of zc())e.Effects.forEach(a=>Nt.Add(a));for(const e of Kr())e.Piece2.forEach(a=>Nt.Add(a)),e.Piece4.forEach(a=>Nt.Add(a));for(const e of ps())Nt.Add(e);function J1(){return Nt.Get()}function Z1(e){return Nt.Find(e)}var Ft={};D(Ft,{ArtifactStore:()=>aN,CopyCharbox:()=>lN,FilterArtifacts:()=>ia,PartyFrom:()=>tN});function tN(e){const a=new G.Party;for(const n in e.characters){const s=pt.FindByName(n);if(!s)throw new Error(`Character not found: ${n}`);const r=s();a.Add(r);const i=e.characters[n],c=Object.keys(i.weapon)[0];if(c){const _=et.FindByName(c);if(!_)throw new Error(`Weapon not found: ${n}`);r.SetWeapon(_)}i.artifacts&&Object.keys(i.artifacts).length>0&&r.SetArtifacts(new Lt.Artbox(r))}return G.ImportParty(e,a),a}function ia(e,a,n){const s=a.map(r=>eN(r));return n&&s.push({filter(r){return!(n.pieces&&!n.pieces.includes(r.piece)||n.only&&n.only==="locked"!==!!r.locked)}}),tn.Filter({values:e,mode:"every",filters:s})}function eN(e){const a=e.pieces||t.piece.Values(),n=e.subsMode||"some";return{for(s){return a.includes(s.piece)},filter(s){if(e.main&&!e.main.includes(s.mainstat))return!1;if(e.subs){const r=s.substats.map(c=>c.stat);if(!e.subs[n](c=>r.includes(c)))return!1}return!(Number.isFinite(e.stars)&&s.stars<(e.stars||0)||Number.isFinite(e.level)&&s.level<(e.level||0))}}}var aN=class{constructor(e){this.onChange=e,this.list=[],this.filtered=[]}Update(){this.onChange()}All(){return this.list}Clear(){this.list.splice(0,this.list.length),this.filtered.splice(0,this.filtered.length),this.onChange()}Add(e,a="push"){const n=I.Export(e);this.list[a](n),this.filtered=[...this.list],this.onChange()}AddExported(e,a="push"){this.list[a](e),this.filtered=[...this.list],this.onChange()}Filter(e,a){const{values:n}=ia(this.list,e,a);return this.filtered=n,n}Get(){return this.filtered}Replace(e,a){const n=this.list.indexOf(e);return n===-1?!1:(this.list.splice(n,1,a),this.onChange(),!0)}RemoveMultiple(e,a){const{indexes:n}=ia(this.list,e,a),s=[];return this.list.forEach((r,i)=>{n.includes(i)||s.push(r)}),this.list=s,this.onChange(),s.length}Remove(e){const a=this.list.indexOf(e);return a===-1?!1:(this.list.splice(a,1),this.onChange(),!0)}};function nN(e,a){const n=e.GetArtifacts();let s=a.GetArtifacts();if(!n){a.SetArtifacts(void 0);return}s||(s=new Lt.Artbox(a),a.SetArtifacts(s));const r=s,i=n.GetActiveSets(),c=r.GetActiveSets(),_=(()=>{const u=new Map;return n.GetEffects().forEach(A=>{const S=A.GetTargets().map(h=>h===e?a:h);u.set(A.Options.Name,S)}),u})();r.GetArtifacts().forEach((u,A)=>{const S=n.Get(A);I.Import(I.Export(S),u)}),i.every(u=>c.includes(u))&&r.GetEffects().forEach(u=>{const A=_.get(u.Options.Name);A&&u.ApplyMultiple(A)})}var sN=[[t.stat.NORMAL_ATTACK_LEVEL,t.stat.NORMAL_ATTACK_LEVEL_UP],[t.stat.ELEMENTAL_SKILL_LEVEL,t.stat.ELEMENTAL_SKILL_LEVEL_UP],[t.stat.ELEMENTAL_BURST_LEVEL,t.stat.ELEMENTAL_BURST_LEVEL_UP]];function rN(e,a){const n=e.GetCharacter(),s=a.GetCharacter();for(const[r,i]of sN){const c=n.Get(r)-n.Get(i),_=s.Get(i);s.Set(r,c+_)}}function iN(e,a){const n=e.GetWeapon(),s=a.GetWeapon();if(!n){a.SetWeapon(void 0);return}if(!s||s.Options.Name!==n.Options.Name){const i=et.FindByName(n.Options.Name);if(!i)throw new Error(`Weapon not found: ${n.Options.Name}`);a.SetWeapon(i)}const r=a.GetWeapon();if(!r)throw new Error("Target has no weapon");p.Import(p.Export(n),r)}function lN(e,a){a.GetCharacter().SetLevel(e.GetCharacter().GetLevel()),a.GetCharacter().SetAscension(e.GetCharacter().GetAscension()),rN(e,a),iN(e,a),nN(e,a)}var la=class extends qa{constructor(e){super(e),this.functions=new Map;const a=Mt.Contexts("math","logic",{functions:{pick:{name:"pick",arguments:[{name:"index",description:"integer index of the item to pick, starting at 1"},"..."],evaluate({values:[s,...r]}){return r[s-1]}},var:{name:"var",arguments:[{name:"name",description:"name of the variable to set",expression:!0},{name:"value",description:"value to set the variable to"}],evaluate:({values:[,s],expressions:[r]})=>{const i=r.token.value;return n.setVar(i,s),s}},add:{name:"add",arguments:[{name:"variable",description:"name of the variable to add to",expression:!0},{name:"value",description:"value to add to the variable"}],evaluate:({values:[,s],expressions:[r],location:i})=>{const c=r.token.value,_=n.getVar(c);if(_===void 0)throw new Error(`Variable ${c} is not defined at ${i}`);const u=_+s;return n.setVar(c,u),u}},multiply:{name:"multiply",arguments:[{name:"variable",description:"name of the variable to multiply",expression:!0},{name:"value",description:"value to multiply the variable by"}],evaluate:({values:[,s],expressions:[r]})=>{const i=r.token.value,c=n.getVar(i);if(c===void 0)throw new Error(`Variable ${i} is not defined`);const _=c*s;return n.setVar(i,_),_}},func:{name:"func",description:"define a function. Example: function(myfunc, (arg1, arg2), (arg1 + arg2))",arguments:[{name:"name",description:"name of the function to define",expression:!0},{name:"arguments",description:"arguments to the function",expression:!0},{name:"body",description:"body of the function",expression:!0}],evaluate:({expressions:[s,r,i],location:c})=>{const _=s.token.value,u=r.children.length?r.children.map(({token:S})=>S.value):r.token.value==="0"?[]:[r.token.value],A=(()=>i.evaluate?[i.evaluate]:i.children.map(S=>S.evaluate||(()=>0)))();if(!A)throw new Error(`Function body is not an expression at ${c}`);return this.functions.set(_,{args:u,expr:A}),0}},call:{name:"call",description:"call a function. Example: call(myfunc, arg1, arg2)",arguments:[{name:"name",description:"name of the function to call",expression:!0},"..."],evaluate:({expressions:[s],values:[,...r],location:i})=>{var c;const _=s.token.value,u=this.functions.get(_);if(!u)throw new Error(`Function ${_} is not defined at ${i}`);if(r.length!==u.args.length)throw new Error(`Function ${_} expects ${u.args.length} arguments, but ${r.length} were provided at ${i}`);for(let A=0;AA()).pop())!=null?c:0}}}});a.ignoreCase=!0;const n=new Mt(a);this.exprParser=n}};function B(e){if(typeof e=="number")return e;const a=e.endsWith("%");a&&(e=e.slice(0,e.length-1));let n=parseFloat(e);if(!Number.isFinite(n))throw new Error(`Invalid number format: "${e}"`);return a&&(n/=100),n}function Rd(e){return e}var oN=()=>({show:{name:"show",description:"Shows the rolls of the character artifacts",compile(e,{context:a,logger:n}){return function(){const i=a.GetChar().GetArtifacts();if(!i){n.error("Current character has no artifacts");return}n.log(` `+i.GetArtifacts().map(c=>T.ArtifactRolls(c)).join(` `))}}},tier:{name:"tier",arguments:"tier",description:"Sets the rolls tier to equip.`",example:"artifact rolls tier 3",docs:{tier:"a number from 0 to 4, where 0 is the lowest tier and 3 is the highest tier.Also, the number 4 or the word `avg` can be used to set the tier to the average."},compile({values:[e]},{context:a,logger:n}){let s,r;return e==="avg"?(s=4,r="AVERAGE"):(s=Math.max(0,Math.min(4,Math.floor(B(e)))),r=s+""),function(){a.Config.substats.tier=s,n.logf("Rolls tier set to %s",r)}}},equip:{name:"equip",arguments:"stat rolls more...",description:"Equips the given rolls to the artifacts.Arguments in the form `[stat] [rolls] [stat] [rolls] ...`.",example:"artifact rolls equip crit_rate 10 crit_dmg 12 elemental_mastery 3",compile({values:e},{context:a,logger:n}){const s=[];for(let r=0;r({list:{name:"list",description:"Lists the registered artifact sets",compile(e,{logger:a}){const n=new T.Table(T.labels.SET,T.labels.STARS),s=tt.GetList();return s.forEach(r=>n.AddRow(r.Name,r.Stars)),function(){a.logf("Total artifact sets: %d",s.length),a.log(` `+n.String())}}},add:{name:"add",description:"Adds a build of 5 artifacts to the current character",compile(e,{context:a,logger:n}){return function(){const r=a.GetChar();r.GetArtifacts()?n.warn("Artifacts not created. Character already has artifacts"):(r.SetArtifacts(new Lt.Artbox(r)),n.log("Artifacts created"))}}},fill:{name:"fill",description:"Adds 4 empty substats to all artifacts in the current character",compile(e,{context:a,logger:n}){return function(){const i=a.GetChar().GetArtifacts();i?(i.GetArtifacts().forEach(c=>c.FillSubstats()),n.log("All artifacts filled")):n.error("Character has no artifacts")}}},main:{name:"main",description:"Sets the mainstats of the character artifacts.",arguments:"sands goblet circlet",example:"artifact main atk_percent pyro_dmg crit_rate",compile({values:[e,a,n]},{context:s,logger:r}){const i=t.stat.Get(e.toUpperCase()),c=t.stat.Get(a.toUpperCase()),_=t.stat.Get(n.toUpperCase());return function(){const S=s.GetChar().GetArtifacts();if(!S){r.error("Current character has no artifacts");return}S.Get(2).SetMainstat(i),S.Get(3).SetMainstat(c),S.Get(4).SetMainstat(_);const h=S.GetArtifacts().map(m=>t.stat.Name(m.GetMainstat()));r.logf("Artifact mainstats set to %s",h.join(", "))}}},level:{name:"level",description:"Sets the level of all the artifacts of the current character.",example:"artifact level 20",arguments:"level",compile({values:[e]},{context:a,logger:n}){const s=B(e);return function(){const c=a.GetChar().GetArtifacts();if(!c){n.error("Current character has no artifacts");return}c.GetArtifacts().forEach(u=>u.SetLevel(s));const _=c.GetArtifacts().map(u=>u.GetLevel());n.logf("Artifact levels set to %s",_.join(", "))}}},stars:{name:"stars",description:"Sets the stars of all the artifacts of the current character.",example:"artifact stars 5",arguments:"stars",compile({values:[e]},{context:a,logger:n}){const s=B(e);return function(){const c=a.GetChar().GetArtifacts();if(!c){n.error("Current character has no artifacts");return}c.GetArtifacts().forEach(u=>u.SetStars(s));const _=c.GetArtifacts().map(u=>u.GetStars());n.logf("Artifact stars set to %s",_.join(", "))}}},remove:{name:"remove",description:"Removes all artifacts from the current character",compile(e,{context:a,logger:n}){return function(){a.GetChar().SetArtifacts(void 0),n.log("Artifacts removed")}}},show:{name:"show",description:"Shows the artifacts of the current character",compile(e,{context:a,logger:n}){return function(){const i=a.GetChar().GetArtifacts();if(!i){n.error("Current character has no artifacts");return}n.log(` diff --git a/v4/assets/xml.5ff44e77.js b/v4/assets/xml.1a337a49.js similarity index 97% rename from v4/assets/xml.5ff44e77.js rename to v4/assets/xml.1a337a49.js index 37d73e2..0e81493 100644 --- a/v4/assets/xml.5ff44e77.js +++ b/v4/assets/xml.1a337a49.js @@ -1,4 +1,4 @@ -import{m}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +import{m}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/assets/yaml.afab3d0f.js b/v4/assets/yaml.a2b3099d.js similarity index 98% rename from v4/assets/yaml.afab3d0f.js rename to v4/assets/yaml.a2b3099d.js index 7e3d9f7..488086c 100644 --- a/v4/assets/yaml.afab3d0f.js +++ b/v4/assets/yaml.a2b3099d.js @@ -1,4 +1,4 @@ -import{m as i}from"./index.6b59a00d.js";/*!----------------------------------------------------------------------------- +import{m as i}from"./index.c54b571c.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f) * Released under the MIT license diff --git a/v4/index.html b/v4/index.html index e5880a1..a8c9141 100644 --- a/v4/index.html +++ b/v4/index.html @@ -38,7 +38,7 @@ Genshin Impact Damage Calculator - +